Skip to content

Validate a webhook signature

Request

🔐 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
Bodyapplication/jsonrequired
payloadanyrequired

The JSON value that was signed.

Example:
{ "test": true }
signaturestringrequired

Signature to check, sha256= followed by the Base64 HMAC-SHA256.

secretstringrequired

Secret the payload was signed with.

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"
  }'

Responses

The validation result, also when the signature does not match (isValid: false). The body is not wrapped in data / meta.

Bodyapplication/json
isValidbooleanrequired
payloadanyrequired

The payload from the request.

signaturestringrequired

The signature from the request.

secretstringrequired

The secret from the request.

Response
{ "isValid": true, "payload": null, "signature": "string", "secret": "string" }