Skip to main content
For the conceptual overview, see Authentication. This page documents the exact GraphQL contract for minting tokens on the transactional graph:

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

An optional 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

Attach the returned 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_COMPLIANCE in scopes. It isn’t a token scope, and the mutation fails with AUTH-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>:

Customer accounts (OAuth platforms)

If you are building a platform that operates on customer accounts, the customer first authorizes your app through the OAuth grant flow, and your server exchanges the resulting code at the token exchange endpoint — see the OAuth grant flow and Build a platform.

Scopes

See the scope table in Authentication. Unknown scopes cause the mutation to fail.