API reference
/- Retrieve webhook delivery attempts for a subscription
Get available event types catalog
Create a webhook subscription
List the caller's webhook subscriptions
Update a webhook subscription
Deactivate a webhook subscription
Reactivate a webhook subscription
Get webhook signing secret
Generate a test webhook payload and signature
Validate a webhook signature
Retrieve webhook delivery...
🔐 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 codestartDate,endDate(ISO-8601 date-time) — only attempts in this time rangepage,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
- Sandbox (requires Cloudflare Access headers)https://api.sandbox.aiwyn.app/api/v1/event-subscriptions/{id}/deliveries
- Staging (requires Cloudflare Access headers)https://api.staging.aiwyn.app/api/v1/event-subscriptions/{id}/deliveries
- Production (your live firm data; no Cloudflare Access headers)https://api.aiwyn.ai/api/v1/event-subscriptions/{id}/deliveries
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'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" } }