Skip to content
YasadDocs
Sign inGet started
Developer docs1 min read

Webhooks

Signed events to your other tools, with retries.

On this page

#Subscribe

With an integrations key, POST /v1/webhooks with an approved URL and the event types (for example order.created, reservation.created, customer.created, payment.succeeded). The response includes this workspace's own Ed25519 public key; store it at your receiver. Every workspace has a different key, so a delivery meant for another business never verifies at yours. (Subscriptions created before per-workspace keys were introduced keep the earlier shared key until you create them again; the Events page shows both while any remain.)

#Verify every delivery

  1. Read the Fresh-Timestamp header (Unix seconds) and reject it if it's more than five minutes old.
  2. Verify the base64 Fresh-Signature over the UTF-8 string timestamp + "." + rawBody with the public key.
  3. Check that the body's workspaceId is your workspace.
  4. Deduplicate by event ID before applying effects.
  5. Return a 2xx only after you've stored the event.

Each event carries an entityId; fetch current data from the API rather than trusting stale payloads.

#Failures

GET /v1/webhooks/deliveries shows the latest deliveries and attempts. Retry an exhausted delivery with POST /v1/webhooks/deliveries/{id}/retry (same event ID). GET /v1/events lists the latest 200 events.

Type to search