Skip to main content
DELETE
/
v1
/
me
/
api-keys
/
{id}
Revoke an API key
curl --request DELETE \
  --url https://api.chatgrid.ai/v1/v1/me/api-keys/{id} \
  --header 'Authorization: Bearer <token>'
{
  "object": "api_key_revoked",
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "revoked": true
  }
}

Authorizations

Authorization
string
header
required

Pass your API key (prefixed cgk_) or a Supabase JWT in the Authorization: Bearer <token> header.

Path Parameters

id
string<uuid>
required

API key UUID.

Example:

"ee112233-4455-6677-8899-aabbccddeeff"

Response

API key revoked.

object
enum<string>
Available options:
api_key_revoked
data
object