POST//
Use this endpoint to generate your UX Toolkit OAuth access token. For details, see Customer Authentication API.
Note
Unlike the other UX Toolkit endpoints, this endpoint is served by the dedicated OAuth host rather than by the UX Toolkit API base URLs listed above. Send the request to
Unlike the other UX Toolkit endpoints, this endpoint is served by the dedicated OAuth host rather than by the UX Toolkit API base URLs listed above. Send the request to
https://secure-sandbox.marqeta.com/oauth/token in sandbox, or to https://secure.marqeta.com/oauth/token in production. The audience parameter still identifies the UX Toolkit API. To move an existing integration, see How to migrate UX Toolkit to dedicated OAuth.Request header
Request body
Note
You can use either
You can use either
user_token or card_token but not both. You can also create an access token with neither to use the onboarding or sign-up form, where the user does not exist yet.Sample request
cURL
Response body
Sample response body
JSON