Revoke this key
Deletes the API key used for this request, whatever its grants. There is no undo.
DELETE
/v1/keys/selfAuthorization
AuthorizationBearer token · headerrequiredA team API key, sbk_..., from Settings, API keys.
or
x-api-keyAPI key · headerrequiredThe same key, in a header of its own.
Responses
200
The key is gone.
revokedbooleanrequired401
No key, or an invalid, expired or revoked key (unknown or missing API token, invalid, expired or revoked API key). No reason.
errorstringrequiredA message for people. Do not parse it.
reasonstringA stable, machine-readable cause, when there is one.
pathstringThe request field at fault.
needstringThe grant a 403 asks for, app:write for example.
retry_after_sinteger429
The key is over its requests a minute (600, or 2,000 with app:write; reason: key-rate-limited, retry_after_s, Retry-After). Wait that long and retry.
errorstringrequiredA message for people. Do not parse it.
reasonstringrequiredAllowed:
key-rate-limitedretry_after_sintegerrequiredSeconds to wait; also the Retry-After header.