Skip to content

Retrieve webhook delivery attempts for a subscription

Request

🔐 Required role: EVNT_SUB

📖 Data dictionary: Event subscription

Retrieve webhook delivery attempts for a subscription

Returns a paginated list of delivery attempts for webhook events for the given subscription. Supports filtering by HTTP status code and time range.

Query Parameters (all optional):

  • statusCode — only attempts that received this HTTP status code
  • startDate, endDate (ISO-8601 date-time) — only attempts in this time range
  • page, limit — see paging

A startDate / endDate that is not an ISO-8601 date-time returns 400.

Response: data is a page; each content item is a delivery attempt { id, eventId, attemptNumber, timestamp, statusCode, responseBody, errorMessage, deliveryUrl, deliveryTimeMs, success, createdAt }; statusCode, responseBody, errorMessage, deliveryTimeMs and createdAt can be null.

Business Applications:

  • Webhook troubleshooting
  • Delivery monitoring
  • Operational auditing
Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
Path
idinteger, (int64)required

Event subscription id.

Query
statusCodeinteger, (int32)
startDatestring, (date-time)
endDatestring, (date-time)
pageinteger, (int32)
Default:0
limitinteger, (int32)
Default:50
curl -i -X GET \
  'https://api.sandbox.aiwyn.app/api/v1/event-subscriptions/{id}/deliveries?statusCode=0&startDate=2019-08-24T14%3A15%3A22Z&endDate=2019-08-24T14%3A15%3A22Z&page=0&limit=50' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'CF-Access-Client-Id: YOUR_API_KEY_HERE' \
  -H 'CF-Access-Client-Secret: YOUR_API_KEY_HERE'

Responses

Delivery history retrieved successfully

Bodyapplication/json
dataobject
errorobject or null
metaobject
Response
{ "data": { "content": [ … ], "totalElements": 0, "totalPages": 0, "currentPage": 0, "hasNext": true, "hasPrevious": true }, "error": {}, "meta": { "success": true, "message": "string", "timestamp": "2019-08-24T14:15:22Z", "version": "string" } }