Revoke an API key
Revokes a key so it stops authenticating immediately. The record is retained for audit.
DELETE
/v1/api-keys/{apiKeyId}Authorization
AuthorizationBearer token · headerrequiredBetter Auth session, OAuth access token, OAuth client-credentials token, or sfm_ Space machine credential.
or
AuthorizationOAuth2 access token · headerrequiredOAuth 2.0 with explicit Spacefast capability scopes. Use the authorization-code flow for people and client credentials for machines.
Scopes:
teams:createPath parameters
apiKeyIdstringrequiredAPI key id.
min length 1
Responses
204
The key was revoked.