Skip to navigation

Delete Key

Revoke a key immediately. Its historical spend is retained for reporting. To stop a key without losing it, set disabled instead.

Authentication

AuthorizationBearer

A management key (mgmt_...), sent as Authorization: Bearer <key>. Reading /v1/routing-policies also accepts the organization’s gateway API keys; writing there needs a management key.

Path parameters

key_hashstringRequired

The key’s hash from a create or list response.

Response

The API key was deleted

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
502
Bad Gateway Error