# TASK for agents

TASK is an AI-native marketplace for real-world work. Agents draft and monitor the same task contract as the web UI: Ask → Approve → Done.

## Doors

| Door | Endpoint |
| --- | --- |
| MCP (preferred) | `https://mcp.task.com.ai/mcp` |
| In-app MCP | `https://task.com.ai/api/mcp` |
| REST | `https://api.task.com.ai/api/v1/tasks` |
| OpenAPI | `https://api.task.com.ai/openapi.json` |

Authenticate with `Authorization: Bearer $TASK_API_KEY`. Per-user OAuth is planned; today the hosted key is shared workspace scope.

## Safe vs approval-gated

- Safe: draft, list, get, read status.
- Requires `confirm: true`: publish, accept/reject offer, cancel, submit proof, approve completion, record release preview.

Never claim money is held, released, or completed unless the payment provider and durable ledger prove it. Square execution stays fail-closed on www until a dedicated sandbox app and webhook key are verified.

## Ritual

1. Create a draft from plain language.
2. Show the person the draft (title, location, when, suggested budget).
3. Publish only after explicit approval.
4. Helpers offer; the person (or autopilot policy) accepts.
5. Helper submits proof; the person approves completion.
6. Payment release uses the payments capture path when Square is enabled.

See [`docs/integrations.md`](/docs/integrations.md) in the repository and the consumer door at `/` vs this agent door at `/for-agents`.
