Skip to main content
DELETE
/
api-keys
/
{apiKeyId}
Revoke API key
curl --request DELETE \
  --url https://ascii.dev/api/box/v1/api-keys/{apiKeyId} \
  --header 'Authorization: Bearer <token>'
{
  "ok": true,
  "type": "api_key.deleted",
  "apiKeys": []
}

Authorizations

Authorization
string
header
required

Box API key in the form box_.... Create and rotate keys in the Box dashboard or through the v1 API key endpoints.

Path Parameters

apiKeyId
string
required

API key id returned by list/create API key responses. This is not the raw API key secret.

Response

API key revoked.

ok
boolean
required
Example:

true

type
string
required

Stable success envelope discriminator added by v1.

apiKeys
object[]
required