Autopilot API reference

Create a run that writes a campaign from a website, read it, approve, resume or cancel it, and read or flip the kill switch. 8 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

Authenticate as described in Authentication. Every operation below is generated from the OpenAPI document.

Method and pathScopeWhat it does
POST /v1/autopilot/runswriteCreate an autopilot run
GET /v1/autopilot/runsreadList autopilot runs
GET /v1/autopilot/runs/{id}readRead one autopilot run
POST /v1/autopilot/runs/{id}/approvewriteApprove an autopilot run
POST /v1/autopilot/runs/{id}/resumewriteResume a paused autopilot run
POST /v1/autopilot/runs/{id}/cancelwriteCancel an autopilot run
GET /v1/autopilot/kill-switchreadRead the kill switch
POST /v1/autopilot/kill-switchwriteTurn the kill switch on or off

#POST /v1/autopilot/runs

Reads the website, derives an ideal customer profile and a 4-step sequence with the language model, sizes the audience for free, drafts a DRAFT campaign and stops at one approval record that lists who, what and the cost. Nothing is revealed, verified, ordered or sent before approval. One run may wait for approval at a time, and at most 5 runs can be created in 24 hours. Reply mode is "draft" (an AI draft a person sends) unless "auto" is asked for here. Returns 503 provider_unavailable when no language model is configured. Done-for-you domain and mailbox orders need billing for them on the account; without it they answer 503 provider_unavailable with the blocker named.

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
website_urlstringyesThe business website the agent reads (public http or https). 4 to 2048 characters.
budget_creditsintegeryesThe most credits the run may spend. 2 covers one prospect; about 50 prospects are planned when the budget allows. 2 to 1000000.
reply_mode"draft" or "auto"noDefault "draft".
starter_kitbooleannoA starter kit run can only be approved by a person in the app, never by an API key. Default false.
timezonestringnoIANA time zone for the campaign schedule (default America/New_York). 0 to 64 characters.
mailbox_idsarray of stringnoConnected mailboxes to send from. 0 to 50 items.
domain_orderobjectnoAlso register a sending domain and order mailboxes on it, within the stated price ceiling.
domain_order.domainstringyesA .com or .org domain to register for sending. 3 to 253 characters.
domain_order.max_price_centsintegeryesThe most the owner approves paying for the domain, in cents. Registration refuses above it. At least 1.
domain_order.mailboxesarray of objectyes1 to 10 items.
domain_order.mailboxes[].local_partstringyes1 to 64 characters.
domain_order.mailboxes[].first_namestringyes1 to 100 characters.
domain_order.mailboxes[].last_namestringyes1 to 100 characters.
Request example
{
  "website_url": "abc123",
  "budget_credits": 2
}

Response

FieldTypeRequiredDescription
idstringyesNo further constraints.
status"draft" or "estimating" or "awaiting_approval" or "approved" or "running" or "paused" or "completed" or "cancelled" or "failed"yesNo further constraints.
website_urlstringyesNo further constraints.
budget_creditsintegeryesNo further constraints.
reply_mode"draft" or "auto"yesNo further constraints.
starter_kitbooleanyesNo further constraints.
timezonestringyesNo further constraints.
mailbox_idsarray of stringyesNo further constraints.
icpobject or nullyesThe ideal customer profile the agent derived from the website.
planobject or nullyesWhat approval covers: who (ICP, audience size, target prospects), what (draft campaign, sequence, steps, reply mode, domain order) and cost (credits and cents), plus blocked steps that cannot run yet and why.
campaign_idstring or nullyesThe DRAFT campaign. Nothing sends before approval.
stepsarray of objectyesEach step with its status (pending, done, blocked, failed) and, when blocked, who or what blocks it.
pause_reasonstring or nullyesNo further constraints.
errorstring or nullyesNo further constraints.
created_atstringyesNo further constraints.
updated_atstringyesNo further constraints.
completed_atstring or nullyesNo further constraints.
approvalobject or nullyesNo further constraints.
approval.idstringyesNo further constraints.
approval.approver_kind"person" or "agent"yesNo further constraints.
approval.approver_refstring or nullyesNo further constraints.
approval.cost_creditsintegeryesNo further constraints.
approval.approved_atstringyesNo further constraints.
Response example, HTTP 201
{
  "id": "id_8f3a2c1d",
  "status": "draft",
  "website_url": "abc123",
  "budget_credits": 1,
  "reply_mode": "draft",
  "starter_kit": true,
  "timezone": "America/New_York",
  "mailbox_ids": [
    "abc123"
  ],
  "icp": {
    "example_key": {}
  },
  "plan": {
    "example_key": {}
  },
  "campaign_id": "id_8f3a2c1d",
  "steps": [
    {
      "example_key": {}
    }
  ],
  "pause_reason": "abc123",
  "error": "abc123",
  "created_at": "abc123",
  "updated_at": "abc123",
  "completed_at": "abc123",
  "approval": {
    "id": "id_8f3a2c1d",
    "approver_kind": "person",
    "approver_ref": "abc123",
    "cost_credits": 1,
    "approved_at": "abc123"
  }
}

Errors

invalid_input, unauthorized, trial_allowance_exhausted, forbidden, unknown_product, 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/autopilot/runs" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "website_url": "abc123",
  "budget_credits": 2
}'
JavaScript (fetch)
const res = await fetch(`https://api.coldagentai.com/v1/autopilot/runs`, {
  method: 'POST',
  body: JSON.stringify({
    "website_url": "abc123",
    "budget_credits": 2
  }),
  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/autopilot/runs

This account's runs, oldest first, one page at a time. Filter by status.

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
status"draft" or "estimating" or "awaiting_approval" or "approved" or "running" or "paused" or "completed" or "cancelled" or "failed"noNo further constraints.

Response

FieldTypeRequiredDescription
itemsarray of objectyesNo further constraints.
items[].idstringyesNo further constraints.
items[].status"draft" or "estimating" or "awaiting_approval" or "approved" or "running" or "paused" or "completed" or "cancelled" or "failed"yesNo further constraints.
items[].website_urlstringyesNo further constraints.
items[].budget_creditsintegeryesNo further constraints.
items[].reply_mode"draft" or "auto"yesNo further constraints.
items[].starter_kitbooleanyesNo further constraints.
items[].timezonestringyesNo further constraints.
items[].mailbox_idsarray of stringyesNo further constraints.
items[].icpobject or nullyesThe ideal customer profile the agent derived from the website.
items[].planobject or nullyesWhat approval covers: who (ICP, audience size, target prospects), what (draft campaign, sequence, steps, reply mode, domain order) and cost (credits and cents), plus blocked steps that cannot run yet and why.
items[].campaign_idstring or nullyesThe DRAFT campaign. Nothing sends before approval.
items[].stepsarray of objectyesEach step with its status (pending, done, blocked, failed) and, when blocked, who or what blocks it.
items[].pause_reasonstring or nullyesNo further constraints.
items[].errorstring or nullyesNo further constraints.
items[].created_atstringyesNo further constraints.
items[].updated_atstringyesNo further constraints.
items[].completed_atstring or nullyesNo further constraints.
items[].approvalobject or nullyesNo further constraints.
items[].approval.idstringyesNo further constraints.
items[].approval.approver_kind"person" or "agent"yesNo further constraints.
items[].approval.approver_refstring or nullyesNo further constraints.
items[].approval.cost_creditsintegeryesNo further constraints.
items[].approval.approved_atstringyesNo further constraints.
next_cursorstring or nullyesNo further constraints.
Response example, HTTP 200
{
  "items": [
    {
      "id": "id_8f3a2c1d",
      "status": "draft",
      "website_url": "abc123",
      "budget_credits": 1,
      "reply_mode": "draft",
      "starter_kit": true,
      "timezone": "America/New_York",
      "mailbox_ids": [
        "abc123"
      ],
      "icp": {
        "example_key": {}
      },
      "plan": {
        "example_key": {}
      },
      "campaign_id": "id_8f3a2c1d",
      "steps": [
        {
          "example_key": {}
        }
      ],
      "pause_reason": "abc123",
      "error": "abc123",
      "created_at": "abc123",
      "updated_at": "abc123",
      "completed_at": "abc123",
      "approval": {
        "id": "id_8f3a2c1d",
        "approver_kind": "person",
        "approver_ref": "abc123",
        "cost_credits": 1,
        "approved_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/autopilot/runs" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY"
JavaScript (fetch)
const res = await fetch(`https://api.coldagentai.com/v1/autopilot/runs`, {
  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/autopilot/runs/{id}

The run with its plan (who, what, cost, blocked steps), step states and approval record, if any.

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.
status"draft" or "estimating" or "awaiting_approval" or "approved" or "running" or "paused" or "completed" or "cancelled" or "failed"yesNo further constraints.
website_urlstringyesNo further constraints.
budget_creditsintegeryesNo further constraints.
reply_mode"draft" or "auto"yesNo further constraints.
starter_kitbooleanyesNo further constraints.
timezonestringyesNo further constraints.
mailbox_idsarray of stringyesNo further constraints.
icpobject or nullyesThe ideal customer profile the agent derived from the website.
planobject or nullyesWhat approval covers: who (ICP, audience size, target prospects), what (draft campaign, sequence, steps, reply mode, domain order) and cost (credits and cents), plus blocked steps that cannot run yet and why.
campaign_idstring or nullyesThe DRAFT campaign. Nothing sends before approval.
stepsarray of objectyesEach step with its status (pending, done, blocked, failed) and, when blocked, who or what blocks it.
pause_reasonstring or nullyesNo further constraints.
errorstring or nullyesNo further constraints.
created_atstringyesNo further constraints.
updated_atstringyesNo further constraints.
completed_atstring or nullyesNo further constraints.
approvalobject or nullyesNo further constraints.
approval.idstringyesNo further constraints.
approval.approver_kind"person" or "agent"yesNo further constraints.
approval.approver_refstring or nullyesNo further constraints.
approval.cost_creditsintegeryesNo further constraints.
approval.approved_atstringyesNo further constraints.
Response example, HTTP 200
{
  "id": "id_8f3a2c1d",
  "status": "draft",
  "website_url": "abc123",
  "budget_credits": 1,
  "reply_mode": "draft",
  "starter_kit": true,
  "timezone": "America/New_York",
  "mailbox_ids": [
    "abc123"
  ],
  "icp": {
    "example_key": {}
  },
  "plan": {
    "example_key": {}
  },
  "campaign_id": "id_8f3a2c1d",
  "steps": [
    {
      "example_key": {}
    }
  ],
  "pause_reason": "abc123",
  "error": "abc123",
  "created_at": "abc123",
  "updated_at": "abc123",
  "completed_at": "abc123",
  "approval": {
    "id": "id_8f3a2c1d",
    "approver_kind": "person",
    "approver_ref": "abc123",
    "cost_credits": 1,
    "approved_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/autopilot/runs/$RUN_ID" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY"
JavaScript (fetch)
const id = 'id_8f3a2c1d';
const res = await fetch(`https://api.coldagentai.com/v1/autopilot/runs/${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();

#POST /v1/autopilot/runs/{id}/approve

Approves the plan exactly as shown and starts the run. A write key may approve a run that is not a starter kit; a starter kit run returns 403 and must be approved in the app as a person. One approval per run: a second call is refused. The wallet must still cover the plan's worst-case cost. Blocked while the kill switch is on.

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

Path parameters

FieldTypeRequiredDescription
idstringyes1 to 100 characters

Response

FieldTypeRequiredDescription
idstringyesNo further constraints.
status"draft" or "estimating" or "awaiting_approval" or "approved" or "running" or "paused" or "completed" or "cancelled" or "failed"yesNo further constraints.
website_urlstringyesNo further constraints.
budget_creditsintegeryesNo further constraints.
reply_mode"draft" or "auto"yesNo further constraints.
starter_kitbooleanyesNo further constraints.
timezonestringyesNo further constraints.
mailbox_idsarray of stringyesNo further constraints.
icpobject or nullyesThe ideal customer profile the agent derived from the website.
planobject or nullyesWhat approval covers: who (ICP, audience size, target prospects), what (draft campaign, sequence, steps, reply mode, domain order) and cost (credits and cents), plus blocked steps that cannot run yet and why.
campaign_idstring or nullyesThe DRAFT campaign. Nothing sends before approval.
stepsarray of objectyesEach step with its status (pending, done, blocked, failed) and, when blocked, who or what blocks it.
pause_reasonstring or nullyesNo further constraints.
errorstring or nullyesNo further constraints.
created_atstringyesNo further constraints.
updated_atstringyesNo further constraints.
completed_atstring or nullyesNo further constraints.
approvalobject or nullyesNo further constraints.
approval.idstringyesNo further constraints.
approval.approver_kind"person" or "agent"yesNo further constraints.
approval.approver_refstring or nullyesNo further constraints.
approval.cost_creditsintegeryesNo further constraints.
approval.approved_atstringyesNo further constraints.
Response example, HTTP 200
{
  "id": "id_8f3a2c1d",
  "status": "draft",
  "website_url": "abc123",
  "budget_credits": 1,
  "reply_mode": "draft",
  "starter_kit": true,
  "timezone": "America/New_York",
  "mailbox_ids": [
    "abc123"
  ],
  "icp": {
    "example_key": {}
  },
  "plan": {
    "example_key": {}
  },
  "campaign_id": "id_8f3a2c1d",
  "steps": [
    {
      "example_key": {}
    }
  ],
  "pause_reason": "abc123",
  "error": "abc123",
  "created_at": "abc123",
  "updated_at": "abc123",
  "completed_at": "abc123",
  "approval": {
    "id": "id_8f3a2c1d",
    "approver_kind": "person",
    "approver_ref": "abc123",
    "cost_credits": 1,
    "approved_at": "abc123"
  }
}

Errors

invalid_input, unauthorized, trial_allowance_exhausted, forbidden, 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 -X POST "https://api.coldagentai.com/v1/autopilot/runs/$RUN_ID/approve" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY"
JavaScript (fetch)
const id = 'id_8f3a2c1d';
const res = await fetch(`https://api.coldagentai.com/v1/autopilot/runs/${id}/approve`, {
  method: 'POST',
  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/autopilot/runs/{id}/resume

Retries a paused run's unfinished steps, for example after connecting a mailbox or configuring a vendor. Blocked while the kill switch is on.

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

Path parameters

FieldTypeRequiredDescription
idstringyes1 to 100 characters

Response

FieldTypeRequiredDescription
idstringyesNo further constraints.
status"draft" or "estimating" or "awaiting_approval" or "approved" or "running" or "paused" or "completed" or "cancelled" or "failed"yesNo further constraints.
website_urlstringyesNo further constraints.
budget_creditsintegeryesNo further constraints.
reply_mode"draft" or "auto"yesNo further constraints.
starter_kitbooleanyesNo further constraints.
timezonestringyesNo further constraints.
mailbox_idsarray of stringyesNo further constraints.
icpobject or nullyesThe ideal customer profile the agent derived from the website.
planobject or nullyesWhat approval covers: who (ICP, audience size, target prospects), what (draft campaign, sequence, steps, reply mode, domain order) and cost (credits and cents), plus blocked steps that cannot run yet and why.
campaign_idstring or nullyesThe DRAFT campaign. Nothing sends before approval.
stepsarray of objectyesEach step with its status (pending, done, blocked, failed) and, when blocked, who or what blocks it.
pause_reasonstring or nullyesNo further constraints.
errorstring or nullyesNo further constraints.
created_atstringyesNo further constraints.
updated_atstringyesNo further constraints.
completed_atstring or nullyesNo further constraints.
approvalobject or nullyesNo further constraints.
approval.idstringyesNo further constraints.
approval.approver_kind"person" or "agent"yesNo further constraints.
approval.approver_refstring or nullyesNo further constraints.
approval.cost_creditsintegeryesNo further constraints.
approval.approved_atstringyesNo further constraints.
Response example, HTTP 200
{
  "id": "id_8f3a2c1d",
  "status": "draft",
  "website_url": "abc123",
  "budget_credits": 1,
  "reply_mode": "draft",
  "starter_kit": true,
  "timezone": "America/New_York",
  "mailbox_ids": [
    "abc123"
  ],
  "icp": {
    "example_key": {}
  },
  "plan": {
    "example_key": {}
  },
  "campaign_id": "id_8f3a2c1d",
  "steps": [
    {
      "example_key": {}
    }
  ],
  "pause_reason": "abc123",
  "error": "abc123",
  "created_at": "abc123",
  "updated_at": "abc123",
  "completed_at": "abc123",
  "approval": {
    "id": "id_8f3a2c1d",
    "approver_kind": "person",
    "approver_ref": "abc123",
    "cost_credits": 1,
    "approved_at": "abc123"
  }
}

Errors

invalid_input, unauthorized, forbidden, 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 -X POST "https://api.coldagentai.com/v1/autopilot/runs/$RUN_ID/resume" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY"
JavaScript (fetch)
const id = 'id_8f3a2c1d';
const res = await fetch(`https://api.coldagentai.com/v1/autopilot/runs/${id}/resume`, {
  method: 'POST',
  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/autopilot/runs/{id}/cancel

Cancels a run that has not finished and pauses its campaign if it had started. A finished run cannot be cancelled.

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

Path parameters

FieldTypeRequiredDescription
idstringyes1 to 100 characters

Response

FieldTypeRequiredDescription
idstringyesNo further constraints.
status"draft" or "estimating" or "awaiting_approval" or "approved" or "running" or "paused" or "completed" or "cancelled" or "failed"yesNo further constraints.
website_urlstringyesNo further constraints.
budget_creditsintegeryesNo further constraints.
reply_mode"draft" or "auto"yesNo further constraints.
starter_kitbooleanyesNo further constraints.
timezonestringyesNo further constraints.
mailbox_idsarray of stringyesNo further constraints.
icpobject or nullyesThe ideal customer profile the agent derived from the website.
planobject or nullyesWhat approval covers: who (ICP, audience size, target prospects), what (draft campaign, sequence, steps, reply mode, domain order) and cost (credits and cents), plus blocked steps that cannot run yet and why.
campaign_idstring or nullyesThe DRAFT campaign. Nothing sends before approval.
stepsarray of objectyesEach step with its status (pending, done, blocked, failed) and, when blocked, who or what blocks it.
pause_reasonstring or nullyesNo further constraints.
errorstring or nullyesNo further constraints.
created_atstringyesNo further constraints.
updated_atstringyesNo further constraints.
completed_atstring or nullyesNo further constraints.
approvalobject or nullyesNo further constraints.
approval.idstringyesNo further constraints.
approval.approver_kind"person" or "agent"yesNo further constraints.
approval.approver_refstring or nullyesNo further constraints.
approval.cost_creditsintegeryesNo further constraints.
approval.approved_atstringyesNo further constraints.
Response example, HTTP 200
{
  "id": "id_8f3a2c1d",
  "status": "draft",
  "website_url": "abc123",
  "budget_credits": 1,
  "reply_mode": "draft",
  "starter_kit": true,
  "timezone": "America/New_York",
  "mailbox_ids": [
    "abc123"
  ],
  "icp": {
    "example_key": {}
  },
  "plan": {
    "example_key": {}
  },
  "campaign_id": "id_8f3a2c1d",
  "steps": [
    {
      "example_key": {}
    }
  ],
  "pause_reason": "abc123",
  "error": "abc123",
  "created_at": "abc123",
  "updated_at": "abc123",
  "completed_at": "abc123",
  "approval": {
    "id": "id_8f3a2c1d",
    "approver_kind": "person",
    "approver_ref": "abc123",
    "cost_credits": 1,
    "approved_at": "abc123"
  }
}

Errors

invalid_input, unauthorized, forbidden, 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 -X POST "https://api.coldagentai.com/v1/autopilot/runs/$RUN_ID/cancel" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY"
JavaScript (fetch)
const id = 'id_8f3a2c1d';
const res = await fetch(`https://api.coldagentai.com/v1/autopilot/runs/${id}/cancel`, {
  method: 'POST',
  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/autopilot/kill-switch

Whether this account's kill switch is on. While it is on, sending, top-ups, reply drafting and autopilot spending all stop.

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

Response

FieldTypeRequiredDescription
killedbooleanyesNo further constraints.
reasonstring or nullyesNo further constraints.
updated_atstring or nullyesNo further constraints.
Response example, HTTP 200
{
  "killed": true,
  "reason": "abc123",
  "updated_at": "abc123"
}

Errors

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/autopilot/kill-switch" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY"
JavaScript (fetch)
const res = await fetch(`https://api.coldagentai.com/v1/autopilot/kill-switch`, {
  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/autopilot/kill-switch

Turning it on pauses the account's running autopilot runs and stops sending, top-ups, reply drafting and autopilot spending at once. Turning it off does not resume paused runs; resume each with POST /v1/autopilot/runs/{id}/resume.

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

Request body

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

FieldTypeRequiredDescription
killedbooleanyesNo further constraints.
reasonstringno0 to 300 characters.
Request example
{
  "killed": true
}

Response

FieldTypeRequiredDescription
killedbooleanyesNo further constraints.
reasonstring or nullyesNo further constraints.
updated_atstring or nullyesNo further constraints.
paused_runsintegeryesNo further constraints.
Response example, HTTP 200
{
  "killed": true,
  "reason": "abc123",
  "updated_at": "abc123",
  "paused_runs": 1
}

Errors

invalid_input, unauthorized, forbidden, payload_too_large, 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 -X POST "https://api.coldagentai.com/v1/autopilot/kill-switch" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "killed": true
}'
JavaScript (fetch)
const res = await fetch(`https://api.coldagentai.com/v1/autopilot/kill-switch`, {
  method: 'POST',
  body: JSON.stringify({
    "killed": true
  }),
  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();
Autopilot