API Keys

Revoke Api Key

Revoke (deactivate) an API key.

The key will be immediately invalidated but kept in the database for audit purposes. Use this instead of delete if you want to preserve usage history.

Args: key_id: The API key ID to revoke user_id: Authenticated user ID (from JWT) db: Database client

Returns: Success confirmation

post/api/v1/keys/{key_id}/revoke

Request

  • Base URL: https://api.seoproai.co
  • URL: https://api.seoproai.co/api/v1/keys/{key_id}/revoke
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://dajosjnaalanhqksxrpe.supabase.co/auth/v1/authorize, token URL https://dajosjnaalanhqksxrpe.supabase.co/auth/v1/token)

Path parameters

key_idstring required

Headers

X-User-Idstring nullable
X-Organization-Idstring nullable
Authorizationstring nullable

Response

Successful Response

successboolean required
messagestring required

Changes

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