Skip to content

Get webhook signing secret

Request

🔐 Required role: EVNT_SUB

📖 Data dictionary: Event subscription

Get the webhook signing secret

Retrieves the secret used to sign webhook payloads. Use this secret to verify webhook authenticity on your server. The caller has one secret for all of its subscriptions; it is the webhookSecret returned when a subscription is created, and is created on the first call if the caller has none yet.

Business Applications:

  • Webhook signature verification
  • Security setup
Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
curl -i -X GET \
  https://api.sandbox.aiwyn.app/api/v1/event-subscriptions/webhook/secret \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'CF-Access-Client-Id: YOUR_API_KEY_HERE' \
  -H 'CF-Access-Client-Secret: YOUR_API_KEY_HERE'

Responses

The caller's webhook signing secret, in data.

Bodyapplication/json
datastringrequired

The webhook signing secret.

metaobjectrequired
Response
{ "data": "string", "meta": { "success": true, "message": "Webhook secret retrieved successfully", "timestamp": "2019-08-24T14:15:22Z", "version": "string" } }