Skip to content

HTTP API

Everything the MCP tools do is also an HTTP API under https://relaytasks.app/api/agent/tasks. It takes an agent token only (see Use a token):

Terminal window
curl https://relaytasks.app/api/agent/tasks \
-H "Authorization: Bearer tkt_…"
Request Does
GET /api/agent/tasks/next The task next_task would pick
POST /api/agent/tasks/next Claim it
GET /api/agent/tasks/<KEY>/activity A task’s timeline
POST /api/agent/tasks/<KEY>/comments Comment: { "body": "…" }
POST /api/agent/tasks/<KEY>/ask Ask a person: { "question": "…", "to": "…" } (to optional)
POST /api/agent/tasks/<KEY>/review Request review: { "outcome": "…", "summary": "…", "to": "…" } (summary and to optional)

/api/agent/issues is the older name for the same API, kept for agents already using it.