Skip to main content
DELETE
/
v1
/
workspaces
/
{workspace_id}
/
api-keys
/
{api_key_id}
Revoke API key
import requests

url = "https://api.auriko.ai/v1/workspaces/{workspace_id}/api-keys/{api_key_id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.delete(url, headers=headers)

print(response.text)
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "propagation_status": "pending",
  "message": "<string>"
}
Requires keys:write scope. Naturally idempotent.
Revoked keys stop working within 60 seconds. May return 202 with propagation_status: "pending" while the change takes effect.
All parameters, request/response schemas, and examples are auto-generated from the OpenAPI specification.

Authorizations

Authorization
string
header
required

API key authentication. Keys start with ak_ prefix. Example: Authorization: Bearer ak_live_xxxxxxxxxxxx

Path Parameters

workspace_id
string<uuid>
required

Workspace identifier

api_key_id
string<uuid>
required

API key identifier

Response

Accepted — revocation queued for propagation

Response when an operation is accepted but propagation is pending.

id
string<uuid>
required

Identifier of the affected resource

propagation_status
enum<string>
required

Propagation status

Available options:
pending
message
string
required

Human-readable status message