Skip to content

Create a webhook

Request

Subscribes an HTTPS endpoint to events. Each delivery is a JSON POST of { id, created_at, event_type, api_version, data }, signed with the secret in the response.

Security
api-key-secret
Bodyapplication/jsonrequired
urlstring, (uri), <= 2000 characters^https://required

HTTPS endpoint that receives the events, up to 2000 characters.

Example:"https://api.example.com/webhooks/taluspay"
labelstring, <= 255 charactersrequired

Your name for the webhook, up to 255 characters.

Example:"Production merchant events"
scopeArray of strings, non-emptyrequired

Event groups to subscribe to: merchant sends every merchant.* event and charge every charge.* event. payouts is accepted but sends no events yet.

Items Enum:"merchant""charge""payouts"
Example:
[ "merchant" ]
curl -i -X POST \
  -u '<username>:<password>' \
  https://docs.taluspay.com/_mock/openapi/v1/webhooks \
  -H 'Content-Type: application/json' \
  -d '{
    "url": "https://api.example.com/webhooks/taluspay",
    "label": "Production merchant events",
    "scope": [
      "merchant"
    ]
  }'

Responses

The new webhook, including its signing secret.

Bodyapplication/json
idstringrequired

Webhook ID. Use it to delete the webhook.

Example:"webhook_2x4y6z8a0b1c2d3e4f5g6h7j8k"
urlstringrequired

HTTPS endpoint that receives the events.

Example:"https://api.example.com/webhooks/taluspay"
labelstringrequired

Your name for the webhook.

Example:"Production merchant events"
secretstringrequired

Signing secret. Each delivery carries X-Talus-Webhook-Timestamp and X-Talus-Webhook-Signature: sha256=<hex HMAC-SHA256 of "<timestamp>.<raw body>" keyed with this secret>. Compare it to verify the delivery came from TalusPay, and reject old timestamps.

Example:"whs_0123456789abcdef0123456789abcdef0123"
created_atstring, (date-time)required

When the webhook was created.

Example:"2026-01-15T10:30:00.000Z"
eventsArray of stringsrequired

Event types this webhook receives, expanded from scope.

Example:
[ "merchant.created", "merchant.updated" ]
Response
{ "id": "webhook_2x4y6z8a0b1c2d3e4f5g6h7j8k", "url": "https://api.example.com/webhooks/taluspay", "label": "Production merchant events", "secret": "whs_0123456789abcdef0123456789abcdef0123", "created_at": "2026-01-15T10:30:00.000Z", "events": [ "merchant.created", "merchant.updated" ] }