Skip to content

End the session this request is using

DELETE
/v1/sessions/current
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.

Session revoked.

The bearer token is missing, invalid, expired or already revoked.

Media typeapplication/json
object
error
required

Human-readable error message.

string
requestId

Unique identifier for the request, also exposed as the X-Request-Id response header.

string
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.

Media typeapplication/json
object
error
required

Human-readable error message.

string
requestId

Unique identifier for the request, also exposed as the X-Request-Id response header.

string
Example
{
"error": "The requested resource was not found.",
"requestId": "req_abc123"
}

The bearer matches no session of the account.

Media typeapplication/json
object
error
required

Human-readable error message.

string
requestId

Unique identifier for the request, also exposed as the X-Request-Id response header.

string
Example
{
"error": "The requested resource was not found.",
"requestId": "req_abc123"
}

Internal server error.

Media typeapplication/json
object
error
required

Human-readable error message.

string
requestId

Unique identifier for the request, also exposed as the X-Request-Id response header.

string
Example
{
"error": "The requested resource was not found.",
"requestId": "req_abc123"
}