OverviewAll pages

Ask a person, get the decision back

TaskToHuman puts a person in the loop of your code, your no-code flow or your AI agent: send a task, someone approves or does it, and you get the outcome as a signed callback.

You describe a kind of request once, as a task type: what the person sees, which fields they get, who answers and who steps in when they don't. Then every request is one API call, one webhook post or one MCP tool call. TaskToHuman sends the right person a private link (by email, or on a channel they connected), escalates when nobody answers, and tells your system what was decided.

Base URL
https://api.tasktohuman.com
Auth
Authorization: Bearer tth_live_…
Format
JSON in and out, snake_case property names, times in UTC (ISO 8601)
MCP
https://mcp.tasktohuman.com

How a task travels#

  1. POST /v1/tasksYou askYour code, a webhook or an AI agent creates a task from a task type.
  2. notifiedA person is toldThe first human gets a private link to the task, by email or on a channel they connected.
  3. escalations: 1Nobody answers?After the step's wait, the task moves to the next person in the chain: its owner changes.
  4. resolvedThey decideApprove, reject, approve with edits, or mark a follow-up done.
  5. TTH-SignatureYou hear backA signed POST to your callback URL, or ask for the task at any time.

Start here#

This is the call that asks a person to approve a refund. Run it with a test key in the Quickstart: your first task and its decision, in about five minutes.

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",
      "customer_email": "marta@example.com"
    },
    "deadline_minutes": 120
  }'
  • Authentication: API keys, test and live mode, and checking a key.
  • API reference: every endpoint with its parameters, responses and examples.

Build an integration#

  • Tasks: create, read, list and cancel tasks, and what each state means.
  • Task types and fields: the fields a task carries, which are sensitive and which a human may edit.
  • Escalation chains: steps, reminders, the completion timer and what happens when nobody answers.
  • SDKs: the official TypeScript (npm install @tasktohuman/sdk) and Python (pip install tasktohuman) libraries, which create tasks, wait for decisions and verify callbacks. Their source, with the n8n node and the OpenAPI document, is in the tasktohuman-integrations repository.
  • Callbacks and signatures: receive the decision and verify it came from us, with code for Node.js, Python, C# and PHP.
  • Webhook intake: create tasks from any tool that can post JSON, without writing code.
  • Idempotency, errors and rate limits: what makes an integration safe to retry.

Connect an AI agent#

The MCP server lets an agent such as Claude Code, Cursor or VS Code ask a person before it acts, with the same API key and the same task types.