Skip to main content

Test Callback

Send a test POST to your registered callback endpoint and return the HTTP response received from your server.

Endpoint​

POST /v2/callbacks/test

Request Body​

FieldTypeRequiredConstraintsDescription
callbackIdintYes—The unique ID of the callback to test.
{
"callbackId": 7001
}
tip

Use this endpoint immediately after creating a callback to verify that your endpoint is reachable and responding correctly before relying on it in production.

Response​

Returns the test result, including the HTTP status code returned by your webhook endpoint and any response body received.

{
"success": true,
"data": {
"callbackId": 7001,
"url": "https://app.example.com/webhooks/ecgrid",
"httpStatus": 200,
"responseBody": "OK",
"testedAt": "2026-05-07T11:00:00Z"
}
}

Code Examples​

curl -X POST "https://rest.ecgrid.io/v2/callbacks/test" \
-H "X-API-Key: $ECGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "callbackId": 7001 }'

See Also​