API reference
/- Generate a test webhook payload and signature
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
Retrieve webhook delivery attempts for a subscription
Get webhook signing secret
Validate a webhook signature
Generate a test webhook p...
🔐 Required role:
WEBHK_TST📖 Data dictionary: Event subscription
Generate a signed test webhook payload
Generates a signature for an arbitrary JSON payload using the provided secret. This is intended for debugging webhook integrations ONLY.
Business Applications:
- Webhook troubleshooting
- Signature validation testing
Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
- Sandbox (requires Cloudflare Access headers)https://api.sandbox.aiwyn.app/api/v1/webhook/test/generate
- Staging (requires Cloudflare Access headers)https://api.staging.aiwyn.app/api/v1/webhook/test/generate
- Production (your live firm data; no Cloudflare Access headers)https://api.aiwyn.ai/api/v1/webhook/test/generate
curl -i -X POST \
https://api.sandbox.aiwyn.app/api/v1/webhook/test/generate \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'CF-Access-Client-Id: YOUR_API_KEY_HERE' \
-H 'CF-Access-Client-Secret: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"payload": {
"test": true
},
"secret": "my-test-secret"
}'The payload, its signature and the secret. The body is not wrapped in data / meta. signature is sha256= followed by the Base64 HMAC-SHA256 of the compact JSON payload.
Response
{ "payload": null, "signature": "sha256=Epvu8EP9JvCXSg+nVg9aTomZkJ7u3vESqWQjFs1WmkA=", "secret": "string" }