Available today
REST API
One request creates a task. The right person is notified, reminded and, if needed, replaced by their backup. The decision comes back to your code, signed.
Links
Where it fits
- REST API
- TaskToHuman
- The person who decides
- Signed decision back to your code
- Signed decision back to your code
What it does
POST /v1/taskscreates a task from one of your task types;GET /v1/tasks/{id}reads it with its decision.- An
Idempotency-Keyheader makes retries safe: the same key never creates a second task. - Test keys (
tth_test_…) notify only you and never count toward your usage. - Callbacks carry an HMAC-SHA256 signature and are retried for 24 hours. Polling works too.
- Official SDKs for TypeScript (
npm install @tasktohuman/sdk) and Python (pip install tasktohuman) create tasks, wait for the decision and verify callbacks.
Set it up
Create a task type in the app: its fields, who answers and their backup.
Create an API key for the workspace and send
POST /v1/tasks.Act on the signed callback, or ask for the task with
GET /v1/tasks/{id}.
curl https://api.tasktohuman.com/v1/tasks \ -H "Authorization: Bearer $TTH_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: refund-4821" \ -d '{ "task_type": "approve_refund", "title": "Refund €249 to order #4821?", "payload": { "order_id": "4821", "amount": 249, "reason": "Arrived damaged" }, "callback_url": "https://shop.example.com/hooks/tasktohuman", "deadline_minutes": 120 }'# 201 Created: { "id": "…", "state": "notified", … }