API reference
/- Validate a webhook 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
Generate a test webhook payload and signature
Validate a webhook signat...
🔐 Required role:
WEBHK_TST📖 Data dictionary: Event subscription
Validate a webhook signature
Verifies that the provided signature matches the payload and 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/validate
- Staging (requires Cloudflare Access headers)https://api.staging.aiwyn.app/api/v1/webhook/test/validate
- Production (your live firm data; no Cloudflare Access headers)https://api.aiwyn.ai/api/v1/webhook/test/validate
curl -i -X POST \
https://api.sandbox.aiwyn.app/api/v1/webhook/test/validate \
-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
},
"signature": "sha256=...",
"secret": "my-test-secret"
}'The validation result, also when the signature does not match (isValid: false). The body is not wrapped in data / meta.
Response
{ "isValid": true, "payload": null, "signature": "string", "secret": "string" }