Uprails
API Keys/Revoke

Revoke API Key

Permanently revoke an API key.

DELETEhttps://api.uprails.com/api-keys/:key_id/revoke

Revokes an API key, immediately preventing it from being used for authentication. This action cannot be undone.

Irreversible Action
Once an API key is revoked, it cannot be restored. Any applications using this key will immediately lose access.

Path Parameters

ParameterTypeDescription
key_idstringRequired. The ID of the API key to revoke.

Request Example

curl -X DELETE https://api.uprails.com/api-keys/key_1234567890abcdef/revoke \
  -H "api-key: snd_YOUR_API_KEY"

Response

200OK
{
  "key_id": "key_1234567890abcdef",
  "deleted": true
}