generateUserAccessToken
Mint a user access token with your application’s API key. The API key is sent in the Authorization: Basic <API_KEY> header — it is never passed as a GraphQL argument. The token is minted for a userId / accountId pair (shown alongside your API key in the Developer Console) and carries the scopes you request.
Request
seatId: UUID argument selects the seat used for transactions; it defaults to the most recently created seat. See the full argument reference at generateUserAccessToken.
Response
token as Authorization: Bearer <token> on subsequent requests. Tokens are short-lived JWTs — mint a new one when it expires (see Replace an expired access token).
Requirements
- The user must have granted your application the requested scopes; unknown or ungranted scopes cause the mutation to fail.
PCI_COMPLIANCEcannot be requested when generating a token — it is granted at the application level to PCI-compliant developers.
Discovering userId / accountId
Also authorized by Basic <API_KEY>:
getApplicationUsers— the users who have granted scopes to your application, with their accounts.getAccountsByUserId— all accounts for a given user.getApplicationScopes— the scopes available to your application.