Validating Connectivity

Marqeta provides "ping" endpoints that you can use for validating connectivity between your client application and the Marqeta Platform. You can use these endpoints to validate connectivity to both your production environment and the shared sandbox test 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

{
"success": true,
"version": "1.9.8",
"revision": "f46a5dc",
"timestamp": "Wed Sep 17 20:16:30 UTC 2014"
}


Simulate ping

Action: POST
Endpoint: /ping

To perform an echo test, send a POST request to the /ping endpoint. You can send a server id and/or sample payload in JSON format in the body of the request.

Body field details

Name Type Required? Description Allowable Values
id string No A pass-through field, enter any data. 36 char max
payload string No Sample data. 255 char max

Sample request body

{
"id": "12345",
"payload": "This is my payload"
}

Sample response body

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