GET /api/leads.
Octanist sends a signed POST request to your URL for each event your endpoint subscribes to. Add endpoints in Settings → API / MCP → Webhooks, or with the webhook endpoints API.
Events
One change sends one event. When a single update changes the status and the value together, you get one
lead.status_changed event, and its changes list both. Subscribe to both lead.status_changed and lead.updated to hear about every change.
Changes that do not change anything (an update with the same email, say) send no event. Notes added to a lead, in the app or with note on an update, are activity entries and send no event either.
Payload
Every event has the same shape:
Events can arrive out of order, for example when one is retried. Compare
createdAt (or data.lead.updatedAt) with what you have before you overwrite newer data.
Verify the signature
Each request carries three headers, following the Standard Webhooks spec:
The signature is the Base64 HMAC-SHA256 of
{webhook-id}.{webhook-timestamp}.{raw body}, keyed with the Base64-decoded part of your signing secret after whsec_. Check it on the raw request body, before you parse the JSON, and reject requests whose timestamp is more than five minutes old.
The open-source Standard Webhooks libraries do this for you (npm install standardwebhooks, pip install standardwebhooks, and others):
Responding and retries
Answer with any2xx status within 10 seconds. Do the slow work after you respond, for example in a queue. Octanist reads at most the first 1 KB of your response body and shows it in the delivery log.
Octanist retries an event when your endpoint answers with another status, does not answer in time, or cannot be reached. Retries follow after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours and 24 hours: 8 attempts over about two days. After that the delivery is marked as failed. You can send it again from the delivery log.
Some answers are handled differently:
410 Goneturns the endpoint off. Use it when an integration (such as a Zapier REST hook) no longer wants events. Turn it back on in Settings or withPATCH /api/webhooks/{id}and"enabled": true.- Redirects (
3xx) are not followed and count as a failure. Use the final URL.
Requirements for the URL
- It must use
https://. - It must point to a public server: hosts that are or resolve to private, loopback or link-local addresses (such as
localhost,10.0.0.0/8or192.168.0.0/16) are refused. - An organization can have up to 10 endpoints.
Delivery log and testing
Every endpoint has a delivery log in Settings → API / MCP → Webhooks → Deliveries: each event with its status, the HTTP response, the number of attempts and the exact body that was sent. Deliveries are kept for 30 days. The same log is available through List Webhook Deliveries. Send ping in the endpoint’s menu, or Ping Webhook Endpoint, sends awebhook.ping event right away, so you can check your URL and signature check before real events arrive. Pings are not retried.