{
  "info": {
    "name": "ColdAgentAI API",
    "description": "Every ColdAgentAI API operation, generated from the OpenAPI document. Set the apiKey variable to your key. Documentation: https://coldagentai.com/docs.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.coldagentai.com"
    },
    {
      "key": "apiKey",
      "value": ""
    }
  ],
  "item": [
    {
      "name": "Accounts",
      "description": "Read the account with its plan, credit wallets and usage, and create or revoke API keys.",
      "item": [
        {
          "name": "GET /v1/account/export",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/account/export",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "account",
                "export"
              ]
            },
            "description": "Every row the account has: profile, keys (by prefix), credit ledger, invoices and payments, domains, mailboxes, campaigns, leads, replies and the rest. Secrets (key hashes, tokens, sealed mailbox credentials) are left out and named under redacted_columns. Three requests per account every ten minutes."
          }
        },
        {
          "name": "GET /v1/account",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/account",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "account"
              ]
            },
            "description": "Returns the account, its plan and subscription, both credit wallets (plan credits and never-expiring top-up credits), the API keys with their scopes (never the key itself) and usage against the plan caps."
          }
        },
        {
          "name": "GET /v1/usage",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/usage",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "usage"
              ]
            },
            "description": "Emails sent, active contacts and IMAP mailboxes against the plan caps, for the subscription period (or the UTC calendar month without a subscription), plus the credit wallets."
          }
        },
        {
          "name": "POST /v1/account/keys",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/account/keys",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "account",
                "keys"
              ]
            },
            "description": "Creates a key for this account with the chosen scope (read or write; read by default). The secret is in the response once and cannot be shown again. A key can only be created with a write key.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Example\",\n  \"scope\": \"read\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "DELETE /v1/account/keys/{id}",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/account/keys/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "account",
                "keys",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Revokes one of this account's keys immediately. A revoked key is rejected with 401 from then on."
          }
        }
      ]
    },
    {
      "name": "Compliance",
      "description": "The postal address and sender identity every campaign email carries, and the public unsubscribe routes a recipient reaches from a message.",
      "item": [
        {
          "name": "GET /v1/account/compliance",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/account/compliance",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "account",
                "compliance"
              ]
            },
            "description": "Returns the postal address and sender identity printed in the footer of every campaign email."
          }
        },
        {
          "name": "PUT /v1/account/compliance",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/account/compliance",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "account",
                "compliance"
              ]
            },
            "description": "Sets the physical postal address that CAN-SPAM requires in every commercial email, and optionally the sender identity shown with it. Send either or both; a part you omit stays as it is. A campaign cannot start until the postal address is set.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"postal_address\": {\n    \"line1\": \"abc123\",\n    \"city\": \"abc123\",\n    \"country\": \"US\"\n  },\n  \"sender\": {\n    \"company_name\": \"Example\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "GET /unsubscribe/{token}",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/unsubscribe/:token",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "unsubscribe",
                ":token"
              ],
              "variable": [
                {
                  "key": "token",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "A page that asks the recipient to confirm unsubscribing. It changes nothing by itself.",
            "auth": {
              "type": "noauth"
            }
          }
        },
        {
          "name": "POST /unsubscribe/{token}",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/unsubscribe/:token",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "unsubscribe",
                ":token"
              ],
              "variable": [
                {
                  "key": "token",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Unsubscribes the recipient the token was issued for: the address is suppressed for the sender account and the rest of its sequences are cancelled. Accepts the `List-Unsubscribe=One-Click` form body that mail clients send, or the confirmation form. Idempotent. A token that was altered or does not verify answers 400 and changes nothing.",
            "auth": {
              "type": "noauth"
            }
          }
        }
      ]
    },
    {
      "name": "Autopilot",
      "description": "Create a run that writes a campaign from a website, read it, approve, resume or cancel it, and read or flip the kill switch.",
      "item": [
        {
          "name": "POST /v1/autopilot/runs",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/autopilot/runs",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "autopilot",
                "runs"
              ]
            },
            "description": "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.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"website_url\": \"abc123\",\n  \"budget_credits\": 2\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "GET /v1/autopilot/runs",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/autopilot/runs",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "autopilot",
                "runs"
              ]
            },
            "description": "This account's runs, oldest first, one page at a time. Filter by status."
          }
        },
        {
          "name": "GET /v1/autopilot/runs/{id}",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/autopilot/runs/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "autopilot",
                "runs",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "The run with its plan (who, what, cost, blocked steps), step states and approval record, if any."
          }
        },
        {
          "name": "POST /v1/autopilot/runs/{id}/approve",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/autopilot/runs/:id/approve",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "autopilot",
                "runs",
                ":id",
                "approve"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "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."
          }
        },
        {
          "name": "POST /v1/autopilot/runs/{id}/resume",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/autopilot/runs/:id/resume",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "autopilot",
                "runs",
                ":id",
                "resume"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Retries a paused run's unfinished steps, for example after connecting a mailbox or configuring a vendor. Blocked while the kill switch is on."
          }
        },
        {
          "name": "POST /v1/autopilot/runs/{id}/cancel",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/autopilot/runs/:id/cancel",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "autopilot",
                "runs",
                ":id",
                "cancel"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Cancels a run that has not finished and pauses its campaign if it had started. A finished run cannot be cancelled."
          }
        },
        {
          "name": "GET /v1/autopilot/kill-switch",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/autopilot/kill-switch",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "autopilot",
                "kill-switch"
              ]
            },
            "description": "Whether this account's kill switch is on. While it is on, sending, top-ups, reply drafting and autopilot spending all stop."
          }
        },
        {
          "name": "POST /v1/autopilot/kill-switch",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/autopilot/kill-switch",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "autopilot",
                "kill-switch"
              ]
            },
            "description": "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.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"killed\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Blocklist",
      "description": "The do-not-contact list: addresses and domains that are never emailed.",
      "item": [
        {
          "name": "GET /v1/blocklist",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/blocklist",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "blocklist"
              ]
            },
            "description": "Suppressed addresses and domains for this account, oldest first. A domain entry also covers its subdomains. Nothing on this list is ever mailed."
          }
        },
        {
          "name": "POST /v1/blocklist",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/blocklist",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "blocklist"
              ]
            },
            "description": "Suppresses an email address or a whole domain (kind is inferred from the value). Idempotent: adding a value that is already listed returns the existing entry with created false. Entries that record a recipient opting out can never be removed.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"value\": \"abc123\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "DELETE /v1/blocklist/{id}",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/blocklist/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "blocklist",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Removes a manual or imported entry. Entries recording an unsubscribe, complaint or opt-out request are protected and answer 403."
          }
        }
      ]
    },
    {
      "name": "Campaigns",
      "description": "Create, schedule, change, start and pause campaigns, replace the sequence, preview a step for a real lead and read analytics. Leads are on the Leads page.",
      "item": [
        {
          "name": "GET /v1/campaigns",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/campaigns",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "campaigns"
              ]
            },
            "description": "Campaigns in this account, oldest first, one page at a time. Pass next_cursor as cursor for the next page."
          }
        },
        {
          "name": "POST /v1/campaigns",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/campaigns",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "campaigns"
              ]
            },
            "description": "Creates a draft campaign with its schedule (IANA time zone, sending days, daily window), optional daily limit, stop-on-reply (default on) and the mailboxes it rotates across. Add the sequence and leads, then start it.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Example\",\n  \"schedule\": {\n    \"timezone\": \"America/New_York\",\n    \"sending_days\": [\n      \"mon\"\n    ],\n    \"start_hour\": 1,\n    \"end_hour\": 1\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "GET /v1/campaigns/{id}",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/campaigns/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "campaigns",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "One campaign with its schedule, limits, status and mailbox rotation."
          }
        },
        {
          "name": "PATCH /v1/campaigns/{id}",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/campaigns/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "campaigns",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Changes the name, schedule, daily limit, stop-on-reply or mailbox rotation. Send only the fields to change; mailbox_ids replaces the whole rotation set. Takes effect on the next send cycle, also for an active campaign.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Example\",\n  \"schedule\": {\n    \"timezone\": \"America/New_York\",\n    \"sending_days\": [\n      \"mon\"\n    ],\n    \"start_hour\": 1,\n    \"end_hour\": 1\n  },\n  \"daily_limit\": 1\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "DELETE /v1/campaigns/{id}",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/campaigns/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "campaigns",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Deletes a campaign that has never sent anything, with its steps and lead enrollments. A campaign with send history, or an active one, is refused: pause it instead."
          }
        },
        {
          "name": "GET /v1/campaigns/{id}/sequence",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/campaigns/:id/sequence",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "campaigns",
                ":id",
                "sequence"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "The campaign steps in order, each with its wait in days, A/B subject variants and body."
          }
        },
        {
          "name": "PUT /v1/campaigns/{id}/sequence",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/campaigns/:id/sequence",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "campaigns",
                ":id",
                "sequence"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Replaces the whole sequence atomically. Each step has wait_days after the previous step, 1 to 26 subject variants (A/B, one variant per lead chosen deterministically), and a body. Merge fields look like {{first_name|there}} (the text after | is the fallback; a field with no value and no fallback fails that send). Spintax like {Hi|Hello} is expanded per lead and validated here.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"steps\": [\n    {\n      \"wait_days\": 1,\n      \"subjects\": [\n        \"Quick question about your onboarding\"\n      ],\n      \"body\": \"abc123\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "GET /v1/campaigns/{id}/render-check",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/campaigns/:id/render-check",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "campaigns",
                ":id",
                "render-check"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Renders every email still to be sent, for every lead that will be mailed, exactly as the send cycle will (same subject variant per lead, same spintax, same merge rules), and reports how many render and, for each lead that would fail, the step, the subject or body and the merge field with no value and no fallback. Leads that will never be mailed (suppressed, verified invalid, bounced, unsubscribed, already replied) are left out. Sends nothing and changes nothing. POST /v1/campaigns/{id}/start runs the same check and refuses while any email fails."
          }
        },
        {
          "name": "POST /v1/campaigns/{id}/start",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/campaigns/:id/start",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "campaigns",
                ":id",
                "start"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Makes the campaign active so the send cycle mails its leads inside the schedule. Refused until the account has a postal address, the campaign has at least one connected mailbox and at least one step, and the kill switch is off. It also renders every email first (see GET /v1/campaigns/{id}/render-check) and is refused while any lead has an email that would fail, for example a merge field with no value and no fallback; the message names the leads and fields. Send skip_failing_leads: true to start anyway: those leads are skipped for this campaign (their remaining steps are cancelled and never sent, even if their fields are fixed later) and every other lead is mailed. Nothing is sent by this call itself; the send cycle does the sending. Starting an active campaign changes nothing and skips nobody; the check applies when starting a draft or resuming a paused campaign.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"skip_failing_leads\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "POST /v1/campaigns/{id}/pause",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/campaigns/:id/pause",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "campaigns",
                ":id",
                "pause"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Stops further sends for the campaign at the next send cycle. Leads keep their place in the sequence; start it again to continue. Pausing a paused campaign changes nothing."
          }
        },
        {
          "name": "POST /v1/campaigns/{id}/preview",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/campaigns/:id/preview",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "campaigns",
                ":id",
                "preview"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Renders one step exactly as it would be sent to one of your leads: merge fields filled, spintax expanded, subject variant chosen, footer added. Sends nothing and changes nothing. A merge field with no value and no fallback is reported as invalid_input, as it would fail the real send.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"lead_id\": \"id_8f3a2c1d\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "GET /v1/campaigns/{id}/analytics",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/campaigns/:id/analytics",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "campaigns",
                ":id",
                "analytics"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Sent, replied, positive replies, bounces and unsubscribes for the campaign, counted per distinct lead from the send log, plus a per-step, per-variant readout for A/B subjects. Rates are null until something has been sent."
          }
        }
      ]
    },
    {
      "name": "Capabilities",
      "description": "Read what the server can do and, for each capability that cannot run, the blocker and the reason.",
      "item": [
        {
          "name": "GET /v1/capabilities",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/capabilities",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "capabilities"
              ]
            },
            "description": "Lists every capability slot (mailbox transports, domain registrars, mailbox provisioners, email verifiers, contact data, blocklists, seed panels, competitor import, plus the platform language model and billing) with each configured adapter, whether it is available and, when it is not, the blocker and the reason. Agents should read this before choosing a flow. Nothing blocked is ever simulated."
          }
        }
      ]
    },
    {
      "name": "Credits",
      "description": "Read the credit wallets that verification, prospect sourcing and autopilot approval spend from.",
      "item": [
        {
          "name": "GET /v1/credits",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/credits",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "credits"
              ]
            },
            "description": "Returns the plan wallet (granted each billing month, expires unspent at the month end, spent first) and the top-up wallet (bought in packs, never expires), plus the pack prices."
          }
        }
      ]
    },
    {
      "name": "Domains",
      "description": "Search sending domains, order a domain, order done-for-you mailboxes and read orders.",
      "item": [
        {
          "name": "GET /v1/domains/search",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/domains/search?name=",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "domains",
                "search"
              ],
              "query": [
                {
                  "key": "name",
                  "value": ""
                }
              ]
            },
            "description": "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."
          }
        },
        {
          "name": "POST /v1/domains/orders",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/domains/orders",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "domains",
                "orders"
              ]
            },
            "description": "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.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"domain\": \"example.com\",\n  \"confirmed\": true,\n  \"max_price_cents\": 1\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "POST /v1/mailbox-orders",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/mailbox-orders",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "mailbox-orders"
              ]
            },
            "description": "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.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"domain\": \"example.com\",\n  \"mailboxes\": [\n    {\n      \"local_part\": \"abc123\",\n      \"first_name\": \"Maya\",\n      \"last_name\": \"Chen\"\n    }\n  ],\n  \"confirmed\": true,\n  \"max_price_cents\": 1\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "GET /v1/orders",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/orders",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "orders"
              ]
            },
            "description": "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."
          }
        },
        {
          "name": "GET /v1/orders/{id}",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/orders/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "orders",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "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."
          }
        }
      ]
    },
    {
      "name": "Leads",
      "description": "Add leads to a campaign by JSON or CSV, list them and change a lead status.",
      "item": [
        {
          "name": "POST /v1/campaigns/{id}/leads",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/campaigns/:id/leads",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "campaigns",
                ":id",
                "leads"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Accepts at most 1,000 leads per call, deduplicated by email (case-insensitive) against the request and the account. A row that cannot be added is reported with the reason and does not fail the others: an invalid address, an address on the suppression list, or a new address beyond the plan active-contact cap. An address already in the account is updated with the fields given and enrolled in this campaign.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"leads\": [\n    {\n      \"email\": \"maya@example.com\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "GET /v1/campaigns/{id}/leads",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/campaigns/:id/leads",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "campaigns",
                ":id",
                "leads"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Leads enrolled in the campaign, oldest first, optionally filtered by status. Pass next_cursor as cursor for the next page."
          }
        },
        {
          "name": "POST /v1/campaigns/{id}/leads/import",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "text/plain"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/campaigns/:id/leads/import",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "campaigns",
                ":id",
                "leads",
                "import"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Send the CSV text as the request body (Content-Type text/plain, at most 5 MB and 1,000 data rows). The first row is the header; the email column is found by name (email, work email, and similar). First name, last name, company and title are mapped from their usual headers, and every other column becomes a custom field usable as a merge field. layout=smartlead reads a Smartlead export and skips its activity columns. Duplicate headers are made unique, a byte order mark and CRLF line ends are handled, and cells starting with = + - @ are kept as text and counted in flagged_cells. Suppression, plan cap and per-row reporting work as for the JSON endpoint.",
            "body": {
              "mode": "raw",
              "raw": "abc123",
              "options": {
                "raw": {
                  "language": "text"
                }
              }
            }
          }
        },
        {
          "name": "PATCH /v1/leads/{id}",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/leads/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "leads",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Sets the lead status (for example interested or not_interested). Setting unsubscribed honors an opt-out: the address is suppressed and its pending sends are cancelled. A lead that opted out cannot be moved to another status.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"status\": \"new\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Mailboxes",
      "description": "Connect a Gmail, Microsoft or IMAP and SMTP mailbox, read and change it, run a check and disconnect it.",
      "item": [
        {
          "name": "GET /v1/mailboxes",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/mailboxes",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "mailboxes"
              ]
            },
            "description": "The mailboxes in this account, oldest first, one page at a time, with status, daily limit, ramp setting and health. Pass next_cursor as cursor for the next page. Credentials are never returned."
          }
        },
        {
          "name": "POST /v1/mailboxes",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/mailboxes",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "mailboxes"
              ]
            },
            "description": "Connects any mailbox that offers IMAP and SMTP. The connection is verified against the mail server first and nothing is stored if it fails. The credentials are encrypted at rest and never returned. Counts toward the plan IMAP mailbox cap. Gmail and Microsoft 365 use their own connect endpoints.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"address\": \"abc123\",\n  \"imap\": {\n    \"host\": \"abc123\",\n    \"port\": 1,\n    \"secure\": true,\n    \"user\": \"abc123\",\n    \"pass\": \"abc123\"\n  },\n  \"smtp\": {\n    \"host\": \"abc123\",\n    \"port\": 1,\n    \"secure\": true,\n    \"user\": \"abc123\",\n    \"pass\": \"abc123\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "POST /v1/mailboxes/gmail/connect",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/mailboxes/gmail/connect",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "mailboxes",
                "gmail",
                "connect"
              ]
            },
            "description": "Returns the Gmail consent URL for the mailbox owner to open and approve. After approval the provider redirects to a page on this API that shows a code and a state: the owner gives both back to you, and you finish with POST /v1/mailboxes/gmail/complete using this account's key within 10 minutes. Gmail connects up to 100 distinct Google accounts, counted across all Meralume Labs products; beyond that this answers 503. Connect over IMAP/SMTP instead.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"login_hint\": \"abc123\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "GET /v1/mailboxes/gmail/callback",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/mailboxes/gmail/callback",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "mailboxes",
                "gmail",
                "callback"
              ]
            },
            "description": "Where Gmail sends the browser after the person approves. Not called by API clients. Shows the authorization code and the state for the person to give to whoever asked them to connect the mailbox, and stores nothing: the mailbox is stored only when that code and state reach POST /v1/mailboxes/gmail/complete with the key of the account that started the connection.",
            "auth": {
              "type": "noauth"
            }
          }
        },
        {
          "name": "POST /v1/mailboxes/gmail/complete",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/mailboxes/gmail/complete",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "mailboxes",
                "gmail",
                "complete"
              ]
            },
            "description": "Takes the code and state the mailbox owner got on the approval page, exchanges the code and stores the mailbox in this account. The state must come from a connect request made with this account's key, be used once, and be under 10 minutes old; any other state answers 400 and exchanges nothing. Connecting an address that is already connected replaces its stored credentials.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"code\": \"abc123\",\n  \"state\": \"abc123\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "POST /v1/mailboxes/microsoft/connect",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/mailboxes/microsoft/connect",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "mailboxes",
                "microsoft",
                "connect"
              ]
            },
            "description": "Returns the Microsoft 365 consent URL for the mailbox owner to open and approve. After approval the provider redirects to a page on this API that shows a code and a state: the owner gives both back to you, and you finish with POST /v1/mailboxes/microsoft/complete using this account's key within 10 minutes. Needs a Microsoft Entra app registration on the server; without one this answers 503 naming credentials.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"login_hint\": \"abc123\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "GET /v1/mailboxes/microsoft/callback",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/mailboxes/microsoft/callback",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "mailboxes",
                "microsoft",
                "callback"
              ]
            },
            "description": "Where Microsoft 365 sends the browser after the person approves. Not called by API clients. Shows the authorization code and the state for the person to give to whoever asked them to connect the mailbox, and stores nothing: the mailbox is stored only when that code and state reach POST /v1/mailboxes/microsoft/complete with the key of the account that started the connection.",
            "auth": {
              "type": "noauth"
            }
          }
        },
        {
          "name": "POST /v1/mailboxes/microsoft/complete",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/mailboxes/microsoft/complete",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "mailboxes",
                "microsoft",
                "complete"
              ]
            },
            "description": "Takes the code and state the mailbox owner got on the approval page, exchanges the code and stores the mailbox in this account. The state must come from a connect request made with this account's key, be used once, and be under 10 minutes old; any other state answers 400 and exchanges nothing. Connecting an address that is already connected replaces its stored credentials.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"code\": \"abc123\",\n  \"state\": \"abc123\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "GET /v1/mailboxes/{id}",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/mailboxes/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "mailboxes",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "One mailbox with its status, limits and health."
          }
        },
        {
          "name": "PATCH /v1/mailboxes/{id}",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/mailboxes/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "mailboxes",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Changes the display name, the daily send limit (0 to 2000) or the volume ramp. Turning the ramp on starts it now: 5 emails a day in week 1, 5 more each week, holding at 50 a day. The ramp only limits our own sending and is off by default.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"display_name\": \"Example\",\n  \"daily_limit\": 1,\n  \"ramp_enabled\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "DELETE /v1/mailboxes/{id}",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/mailboxes/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "mailboxes",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Removes the mailbox and its stored credentials. Campaigns that rotated across it stop using it."
          }
        },
        {
          "name": "POST /v1/mailboxes/{id}/check",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/mailboxes/:id/check",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "mailboxes",
                ":id",
                "check"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Proves the stored credentials still work (without sending anything) and checks SPF, DKIM and DMARC for the mailbox domain. DKIM selectors cannot be listed in DNS, so common ones are tried unless you pass your own. A passing check on a disconnected mailbox reconnects it.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"dkim_selectors\": [\n    \"abc123\"\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Prospects",
      "description": "Source prospects that match an ideal customer profile, and save or list profiles.",
      "item": [
        {
          "name": "POST /v1/prospects/source",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/prospects/source",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "prospects",
                "source"
              ]
            },
            "description": "Searches the licensed contact-data provider for an ideal customer profile (free) and reveals up to 500 contacts (default 50) as leads, at 1 credit per contact delivered. People on your suppression list and contacts you already hold are dropped and not charged; a partial answer is charged only for what was delivered. Give an `icp` or the id of a saved one. Returns 503 provider_unavailable (blocker vendor_contract) with zero credits charged when no licensed provider is configured. Send an Idempotency-Key header to make a retry free. Blocked while the kill switch is on.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"icp\": {\n    \"titles\": [\n      \"abc123\"\n    ],\n    \"seniorities\": [\n      \"abc123\"\n    ],\n    \"industries\": [\n      \"abc123\"\n    ]\n  },\n  \"icp_id\": \"id_8f3a2c1d\",\n  \"count\": 50\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "POST /v1/icps",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/icps",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "icps"
              ]
            },
            "description": "Stores a named profile (titles, seniorities, industries, locations, company size, keywords) to reuse with POST /v1/prospects/source. Free.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Example\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "GET /v1/icps",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/icps",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "icps"
              ]
            },
            "description": "This account's saved profiles, oldest first, one page at a time."
          }
        }
      ]
    },
    {
      "name": "Replies",
      "description": "Read replies from every mailbox in one list, mark a category, write an answer with AI and send it.",
      "item": [
        {
          "name": "GET /v1/replies",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/replies",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "replies"
              ]
            },
            "description": "Replies to your campaign emails across every mailbox, newest first, optionally filtered by category or campaign. Categories are assigned by fixed rules (out of office, unsubscribe requests and bounces) and by explicit marks; meeting_booked is only ever set by an explicit mark."
          }
        },
        {
          "name": "PATCH /v1/replies/{id}/category",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/replies/:id/category",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "replies",
                ":id",
                "category"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Sets the category of a reply by an explicit mark, which is the only way to set meeting_booked. The lead status follows (interested, not_interested, meeting_booked, replied). Marking a reply unsubscribe opts the sender out and cancels their remaining sends.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"category\": \"interested\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "POST /v1/replies/{id}/draft",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/replies/:id/draft",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "replies",
                ":id",
                "draft"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Asks the language model for a short suggested answer. Nothing is sent and nothing is stored: review it, then send with POST /v1/replies/{id}/send. Refused for unsubscribe requests, bounces and out-of-office replies, for an email whose formatting could hide text from its reader, and while the account kill switch is on. 503 when no language model is configured on this server. Costs no credit; limited to 200 drafts per account per UTC day.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"instruction\": \"abc123\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "POST /v1/replies/{id}/send",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/replies/:id/send",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "replies",
                ":id",
                "send"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Sends your answer to the person who replied, from the mailbox that received the reply and in the same thread, with the compliance footer and unsubscribe headers. Refused while the kill switch is on, for unsubscribe requests and bounces, for anyone on the suppression list or who opted out, and until the account has a postal address.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"body\": \"abc123\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Verification",
      "description": "Verify a batch of email addresses and read an earlier batch.",
      "item": [
        {
          "name": "POST /v1/email-verification",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/email-verification",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "email-verification"
              ]
            },
            "description": "Verifies up to 1,000 addresses. Each is checked by one provider, and by a second when the first answer is not a clear valid or invalid. Billed per provider check through the credit wallet (plan credits first). A recent result is reused for free. During the trial at most 100 addresses are verified. Send an Idempotency-Key header to make a retry free; the same key with different addresses is refused.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"emails\": [\n    \"maya@example.com\"\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "GET /v1/email-verification/{id}",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/email-verification/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "email-verification",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Returns the stored outcome of a batch created by this account. It never calls a provider or charges credits."
          }
        }
      ]
    },
    {
      "name": "Webhook endpoints",
      "description": "Register an HTTPS endpoint and its events, change or delete it, send a signed test event and read its delivery log. The event names and the signature rules are on the Webhooks page.",
      "item": [
        {
          "name": "POST /v1/webhooks",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/webhooks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhooks"
              ]
            },
            "description": "Registers an https URL for the events you choose (EmailSent, EmailReply, EmailBounce, LeadCreated, EmailUnsubscribe, CreditBalanceLow, AutopilotRunStatusChanged, DfyOrderCompleted, MailboxDisconnected, CampaignCompleted). The response includes the signing secret once; it cannot be shown again. Every delivery carries X-ColdAgentAI-Timestamp and X-ColdAgentAI-Signature (v1=hex HMAC-SHA256 of \"timestamp.body\"); reject anything more than 5 minutes old. Private, loopback and metadata addresses are refused, at registration and again at every delivery. At most 20 endpoints per account.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"url\": \"abc123\",\n  \"events\": [\n    \"EmailSent\"\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "GET /v1/webhooks",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/webhooks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhooks"
              ]
            },
            "description": "This account's endpoints, oldest first. The signing secret is never returned."
          }
        },
        {
          "name": "PATCH /v1/webhooks/{id}",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/webhooks/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhooks",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Changes the URL, the events, the description or whether it is enabled. Endpoints created by an import arrive disabled; enable them here.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"url\": \"abc123\",\n  \"events\": [\n    \"EmailSent\"\n  ],\n  \"description\": \"abc123\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "DELETE /v1/webhooks/{id}",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/webhooks/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhooks",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Deletes the endpoint and its delivery log. Deliveries still pending are dropped."
          }
        },
        {
          "name": "POST /v1/webhooks/{id}/test",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/webhooks/:id/test",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhooks",
                ":id",
                "test"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Delivers a real, signed `webhook.test` event to the endpoint now, through the same delivery code as live events, and reports what happened. The attempt is logged; if it fails it follows the normal retry schedule."
          }
        },
        {
          "name": "GET /v1/webhooks/{id}/deliveries",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/webhooks/:id/deliveries",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhooks",
                ":id",
                "deliveries"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Deliveries to this endpoint, oldest first, with attempts, the last HTTP status and the last error. Filter by status."
          }
        }
      ]
    },
    {
      "name": "Billing",
      "description": "Start a Stripe Checkout, open the billing portal and read billing state. Stripe calls the webhook route with signed events; no request body sets a plan, a price or a credit count.",
      "item": [
        {
          "name": "POST /v1/billing/checkout",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/billing/checkout",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "billing",
                "checkout"
              ]
            },
            "description": "Creates a Stripe Checkout Session and returns its url. A plan checkout bills monthly or annually (annual is 10 months for 12) and, while the account is eligible (it never held a plan and its trial was not used), starts with a 7-day trial that costs $1 at signup (a one-time line beside the plan, cards only) and charges the plan nothing until the trial ends (it grants 12 credits in place of plan credits, and they end with the trial); a credit pack is one of the sizes 1000, 2000, 3000, 4000, 5000, 10000, 20000, 50000, 100000 credits and never expires. A first paid month can be refunded within 7 days; a person decides each refund. Credits and the plan arrive only after Stripe confirms payment. Returns 409 conflict when the account already has a subscription, and 503 provider_unavailable with the fix named when Stripe or the return site is not configured.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"kind\": \"plan\",\n  \"plan_id\": \"starter\",\n  \"success_url\": \"https://example.com/welcome\",\n  \"cancel_url\": \"https://example.com/pricing\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "POST /v1/billing/start-plan",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/billing/start-plan",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "billing",
                "start-plan"
              ]
            },
            "description": "The customer's own click. Ends the running trial now, so the plan's first invoice is raised and charged at once and the plan's full credits and caps start. Nothing else ever starts the plan early: a used-up trial allowance only pauses credit spending (trial_allowance_exhausted). Answers 409 when the account has no running trial. A read key cannot do this."
          }
        },
        {
          "name": "POST /v1/billing/portal",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/billing/portal",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "billing",
                "portal"
              ]
            },
            "description": "Returns a Stripe customer portal url for this account, where the customer changes the card, reads invoices and cancels. A cancel ends the plan at the end of the period already paid for, with no reason asked. Send `flow: \"cancel\"` to open straight on the cancel step for the running plan (one click to confirm); 404 when there is no running plan to cancel. The account needs a Stripe customer, which a checkout creates.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"return_url\": \"https://example.com/path\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "GET /v1/billing",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/billing",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "billing"
              ]
            },
            "description": "The account's plan and subscription state, its recent invoices and the offers on sale, from the local copy of Stripe's state. Never calls Stripe."
          }
        },
        {
          "name": "POST /v1/billing/webhook",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/billing/webhook",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "billing",
                "webhook"
              ]
            },
            "description": "Public endpoint for Stripe. The signature over the exact raw body is verified first (5 minute tolerance); a bad signature answers 400 signature_invalid and writes nothing. A verified event is applied once, in one transaction with its record: a paid subscription invoice grants that period's plan credits, a paid credit pack grants top-up credits, subscription events update the plan, and a dispute is queued for review. A replay answers 200 and changes nothing.",
            "auth": {
              "type": "noauth"
            }
          }
        }
      ]
    },
    {
      "name": "Imports",
      "description": "Bring campaigns and leads in from another sender.",
      "item": [
        {
          "name": "POST /v1/import/instantly",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/import/instantly",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "import",
                "instantly"
              ]
            },
            "description": "Reads your campaigns, leads and blocklist from Instantly with your Instantly API key (used for this request only, never stored) and creates them here: campaigns as DRAFTS with their sequence, leads (people on your suppression list and new leads beyond your plan's contact cap are skipped and counted), and the blocklist as suppression entries. Reads everything first and writes only if every read succeeded, so a vendor error changes nothing. Mailbox passwords cannot be imported: reconnect every mailbox and add it to each campaign. Limits per import: 25 campaigns, 5000 leads, 5000 blocklist entries; anything beyond is listed in `truncated`.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_key\": \"abc123\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "POST /v1/import/smartlead-csv",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "text/plain"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/import/smartlead-csv?campaign_id=",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "import",
                "smartlead-csv"
              ],
              "query": [
                {
                  "key": "campaign_id",
                  "value": ""
                }
              ]
            },
            "description": "Imports a Smartlead (or generic) lead CSV into a campaign you own. Send the CSV text as the request body and name the campaign in `campaign_id`. Handles a byte-order mark, quoted fields, CRLF and duplicate headers; at most 1000 rows. Cells that start with = + - or @ are kept as text and listed in `flagged_cells`. People on your suppression list and new leads beyond your plan's contact cap are skipped and counted. Smartlead has no API import here: export the CSV from Smartlead and send it.",
            "body": {
              "mode": "raw",
              "raw": "abc123",
              "options": {
                "raw": {
                  "language": "text"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Tools",
      "description": "Stateless helpers that need only a read key: the DNS authentication check, the MX lookup, spintax, the subject line lint and email pattern guesses.",
      "item": [
        {
          "name": "GET /v1/tools/dns-auth",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/tools/dns-auth?domain=",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "tools",
                "dns-auth"
              ],
              "query": [
                {
                  "key": "domain",
                  "value": ""
                }
              ]
            },
            "description": "Looks up the domain's SPF, DKIM (the selectors you name, or a list of common ones) and DMARC records and returns parsed records, a verdict for each, and fix text. SPF is checked against the 10 DNS lookup limit and DMARC for a policy tag. With `providers` (comma separated: google, microsoft, zoho, sendgrid, mailgun, amazon_ses, postmark) it also returns the records to publish for those sending services. Free; nothing is sent."
          }
        },
        {
          "name": "GET /v1/tools/mx",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/tools/mx?domain=",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "tools",
                "mx"
              ],
              "query": [
                {
                  "key": "domain",
                  "value": ""
                }
              ]
            },
            "description": "Returns the MX records sorted by priority, the mail provider behind the preferred one and a verdict. A resolver error is `lookup_failed`, never \"no mail server\". Free."
          }
        },
        {
          "name": "POST /v1/tools/spintax",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/tools/spintax",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "tools",
                "spintax"
              ]
            },
            "description": "Checks braces, nesting depth and length of text such as \"Hi {there|friend}\" and counts the variants it can produce. With a `seed` it also returns one expansion; the same seed always gives the same text. Up to 20000 characters. Free.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"text\": \"abc123\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "POST /v1/tools/subject-lint",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/tools/subject-lint",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "tools",
                "subject-lint"
              ]
            },
            "description": "Reports length, shouting, spam-trigger words and fake reply prefixes, with the reason each matters. It never rewrites the subject and promises nothing about placement. Free.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"subject\": \"Quick question about your onboarding\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "GET /v1/tools/email-pattern",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/tools/email-pattern?first_name=&last_name=&domain=",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "tools",
                "email-pattern"
              ],
              "query": [
                {
                  "key": "first_name",
                  "value": ""
                },
                {
                  "key": "last_name",
                  "value": ""
                },
                {
                  "key": "domain",
                  "value": ""
                }
              ]
            },
            "description": "Builds up to 13 candidate addresses (first.last, flast, and so on) from a name and a company domain. They are guesses, never probed against any mail server: verify each with POST /v1/email-verification before sending. Free, limited to 3 uses per account per UTC day; the next day the count resets."
          }
        }
      ]
    },
    {
      "name": "System and MCP",
      "description": "The public system routes, the machine-readable documents, the health check and the MCP endpoint. The MCP tools are described on the MCP server page.",
      "item": [
        {
          "name": "GET /",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/",
              "host": [
                "{{baseUrl}}"
              ],
              "path": []
            },
            "description": "Plain text that points to /llms.txt and /openapi.json.",
            "auth": {
              "type": "noauth"
            }
          }
        },
        {
          "name": "GET /health",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/health",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "health"
              ]
            },
            "description": "Returns {\"status\": \"ok\"} while the server is running. Does not touch any vendor.",
            "auth": {
              "type": "noauth"
            }
          }
        },
        {
          "name": "GET /openapi.json",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/openapi.json",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "openapi.json"
              ]
            },
            "description": "Every endpoint with its schemas, errors and per-operation scope (`x-scope`).",
            "auth": {
              "type": "noauth"
            }
          }
        },
        {
          "name": "GET /llms.txt",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/llms.txt",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "llms.txt"
              ]
            },
            "description": "How to use the API, the pricing status (owner-approved), every endpoint and the capabilities that are unavailable on this server and why.",
            "auth": {
              "type": "noauth"
            }
          }
        },
        {
          "name": "GET /docs/{name}",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/docs/:name",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "docs",
                ":name"
              ],
              "variable": [
                {
                  "key": "name",
                  "value": "",
                  "description": ""
                }
              ]
            },
            "description": "Pages: api, plans, capabilities, errors. Add a .md suffix or send Accept: text/markdown for markdown; browsers get a readable HTML page.",
            "auth": {
              "type": "noauth"
            }
          }
        },
        {
          "name": "POST /v1/mcp",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/mcp",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "mcp"
              ]
            },
            "description": "Streamable HTTP MCP server, stateless, JSON responses. Authenticate with the same Bearer API key. Tools map one to one onto REST endpoints and obey the key's scope: a read key can list and read but any tool that changes state, spends credits or sends email needs a write key. Tools that spend or send say so in their descriptions."
          }
        }
      ]
    }
  ]
}
