Docs / REST API

REST API

Every MCP tool is also a plain HTTP endpoint, using the same tokens, the same scopes and the same audit log. Use it from scripts, shortcuts and automation tools.

Request

Send a POST to /api/v1/<tool> on app.echostate.cloud with a JSON body of the tool's arguments. The tool names and their arguments are listed on the MCP page.

Add a task
curl -X POST https://app.echostate.cloud/api/v1/add_task \
  -H "Authorization: Bearer es_your_token_here" \
  -H "Content-Type: application/json" \
  -d '{"title": "Book dentist", "priority": 2, "dueDate": "2026-12-20"}'
Response
{ "result": { "created": true, "id": "…", "title": "Book dentist" } }

Status codes

CodeMeaning
200Success. The body is { "result": ... }.
401The token is missing, wrong or revoked.
403The tool writes data but the token is read-only.
404No tool with that name.
422The arguments did not match the tool. The body lists the issues.
500The tool failed. Nothing is leaked in the message; check Activity.

Exporting everything

Full exports are a signed-in action, not a token action. In the app, open Settings and download your memory as JSON or Markdown.