API reference
/- List the caller's webhook subscriptions
Get available event types catalog
Create a webhook subscription
Update a webhook subscription
Deactivate a webhook subscription
Reactivate a webhook subscription
Retrieve webhook delivery attempts for a subscription
Get webhook signing secret
Generate a test webhook payload and signature
Validate a webhook signature
List the caller's webhook...
🔐 Required role:
EVNT_SUB📖 Data dictionary: Event subscription
List the caller's webhook subscriptions
Returns the caller's subscriptions, active and deactivated, one page at a time. The signing secret is never included.
Query Parameters (all optional):
entityType— only subscriptions for this entity (a catalogentityvalue, e.g.RequestItem)operation— only subscriptions for this operation (a catalogoperationvalue, e.g.SENT)page,limit— zero-based page number and page size; see Webhook subscriptions and delivery history
Response: data is a page whose content items have the same fields as the subscription returned by PATCH /api/v1/event-subscriptions/{id}.
Business Applications:
- Find subscription ids to update or deactivate
- Audit webhook integrations
Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
- Sandbox (requires Cloudflare Access headers)https://api.sandbox.aiwyn.app/api/v1/event-subscriptions
- Staging (requires Cloudflare Access headers)https://api.staging.aiwyn.app/api/v1/event-subscriptions
- Production (your live firm data; no Cloudflare Access headers)https://api.aiwyn.ai/api/v1/event-subscriptions
curl -i -X GET \
'https://api.sandbox.aiwyn.app/api/v1/event-subscriptions?entityType=string&operation=string&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" } }