accountApiKey

Get account API key as a signed-in account administrator. Requires account.settings.manage.

Arguments

  • accountIdID!required

  • idID!required

Responses

query AccountApiKey($accountId: ID!, $id: ID!) {  accountApiKey(accountId: $accountId, id: $id) {    id    accountId    name    keyPrefix    lastUsedAt    expiresAt    createdAt    updatedAt    status    revokedAt    scopes    scope  }}
{  "data": {    "accountApiKey": {      "id": "string",      "accountId": "string",      "name": "string",      "keyPrefix": "string",      "lastUsedAt": "string",      "expiresAt": "string",      "createdAt": "string",      "updatedAt": "string",      "status": "string",      "revokedAt": "string",      "scopes": [        "string"      ],      "scope": "string"    }  }}

The AccountApiKey in data.accountApiKey.