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.
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"}'priority is a number from 1 (highest) to 3 (lowest) and defaults to 2. dueDate is written as YYYY-MM-DD.
{ "result": { "created": true, "id": "…", "title": "Book dentist" } }Status codes
| Code | Meaning |
|---|---|
| 200 | Success. The body is { "result": ... }. |
| 401 | The token is missing, wrong or revoked. |
| 403 | The tool writes data but the token is read-only. |
| 404 | No tool with that name. |
| 422 | The arguments did not match the tool. The body lists the issues. |
| 500 | The 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.