/
Create webhook endpoint
Create a new webhook for the sponsor.
Only one webhook is allowed per sponsor. The secret is returned only on creation. Store it securely - it cannot be retrieved later.
The secret is used to generate HMAC-SHA256 signatures for webhook payloads.
You can optionally specify which events to subscribe to. If not provided, the webhook will receive all available event types.
Security
APIKeyHeader
- Dev serverhttps://pdp.seqino.dev/api/webhooks
- Production serverhttps://pa.seqino.com/api/webhooks
- Array of any
- null
curl -i -X POST \
https://pdp.seqino.dev/api/webhooks \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"url": "https://api.example.com/webhooks/pdp",
"events": [
"invoice.created"
]
}'Webhook created successfully
Response
{ "webhook_id": "webhook_abc123def456", "url": "https://api.example.com/webhooks/pdp", "secret": "a1b2c3d4...64char_hex_secret", "events": [ "invoice.created" ], "created_at": "2019-08-24T14:15:22Z", "message": "Webhook created successfully" }