Skip to content
Available today

Callbacks

Your code shouldn't have to keep asking. Give a task type a callback URL, and each time a task finishes, TaskToHuman posts the finished task there, signed with your workspace's secret, and retries until your server answers.

Links

Where it fits

  1. Your code or tool
  2. TaskToHuman
  3. The person who decides
  4. Signed callback to your URL

What it does

  • Sent when a task is resolved, expires or is cancelled, with the decision, who made it, the comment and any edited values.
  • Each callback carries a TTH-Signature (HMAC-SHA256 over the timestamp and the body) and a TTH-Event-Id to skip repeats. The SDKs' verifyCallback and verify_callback check it for you.
  • Answer with a 2xx within 10 seconds. Anything else is retried for 24 hours, and then you can retry it from the task in the app.
  • Add headers of your own, such as Authorization, for a gateway in front of your server. Rotating the secret keeps the old one signing for 24 hours.
  • On plans that include it, send your own JSON instead of the standard body: a template shapes it for a chat tool, a ticketing system or your own service, signed the same way.

Set it up

  1. Put the callback URL on the task type, or a task's own callback_url: https, on port 443 or 8443.

  2. Copy the workspace's signing secret from API & webhooks, Signing secrets.

  3. Verify the signature on the raw body, then act on the decision when decision.automatic is false.

POST /hooks/tasktohuman HTTP/1.1Content-Type: application/json; charset=utf-8TTH-Signature: t=1763205641,v1=9f2c4be1d07a5c3e8f61b2a49d0e7c58a3f1b6d24e9c07a85b3d1f6e2a4ce07aTTH-Event-Id: 6f0d2b1e-8c4a-4e57-9b3d-1a2f7c6e5d40TTH-Delivery-Attempt: 1{  "id": "0b8e6c2a-5f1d-4c3e-9a7b-2d4f6e8a1c3b",  "state": "resolved",  "task_type": "approve_refund",  "title": "Refund €249 to order #4821?",  "test": false,  "decision": {    "action": "approved",    "by": { "id": "4a7c9e12-3b5d-4f68-a1c2-7e9d0b3f5a68", "name": "Bruno" },    "at": "2026-11-15T10:20:41.517Z",    "automatic": false,    "reason": null,    "comment": "Photos confirm the damage.",    "payload": null  },  "escalations": 1,  "created_at": "2026-11-15T09:12:03.204Z"}

Put a human where it matters.

Start with one task type and one person to answer it.

Your humans answer from a link, no account needed.