Skip to content
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.

Where it fits

  1. REST API
  2. TaskToHuman
  3. The person who decides
  4. Signed decision back to your code

What it does

  • POST /v1/tasks creates a task from one of your task types; GET /v1/tasks/{id} reads it with its decision.
  • An Idempotency-Key header 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

  1. Create a task type in the app: its fields, who answers and their backup.

  2. Create an API key for the workspace and send POST /v1/tasks.

  3. 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", … }

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.