POST///
Pings your webhook endpoint.
Send a ping request to your webhook endpoint to validate credentials and connectivity. Your webhook endpoint must be configured to respond.
Configuring your webhook endpoint
When the Marqeta platform receives the ping request, it sends aPOST request containing the following body to the URL of your webhook endpoint:
JSON
200 (see Signature Verification for a code example that identifies a ping request). The response can optionally include a JSON-formatted body, for example:
JSON
Using the ping facility
To ping a webhook endpoint, send aPOST request to /webhooks/{token}/ping and use the token path parameter to specify which webhook you want to reach. Include an empty, JSON-formatted body in the request, that is:
JSON
1
The Marqeta platform receives the ping request (
POST to /webhooks/{token}/ping).2
The Marqeta platform sends a request to your webhook endpoint.
3
Your webhook endpoint responds with a status code of “200” and an optional body.
4
The Marqeta platform responds to its requestor by echoing, as-is, the response code and body it received from your webhook endpoint.
Note
If the customer-hosted endpoint fails to respond within five seconds, the Marqeta platform times out the request and responds with the following message body (where
If the customer-hosted endpoint fails to respond within five seconds, the Marqeta platform times out the request and responds with the following message body (where
<optional message> represents additional details you can choose to include in the response):JSON
URL path parameters
Response body
Sample response body
JSON