List an endpoint's recent deliveries
const url = 'https://api.pixonaut.app/v1/webhooks/example/deliveries';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.pixonaut.app/v1/webhooks/example/deliveries \ --header 'Authorization: Bearer <token>'Operation ID: webhookEndpoints.deliveries.list
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”The endpoint’s last deliveries, newest first
object
How many times the delivery was tried, the try under way included. Null once the record of its tries is cleared: 7 days after it was delivered, 90 after it failed.
Examples
Example
[ { "attempts": 2, "createdAt": 1760000300000, "eventId": "1760000300000-0192f5a4-7c1e-4d3a-9b6e-2f4c8a1d5e70", "eventType": "order.status_changed", "id": "whd_8b1c3d5e7f9a0b2c4d6e8f0a", "lastError": "status 503", "nextAttemptAt": 1760000450000, "status": "pending" }, { "attempts": 0, "createdAt": 1760000000000, "eventId": "1760000000000-6f1c8a2b-3d4e-4f5a-8b6c-7d8e9f0a1b2c", "eventType": "design.committed", "id": "whd_2a4c6e8f0b1d3f5a7c9e1b3d", "lastError": null, "nextAttemptAt": null, "status": "delivered" }]Headers
Section titled “Headers”Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.
Refused: unauthorized
object
Examples
unauthorized
{ "error": "unauthorized"}Headers
Section titled “Headers”Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.
Refused: origin_forbidden, forbidden, feature_disabled
object
The feature the tenant does not have. Always sent with feature_disabled.
Examples
feature_disabled
{ "error": "feature_disabled", "feature": "api"}forbidden
{ "error": "forbidden"}origin_forbidden
{ "error": "origin_forbidden"}Headers
Section titled “Headers”Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.
Refused: not_found
object
Examples
not_found
{ "error": "not_found"}Headers
Section titled “Headers”Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.
Refused: db_error. A request that failed unexpectedly answers as text instead.
object
Examples
db_error
{ "error": "db_error"}Headers
Section titled “Headers”Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.
Questions? Write to [email protected].