Skip to main content
If you have signed up on Marqeta.com as a developer, you have access to a dashboard that provides tools for integrating with the Marqeta platform so that you can:
  • Get API keys for your public sandbox.
  • View a transaction’s history.
  • Manage your webhooks.
For more about development, see Core API Quick Start and Introduction in the Core API Reference.

Get API keys for your public sandbox

Use API keys to set up authorization credentials that allow you to send requests to your public sandbox. For more information, see Authentication in the Core API Reference. To access your credentials and set up your public sandbox:
1
Log into your public sandbox account. You can also select Sign in in the upper-right corner of any page of Marqeta Docs. Once authenticated, select Dashboard → in the upper-right corner of the page to display the API Keys page of your dashboard.
2
Copy and paste the credentials below.
3
Use the base URL to build your endpoints.
4
Use the sample cURL to view the details of the card product that was created for your public sandbox.
Application tokenToken that identifies your API client. Think of it as your username.
Admin access tokenAllows you to access your public sandbox. Think of it as your secret password.
Base URLAppend endpoints to this URL when making API requests.
Try out your sandboxRun this code in a terminal window to view the details of the card product that was created for your public sandbox.

View a transaction’s history

You can view the lifecycle of a card token in your public sandbox using the interactive Transaction Timeline tool. All public sandbox accounts with the Developer role include access to the Transaction Timeline. The Transaction Timeline helps newcomers to the Marqeta platform quickly understand the role played by transaction flows in their integration, as well as in the broader payments space. It demonstrates line-by-line how individual transactions impact each other, and how they affect the account balance. To view a card token’s transaction history using the Transaction Timeline:
1
After simulating at least one transaction in your public sandbox, access the Transaction Timeline by logging into your dashboard.
2
Select Transaction timeline from the left-side navigation panel.
3
Pick one of your card tokens from the list of existing active cards that appear in the dropdown list on the right side of the screen.
4
The tool automatically builds and displays a history of all the transactions completed on that card. New transactions are added to the timeline as they occur in your public sandbox, with no need to refresh the page. Content in the Transaction Timeline is not cleared when you log out of your dashboard and it never expires, enabling you to accumulate a rich dataset of simulated transactions over time.
For more about the available balance or the ledger balance, select the value in the Transaction Timeline’s events table to reveal a tooltip. To filter on a particular series of related transactions, select the Apply filter button. To remove the filter, select Remove filter. To copy the event token to the clipboard, select the Copy event token to clipboard button. For more about cards and card tokens, see Cards in the Core API Reference.

Manage your webhooks

Webhooks are real-time notifications to keep you informed of specific events that occur within your public sandbox or integration. For example, you could create a webhook to send state.activated events to your application’s webhook URL that would inform your cardholder when a card has been activated. You can manage webhooks in your sandbox from the Webhooks page. For information about working with webhooks in production, see About Webhooks. With your account/program, you can configure and manage up to five webhooks.

To add a webhook

1
Select Webhooks in the left-side navigation panel.
2
Select Add webhook.
3
In the screen that appears, enter the webhook details per the table below, then select Save.
FieldsDescription
Name

string

required
Descriptive name of the webhook.

Allowable Values:

64 char max
URL

string

required
URL of your webhook endpoint.

Allowable Values:

- 255 char max
- Must be HTTPS
- Empty string not allowed
Authentication username

string

required
Username for accessing your webhook endpoint.

Allowable Values:

50 char max
Authentication password

string

required
Password for accessing your webhook endpoint.

Allowable Values:

- 20-50 characters
- Must contain at least one numeral
- Must contain at least one lowercase letter
- Must contain at least one uppercase letter
- Must contain at least one of these symbols:
@``#``\$``%``!``^``&``*``(``)
_``+``~``\\``-``=``[``]``\{``}
,``;``:``'``"``.``/``<``>``?`
Custom headers

object

optional
Contains information about the webhook’s custom HTTP headers for outgoing calls.

Allowable Values:

See The config.custom_header object (request).

To disable a webhook

You have the option of disabling an activated webhook that you do not want to use; you can always reactivate it later on if necessary. It is not currently possible to delete a webhook once it has been created.
1
Select Webhooks in the left-side navigation panel. A list of all the webhooks you have created, regardless of state, is displayed.
2
Do one of the following:
  • Disable from the summary page of all your webhooks:
    • Select a new state for the webhook by making a selection in the State dropdown list.
  • Disable from the selected webhook’s own Details page:
    • In the Name column, select the webhook you want to disable. The page refreshes to display details of the selected webhook.
    • Select Disable webhook.
    • When prompted to confirm your actions, select Disable.

To reactivate a disabled webhook

If you have previously disabled a webhook, you must reactivate it before the Marqeta platform will resume sending event notifications to the specified URL.
1
Select Webhooks in the left-side navigation panel. A list of all the webhooks you have created, regardless of state, is displayed.
2
Do one of the following:
  • Reactivate from the summary page of all your webhooks:
    • Select a new state for the webhook by making a selection in the State dropdown list.
  • Reactivate from the selected webhook’s own Details page:
    • In the Name column, select the webhook you want to reactivate. The page refreshes to display details of the selected webhook.
    • Select Reactivate webhook.
    • When prompted to confirm your actions, select Reactivate.

To update a webhook

1
Select Webhooks in the left-side navigation panel. A list of all the webhooks you have created, regardless of state, is displayed.
2
In the Name column, select the webhook you want to update. The page refreshes to display details of the selected webhook.
3
Enter the webhook details per the table below, then select Save.
FieldsDescription
Name

string

required
Descriptive name of the webhook.

Allowable Values:

64 char max
URL

string

required
URL of your webhook endpoint.

Allowable Values:

- 255 char max
- Must be HTTPS
- Empty string not allowed
Authentication username

string

required
Username for accessing your webhook endpoint.

Allowable Values:

50 char max
Authentication password

string

required
Password for accessing your webhook endpoint.

Allowable Values:

- 20-50 characters
- Must contain at least one numeral
- Must contain at least one lowercase letter
- Must contain at least one uppercase letter
- Must contain at least one of these symbols:
@``#``\$``%``!``^``&``*``(``)
_``+``~``\\``-``=``[``]``\{``}
,``;``:``'``"``.``/``<``>``?`
Custom headers

object

optional
Contains information about the webhook’s custom HTTP headers for outgoing calls.

Allowable Values:

See The config.custom_header object (request).

To manage event listeners

Use the Event listeners tab to specify which Marqeta events you want the selected webhook to listen on. You can add as many or as few events as you need to a webhook, then fine-tune your webhooks as your development progresses. For example, when starting out, you might want your application to listen for all event types. Later on, you might subscribe only to specific transaction events such as authorization.clearing and authorization.atm.withdrawal.
1
Select Webhooks in the left-side navigation panel. A list of all the webhooks you have created, regardless of state, is displayed.
2
In the Name column, select the webhook whose event listeners you want to manage. The page refreshes to display details of the selected webhook.
3
Select the Event listeners tab. A searchable, hierarchical list of all events you can listen on is displayed.
4
Browse and search the list until you have identified and selected the appropriate events, then select Save selected events. A confirmation is displayed, and the total number of selected events is indicated below the list.
At any time, you can verify that your webhook is working properly by clicking Send test event. After you confirm your actions, the displayed health check payload is delivered to the currently selected webhook. Your dashboard informs you via a toast notification once the test event has been successfully sent.