---
title: "MCP server, REST API and webhooks · Truetask"
description: "Connect agents and developer workflows through 513 MCP tools, a documented REST API, scoped tokens, signed webhooks, and portable automations."
url: https://truetask.io/developers
---

Developers

# A workspace you can program

Every workspace ships a REST API with 675 documented routes, scoped tokens, 36 HMAC-signed webhook events out that your own runners can work from, incoming endpoints in, portable automation JSON, and an MCP server with 513 tools. The UI is optional.

[Read the docs](https://docs.truetask.io/integrations/api)

## REST API, documented where it runs

Your workspace serves its own Swagger UI at `/v1/docs` and the OpenAPI schema at `/v1/openapi.json`, with readable operation ids and a request example on every route. Tokens are per-user or per-agent, scoped to read, write or admin, optionally limited to a set of boards, and available from the Free plan up. Every list endpoint takes the same filter grammar the app uses: operators, and/or grouping, relation traversal, membership tests.

[REST API reference](https://docs.truetask.io/integrations/api)

quickstart

```
# Personal access token from your profile, under Tokens
curl -H "Authorization: Bearer $TRUETASK_TOKEN" \
  https://your-workspace.truetask.app/v1/boards
```

## 36 events, signed and debuggable

Outgoing webhooks carry an HMAC-SHA256 signature, a delivery id that stays the same across retries, custom headers and Bearer, Basic or header auth, with a durable queue, test deliveries, samples, and a per-hook log that keeps the sent body. Payloads carry the task key and link, board, list, member, tag and priority names, dates and a description excerpt. The whole agent lifecycle is in there, from kickoff to the human verdict.

[Webhooks guide](https://docs.truetask.io/integrations/webhooks)

card.created card.updated card.field_changed card.deleted card.completed card.uncompleted card.assigned card.unassigned card.moved card.proposed_done card.question_asked card.question_answered card.comment_added comment.deleted checklist.completed checklist.uncompleted list.created list.deleted board.member_added board.member_removed tag.created tag.deleted time_entry.started time_entry.stopped agent_run.kickoff agent_run.handoff agent_run.completed agent_run.failed agent_run.blocked agent_run.needs_input agent_run.cancelled agent_run.stalled agent_run.approved agent_run.returned agent_kickoff.expired audit.log

## Incoming endpoints for any system

Create an incoming endpoint once and point Zapier, Make, a script or a form at it: choose the HTTP methods it accepts, protect it with a header or basic auth, allowlist the boards it may start, and read every request in its log. The Incoming webhook trigger exposes the body, query and headers as placeholders, JSON, form-encoded or with files attached.

[Incoming endpoints guide](https://docs.truetask.io/integrations/webhooks)

incoming webhook

```
# An incoming endpoint: any system posts, your automations run
curl -X POST https://your-workspace.truetask.app/v1/hooks/ENDPOINT_PATH \
  -H "X-Truetask-Key: $ENDPOINT_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"title": "Refund request #4821", "customer": "Acme"}'

# {trigger.body.title} and {trigger.body.customer} are placeholders
# in every node after the Incoming webhook trigger.
```

## 513 MCP tools, on every plan

The full workspace surface (boards, records, cards, notes, forms, files, time, automations, the queue, agent runs, git, webhooks, integrations) exposed as governed MCP tools covering the same surface as the REST API. Tokens carry read, write or admin scope, can be limited to chosen boards, and belong to a person or to an agent, so an assistant only touches what you allow. Works with Claude Code, Claude Desktop, Codex, Cursor, Gemini, ChatGPT or any other MCP client.

Every workspace also serves `/v1/agent-setup.md` (the protocol: identity, the delegated-task loop, handoffs, git conventions) and `/v1/agent-patterns.md` (dependency chains, fan-out fleets, review loops, human in the loop, recurring work). Both are MCP resources, alongside board and card context, so an agent can onboard itself.

[MCP setup guide](https://docs.truetask.io/agents/mcp)

mcp config

```
{
  "mcpServers": {
    "truetask": {
      "type": "http",
      "url": "https://your-workspace.truetask.app/mcp",
      "headers": { "Authorization": "Bearer YOUR_TOKEN" }
    }
  }
}
```

## Run agents on machines you control

Subscribe a runner you host to the signed webhooks its agent needs: a task assigned to it, a comment, an approval, a send-back, a stall. The runner starts Claude Code, Codex or your own CLI headless, and the agent does the task through MCP as its own bot account, then proposes done for a person to approve. Every delivery is HMAC-signed, carries a stable id and retries from a durable queue. Gateways and CI jobs work the same way.

[Webhooks guide](https://docs.truetask.io/integrations/webhooks)

runner webhook

```
POST https://runner.example.com/        ← your webhook subscription
X-Webhook-Event: card.assigned
X-Truetask-Signature: sha256=<hex HMAC-SHA256(secret, body)>

{ "id": "…", "event": "card.assigned", "timestamp": "…",
  "data": { "key": "PLAT-218", "board_name": "Platform",
            "assigned_names": ["iris"], "url": "…" } }

→ the runner starts Claude Code or Codex headless, and the
  agent works PLAT-218 over MCP as its own bot account
```

## Automations are portable JSON

Every automation graph exports as JSON and imports into any other board or workspace: 60 trigger types, 66 node types, conditions, loops, delays, HTTP with stored secrets, and an Agent node that runs as Truetask AI or as one of your agents. Imports land disabled until they pass the same validation as hand-built work. Agent workflows export and import the same way, with agent, list and tag mapping.

[Automation templates guide](https://docs.truetask.io/automations/templates)

automation export

```
{
  "version": 1,
  "type": "truetask_automation",
  "name": "Triage new cards",
  "graph": { "nodes": [ … ], "edges": [ … ] }
}
```

## Free plan includes API tokens and MCP access

Spin one up, point your agent at it, and see for yourself.

[See what ships every week](https://truetask.io/changelog)
