Getting started

Make a first authenticated call, read your account and see what this server can do.

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

#Before you start

The API base URL is https://api.coldagentai.com. Every endpoint lives under /v1.

#Get a key

To get an account and an API key, email hello@coldagentai.com. A key starts with ca_live_ and is shown once, so store it when you receive it.

A new key is read-only unless you ask for write. A read key can look at everything and change nothing. See Authentication for scopes.

Shell
export COLDAGENTAI_API_KEY="paste your key here"

#Make your first calls

Two read-only calls tell you who you are and what works: GET /v1/account and GET /v1/capabilities.

cURL
curl https://api.coldagentai.com/v1/account \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY"

curl https://api.coldagentai.com/v1/capabilities \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY"
Node
const base = 'https://api.coldagentai.com';
const headers = { Authorization: `Bearer ${process.env.COLDAGENTAI_API_KEY}` };

for (const path of ['/v1/account', '/v1/capabilities']) {
  const res = await fetch(base + path, { headers });
  const body = await res.json();
  if (!res.ok) throw new Error(`${body.error.code}: ${body.error.fix}`);
  console.log(path, body);
}
Python
import os
import requests

base = "https://api.coldagentai.com"
headers = {"Authorization": f"Bearer {os.environ['COLDAGENTAI_API_KEY']}"}

for path in ("/v1/account", "/v1/capabilities"):
    res = requests.get(base + path, headers=headers, timeout=30)
    body = res.json()
    if not res.ok:
        raise RuntimeError(f"{body['error']['code']}: {body['error']['fix']}")
    print(path, body)

#Read the response

  • GET /v1/account returns the account, the plan, the subscription state, both credit wallets, your keys and usage against the plan caps.
  • GET /v1/capabilities lists every capability your account can use and the reason for any that cannot answer. Read it before you choose a flow.
  • A failed call returns one error format with a fix field that says what to do next. See Errors.

#What to read next

Getting started