Skip to main content
Generate a user token using ‘Basic <API_KEY>’. The token will be associated with the user_id and will have the specified scopes.

Arguments

UUID
The userId that will be associated with the token. Required if externalReferenceId is not provided.
UUID
The accountId that will be associated with the token. Required if externalReferenceId is not provided.
[ScopeType!]!
required
The scopes that the token will have access to.
UUID
The seatId will be used to make transactions, default to the most recently created if not provided.
String
Your unique identifier for this user. This is the same value passed as external_id during the OAuth authorization flow. Only applicable to OAuth applications. If provided, userId and accountId are optional.

Returns

GenerateUserAccessTokenResponse — Represents the response returned from the generateUserAccessToken mutation.