Skip to content
Esc
↑↓navigate↵open⌘Jpreview

Revoke a partner tenant API key

Revokes a tenant key immediately. Requires tokens:revoke. The key remains in the audit list.

DELETE/v1/tenants/{tenantId}/api-keys/{apiKeyId}
Authorization
AuthorizationBearer token · headerrequired

Better Auth session, OAuth access token, OAuth client-credentials token, or sfm_ Space machine credential.

Path parameters
tenantIdstringrequired

Tenant id. Must be the credential's own tenant.

min length 1
apiKeyIdstringrequired
min length 1
Responses
204

The key was revoked.

Try it
Server
Authorization
Parameters
Request
curl -X DELETE 'https://api.spacefast.com/v1/tenants/string/api-keys/string' \
  -H 'Authorization: Bearer YOUR_TOKEN'
Response
The key was revoked.

Was this page helpful?