Skip to main content
The UX Toolkit endpoints form the link between the Marqeta platform and your code. They enable you to obtain the access you need to upload the themes you develop using the Studio interactive design environment and apply them to the card products in your card program. This is also how you can upload the card art associated with a theme for display in Studio and in your application as part of various UI components. Before using the API endpoints, follow the UX Toolkit Getting Started guide to learn how to properly install and begin working with UX Toolkit.
Important
This version of UX Toolkit supports prepaid and debit card programs in the United States, Canada, and the EU.

Base URLs

There are two dedicated URLs for working with UX Toolkit: a sandbox URL and a base URL.
HTML
Use the sandbox URL for developing your card product. Use the base URL to build your endpoints for a production environment. For an overview of the UX Toolkit platform, see About UX Toolkit. For information on the available UX Toolkit web components, see Working with UX Toolkit Web Components.

Generate UX Toolkit OAuth access token

Action: POST
Endpoint: /oauth/token
Use this endpoint to generate your UX Toolkit OAuth access token. For details, see UX Toolkit Getting Started.

Request header

Request body

Sample request body

JSON

Response body

Sample response body

JSON

Generate UX Toolkit authentication token

Action: POST
Endpoint: /auth/login
Warning
This endpoint has been deprecated. Refer to the Authentication workflow section of UX Toolkit Getting Started for details on how to authenticate with OAuth 2.0.
Use this endpoint to generate your UX Toolkit authentication token. This token enables access to the specified account in order for your application’s back end to pass it to your JavaScript. For details, see UX Toolkit Getting Started.

Request body

Sample request body

JSON

Response body

Sample response body

JSON

Upload theme object

Action: POST
Endpoint: /theme
Use this endpoint to upload your theme as a JSON object. Once you have finalized your application’s theme using the Studio environment, you can upload it to Marqeta for use with your card product. For details, see UX Toolkit Getting Started.

Request body

Sample request body

JSON

Sample response body

There is no response for a call made to the POST /theme endpoint, other than a 201 Successfully uploaded a theme message.
JSON
For the full list of codes supported by the Marqeta platform, see HTTP response codes.

Upload card art

Action: POST
Endpoint: /cardproducts/cardart
Use this endpoint to upload card art for a specific program. Send the request as a multi-part form data request. Your card art images are displayed in the Studio environment and in your application. For details, see UX Toolkit Getting Started.

Request body

Sample request body

MIME

Sample response body

There is no response for a call made to the POST /cardproducts/cardart endpoint, other than a 201 Successfully uploaded card art message.
JSON
For the full list of codes supported by the Marqeta platform, see HTTP response codes.

Upload custom translation files

Action: POST
Endpoint: /translations
ImportantBefore uploading your translation files using the /translations endpoint, ensure that they are linguistically accurate and representative of the user experience.
Use this endpoint to upload custom translation files for a specific program. This endpoint allows you to customize the values for the keys contained in the translations object so that they will appear in the target language in the customer-facing UI. UX Toolkit uses key and value pairs to render the translations used in web components. Each key is an identifier used to reference a specific piece of content in a web component, while the value is the translated text string that replaces that key on the customer-facing UI. See the sample request body that follows for an example. For a full list of keys, contact your Marqeta onboarding specialist. See also the Using custom translation files section in the UX Toolkit Getting Started guide.

Request body

Sample request body

JSON

Sample response body

The only response for a call made to the /translations endpoint is 201 Successfully uploaded a translation.
JSON
For the full list of codes supported by the Marqeta platform, see HTTP response codes