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 path | Scope | What it does |
|---|---|---|
POST /v1/autopilot/runs | write | Create an autopilot run |
GET /v1/autopilot/runs | read | List autopilot runs |
GET /v1/autopilot/runs/{id} | read | Read one autopilot run |
POST /v1/autopilot/runs/{id}/approve | write | Approve an autopilot run |
POST /v1/autopilot/runs/{id}/resume | write | Resume a paused autopilot run |
POST /v1/autopilot/runs/{id}/cancel | write | Cancel an autopilot run |
GET /v1/autopilot/kill-switch | read | Read the kill switch |
POST /v1/autopilot/kill-switch | write | Turn 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.
| Field | Type | Required | Description |
|---|---|---|---|
website_url | string | yes | The business website the agent reads (public http or https). 4 to 2048 characters. |
budget_credits | integer | yes | The 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" | no | Default "draft". |
starter_kit | boolean | no | A starter kit run can only be approved by a person in the app, never by an API key. Default false. |
timezone | string | no | IANA time zone for the campaign schedule (default America/New_York). 0 to 64 characters. |
mailbox_ids | array of string | no | Connected mailboxes to send from. 0 to 50 items. |
domain_order | object | no | Also register a sending domain and order mailboxes on it, within the stated price ceiling. |
domain_order.domain | string | yes | A .com or .org domain to register for sending. 3 to 253 characters. |
domain_order.max_price_cents | integer | yes | The most the owner approves paying for the domain, in cents. Registration refuses above it. At least 1. |
domain_order.mailboxes | array of object | yes | 1 to 10 items. |
domain_order.mailboxes[].local_part | string | yes | 1 to 64 characters. |
domain_order.mailboxes[].first_name | string | yes | 1 to 100 characters. |
domain_order.mailboxes[].last_name | string | yes | 1 to 100 characters. |
{
"website_url": "abc123",
"budget_credits": 2
}Response
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | No further constraints. |
status | "draft" or "estimating" or "awaiting_approval" or "approved" or "running" or "paused" or "completed" or "cancelled" or "failed" | yes | No further constraints. |
website_url | string | yes | No further constraints. |
budget_credits | integer | yes | No further constraints. |
reply_mode | "draft" or "auto" | yes | No further constraints. |
starter_kit | boolean | yes | No further constraints. |
timezone | string | yes | No further constraints. |
mailbox_ids | array of string | yes | No further constraints. |
icp | object or null | yes | The ideal customer profile the agent derived from the website. |
plan | object or null | yes | What 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_id | string or null | yes | The DRAFT campaign. Nothing sends before approval. |
steps | array of object | yes | Each step with its status (pending, done, blocked, failed) and, when blocked, who or what blocks it. |
pause_reason | string or null | yes | No further constraints. |
error | string 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. |
approval | object or null | yes | No further constraints. |
approval.id | string | yes | No further constraints. |
approval.approver_kind | "person" or "agent" | yes | No further constraints. |
approval.approver_ref | string or null | yes | No further constraints. |
approval.cost_credits | integer | yes | No further constraints. |
approval.approved_at | string | yes | No further constraints. |
{
"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 -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
}'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
| 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 |
status | "draft" or "estimating" or "awaiting_approval" or "approved" or "running" or "paused" or "completed" or "cancelled" or "failed" | no | No further constraints. |
Response
| Field | Type | Required | Description |
|---|---|---|---|
items | array of object | yes | No further constraints. |
items[].id | string | yes | No further constraints. |
items[].status | "draft" or "estimating" or "awaiting_approval" or "approved" or "running" or "paused" or "completed" or "cancelled" or "failed" | yes | No further constraints. |
items[].website_url | string | yes | No further constraints. |
items[].budget_credits | integer | yes | No further constraints. |
items[].reply_mode | "draft" or "auto" | yes | No further constraints. |
items[].starter_kit | boolean | yes | No further constraints. |
items[].timezone | string | yes | No further constraints. |
items[].mailbox_ids | array of string | yes | No further constraints. |
items[].icp | object or null | yes | The ideal customer profile the agent derived from the website. |
items[].plan | object or null | yes | What 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_id | string or null | yes | The DRAFT campaign. Nothing sends before approval. |
items[].steps | array of object | yes | Each step with its status (pending, done, blocked, failed) and, when blocked, who or what blocks it. |
items[].pause_reason | string or null | yes | No further constraints. |
items[].error | string 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. |
items[].approval | object or null | yes | No further constraints. |
items[].approval.id | string | yes | No further constraints. |
items[].approval.approver_kind | "person" or "agent" | yes | No further constraints. |
items[].approval.approver_ref | string or null | yes | No further constraints. |
items[].approval.cost_credits | integer | yes | No further constraints. |
items[].approval.approved_at | string | yes | No further constraints. |
next_cursor | string or null | yes | No further constraints. |
{
"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 "https://api.coldagentai.com/v1/autopilot/runs" \
-H "Authorization: Bearer $COLDAGENTAI_API_KEY"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
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | 1 to 100 characters |
Response
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | No further constraints. |
status | "draft" or "estimating" or "awaiting_approval" or "approved" or "running" or "paused" or "completed" or "cancelled" or "failed" | yes | No further constraints. |
website_url | string | yes | No further constraints. |
budget_credits | integer | yes | No further constraints. |
reply_mode | "draft" or "auto" | yes | No further constraints. |
starter_kit | boolean | yes | No further constraints. |
timezone | string | yes | No further constraints. |
mailbox_ids | array of string | yes | No further constraints. |
icp | object or null | yes | The ideal customer profile the agent derived from the website. |
plan | object or null | yes | What 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_id | string or null | yes | The DRAFT campaign. Nothing sends before approval. |
steps | array of object | yes | Each step with its status (pending, done, blocked, failed) and, when blocked, who or what blocks it. |
pause_reason | string or null | yes | No further constraints. |
error | string 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. |
approval | object or null | yes | No further constraints. |
approval.id | string | yes | No further constraints. |
approval.approver_kind | "person" or "agent" | yes | No further constraints. |
approval.approver_ref | string or null | yes | No further constraints. |
approval.cost_credits | integer | yes | No further constraints. |
approval.approved_at | string | yes | No further constraints. |
{
"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 "https://api.coldagentai.com/v1/autopilot/runs/$RUN_ID" \
-H "Authorization: Bearer $COLDAGENTAI_API_KEY"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
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | 1 to 100 characters |
Response
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | No further constraints. |
status | "draft" or "estimating" or "awaiting_approval" or "approved" or "running" or "paused" or "completed" or "cancelled" or "failed" | yes | No further constraints. |
website_url | string | yes | No further constraints. |
budget_credits | integer | yes | No further constraints. |
reply_mode | "draft" or "auto" | yes | No further constraints. |
starter_kit | boolean | yes | No further constraints. |
timezone | string | yes | No further constraints. |
mailbox_ids | array of string | yes | No further constraints. |
icp | object or null | yes | The ideal customer profile the agent derived from the website. |
plan | object or null | yes | What 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_id | string or null | yes | The DRAFT campaign. Nothing sends before approval. |
steps | array of object | yes | Each step with its status (pending, done, blocked, failed) and, when blocked, who or what blocks it. |
pause_reason | string or null | yes | No further constraints. |
error | string 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. |
approval | object or null | yes | No further constraints. |
approval.id | string | yes | No further constraints. |
approval.approver_kind | "person" or "agent" | yes | No further constraints. |
approval.approver_ref | string or null | yes | No further constraints. |
approval.cost_credits | integer | yes | No further constraints. |
approval.approved_at | string | yes | No further constraints. |
{
"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 -X POST "https://api.coldagentai.com/v1/autopilot/runs/$RUN_ID/approve" \
-H "Authorization: Bearer $COLDAGENTAI_API_KEY"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
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | 1 to 100 characters |
Response
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | No further constraints. |
status | "draft" or "estimating" or "awaiting_approval" or "approved" or "running" or "paused" or "completed" or "cancelled" or "failed" | yes | No further constraints. |
website_url | string | yes | No further constraints. |
budget_credits | integer | yes | No further constraints. |
reply_mode | "draft" or "auto" | yes | No further constraints. |
starter_kit | boolean | yes | No further constraints. |
timezone | string | yes | No further constraints. |
mailbox_ids | array of string | yes | No further constraints. |
icp | object or null | yes | The ideal customer profile the agent derived from the website. |
plan | object or null | yes | What 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_id | string or null | yes | The DRAFT campaign. Nothing sends before approval. |
steps | array of object | yes | Each step with its status (pending, done, blocked, failed) and, when blocked, who or what blocks it. |
pause_reason | string or null | yes | No further constraints. |
error | string 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. |
approval | object or null | yes | No further constraints. |
approval.id | string | yes | No further constraints. |
approval.approver_kind | "person" or "agent" | yes | No further constraints. |
approval.approver_ref | string or null | yes | No further constraints. |
approval.cost_credits | integer | yes | No further constraints. |
approval.approved_at | string | yes | No further constraints. |
{
"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 -X POST "https://api.coldagentai.com/v1/autopilot/runs/$RUN_ID/resume" \
-H "Authorization: Bearer $COLDAGENTAI_API_KEY"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
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | 1 to 100 characters |
Response
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | No further constraints. |
status | "draft" or "estimating" or "awaiting_approval" or "approved" or "running" or "paused" or "completed" or "cancelled" or "failed" | yes | No further constraints. |
website_url | string | yes | No further constraints. |
budget_credits | integer | yes | No further constraints. |
reply_mode | "draft" or "auto" | yes | No further constraints. |
starter_kit | boolean | yes | No further constraints. |
timezone | string | yes | No further constraints. |
mailbox_ids | array of string | yes | No further constraints. |
icp | object or null | yes | The ideal customer profile the agent derived from the website. |
plan | object or null | yes | What 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_id | string or null | yes | The DRAFT campaign. Nothing sends before approval. |
steps | array of object | yes | Each step with its status (pending, done, blocked, failed) and, when blocked, who or what blocks it. |
pause_reason | string or null | yes | No further constraints. |
error | string 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. |
approval | object or null | yes | No further constraints. |
approval.id | string | yes | No further constraints. |
approval.approver_kind | "person" or "agent" | yes | No further constraints. |
approval.approver_ref | string or null | yes | No further constraints. |
approval.cost_credits | integer | yes | No further constraints. |
approval.approved_at | string | yes | No further constraints. |
{
"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 -X POST "https://api.coldagentai.com/v1/autopilot/runs/$RUN_ID/cancel" \
-H "Authorization: Bearer $COLDAGENTAI_API_KEY"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
| Field | Type | Required | Description |
|---|---|---|---|
killed | boolean | yes | No further constraints. |
reason | string or null | yes | No further constraints. |
updated_at | string or null | yes | No further constraints. |
{
"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 "https://api.coldagentai.com/v1/autopilot/kill-switch" \
-H "Authorization: Bearer $COLDAGENTAI_API_KEY"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.
| Field | Type | Required | Description |
|---|---|---|---|
killed | boolean | yes | No further constraints. |
reason | string | no | 0 to 300 characters. |
{
"killed": true
}Response
| Field | Type | Required | Description |
|---|---|---|---|
killed | boolean | yes | No further constraints. |
reason | string or null | yes | No further constraints. |
updated_at | string or null | yes | No further constraints. |
paused_runs | integer | yes | No further constraints. |
{
"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 -X POST "https://api.coldagentai.com/v1/autopilot/kill-switch" \
-H "Authorization: Bearer $COLDAGENTAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"killed": true
}'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();