API keys

Revoke an API key

A key may revoke itself, but revoking the FINAL active key is refused (cannot_revoke_last_key) — with zero active keys the account would be locked out. Rotation order: create the new key first, then revoke the old one. Revoking an already-revoked key is idempotent (returns the same terminal state).

delete/v1/api-keys/{id}

Request

  • Base URL: https://serp-agent.com
  • URL: https://serp-agent.com/v1/api-keys/{id}
  • Auth: HTTP bearer

Path parameters

idstring required

API key id (from POST/GET /v1/api-keys).

Response

Key revoked (or already revoked).

Changes

No recorded changes to this operation across all 1 revision of this API.