Delete all sessions created from a given source
const url = 'https://api.aetherpush.com/v1/sessions/203.0.113.42';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/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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The createdBy identifier (typically an IP address) of sessions to delete.
Example
203.0.113.42Responses
Section titled “Responses”Sessions revoked successfully.
Unauthenticated.
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"}No sessions matching the given createdBy exist on this account.
object
Human-readable error message.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Example
{ "error": "There are no sessions associated with \"203.0.113.42.\"", "requestId": "req_abc123"}