---
title: "Domains API reference"
url: "https://coldagentai.com/docs/api/domains.md"
canonical_url: "https://coldagentai.com/docs/api/domains"
last_updated: "2026-10-22"
type: "reference"
summary: "Search sending domains, order a done-for-you domain, order mailboxes and read orders through the ColdAgentAI API, with the capability each needs."
related: ["https://coldagentai.com/docs/api.md", "https://coldagentai.com/docs/authentication.md", "https://coldagentai.com/docs/errors.md", "https://coldagentai.com/docs/capabilities.md", "https://coldagentai.com/docs/guides/order-domains-and-mailboxes.md"]
install: "claude mcp add --transport http coldagentai-free https://coldagentai.com/api/mcp"
---

# Domains API reference

> **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.

Search sending domains, order a done-for-you domain, order mailboxes and read orders through the ColdAgentAI API, with the capability each needs.

Search sending domains, order a domain, order done-for-you mailboxes and read orders. 5 operations.

## Operations

> Ordering needs the registrar and mailbox capabilities to be switched on for the server. `GET /v1/capabilities` says whether they are. A capability that cannot run answers `503 provider_unavailable` with `retryable` false.

Authenticate as described in [Authentication](https://coldagentai.com/docs/authentication.md). Every operation below is generated from the [OpenAPI document](https://coldagentai.com/docs/openapi.md).

| Method and path | Scope | What it does |
| --- | --- | --- |
| `GET /v1/domains/search` | read | Search sending domains |
| `POST /v1/domains/orders` | write | Order a sending domain |
| `POST /v1/mailbox-orders` | write | Order done-for-you mailboxes |
| `GET /v1/orders` | read | List done-for-you orders |
| `GET /v1/orders/{id}` | read | Read one done-for-you order |

## GET /v1/domains/search

Checks whether a name is available as a .com or .org domain and the price. A name without a dot is checked as .com and .org. Free: nothing is registered or reserved. Returns 503 provider_unavailable with the blocker named when no registrar is configured or funded.

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

### Query parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | yes | A name such as "acme" or "acme.com". 1 to 253 characters |

### Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `results` | array of object | yes | No further constraints. |
| `results[].domain` | string | yes | No further constraints. |
| `results[].available` | boolean | yes | No further constraints. |
| `results[].price_cents` | integer or null | yes | First year, in cents. |
| `results[].renewal_price_cents` | integer or null | yes | No further constraints. |
| `results[].currency` | "USD" | yes | No further constraints. |
| `results[].premium` | boolean | yes | No further constraints. |

Response example, HTTP 200:

```
{
  "results": [
    {
      "domain": "example.com",
      "available": true,
      "price_cents": 1,
      "renewal_price_cents": 1,
      "currency": "USD",
      "premium": true
    }
  ]
}
```

### Errors

[`invalid_input`](https://coldagentai.com/docs/errors.md#invalid_input), [`unauthorized`](https://coldagentai.com/docs/errors.md#unauthorized), [`rate_limited`](https://coldagentai.com/docs/errors.md#rate_limited), [`internal_error`](https://coldagentai.com/docs/errors.md#internal_error), [`provider_unavailable`](https://coldagentai.com/docs/errors.md#provider_unavailable). Every error uses the [single format](https://coldagentai.com/docs/errors.md#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](https://coldagentai.com/docs/rate-limits.md).

### Examples

cURL:

```
curl "https://api.coldagentai.com/v1/domains/search?name=Example" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY"
```

JavaScript (fetch):

```
const res = await fetch(`https://api.coldagentai.com/v1/domains/search?name=Example`, {
  headers: { Authorization: `Bearer ${process.env.COLDAGENTAI_API_KEY}` },
});
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.json();
```

## POST /v1/domains/orders

Registers a .com or .org domain. Final and paid: send `confirmed: true` and `max_price_cents`; the order is refused when the live price is above it. The customer is charged before the registrar is paid. Returns 503 provider_unavailable (blocker named) when no registrar is funded or customer billing for done-for-you orders is not set up. Returns the order, which ends connected or failed.

Scope: `write`. A read key gets 403 forbidden. Success: HTTP 201.

### Request body

Send JSON with `Content-Type: application/json`. The body is required.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `domain` | string | yes | 3 to 253 characters. |
| `confirmed` | true | yes | Must be true. A domain or mailbox order is final and spends money; it is never placed without this. |
| `max_price_cents` | integer | yes | The most the order may cost in cents. It is refused when the live price is higher. At least 1. |
| `contact` | object | no | Registrant contact, for registrars that need one. |
| `contact.first_name` | string | yes | 1 to 100 characters. |
| `contact.last_name` | string | yes | 1 to 100 characters. |
| `contact.organization` | string or null | no | 0 to 200 characters, default undefined. |
| `contact.email` | string | yes | 0 to 320 characters. |
| `contact.phone` | string | yes | E.164, for example +14155550100. 0 to 32 characters. |
| `contact.address1` | string | yes | 1 to 200 characters. |
| `contact.address2` | string or null | no | 0 to 200 characters, default undefined. |
| `contact.city` | string | yes | 1 to 100 characters. |
| `contact.region` | string | yes | 1 to 100 characters. |
| `contact.postal_code` | string | yes | 1 to 20 characters. |
| `contact.country` | string | yes | ISO 3166-1 alpha-2. 2 to 2 characters. |

Request example:

```
{
  "domain": "example.com",
  "confirmed": true,
  "max_price_cents": 1
}
```

### Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes | No further constraints. |
| `kind` | "domain" or "mailboxes" | yes | No further constraints. |
| `status` | "requested" or "provisioning" or "connected" or "failed" | yes | requested, then provisioning (the customer is charged and the vendor is working), then connected or failed. |
| `domain` | string | yes | No further constraints. |
| `quoted_cents` | integer or null | yes | The price the customer was quoted and charged, in cents. |
| `charged_cents` | integer or null | yes | No further constraints. |
| `vendor_order_id` | string or null | yes | No further constraints. |
| `failure_reason` | string or null | yes | No further constraints. |
| `detail` | object or null | yes | No further constraints. |
| `created_at` | string | yes | No further constraints. |
| `updated_at` | string | yes | No further constraints. |
| `completed_at` | string or null | yes | No further constraints. |

Response example, HTTP 201:

```
{
  "id": "id_8f3a2c1d",
  "kind": "domain",
  "status": "requested",
  "domain": "example.com",
  "quoted_cents": 1,
  "charged_cents": 1,
  "vendor_order_id": "id_8f3a2c1d",
  "failure_reason": "abc123",
  "detail": {
    "example_key": {}
  },
  "created_at": "abc123",
  "updated_at": "abc123",
  "completed_at": "abc123"
}
```

### Errors

[`invalid_input`](https://coldagentai.com/docs/errors.md#invalid_input), [`unauthorized`](https://coldagentai.com/docs/errors.md#unauthorized), [`forbidden`](https://coldagentai.com/docs/errors.md#forbidden), [`payload_too_large`](https://coldagentai.com/docs/errors.md#payload_too_large), [`rate_limited`](https://coldagentai.com/docs/errors.md#rate_limited), [`internal_error`](https://coldagentai.com/docs/errors.md#internal_error), [`provider_unavailable`](https://coldagentai.com/docs/errors.md#provider_unavailable). Every error uses the [single format](https://coldagentai.com/docs/errors.md#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](https://coldagentai.com/docs/rate-limits.md).

### Examples

cURL:

```
curl -X POST "https://api.coldagentai.com/v1/domains/orders" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "domain": "example.com",
  "confirmed": true,
  "max_price_cents": 1
}'
```

JavaScript (fetch):

```
const res = await fetch(`https://api.coldagentai.com/v1/domains/orders`, {
  method: 'POST',
  body: JSON.stringify({
    "domain": "example.com",
    "confirmed": true,
    "max_price_cents": 1
  }),
  headers: { Authorization: `Bearer ${process.env.COLDAGENTAI_API_KEY}`, 'Content-Type': 'application/json' },
});
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.json();
```

## POST /v1/mailbox-orders

Orders 1 to 10 mailboxes on a domain you own. Final and paid: send `confirmed: true` and `max_price_cents` (setup plus the first month); the order is refused when the live quote is above it. The customer is charged before the vendor is paid. The order is `provisioning` until the vendor hands over the mailboxes; GET /v1/orders/{id} then connects them. Returns 503 provider_unavailable (blocker named) when no provisioner is under contract or customer billing for done-for-you orders is not set up.

Scope: `write`. A read key gets 403 forbidden. Success: HTTP 201.

### Request body

Send JSON with `Content-Type: application/json`. The body is required.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `domain` | string | yes | 3 to 253 characters. |
| `mailboxes` | array of object | yes | 1 to 10 items. |
| `mailboxes[].local_part` | string | yes | The part before the @. |
| `mailboxes[].first_name` | string | yes | 1 to 100 characters. |
| `mailboxes[].last_name` | string | yes | 1 to 100 characters. |
| `confirmed` | true | yes | Must be true. A domain or mailbox order is final and spends money; it is never placed without this. |
| `max_price_cents` | integer | yes | The most the order may cost in cents. It is refused when the live price is higher. At least 1. |

Request example:

```
{
  "domain": "example.com",
  "mailboxes": [
    {
      "local_part": "abc123",
      "first_name": "Maya",
      "last_name": "Chen"
    }
  ],
  "confirmed": true,
  "max_price_cents": 1
}
```

### Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes | No further constraints. |
| `kind` | "domain" or "mailboxes" | yes | No further constraints. |
| `status` | "requested" or "provisioning" or "connected" or "failed" | yes | requested, then provisioning (the customer is charged and the vendor is working), then connected or failed. |
| `domain` | string | yes | No further constraints. |
| `quoted_cents` | integer or null | yes | The price the customer was quoted and charged, in cents. |
| `charged_cents` | integer or null | yes | No further constraints. |
| `vendor_order_id` | string or null | yes | No further constraints. |
| `failure_reason` | string or null | yes | No further constraints. |
| `detail` | object or null | yes | No further constraints. |
| `created_at` | string | yes | No further constraints. |
| `updated_at` | string | yes | No further constraints. |
| `completed_at` | string or null | yes | No further constraints. |

Response example, HTTP 201:

```
{
  "id": "id_8f3a2c1d",
  "kind": "domain",
  "status": "requested",
  "domain": "example.com",
  "quoted_cents": 1,
  "charged_cents": 1,
  "vendor_order_id": "id_8f3a2c1d",
  "failure_reason": "abc123",
  "detail": {
    "example_key": {}
  },
  "created_at": "abc123",
  "updated_at": "abc123",
  "completed_at": "abc123"
}
```

### Errors

[`invalid_input`](https://coldagentai.com/docs/errors.md#invalid_input), [`unauthorized`](https://coldagentai.com/docs/errors.md#unauthorized), [`forbidden`](https://coldagentai.com/docs/errors.md#forbidden), [`payload_too_large`](https://coldagentai.com/docs/errors.md#payload_too_large), [`rate_limited`](https://coldagentai.com/docs/errors.md#rate_limited), [`internal_error`](https://coldagentai.com/docs/errors.md#internal_error), [`provider_unavailable`](https://coldagentai.com/docs/errors.md#provider_unavailable). Every error uses the [single format](https://coldagentai.com/docs/errors.md#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](https://coldagentai.com/docs/rate-limits.md).

### Examples

cURL:

```
curl -X POST "https://api.coldagentai.com/v1/mailbox-orders" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "domain": "example.com",
  "mailboxes": [
    {
      "local_part": "abc123",
      "first_name": "Maya",
      "last_name": "Chen"
    }
  ],
  "confirmed": true,
  "max_price_cents": 1
}'
```

JavaScript (fetch):

```
const res = await fetch(`https://api.coldagentai.com/v1/mailbox-orders`, {
  method: 'POST',
  body: JSON.stringify({
    "domain": "example.com",
    "mailboxes": [
      {
        "local_part": "abc123",
        "first_name": "Maya",
        "last_name": "Chen"
      }
    ],
    "confirmed": true,
    "max_price_cents": 1
  }),
  headers: { Authorization: `Bearer ${process.env.COLDAGENTAI_API_KEY}`, 'Content-Type': 'application/json' },
});
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.json();
```

## GET /v1/orders

This account's domain and mailbox orders, oldest first. Mailbox orders that are still provisioning are checked with the vendor, and their mailboxes are connected when the vendor hands them over.

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

### Query parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | integer | no | Items per page, 1 to 100 (default 20). 1 to 100 |
| `cursor` | string | no | `next_cursor` from the previous page. 0 to 500 characters |

### Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `items` | array of object | yes | No further constraints. |
| `items[].id` | string | yes | No further constraints. |
| `items[].kind` | "domain" or "mailboxes" | yes | No further constraints. |
| `items[].status` | "requested" or "provisioning" or "connected" or "failed" | yes | requested, then provisioning (the customer is charged and the vendor is working), then connected or failed. |
| `items[].domain` | string | yes | No further constraints. |
| `items[].quoted_cents` | integer or null | yes | The price the customer was quoted and charged, in cents. |
| `items[].charged_cents` | integer or null | yes | No further constraints. |
| `items[].vendor_order_id` | string or null | yes | No further constraints. |
| `items[].failure_reason` | string or null | yes | No further constraints. |
| `items[].detail` | object or null | yes | No further constraints. |
| `items[].created_at` | string | yes | No further constraints. |
| `items[].updated_at` | string | yes | No further constraints. |
| `items[].completed_at` | string or null | yes | No further constraints. |
| `next_cursor` | string or null | yes | No further constraints. |

Response example, HTTP 200:

```
{
  "items": [
    {
      "id": "id_8f3a2c1d",
      "kind": "domain",
      "status": "requested",
      "domain": "example.com",
      "quoted_cents": 1,
      "charged_cents": 1,
      "vendor_order_id": "id_8f3a2c1d",
      "failure_reason": "abc123",
      "detail": {
        "example_key": {}
      },
      "created_at": "abc123",
      "updated_at": "abc123",
      "completed_at": "abc123"
    }
  ],
  "next_cursor": "abc123"
}
```

### Errors

[`invalid_input`](https://coldagentai.com/docs/errors.md#invalid_input), [`unauthorized`](https://coldagentai.com/docs/errors.md#unauthorized), [`rate_limited`](https://coldagentai.com/docs/errors.md#rate_limited), [`internal_error`](https://coldagentai.com/docs/errors.md#internal_error). Every error uses the [single format](https://coldagentai.com/docs/errors.md#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](https://coldagentai.com/docs/rate-limits.md).

### Examples

cURL:

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

JavaScript (fetch):

```
const res = await fetch(`https://api.coldagentai.com/v1/orders`, {
  headers: { Authorization: `Bearer ${process.env.COLDAGENTAI_API_KEY}` },
});
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.json();
```

## GET /v1/orders/{id}

The order. A mailbox order that is still provisioning is checked with the vendor first, and its mailboxes are connected when the vendor hands them over.

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

### Path parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes | 1 to 100 characters |

### Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes | No further constraints. |
| `kind` | "domain" or "mailboxes" | yes | No further constraints. |
| `status` | "requested" or "provisioning" or "connected" or "failed" | yes | requested, then provisioning (the customer is charged and the vendor is working), then connected or failed. |
| `domain` | string | yes | No further constraints. |
| `quoted_cents` | integer or null | yes | The price the customer was quoted and charged, in cents. |
| `charged_cents` | integer or null | yes | No further constraints. |
| `vendor_order_id` | string or null | yes | No further constraints. |
| `failure_reason` | string or null | yes | No further constraints. |
| `detail` | object or null | yes | No further constraints. |
| `created_at` | string | yes | No further constraints. |
| `updated_at` | string | yes | No further constraints. |
| `completed_at` | string or null | yes | No further constraints. |

Response example, HTTP 200:

```
{
  "id": "id_8f3a2c1d",
  "kind": "domain",
  "status": "requested",
  "domain": "example.com",
  "quoted_cents": 1,
  "charged_cents": 1,
  "vendor_order_id": "id_8f3a2c1d",
  "failure_reason": "abc123",
  "detail": {
    "example_key": {}
  },
  "created_at": "abc123",
  "updated_at": "abc123",
  "completed_at": "abc123"
}
```

### Errors

[`invalid_input`](https://coldagentai.com/docs/errors.md#invalid_input), [`unauthorized`](https://coldagentai.com/docs/errors.md#unauthorized), [`unknown_product`](https://coldagentai.com/docs/errors.md#unknown_product), [`rate_limited`](https://coldagentai.com/docs/errors.md#rate_limited), [`internal_error`](https://coldagentai.com/docs/errors.md#internal_error). Every error uses the [single format](https://coldagentai.com/docs/errors.md#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](https://coldagentai.com/docs/rate-limits.md).

### Examples

cURL:

```
curl "https://api.coldagentai.com/v1/orders/$ORDER_ID" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY"
```

JavaScript (fetch):

```
const id = 'id_8f3a2c1d';
const res = await fetch(`https://api.coldagentai.com/v1/orders/${id}`, {
  headers: { Authorization: `Bearer ${process.env.COLDAGENTAI_API_KEY}` },
});
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.json();
```

## Related

- [API reference](https://coldagentai.com/docs/api.md)
- [API authentication](https://coldagentai.com/docs/authentication.md)
- [API errors](https://coldagentai.com/docs/errors.md)
- [Capabilities](https://coldagentai.com/docs/capabilities.md)
- [Order domains and mailboxes for sending](https://coldagentai.com/docs/guides/order-domains-and-mailboxes.md)
