> This page is for version v2.
> For other versions, use one of these documentation indexes:
> - v1 (default): https://doc.youratlas.com/v1/llms.txt
> - v2: https://doc.youratlas.com/v2/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://doc.youratlas.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://doc.youratlas.com/_mcp/server.

# API overview

The Atlas API lets your own systems work with the same things you manage in the Atlas app. List jobs. Pull call records. Read transcripts. Add contacts. Subscribe to events.

If you only need a few apps connected, start with **Connections** in the app and the integrations section instead.

## A note on the word "campaign"

In the Atlas app, the work Atlas does for you is a **job**, and jobs sit inside departments such as Reception, Customer Service and Sales. The API uses an older word for a job: **campaign**. They are the same thing. These pages say "job" in the text and keep `campaign` only where it is a literal path, field or command name, such as `GET /campaign` or `campaignId`.

## Base URL

Every request goes to one base URL over HTTPS:

```
https://api.youratlas.com/v1/api
```

Paths in the reference are relative to it. `GET /campaign` means `GET https://api.youratlas.com/v1/api/campaign`.

## Your first request

Create an API key in the Atlas app: **Settings**, then **More settings**, then **API keys**. Steps are in [Authentication and API keys](/v2/developers/authentication-and-api-keys). Then list your jobs:

```bash
curl 'https://api.youratlas.com/v1/api/campaign' \
  --header 'api-key: YOUR_API_KEY'
```

The same call with the Atlas CLI:

```bash
atlas campaign get-all-campaigns
```

With no key you get `401` and `{"message":"Missing Api-Key header."}`. With a wrong key you get `401` and `{"message":"Invalid or inactive Api-Key."}`. More in [Errors](/v2/developers/errors).

## Versioning

The version is part of the base URL: `/v1/`. There is no version header and no per-request version switch.

The version number inside the OpenAPI document (`info.version`) is not an API version. The docs copy says `1.0.0`. The copy the CLI reads carries a publish date, such as `2026.11.21.102352`. Ignore both when you pick a version.

## Request format

* Send JSON bodies with `Content-Type: application/json`.
* Path values go in the URL: `GET /campaign/{id}`.
* Filters go in the query string: `GET /call?campaignId=...&startDate=...`.
* Authenticate every request with the `api-key` header.

## Response format

Responses are JSON.

### Lists come back wrapped in `value`

List endpoints return an object with a `value` array. Many also include an `odata.metadata` string. Read the rows from `value` and ignore `odata.metadata`.

```json
{
  "odata.metadata": "...",
  "value": [
    { "...": "first row" },
    { "...": "second row" }
  ]
}
```

This shape comes from the table storage the data lives in. It is not a full OData service. Use the named query parameters in the reference. Don't assume `$filter`, `$top` or `$select` work on an endpoint unless it documents them.

Single-item endpoints return the item itself, not a wrapper. The CLI prints the rows from `value` for you.

### Paging

List endpoints return their rows in one response. There is no "next page" step in the public API. Narrow long lists with the filters each endpoint documents. See [Rate limits and pagination](/v2/developers/rate-limits-and-pagination).

### Empty and accepted responses

* `201` means a new item was created.
* `202` means Atlas accepted the work and is doing it in the background. Check the resource later.
* `204` means it worked and there is no body.

### Batch endpoints

Endpoints that take a batch check each item on its own. Failed items are reported inside a `200` response, not as a `400`. Read the body, not just the status. See [Errors: batch endpoints](/v2/developers/errors#batch-endpoints).

## What is in the API

The reference groups endpoints by tag. The CLI uses one resource name per group.

| Group                                                    | CLI resource                                                     | What you do with it                                                     |
| -------------------------------------------------------- | ---------------------------------------------------------------- | ----------------------------------------------------------------------- |
| Campaigns                                                | `campaign`                                                       | Create, update, start, stop and roll back jobs                          |
| Agents                                                   | `agent`                                                          | Read and edit the agent on a job                                        |
| Calls                                                    | `call`                                                           | List call records, read one call, see and create scheduled calls        |
| Campaign Chat                                            | `campaign-chat`                                                  | Chat sessions, messages, human replies and scheduled messages for a job |
| Contacts                                                 | `contact`                                                        | Add, edit and remove contacts and contact lists                         |
| Knowledge Base                                           | `knowledge-base`                                                 | Upload and manage knowledge files and tags                              |
| Tools                                                    | `tool`                                                           | Atlas actions and action templates                                      |
| Phone Numbers                                            | `phone-number`                                                   | List, integrate, link and release numbers                               |
| Business Verification                                    | `business-verification`                                          | Submit and read verification details                                    |
| Calendar Settings                                        | `calendar-setting`                                               | Calendars attached to jobs                                              |
| Calls Forward                                            | `calls-forward`                                                  | Transfer numbers for a job                                              |
| Events Gateway                                           | `events-gateway`                                                 | Webhooks: subscribe, list, unsubscribe, sample payloads                 |
| Voices                                                   | `voice`                                                          | List and clone voices                                                   |
| API Keys                                                 | `api-key`                                                        | List, create and delete keys                                            |
| Account, Bookings, Dashboard, Statistics, Customer Quota | `account`, `booking`, `dashboard`, `statistic`, `customer-quota` | Account profile, bookings, usage figures and quota                      |

Open the full list in the [API reference](https://docs.youratlas.com/api-reference).

## Ways to use the API

* **Direct HTTP.** Any language. Use the examples in the reference.
* **The Atlas CLI.** Every endpoint is a command. See [Atlas CLI quickstart](/v2/developers/cli/quickstart).
* **An AI agent.** Agents can use the CLI and the docs search tool. See [Atlas for AI agents](/v2/developers/atlas-for-ai-agents).
* **Webhooks.** Have Atlas call you when something happens. See [Webhooks](/v2/developers/webhooks).

## Machine-readable spec

The OpenAPI document is public:

```
https://docs.youratlas.com/openapi.json
```

The CLI builds its commands from the same definition, published as YAML at `https://cdn.youratlas.com/atlas-cli/openapi.yaml`. Load either into Postman, a code generator or an agent.

## Good habits

* Keep your API key out of code and chat. Use an environment variable or a secrets manager.
* List first, then change.
* Check the response body even on a `200`.
* Handle `401`, `409`, `429` and `5xx` on purpose. See [Errors](/v2/developers/errors).