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.
- Don’t include
PCI_COMPLIANCEinscopes. It isn’t a token scope, and the mutation fails withAUTH-0031(“Permission missing or expired … PCI_COMPLIANCE”) if you do. PCI compliance is only for platform apps that take raw card data from their customers’ accounts onto their own servers. On your own account you don’t need it, and platforms can skip it with Card Reveal.
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.