Skip to main content
DELETE
/
v1
/
me
/
api-keys
/
{id}
curl -X DELETE "https://api.chatgrid.ai/v1/me/api-keys/ee112233-4455-6677-8899-aabbccddeeff" \
  -H "Authorization: Bearer cgk_live_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6"
{
  "object": "api_key_revoked",
  "data": {
    "id": "ee112233-4455-6677-8899-aabbccddeeff",
    "revoked": true
  }
}
Requires the admin scope.
id
string
required
API key UUID.
Once revoked, the key is permanently unusable. This action cannot be undone. If the key was already revoked, a 404 is returned.
curl -X DELETE "https://api.chatgrid.ai/v1/me/api-keys/ee112233-4455-6677-8899-aabbccddeeff" \
  -H "Authorization: Bearer cgk_live_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6"
{
  "object": "api_key_revoked",
  "data": {
    "id": "ee112233-4455-6677-8899-aabbccddeeff",
    "revoked": true
  }
}