Core GraphQL APIReferenceMutations
Identity__revoke Api Key
Revokes a public API key for the current tenant. Requires a signed-in staff user. Needs the `identity__Tenant` `update` permission. Send the `x-tenant` header (the gateway sets it from your API key).
MUTATION
identity__revokeApiKey(id: String!): ApiKey!Revokes a public API key for the current tenant. Requires a signed-in staff user. Needs the identity__Tenant update permission. Send the x-tenant header (the gateway sets it from your API key).
Arguments
id*String!Returns
- identity__revokeApiKey
createdAt*String!id*String!keyPrefix*String!lastUsedAt?Stringname*String!revokedAt?Stringscopes*[String!]!status*ApiKeyStatus!Value in
activerevokedtenantUid*String!Example Request
mutation Identity__revokeApiKey($id: String!) { identity__revokeApiKey(id: $id) { createdAt id keyPrefix lastUsedAt name revokedAt scopes status }}{ "id": "string"}{ "data": { "identity__revokeApiKey": { "createdAt": "string", "id": "string", "keyPrefix": "string", "lastUsedAt": "string", "name": "string", "revokedAt": "string", "scopes": [ "string" ], "status": "active" } }}