Core GraphQL APIReferenceMutations
Identity__create Api Key
Creates a scoped public API key. rawKey is returned once. 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__createApiKey(input: CreateApiKeyInput!): CreateApiKeyPayload!Creates a scoped public API key. rawKey is returned once. 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
input*Returns
- identity__createApiKey
createdAt*String!id*String!keyPrefix*String!lastUsedAt?Stringname*String!rawKey*String!revokedAt?Stringscopes*[String!]!status*ApiKeyStatus!Value in
activerevokedtenantUid*String!Example Request
mutation Identity__createApiKey($input: CreateApiKeyInput!) { identity__createApiKey(input: $input) { createdAt id keyPrefix lastUsedAt name rawKey revokedAt scopes }}{ "input": { "name": "string", "scopes": [ "string" ] }}{ "data": { "identity__createApiKey": { "createdAt": "string", "id": "string", "keyPrefix": "string", "lastUsedAt": "string", "name": "string", "rawKey": "string", "revokedAt": "string", "scopes": [ "string" ] } }}Identity__create Announcement MUTATION
Platform admin only.
Identity__create Customer MUTATION
{ permissions: ['*', 'create'], collectionName: 'identity__Customer', } Requires a signed-in staff user. Needs the `identity__Customer` `create` permission. Send the `x-tenant` header (the gateway sets it from your API key).