Skip to content
Start free

REST API overview

The REST API gives scripts and pipelines the same read access an agent has over MCP: tasks, teams, companies, your lists, your morning card, your Knowledge, prompts and credit usage. All answers are JSON unless you ask for a file.

Some paths keep their historical names: /api/opportunities serves tasks, /api/markets serves teams, and orgKey is a company key. The names stay so existing integrations keep working.

https://api.echosift.io

Send an API key as a Bearer token:

Authorization: Bearer es_YOUR_KEY_HERE

Create keys in the app under Settings, MCP and API (see API keys). Keys work on the free plan. A key can only call the endpoints listed in Endpoints: everything else, including every change (saving a description, tracking a team), answers 403 to a key. The one exception is changing Knowledge through the agent endpoints, which needs a key created with Can edit your context (knowledge:write) and the project’s switch on.

A key belongs to the workspace it was created in and spends that workspace’s credits. Content (descriptions, lists, morning card, Knowledge, prompts) belongs to a project:

  • Send X-EchoSift-Project: <project id> to choose the project. Get ids from GET /api/v1/workspaces/{id}/projects.
  • Without the header, calls use the oldest project of the workspace.
  • X-EchoSift-Workspace may be sent too, but it must name the key’s own workspace, otherwise the answer is 403.

The same credits as the app and MCP. Reading tasks, teams and counts is free. Opening a company costs 1 credit the first time, for everyone in the workspace; after that it is free everywhere. Endpoints that can spend take two optional headers:

Header Effect
X-EchoSift-Max-Cost: N Spend at most N credits on this call. 0 returns only companies already opened, and never a 402.
X-EchoSift-Credits: preview Spend nothing: return what is already open and count the rest.

Answers that involve credits carry X-Credits-Results, X-Credits-Delivered, X-Credits-Behind-Wall, X-Credits-Spent and X-Credits-Left.

The morning card (GET /api/v1/me/digest) is the exception: without X-EchoSift-Max-Cost it never spends.

See Credits, plans and usage for allowances and prices.

60 requests per minute per API key. Over the limit the answer is 429 with Retry-After: 60. Every answer carries X-RateLimit-Limit and X-RateLimit-Remaining. See Limits.

Lists that page use one of two shapes:

  • page and size (from 0), answered with { "items": [...], "page": 0, "size": 20, "totalItems": 341, "totalPages": 18 }. Used by GET /api/opportunities.
  • offset and limit, answered with total, offset, limit and the entries. Used by companies, lists and descriptions.

The body is { "code": "...", "message": "...", "timestamp": "...", "path": "..." } (the credit wall adds its measures, see below).

Status Code Meaning What to do
400 INVALID_PARAMETER, QUERY_TOO_SHORT, QUERY_TOO_LONG, INVALID_LIMIT, LIST_TOO_LARGE, … A parameter is out of range Fix the request; the message says which.
401 Missing, wrong or revoked key Check the key, or create a new one.
402 CREDITS_EXHAUSTED No credits left and nothing already open to return Top up or upgrade, or retry with X-EchoSift-Max-Cost: 0.
402 WORKSPACE_OUT_OF_CREDITS Same, in a workspace you do not own Ask the owner.
402 PAID_PLAN_REQUIRED A paid-plan feature (exports, company name search) Upgrade.
402 WORKSPACE_PLAN_REQUIRED Same, in a workspace you do not own Ask the owner.
403 The endpoint does not accept API keys, or the workspace or project header is not yours Use the app, or fix the header.
404 Not found, or not in your project Check the id and the project.
429 RATE_LIMIT_EXCEEDED Too many requests Wait Retry-After seconds.
503 A dependency is down for a moment (for example task search) Retry shortly.

The credit wall body:

{
"code": "CREDITS_EXHAUSTED",
"message": "You have used all your free credits. 12 companies are behind the wall: upgrade to Pro to see them.",
"results": 12,
"behindWall": 12,
"creditsLeft": 0,
"isPro": false,
"nextRenewalDate": null
}
Terminal window
curl -s "https://api.echosift.io/api/tasks/search?q=reconcile+supplier+invoices&limit=5" \
-H "Authorization: Bearer es_YOUR_KEY_HERE" | jq '.[0].task'