Skip to content

Revoke an API key

DELETE
/v1/api-keys/{id}
curl --request DELETE \
--url https://api.aetherpush.com/v1/api-keys/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'

Soft-revokes the API key. Idempotent — revoking an already-revoked key returns 200 with the original revoked_at timestamp.

id
required
string format: uuid

API key revoked (or already revoked).

Media typeapplication/json
object
id
required
string format: uuid
revoked_at
required
string format: date-time
Example
{
"id": "5b3f1c8a-4d2e-4a7c-9a1b-8e6f3c2d1b0a",
"revoked_at": "2025-05-04T15:00:00Z"
}

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

API key not found.

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