A P I Keys
Delete an API key
Permanently revokes an API key. Requests authenticated with that key stop working immediately.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://loading/accounts.v1.Accounts/DeleteAPIKey" \ -H "Content-Type: application/json" \ -d '{ "apiKeyId": "CgsMDQ4PEBESExQVFhcYGQ==" }'{}{
"code": "invalid_argument",
"message": "The request was malformed, such as a missing required field or an unparseable cursor."
}{
"code": "unauthenticated",
"message": "The request lacks a valid API key in the Authorization header."
}{
"code": "permission_denied",
"message": "The API key is not allowed to perform this action on this workspace."
}{
"code": "not_found",
"message": "The requested resource does not exist in this workspace."
}{
"code": "resource_exhausted",
"message": "The request was rate limited. Slow down and retry later."
}{
"code": "internal",
"message": "An internal server error occurred."
}CreateAPIKey
Creates an API key scoped to a workspace with the given policies and optional expiry. The full key is returned only once at creation and must be stored immediately. A recent two-factor re-verification is required.
ListAPIKeys
Returns the API keys for a workspace. The secret key value is never returned; only its prefix and metadata are shown.