End the session this request is using
const url = 'https://api.aetherpush.com/v1/sessions/current';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.aetherpush.com/v1/sessions/current \ --header 'Authorization: Bearer <token>'What the dashboard calls on sign-out before it clears its local
state, so the session ends on the server instead of staying valid
until it expires. Identifies the credential from the bearer on the
request itself, whatever its origin. One session_revoked audit row
is written. The CLI keeps using DELETE /v1/cli/devices/current.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Session revoked.
The bearer token is missing, invalid, expired or already revoked.
object
Human-readable error message.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Example
{ "error": "The requested resource was not found.", "requestId": "req_abc123"}API keys and named access keys cannot access this endpoint; a login session is required.
object
Human-readable error message.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Example
{ "error": "The requested resource was not found.", "requestId": "req_abc123"}The bearer matches no session of the account.
object
Human-readable error message.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Example
{ "error": "The requested resource was not found.", "requestId": "req_abc123"}Internal server error.
object
Human-readable error message.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Example
{ "error": "The requested resource was not found.", "requestId": "req_abc123"}