Skip to main content

Get Event by ID

Retrieve the full details of a specific callback event, including the payload delivered, delivery status, and attempt history.

Endpoint

POST /v2/callbacks/get-event-by-id

Request Body

FieldTypeRequiredConstraintsDescription
callbackEventIdintYesThe unique ID of the callback event to retrieve.
{
"callbackEventId": 88001
}

Response

Returns the full callback event record, including the JSON payload that was posted to your endpoint, the delivery status, and the number of delivery attempts made.

{
"success": true,
"data": {
"callbackEventId": 88001,
"callbackId": 7001,
"event": "Parcel",
"mailboxId": 12345,
"objectId": 5550001,
"payload": "{\"parcelId\":5550001,\"status\":\"InBoxReady\",\"created\":\"2026-05-03T08:22:00Z\"}",
"status": "Active",
"attempts": 1,
"created": "2026-05-03T08:22:00Z",
"lastAttempt": "2026-05-03T08:22:05Z",
"delivered": "2026-05-03T08:22:05Z",
"httpStatus": 200
}
}

Code Examples

curl -X POST "https://rest.ecgrid.io/v2/callbacks/get-event-by-id" \
-H "X-API-Key: $ECGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "callbackEventId": 88001 }'

See Also