Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceQueries

Identity__api Keys

Lists public API keys for the current tenant (prefix only; raw secret never returned). Requires a signed-in staff user. Needs the `identity__Tenant` `read` permission. Send the `x-tenant` header (the gateway sets it from your API key).

QUERYidentity__apiKeys: [ApiKey!]!

Lists public API keys for the current tenant (prefix only; raw secret never returned). Requires a signed-in staff user. Needs the identity__Tenant read permission. Send the x-tenant header (the gateway sets it from your API key).

Returns

  1. identity__apiKeys
createdAt*String!
id*String!
keyPrefix*String!
lastUsedAt?String
name*String!
revokedAt?String
scopes*[String!]!
status*ApiKeyStatus!
Value inactiverevoked
tenantUid*String!
Example Request
query Identity__apiKeys {  identity__apiKeys {    createdAt    id    keyPrefix    lastUsedAt    name    revokedAt    scopes    status  }}
Example Response
{  "data": {    "identity__apiKeys": [      {        "createdAt": "string",        "id": "string",        "keyPrefix": "string",        "lastUsedAt": "string",        "name": "string",        "revokedAt": "string",        "scopes": [          "string"        ],        "status": "active"      }    ]  }}