Skip to main content
DELETE
/
api-keys
Bulk delete API Keys for the authenticated user
curl --request DELETE \
  --url https://api.xata.tech/api-keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "ids": [
    "<string>"
  ]
}
'
{
  "message": "<string>",
  "id": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://xata.io/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
ids
string[]
required

Array of API key IDs to delete (maximum 50 keys per request)

Maximum array length: 50

Response

API Keys deleted successfully