---
title: "Get started with the API"
url: "https://coldagentai.com/docs/getting-started.md"
canonical_url: "https://coldagentai.com/docs/getting-started"
last_updated: "2026-10-19"
type: "how-to"
summary: "Make your first ColdAgentAI API call: get a key, read your account and capabilities with cURL, Node or Python, and see what to read next."
related: ["https://coldagentai.com/docs/authentication.md", "https://coldagentai.com/docs/api.md", "https://coldagentai.com/docs/capabilities.md"]
install: "claude mcp add --transport http coldagentai-free https://coldagentai.com/api/mcp"
---

# Get started with the API

> **For AI agents:** the complete index of ColdAgentAI pages is [llms.txt](https://coldagentai.com/llms.txt). Every page is also served as markdown at its URL plus .md.

Make your first ColdAgentAI API call: get a key, read your account and capabilities with cURL, Node or Python, and see what to read next.

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

## 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](https://coldagentai.com/docs/authentication.md) 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](https://coldagentai.com/docs/errors.md).

## What to read next

- [Authentication](https://coldagentai.com/docs/authentication.md): keys, scopes and rate limits.
- [API reference](https://coldagentai.com/docs/api.md): one page per resource, generated from the OpenAPI document.
- [Webhooks](https://coldagentai.com/docs/webhooks.md): the ten events, the endpoint routes and how to verify a delivery.
- [MCP server](https://coldagentai.com/docs/mcp.md): connect an agent.
- [Sending and unsubscribes](https://coldagentai.com/docs/sending-and-compliance.md): what every campaign email carries.

## Related

- [API authentication](https://coldagentai.com/docs/authentication.md)
- [API reference](https://coldagentai.com/docs/api.md)
- [Capabilities](https://coldagentai.com/docs/capabilities.md)
