Skip to main content
The /ping endpoint enables you to validate connectivity between your client application and the Marqeta platform. You can use these endpoints to validate connectivity to your production environment, as well as to the public or private sandbox testing environment.

Perform ping

Action: GET
Endpoint: /ping
To validate that the Marqeta server is available and responsive, send a GET request to the /ping endpoint. The response indicates whether the ping was successful, the version and revision number of the environment, and a timestamp.

Sample response body

JSON
{
  "success": true,
  "version": "1.9.8",
  "revision": "f46a5dc",
  "timestamp": "Mon Sep 18 20:16:30 UTC 2023"
}

Simulate ping

Action: POST
Endpoint: /ping
To perform an echo test, send a POST request to the /ping endpoint.

Body field details

FieldsDescription
token

string

Optional
A pass-through field, enter any data.

Allowable Values:

36 char max
payload

string

Optional
Sample data.

Allowable Values:

255 char max

Sample request body

JSON
{
  "token": "12345",
  "payload": "This is my payload"
}

Sample response body

JSON
{
  "success": true,
  "id": "12345",
  "payload": "This is my payload"
}