Domains API reference

Search sending domains, order a domain, order done-for-you mailboxes and read orders. 5 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

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. Every operation below is generated from the OpenAPI document.

Method and pathScopeWhat it does
GET /v1/domains/searchreadSearch sending domains
POST /v1/domains/orderswriteOrder a sending domain
POST /v1/mailbox-orderswriteOrder done-for-you mailboxes
GET /v1/ordersreadList done-for-you orders
GET /v1/orders/{id}readRead one done-for-you order

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

FieldTypeRequiredDescription
namestringyesA name such as "acme" or "acme.com". 1 to 253 characters

Response

FieldTypeRequiredDescription
resultsarray of objectyesNo further constraints.
results[].domainstringyesNo further constraints.
results[].availablebooleanyesNo further constraints.
results[].price_centsinteger or nullyesFirst year, in cents.
results[].renewal_price_centsinteger or nullyesNo further constraints.
results[].currency"USD"yesNo further constraints.
results[].premiumbooleanyesNo 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, unauthorized, rate_limited, internal_error, provider_unavailable. 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 "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.

FieldTypeRequiredDescription
domainstringyes3 to 253 characters.
confirmedtrueyesMust be true. A domain or mailbox order is final and spends money; it is never placed without this.
max_price_centsintegeryesThe most the order may cost in cents. It is refused when the live price is higher. At least 1.
contactobjectnoRegistrant contact, for registrars that need one.
contact.first_namestringyes1 to 100 characters.
contact.last_namestringyes1 to 100 characters.
contact.organizationstring or nullno0 to 200 characters, default undefined.
contact.emailstringyes0 to 320 characters.
contact.phonestringyesE.164, for example +14155550100. 0 to 32 characters.
contact.address1stringyes1 to 200 characters.
contact.address2string or nullno0 to 200 characters, default undefined.
contact.citystringyes1 to 100 characters.
contact.regionstringyes1 to 100 characters.
contact.postal_codestringyes1 to 20 characters.
contact.countrystringyesISO 3166-1 alpha-2. 2 to 2 characters.
Request example
{
  "domain": "example.com",
  "confirmed": true,
  "max_price_cents": 1
}

Response

FieldTypeRequiredDescription
idstringyesNo further constraints.
kind"domain" or "mailboxes"yesNo further constraints.
status"requested" or "provisioning" or "connected" or "failed"yesrequested, then provisioning (the customer is charged and the vendor is working), then connected or failed.
domainstringyesNo further constraints.
quoted_centsinteger or nullyesThe price the customer was quoted and charged, in cents.
charged_centsinteger or nullyesNo further constraints.
vendor_order_idstring or nullyesNo further constraints.
failure_reasonstring or nullyesNo further constraints.
detailobject or nullyesNo further constraints.
created_atstringyesNo further constraints.
updated_atstringyesNo further constraints.
completed_atstring or nullyesNo 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, unauthorized, forbidden, payload_too_large, rate_limited, internal_error, provider_unavailable. 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/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.

FieldTypeRequiredDescription
domainstringyes3 to 253 characters.
mailboxesarray of objectyes1 to 10 items.
mailboxes[].local_partstringyesThe part before the @.
mailboxes[].first_namestringyes1 to 100 characters.
mailboxes[].last_namestringyes1 to 100 characters.
confirmedtrueyesMust be true. A domain or mailbox order is final and spends money; it is never placed without this.
max_price_centsintegeryesThe 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

FieldTypeRequiredDescription
idstringyesNo further constraints.
kind"domain" or "mailboxes"yesNo further constraints.
status"requested" or "provisioning" or "connected" or "failed"yesrequested, then provisioning (the customer is charged and the vendor is working), then connected or failed.
domainstringyesNo further constraints.
quoted_centsinteger or nullyesThe price the customer was quoted and charged, in cents.
charged_centsinteger or nullyesNo further constraints.
vendor_order_idstring or nullyesNo further constraints.
failure_reasonstring or nullyesNo further constraints.
detailobject or nullyesNo further constraints.
created_atstringyesNo further constraints.
updated_atstringyesNo further constraints.
completed_atstring or nullyesNo 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, unauthorized, forbidden, payload_too_large, rate_limited, internal_error, provider_unavailable. 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/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

FieldTypeRequiredDescription
limitintegernoItems per page, 1 to 100 (default 20). 1 to 100
cursorstringnonext_cursor from the previous page. 0 to 500 characters

Response

FieldTypeRequiredDescription
itemsarray of objectyesNo further constraints.
items[].idstringyesNo further constraints.
items[].kind"domain" or "mailboxes"yesNo further constraints.
items[].status"requested" or "provisioning" or "connected" or "failed"yesrequested, then provisioning (the customer is charged and the vendor is working), then connected or failed.
items[].domainstringyesNo further constraints.
items[].quoted_centsinteger or nullyesThe price the customer was quoted and charged, in cents.
items[].charged_centsinteger or nullyesNo further constraints.
items[].vendor_order_idstring or nullyesNo further constraints.
items[].failure_reasonstring or nullyesNo further constraints.
items[].detailobject or nullyesNo further constraints.
items[].created_atstringyesNo further constraints.
items[].updated_atstringyesNo further constraints.
items[].completed_atstring or nullyesNo further constraints.
next_cursorstring or nullyesNo 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, 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 "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

FieldTypeRequiredDescription
idstringyes1 to 100 characters

Response

FieldTypeRequiredDescription
idstringyesNo further constraints.
kind"domain" or "mailboxes"yesNo further constraints.
status"requested" or "provisioning" or "connected" or "failed"yesrequested, then provisioning (the customer is charged and the vendor is working), then connected or failed.
domainstringyesNo further constraints.
quoted_centsinteger or nullyesThe price the customer was quoted and charged, in cents.
charged_centsinteger or nullyesNo further constraints.
vendor_order_idstring or nullyesNo further constraints.
failure_reasonstring or nullyesNo further constraints.
detailobject or nullyesNo further constraints.
created_atstringyesNo further constraints.
updated_atstringyesNo further constraints.
completed_atstring or nullyesNo 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, unauthorized, unknown_product, 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 "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();
Domains