System and MCP API reference

The public system routes, the machine-readable documents, the health check and the MCP endpoint. The MCP tools are described on the MCP server page. 6 operations.

For AI agents: the docs index is at /llms.txt, and every page is also served as markdown at its URL plus .md.

#Operations

The public system routes, the machine-readable documents, the health check and the MCP endpoint. The MCP tools are described on the MCP server page.

Authenticate as described in Authentication. Every operation below is generated from the OpenAPI document.

Method and pathScopeWhat it does
GET /publicPointer to the machine-readable docs
GET /healthpublicLiveness check
GET /openapi.jsonpublicOpenAPI 3.1 document
GET /llms.txtpublicPlain-text index for AI agents
GET /docs/{name}publicMarkdown documentation page
POST /v1/mcpreadMCP endpoint (Model Context Protocol)

#GET /

Plain text that points to /llms.txt and /openapi.json.

Scope: public. No API key is needed. Success: HTTP 200.

Response

HTTP 200 with a text/plain body, not JSON.

Errors

internal_error. Every error uses the single format.

Rate limits

Counted per client address, not per key. Over the limit the answer is 429 rate_limited with Retry-After. See Rate limits.

Examples

cURL
curl "https://api.coldagentai.com/"
JavaScript (fetch)
const res = await fetch(`https://api.coldagentai.com/`);
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.text();

#GET /health

Returns {"status": "ok"} while the server is running. Does not touch any vendor.

Scope: public. No API key is needed. Success: HTTP 200.

Response

FieldTypeRequiredDescription
status"ok"yesNo further constraints.
Response example, HTTP 200
{
  "status": "ok"
}

Errors

internal_error. Every error uses the single format.

Rate limits

Never refused for load: this operation is not rate limited. See Rate limits.

Examples

cURL
curl "https://api.coldagentai.com/health"
JavaScript (fetch)
const res = await fetch(`https://api.coldagentai.com/health`);
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.json();

#GET /openapi.json

Every endpoint with its schemas, errors and per-operation scope (x-scope).

Scope: public. No API key is needed. Success: HTTP 200.

Response

Response example, HTTP 200
{
  "example_key": {}
}

Errors

internal_error. Every error uses the single format.

Rate limits

Counted per client address, not per key. Over the limit the answer is 429 rate_limited with Retry-After. See Rate limits.

Examples

cURL
curl "https://api.coldagentai.com/openapi.json"
JavaScript (fetch)
const res = await fetch(`https://api.coldagentai.com/openapi.json`);
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.json();

#GET /llms.txt

How to use the API, the pricing status (owner-approved), every endpoint and the capabilities that are unavailable on this server and why.

Scope: public. No API key is needed. Success: HTTP 200.

Response

HTTP 200 with a text/plain body, not JSON.

Errors

internal_error. Every error uses the single format.

Rate limits

Counted per client address, not per key. Over the limit the answer is 429 rate_limited with Retry-After. See Rate limits.

Examples

cURL
curl "https://api.coldagentai.com/llms.txt"
JavaScript (fetch)
const res = await fetch(`https://api.coldagentai.com/llms.txt`);
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.text();

#GET /docs/{name}

Pages: api, plans, capabilities, errors. Add a .md suffix or send Accept: text/markdown for markdown; browsers get a readable HTML page.

Scope: public. No API key is needed. Success: HTTP 200.

Path parameters

FieldTypeRequiredDescription
namestringyesNo further constraints.

Response

HTTP 200 with a text/markdown body, not JSON.

Errors

invalid_input, unknown_product, internal_error. Every error uses the single format.

Rate limits

Counted per client address, not per key. Over the limit the answer is 429 rate_limited with Retry-After. See Rate limits.

Examples

cURL
curl "https://api.coldagentai.com/docs/$NAME"
JavaScript (fetch)
const name = 'Example';
const res = await fetch(`https://api.coldagentai.com/docs/${name}`);
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.text();

#POST /v1/mcp

Streamable HTTP MCP server, stateless, JSON responses. Authenticate with the same Bearer API key. Tools map one to one onto REST endpoints and obey the key's scope: a read key can list and read but any tool that changes state, spends credits or sends email needs a write key. Tools that spend or send say so in their descriptions.

Scope: read. A read key and a write key both work. Success: HTTP 200.

Response

Response example, HTTP 200
{
  "example_key": {}
}

Errors

unauthorized, rate_limited, internal_error. Every error uses the single format.

Rate limits

Counted per key: 200 requests per 10 seconds. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. Over the limit the answer is 429 rate_limited with Retry-After. See Rate limits.

Examples

cURL
curl -X POST "https://api.coldagentai.com/v1/mcp" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY"
JavaScript (fetch)
const res = await fetch(`https://api.coldagentai.com/v1/mcp`, {
  method: 'POST',
  headers: { Authorization: `Bearer ${process.env.COLDAGENTAI_API_KEY}` },
});
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.json();
System and MCP