Skip to content

Delete all sessions created from a given source

DELETE
/v1/sessions/{createdBy}
curl --request DELETE \
--url https://api.aetherpush.com/v1/sessions/203.0.113.42 \
--header 'Authorization: Bearer <token>'

Revokes all access keys (sessions) on the current account whose createdBy field matches the path parameter. The createdBy value is typically the IP address from which the session was originally created.

Useful for “log out other devices” flows and for revoking a session originating from a suspicious IP.

createdBy
required
string

The createdBy identifier (typically an IP address) of sessions to delete.

Example
203.0.113.42

Sessions revoked successfully.

Unauthenticated.

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"
}

No sessions matching the given createdBy exist on this 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": "There are no sessions associated with \"203.0.113.42.\"",
"requestId": "req_abc123"
}