Skip to main content
DELETE
/
v1
/
api-keys
/
{id}
Delete API Key
curl --request DELETE \
  --url https://api.example.com/v1/api-keys/{id}

Delete API Key

Revoke an API key. This is immediate and permanent.
id
string
required
The ID of the API key to delete.

Request

curl -X DELETE https://api.lettr.dev/v1/api-keys/key_123abc \
  -H "Authorization: Bearer le_xxxxxxxxxxxx"

Response

{
  "id": "key_123abc",
  "object": "api_key",
  "deleted": true
}
Deleting an API key is immediate and permanent. Any applications using this key will immediately lose access.

Errors

CodeDescription
not_foundAPI key with specified ID not found
cannot_delete_selfCannot delete the API key used for this request