Skip to content

Webhooks

A webhook is an HTTPS endpoint on your server that Supportaka calls when something happens: a ticket is opened, a customer writes in a chat, a meeting is booked. It’s faster than polling and saves your rate limit.

  1. Something happens, for example a customer replies to a ticket.
  2. Supportaka sends a POST to your endpoint with a small JSON event, signed with your endpoint’s secret.
  3. Your endpoint checks the signature, answers 200 quickly, then does its work.
  4. If it needs details, it fetches them with your API key. Events carry IDs and states, never content, so nothing sensitive is sent to a URL.
{
"id": "01a2f0d0-1111-7222-8333-944455566677",
"type": "ticket.message_created",
"created_at": "2026-11-26T09:00:00Z",
"organization_id": "01a2116d-0da9-77d5-8b5d-c55979eebe59",
"product_id": "01a211b0-054c-7c56-a7ad-0fac8a3d108f",
"data": {
"ticket_id": "01a2f0c4-6b1e-7d2a-9c3b-5e8f1a2b3c4d",
"number": 42,
"message_id": "01a2f0c5-0f1e-7a2b-8c3d-4e5f6a7b8c9d",
"author": "customer"
}
}

See every event and its data in the event reference.

  1. Build the receiver. A route on your server that accepts POST with a JSON body, verifies the Supportaka-Signature header, and answers 2xx within 10 seconds. Start from the examples.

  2. Register it. In the dashboard, open Developers → Webhooks → Register endpoint (owners only). Give:

    • the URL: HTTPS only, on a public address (private and local addresses are refused);
    • the events it should get;
    • optionally one product, if it only cares about that product’s events.
  3. Save the signing secret. It starts with whsec_ and is shown once. Store it on your server, for example as SUPPORTAKA_WEBHOOK_SECRET.

  4. Send a test. Use Send test event on the endpoint. A webhook.test event arrives, and the delivery log shows your endpoint’s answer.

Webhooks are part of your plan, which also sets how many endpoints you can have.

Header Value
Content-Type application/json
User-Agent Supportaka-Webhooks/1.0
Supportaka-Signature t=<unix seconds>,v1=<signature>. See Verify signatures
Supportaka-Event-Id The event’s ID: the same on every retry and replay
Supportaka-Event-Type For example ticket.created
Supportaka-Delivery-Id This delivery’s ID, as shown in the delivery log
Supportaka-Attempt 1 for the first try, up to 8

Any answer other than 2xx within 10 seconds counts as a failure, and so does a redirect (redirects aren’t followed). Failed deliveries are retried up to 8 attempts in all, waiting longer each time:

After attempt Next try in
1 1 minute
2 5 minutes
3 30 minutes
4 2 hours
5 6 hours
6 12 hours
7 24 hours

If an endpoint keeps failing for 5 days without a single success, it’s switched off and shows as disabled. Fix it, then resume it in the dashboard. Events and deliveries are kept for 30 days, and any delivery can be sent again from the log (Replay), with the same event ID.

  • Answer fast, work later. Verify, store the event (or put it on a queue), answer 200, then process it. Slow work risks the 10-second timeout and a retry.
  • Expect duplicates. Retries and replays send the same event again. Record each Supportaka-Event-Id you’ve handled and skip repeats.
  • Don’t rely on order. Events can arrive out of order, especially after retries. Use created_at, or fetch the current state with the API.
  • Fetch, don’t trust stale data. When an event arrives, fetch the ticket, chat or customer for its latest state.
  • Use HTTPS and verify every signature. Reject anything that doesn’t verify.

Rotate an endpoint’s secret from the dashboard if it may have leaked, or on a schedule. The new secret is shown once, and the old one keeps signing too for 24 hours: deliveries carry a v1 signature for each. Deploy the new secret within that time.