{
  "openapi": "3.1.0",
  "info": {
    "title": "Intent Leads API",
    "version": "1.0",
    "description": "The Intent Leads API finds B2B people actively researching the topics you sell into, and exports them with contact details into your own tools.\n\n**Authentication.** Send an API key as a bearer token: `Authorization: Bearer il_live_…`. Standard keys work with everything except billing, team and key management, which need an admin key.\n\n**Organizations and workspaces.** An organization holds the balance, invoices and people; lanes, leads, exports, lists, websites and webhooks live in its workspaces. A workspace key works in its workspace. An organization key manages workspaces, billing and people, and works in any of its workspaces with the header `Intent-Leads-Workspace: <workspace id>`.\n\n**What costs money.** Only `POST /api/v1/exports` with `\"dry_run\": false` spends your [balance](/guides/billing) (and website visitors as they're identified). Quotes, counts, checks, estimates, samples and re-downloads are free.\n\n**Errors.** Every error is JSON: `{\"error\": \"code\", \"message\": \"Plain-English explanation\"}`. Codes are stable; messages may change.\n\n**Conventions.** JSON by default. Dates are `YYYY-MM-DD` and timestamps ISO 8601, all in UTC. Lane codes (`L1`) are case-insensitive."
  },
  "servers": [
    {
      "url": "https://intentleads.si"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Exports",
      "description": "Quote (free) and buy new people from your lanes, then download them."
    },
    {
      "name": "Leads",
      "description": "Pull and re-download the leads you've exported, and list deliveries."
    },
    {
      "name": "Lanes",
      "description": "Create, inspect and tune lanes: keywords plus the companies and roles you want."
    },
    {
      "name": "Topics",
      "description": "Topics we already track: live at once, with history. Use them before adding new keywords."
    },
    {
      "name": "Keywords",
      "description": "Add and remove a lane's keywords: existing topics, or new ones approved as their own topic."
    },
    {
      "name": "Checks",
      "description": "Free lane checks that size every filter step over 14 days, plus quick topic signals."
    },
    {
      "name": "Company list",
      "description": "The target-company list your lanes can narrow to or use instead of industries."
    },
    {
      "name": "Exclusions",
      "description": "Companies and people left out of every lane, before anything is bought."
    },
    {
      "name": "Suppressions",
      "description": "People you exported who later asked to be removed, by API or pushed to your webhook."
    },
    {
      "name": "Webhooks",
      "description": "Endpoints that receive events as they happen (removals, website visitors), signed, each with its own events, tests and delivery log."
    },
    {
      "name": "Websites",
      "description": "Identify the people who visit your websites."
    },
    {
      "name": "Billing",
      "description": "Your prepaid balance, prices and cost estimates (any key); top-ups and the monthly top-up (admin keys)."
    },
    {
      "name": "Team",
      "description": "Members and invite links. Admin keys only."
    },
    {
      "name": "Workspaces",
      "description": "One workspace per client, all paid from your balance, with an optional monthly budget each; hand one over to the client."
    },
    {
      "name": "API keys",
      "description": "Create, rename, rotate and revoke API keys. Admin keys only."
    },
    {
      "name": "Account",
      "description": "Check which organization a key belongs to, and rename it."
    },
    {
      "name": "Reference",
      "description": "Valid values for lane filters."
    },
    {
      "name": "Activity",
      "description": "A feed of changes and events in your organization."
    }
  ],
  "paths": {
    "/api/v1/exports": {
      "post": {
        "tags": [
          "Exports"
        ],
        "operationId": "createExport",
        "summary": "Quote or start an export",
        "description": "Quotes or starts an export of new people from one or more lanes.\n\n**Dry run (free, the default).** Unless the body has `\"dry_run\": false` (the JSON boolean), this only returns a quote: how many new people each lane has right now, `will_export` (the smallest of `max`, what's available, what your balance covers and any workspace limit) and `cost`: what they'd cost and your balance before and after. Nothing is bought. If you leave `dry_run` out, the quote also says `dry_run_defaulted: true`.\n\n**Export (spends your balance).** With `\"dry_run\": false` and an `idempotency_key`, the price of up to `will_export` people is held on your balance straight away and the export is queued (`202`). It starts within seconds; filling it can take several minutes. Poll `GET /api/v1/exports/{id}` until `status` is `completed`, `partial` or `failed`; the same call returns the leads (add `format=csv` for a file). Only people actually delivered are charged, when the export finishes; the rest of the hold is released. An intent person counts once per billing month, a search person once ever: anyone already exported to your organization is left out before anything is bought.\n\n**Idempotency.** Sending an `idempotency_key` you've used before returns that earlier export with `200` and `reused: true`, and never buys twice. The rest of the body isn't compared, so use a new key for each new export.\n\n**Good to know**\n- Available counts come from each lane's latest check, less people exported from that lane since. An export fills up to `will_export`, or fewer if fewer people are really there (`partial`).\n- Intent is a rolling 14-day window: people who aren't exported within about two weeks of researching drop out.\n- Lanes are filled in priority order, whatever order you list them in. Within a lane, higher-strength people are taken first.\n- Your organization's exports run one at a time; a second one waits until the first finishes.\n- Without an active plan the quote still works and shows `will_export: 0`.\n- The returned export's `requested` is the reserved number (the quote's `will_export`), not the `max` you sent.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExportRequest"
              },
              "examples": {
                "quote": {
                  "summary": "Free quote",
                  "value": {
                    "lanes": [
                      "L1",
                      "L2"
                    ],
                    "max": 250,
                    "dry_run": true
                  }
                },
                "export": {
                  "summary": "Export (uses contacts)",
                  "value": {
                    "lanes": [
                      "L1",
                      "L2"
                    ],
                    "max": 250,
                    "dry_run": false,
                    "idempotency_key": "crm-sync-2026-10-14"
                  }
                },
                "all_high": {
                  "summary": "Every lane, high strength only",
                  "value": {
                    "lanes": "all",
                    "max": 500,
                    "min_strength": "high",
                    "dry_run": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A free quote (any request without `\"dry_run\": false`), or an earlier export returned again for a repeated `idempotency_key` (`reused: true`).",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/ExportQuote"
                    },
                    {
                      "$ref": "#/components/schemas/ExportStarted"
                    }
                  ]
                },
                "examples": {
                  "quote": {
                    "summary": "Dry run",
                    "value": {
                      "dry_run": true,
                      "lanes": [
                        {
                          "lane": "L1",
                          "name": "Medical device distributors",
                          "strength": "medium",
                          "available": {
                            "high": 88,
                            "medium_plus": 412,
                            "all": 1265,
                            "at_lane_strength": 412
                          },
                          "data_window": {
                            "start": "2026-09-30",
                            "end": "2026-10-13"
                          },
                          "checked_at": "2026-10-14T06:12:41.528311+00:00",
                          "approximate": false
                        },
                        {
                          "lane": "L2",
                          "name": "Plastics molders",
                          "strength": "high",
                          "available": {
                            "high": 61,
                            "medium_plus": 230,
                            "all": 702,
                            "at_lane_strength": 61
                          },
                          "data_window": {
                            "start": "2026-09-30",
                            "end": "2026-10-13"
                          },
                          "checked_at": "2026-10-14T06:12:41.528311+00:00",
                          "approximate": false
                        }
                      ],
                      "requested": 250,
                      "available": 473,
                      "will_export": 250,
                      "capped_by": "max",
                      "cost": {
                        "meter": "intent",
                        "people": 250,
                        "amount_usd": 20,
                        "amount": "$20.00",
                        "balance_before_usd": 420,
                        "balance_after_usd": 400,
                        "used_this_month": 2900,
                        "month_end": "2026-11-01",
                        "workspace_limit_left": null,
                        "workspace_budget_usd": null,
                        "workspace_budget_left_usd": null
                      },
                      "exports_enabled": true,
                      "notes": [
                        "Available counts come from each lane's latest daily check, less people exported since. An export fills the number shown, or fewer if fewer are really there.",
                        "Intent is a rolling 14-day window: people who aren't exported within about two weeks of researching drop out."
                      ]
                    }
                  },
                  "quote_defaulted": {
                    "summary": "dry_run left out",
                    "value": {
                      "dry_run": true,
                      "lanes": [
                        {
                          "lane": "L1",
                          "name": "Medical device distributors",
                          "strength": "medium",
                          "available": {
                            "high": 88,
                            "medium_plus": 412,
                            "all": 1265,
                            "at_lane_strength": 412
                          },
                          "data_window": {
                            "start": "2026-09-30",
                            "end": "2026-10-13"
                          },
                          "checked_at": "2026-10-14T06:12:41.528311+00:00",
                          "approximate": false
                        },
                        {
                          "lane": "L2",
                          "name": "Plastics molders",
                          "strength": "high",
                          "available": {
                            "high": 61,
                            "medium_plus": 230,
                            "all": 702,
                            "at_lane_strength": 61
                          },
                          "data_window": {
                            "start": "2026-09-30",
                            "end": "2026-10-13"
                          },
                          "checked_at": "2026-10-14T06:12:41.528311+00:00",
                          "approximate": false
                        }
                      ],
                      "requested": 250,
                      "available": 473,
                      "will_export": 250,
                      "capped_by": "max",
                      "cost": {
                        "meter": "intent",
                        "people": 250,
                        "amount_usd": 20,
                        "amount": "$20.00",
                        "balance_before_usd": 420,
                        "balance_after_usd": 400,
                        "used_this_month": 2900,
                        "month_end": "2026-11-01",
                        "workspace_limit_left": null,
                        "workspace_budget_usd": null,
                        "workspace_budget_left_usd": null
                      },
                      "exports_enabled": true,
                      "notes": [
                        "Available counts come from each lane's latest daily check, less people exported since. An export fills the number shown, or fewer if fewer are really there.",
                        "Intent is a rolling 14-day window: people who aren't exported within about two weeks of researching drop out."
                      ],
                      "dry_run_defaulted": true,
                      "note": "dry_run defaulted to true: nothing was bought. Send \"dry_run\": false with an idempotency_key to export."
                    }
                  },
                  "empty_balance_quote": {
                    "summary": "Quote with an empty balance",
                    "value": {
                      "dry_run": true,
                      "lanes": [
                        {
                          "lane": "L1",
                          "name": "Medical device distributors",
                          "strength": "medium",
                          "available": {
                            "high": 88,
                            "medium_plus": 412,
                            "all": 1265,
                            "at_lane_strength": 412
                          },
                          "data_window": {
                            "start": "2026-09-30",
                            "end": "2026-10-13"
                          },
                          "checked_at": "2026-10-14T06:12:41.528311+00:00",
                          "approximate": false
                        },
                        {
                          "lane": "L2",
                          "name": "Plastics molders",
                          "strength": "high",
                          "available": {
                            "high": 61,
                            "medium_plus": 230,
                            "all": 702,
                            "at_lane_strength": 61
                          },
                          "data_window": {
                            "start": "2026-09-30",
                            "end": "2026-10-13"
                          },
                          "checked_at": "2026-10-14T06:12:41.528311+00:00",
                          "approximate": false
                        }
                      ],
                      "requested": 250,
                      "available": 473,
                      "will_export": 0,
                      "capped_by": "balance",
                      "cost": {
                        "meter": "intent",
                        "people": 0,
                        "amount_usd": 0,
                        "amount": "$0.00",
                        "balance_before_usd": 0,
                        "balance_after_usd": 0,
                        "used_this_month": 2900,
                        "month_end": "2026-11-01",
                        "workspace_limit_left": null,
                        "workspace_budget_usd": null,
                        "workspace_budget_left_usd": null
                      },
                      "exports_enabled": true,
                      "notes": [
                        "Your balance is empty. Top up on the Billing page (or POST /api/v1/billing/topups). Counts, estimates and samples stay free.",
                        "Available counts come from each lane's latest daily check, less people exported since. An export fills the number shown, or fewer if fewer are really there.",
                        "Intent is a rolling 14-day window: people who aren't exported within about two weeks of researching drop out."
                      ]
                    }
                  },
                  "reused": {
                    "summary": "Repeated idempotency_key",
                    "value": {
                      "export": {
                        "id": "0199e3a1-2f4b-7c10-8e2d-1a2b3c4d5e6f",
                        "status": "completed",
                        "lanes": [
                          "L1",
                          "L2"
                        ],
                        "requested": 250,
                        "will_export": 250,
                        "exported": 250,
                        "min_strength": null,
                        "billing_period": "2026-10-01",
                        "via": "api",
                        "created_at": "2026-10-14T09:30:02.114502+00:00",
                        "finished_at": "2026-10-14T09:41:55.903117+00:00",
                        "error": null
                      },
                      "reused": true,
                      "poll": "/api/v1/exports/0199e3a1-2f4b-7c10-8e2d-1a2b3c4d5e6f"
                    }
                  }
                }
              }
            }
          },
          "202": {
            "description": "Export started. Its price is held on your balance; poll the export for progress and leads.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExportStarted"
                },
                "example": {
                  "export": {
                    "id": "0199e3a1-2f4b-7c10-8e2d-1a2b3c4d5e6f",
                    "status": "queued",
                    "lanes": [
                      "L1",
                      "L2"
                    ],
                    "requested": 250,
                    "will_export": 250,
                    "exported": 0,
                    "min_strength": null,
                    "billing_period": "2026-10-01",
                    "via": "api",
                    "created_at": "2026-10-14T09:30:02.114502+00:00",
                    "finished_at": null,
                    "error": null
                  },
                  "reused": false,
                  "poll": "/api/v1/exports/0199e3a1-2f4b-7c10-8e2d-1a2b3c4d5e6f"
                }
              }
            }
          },
          "400": {
            "description": "The request isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_body": {
                    "value": {
                      "error": "invalid_body",
                      "message": "Send JSON like {\"lanes\": [\"L1\"], \"max\": 100, \"dry_run\": true}."
                    }
                  },
                  "lanes_required": {
                    "value": {
                      "error": "lanes_required",
                      "message": "Pass lanes, e.g. [\"L1\"], or \"all\"."
                    }
                  },
                  "invalid_max": {
                    "value": {
                      "error": "invalid_max",
                      "message": "max must be a whole number from 1 to 100,000."
                    }
                  },
                  "invalid_strength": {
                    "value": {
                      "error": "invalid_strength",
                      "message": "min_strength must be low, medium or high."
                    }
                  },
                  "idempotency_key_required": {
                    "value": {
                      "error": "idempotency_key_required",
                      "message": "Pass an idempotency_key (any unique string up to 200 characters) so a retry never buys twice."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "description": "Only for real exports: the balance is empty, or the workspace used its monthly budget. With a workspace's own key, `balance_empty` says only that the organization needs to add funds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanError"
                },
                "examples": {
                  "balance_empty": {
                    "value": {
                      "error": "balance_empty",
                      "message": "Your balance is empty. Add funds on the Billing page (or POST /api/v1/billing/topups). Counts, estimates and samples stay free.",
                      "top_up": "POST /api/v1/billing/topups",
                      "dashboard": "/dash/billing"
                    }
                  },
                  "balance_empty_workspace_key": {
                    "value": {
                      "error": "balance_empty",
                      "message": "Your organization needs to add funds. Ask its owner."
                    }
                  },
                  "workspace_budget_reached": {
                    "value": {
                      "error": "workspace_budget_reached",
                      "message": "This workspace has used its monthly budget. Its organization can raise it on the Workspaces page."
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Only for real exports: exports aren't open for your account yet. The quote's `exports_enabled` shows this in advance.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "exports_disabled": {
                    "value": {
                      "error": "exports_disabled",
                      "message": "Exports aren't open for this account yet. Dry runs still work."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "One of the lanes doesn't exist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "lane_not_found": {
                    "value": {
                      "error": "lane_not_found",
                      "message": "No lane L9."
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Only for real exports: the lanes have no new people right now (`available` is 0). Or (quotes too) a lane's keyword group B-D has no live keyword yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "nothing_available": {
                    "value": {
                      "error": "nothing_available",
                      "message": "No new people are available in these lanes right now."
                    }
                  },
                  "group_not_live": {
                    "value": {
                      "error": "group_not_live",
                      "message": "L2: keyword group B has no live keywords yet. Wait for approval, or move those keywords to group A."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      },
      "get": {
        "tags": [
          "Exports"
        ],
        "operationId": "listExports",
        "summary": "List exports",
        "description": "Your organization's exports, newest first (up to the latest 100), whoever started them. Reading an export never buys anything again; get its leads with `GET /api/v1/exports/{id}`.\n\n**Free.** This doesn't spend your balance.",
        "responses": {
          "200": {
            "description": "Exports, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "exports": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Export"
                      }
                    }
                  },
                  "required": [
                    "exports"
                  ]
                },
                "example": {
                  "exports": [
                    {
                      "id": "0199e3a1-2f4b-7c10-8e2d-1a2b3c4d5e6f",
                      "status": "completed",
                      "lanes": [
                        "L1",
                        "L2"
                      ],
                      "requested": 250,
                      "will_export": 250,
                      "exported": 250,
                      "min_strength": null,
                      "billing_period": "2026-10-01",
                      "via": "api",
                      "created_at": "2026-10-14T09:30:02.114502+00:00",
                      "finished_at": "2026-10-14T09:41:55.903117+00:00",
                      "error": null
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      }
    },
    "/api/v1/exports/{id}": {
      "get": {
        "tags": [
          "Exports"
        ],
        "operationId": "getExport",
        "summary": "Get an export and its leads",
        "description": "One export and its leads, oldest first. Poll this after starting an export: while `status` is `queued` or `running`, `leads` holds only what's been written so far.\n\nFree to download again any number of times.\n\nReturns every lead in the export, up to 100,000 (the largest export).\n\n**CSV:** add `format=csv` to get a file (`intent-leads-export-<date>-<id>.csv`) with the headers `X-Lead-Count` and `X-Export-Status`. The CSV has one header row and these columns, in this order: `First Name`, `Last Name`, `Job Title`, `Seniority`, `Standard Title`, `Department`, `Job Function`, `Sub-departments`, `Headline`, `Title History`, `Employer History`, `Education`, `LinkedIn Connections`, `Company`, `Website`, `Industry`, `NAICS`, `SIC`, `Employees`, `Employee Range`, `Revenue`, `Revenue Range`, `Company Address`, `City`, `State`, `Company ZIP`, `Company Country`, `Company Description`, `Home City`, `Home State`, `Home ZIP`, `Home Country`, `Age Range`, `Gender`, `Household Income`, `Net Worth`, `Homeowner`, `Married`, `Children at Home`, `Business Email`, `Email Status`, `Personal Email`, `Mobile`, `Mobile on DNC`, `Direct Phone`, `Company Phone`, `LinkedIn`, `Company LinkedIn`, `X (Twitter)`, `GitHub`, `Intent Topics`, `Intent Score`, `Last Active`, `Lane`, `Keywords Matched`, `Intent Strength`, `First Seen`, `Exported`, `Seen Before`, `Suppressed`, `Lead ID`. `Exported` is `delivered_at`. Lists (`Keywords Matched`) are joined with `; `, booleans are `Yes` or `No`, empty values are empty cells, and lines end with CRLF. Cells that start with `=`, `+`, `-`, `@` or a tab are prefixed with `'` so spreadsheets don't run them as formulas (phone numbers like `+1 612 555 0142` are left as they are).\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Export id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "0199e3a1-2f4b-7c10-8e2d-1a2b3c4d5e6f"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "`json` (default) or `csv`.",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "csv"
              ],
              "default": "json"
            },
            "example": "csv"
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "responses": {
          "200": {
            "description": "The export and its leads, as JSON or (with `format=csv`) a CSV file.",
            "headers": {
              "X-Lead-Count": {
                "description": "CSV only: number of leads in the file.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-Export-Status": {
                "description": "CSV only: the export's `status`.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "export": {
                      "$ref": "#/components/schemas/Export"
                    },
                    "leads": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Lead"
                      },
                      "maxItems": 5000
                    }
                  },
                  "required": [
                    "export",
                    "leads"
                  ]
                },
                "example": {
                  "export": {
                    "id": "0199e3a1-2f4b-7c10-8e2d-1a2b3c4d5e6f",
                    "status": "completed",
                    "lanes": [
                      "L1",
                      "L2"
                    ],
                    "requested": 250,
                    "will_export": 250,
                    "exported": 250,
                    "min_strength": null,
                    "billing_period": "2026-10-01",
                    "via": "api",
                    "created_at": "2026-10-14T09:30:02.114502+00:00",
                    "finished_at": "2026-10-14T09:41:55.903117+00:00",
                    "error": null
                  },
                  "leads": [
                    {
                      "lead_id": "0199e3b2-5a7c-7e21-b4d3-8c9f0a1b2c3d",
                      "lane": "L1",
                      "keywords_matched": [
                        "selling to group purchasing organizations"
                      ],
                      "intent_strength": "high",
                      "first_seen": "2026-10-03T00:00:00+00:00",
                      "delivered_at": "2026-10-14T09:31:07.482913+00:00",
                      "seen_before": false,
                      "suppressed": false,
                      "first_name": "Jordan",
                      "last_name": "Lee",
                      "job_title": "VP of Sales",
                      "seniority": "VP",
                      "standard_title": "Vice President",
                      "department": "Sales",
                      "job_function": "Sales",
                      "subdepartments": "Business Development",
                      "headline": "VP of Sales at Acme Medical Supply",
                      "title_history": "VP of Sales, Regional Sales Director, Account Executive",
                      "employer_history": "Acme Medical Supply, Example Health",
                      "education": "University of Minnesota (MBA)",
                      "linkedin_connections": "500+",
                      "company": "Acme Medical Supply",
                      "website": "example.com",
                      "industry": "Medical Equipment Manufacturing",
                      "naics": "423450",
                      "sic": "5047",
                      "employees": 140,
                      "employee_range": "101 to 250",
                      "revenue": 38000000,
                      "revenue_range": "25 million to 50 million",
                      "company_address": "100 Example Avenue",
                      "city": "Minneapolis",
                      "state": "MN",
                      "company_zip": "55401",
                      "company_country": "United States",
                      "company_description": "Acme Medical Supply distributes surgical and clinical supplies to hospitals in the Midwest.",
                      "home_city": "Edina",
                      "home_state": "Minnesota",
                      "home_zip": "55424",
                      "home_country": "United States",
                      "age_range": "45-54",
                      "gender": "Male",
                      "household_income": "$150,000 to $199,999",
                      "net_worth": "$750,000 to $999,999",
                      "homeowner": true,
                      "married": true,
                      "children": true,
                      "business_email": "jordan.lee@example.com",
                      "email_status": "valid",
                      "personal_email": "jordan.lee.home@example.net",
                      "mobile": "+1 612 555 0142",
                      "mobile_on_dnc": false,
                      "direct_phone": "+1 612 555 0187",
                      "company_phone": "+1 612 555 0100",
                      "linkedin": "linkedin.com/in/example-jordan-lee",
                      "company_linkedin": "linkedin.com/company/example-acme-medical",
                      "twitter": null,
                      "github": null,
                      "intent_topics": "selling to group purchasing organizations",
                      "intent_score": 81,
                      "last_active": "2026-10-12"
                    },
                    {
                      "lead_id": "0199e3b2-5a7c-7e21-b4d3-8c9f0a1b2c3e",
                      "lane": "L1",
                      "keywords_matched": [
                        "finding medical device distributors"
                      ],
                      "intent_strength": "medium",
                      "first_seen": "2026-10-06T00:00:00+00:00",
                      "delivered_at": "2026-10-14T09:31:07.482913+00:00",
                      "seen_before": true,
                      "suppressed": false,
                      "first_name": "Sam",
                      "last_name": "Rivera",
                      "job_title": "Director of Business Development",
                      "seniority": "Director",
                      "standard_title": "Director",
                      "department": "Sales",
                      "job_function": null,
                      "subdepartments": null,
                      "headline": null,
                      "title_history": "Director of Business Development",
                      "employer_history": "Globex Surgical",
                      "education": null,
                      "linkedin_connections": "100-499",
                      "company": "Globex Surgical",
                      "website": "example.org",
                      "industry": "Medical Device",
                      "naics": null,
                      "sic": null,
                      "employees": 85,
                      "employee_range": "51 to 100",
                      "revenue": null,
                      "revenue_range": "10 million to 25 million",
                      "company_address": "200 Example Road",
                      "city": "Columbus",
                      "state": "OH",
                      "company_zip": "43215",
                      "company_country": "United States",
                      "company_description": null,
                      "home_city": "Columbus",
                      "home_state": "Ohio",
                      "home_zip": null,
                      "home_country": "United States",
                      "age_range": "35-44",
                      "gender": null,
                      "household_income": null,
                      "net_worth": null,
                      "homeowner": null,
                      "married": null,
                      "children": null,
                      "business_email": "sam.rivera@example.org",
                      "email_status": "valid",
                      "personal_email": null,
                      "mobile": null,
                      "mobile_on_dnc": null,
                      "direct_phone": "+1 614 555 0133",
                      "company_phone": "+1 614 555 0100",
                      "linkedin": "linkedin.com/in/example-sam-rivera",
                      "company_linkedin": "linkedin.com/company/example-globex-surgical",
                      "twitter": null,
                      "github": null,
                      "intent_topics": "finding medical device distributors",
                      "intent_score": 54,
                      "last_active": "2026-10-11"
                    }
                  ]
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string"
                },
                "example": "First Name,Last Name,Job Title,Seniority,Standard Title,Department,Job Function,Sub-departments,Headline,Title History,Employer History,Education,LinkedIn Connections,Company,Website,Industry,NAICS,SIC,Employees,Employee Range,Revenue,Revenue Range,Company Address,City,State,Company ZIP,Company Country,Company Description,Home City,Home State,Home ZIP,Home Country,Age Range,Gender,Household Income,Net Worth,Homeowner,Married,Children at Home,Business Email,Email Status,Personal Email,Mobile,Mobile on DNC,Direct Phone,Company Phone,LinkedIn,Company LinkedIn,X (Twitter),GitHub,Intent Topics,Intent Score,Last Active,Lane,Keywords Matched,Intent Strength,First Seen,Exported,Seen Before,Suppressed,Lead ID\r\nJordan,Lee,VP of Sales,VP,Vice President,Sales,Sales,Business Development,VP of Sales at Acme Medical Supply,\"VP of Sales, Regional Sales Director, Account Executive\",\"Acme Medical Supply, Example Health\",University of Minnesota (MBA),500+,Acme Medical Supply,example.com,Medical Equipment Manufacturing,423450,5047,140,101 to 250,38000000,25 million to 50 million,100 Example Avenue,Minneapolis,MN,55401,United States,Acme Medical Supply distributes surgical and clinical supplies to hospitals in the Midwest.,Edina,Minnesota,55424,United States,45-54,Male,\"$150,000 to $199,999\",\"$750,000 to $999,999\",Yes,Yes,Yes,jordan.lee@example.com,valid,jordan.lee.home@example.net,+1 612 555 0142,No,+1 612 555 0187,+1 612 555 0100,linkedin.com/in/example-jordan-lee,linkedin.com/company/example-acme-medical,,,selling to group purchasing organizations,81,2026-10-12,L1,selling to group purchasing organizations,high,2026-10-03T00:00:00+00:00,2026-10-14T09:31:07.482913+00:00,No,No,0199e3b2-5a7c-7e21-b4d3-8c9f0a1b2c3d\r\nSam,Rivera,Director of Business Development,Director,Director,Sales,,,,Director of Business Development,Globex Surgical,,100-499,Globex Surgical,example.org,Medical Device,,,85,51 to 100,,10 million to 25 million,200 Example Road,Columbus,OH,43215,United States,,Columbus,Ohio,,United States,35-44,,,,,,,sam.rivera@example.org,valid,,,,+1 614 555 0133,+1 614 555 0100,linkedin.com/in/example-sam-rivera,linkedin.com/company/example-globex-surgical,,,finding medical device distributors,54,2026-10-11,L1,finding medical device distributors,medium,2026-10-06T00:00:00+00:00,2026-10-14T09:31:07.482913+00:00,Yes,No,0199e3b2-5a7c-7e21-b4d3-8c9f0a1b2c3e\r\n"
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No export with that id in your organization (including ids that aren't UUIDs).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "export_not_found": {
                    "value": {
                      "error": "export_not_found",
                      "message": "No such export."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/leads": {
      "get": {
        "tags": [
          "Leads"
        ],
        "operationId": "listLeads",
        "summary": "Pull or re-download leads",
        "description": "Leads you've already exported. Reading them never buys anything; to get new people, start an export with `POST /api/v1/exports`.\n\n**`since=last` (default): pull what's new.** Returns the leads this `consumer` hasn't pulled yet, oldest first, and moves its server-side cursor past them, so a daily job never sees the same lead twice. If `has_more` is true, call again straight away. Each `consumer` has its own cursor, and so does each consumer and `lane` pair: pulling with `lane=L1` doesn't move the all-lanes cursor (or the other way round), so a job that uses both gets L1's leads twice.\n\n**`since=YYYY-MM-DD`: re-download.** Every lead exported on or after that date (UTC), oldest first, without touching any cursor. Narrow it with `to`, `lane`, `delivery`, `strength` and `keyword`, and page with `next_page` (`X-Next-Page` for CSV).\n\n**Good to know**\n- The cursor moves as soon as the response is built. If your job fails after the call, recover that batch with `since=YYYY-MM-DD`.\n- `to`, `delivery`, `strength`, `keyword` and `page` only apply with a date `since`; with `since=last` they're ignored. Values that don't parse are ignored too.\n- Suppressed people come back with `suppressed: true` and empty contact fields.\n\n**CSV:** add `format=csv` for a file, with the headers `X-Lead-Count`, `X-Has-More` and (date mode) `X-Next-Page`. The CSV has one header row and these columns, in this order: `First Name`, `Last Name`, `Job Title`, `Seniority`, `Standard Title`, `Department`, `Job Function`, `Sub-departments`, `Headline`, `Title History`, `Employer History`, `Education`, `LinkedIn Connections`, `Company`, `Website`, `Industry`, `NAICS`, `SIC`, `Employees`, `Employee Range`, `Revenue`, `Revenue Range`, `Company Address`, `City`, `State`, `Company ZIP`, `Company Country`, `Company Description`, `Home City`, `Home State`, `Home ZIP`, `Home Country`, `Age Range`, `Gender`, `Household Income`, `Net Worth`, `Homeowner`, `Married`, `Children at Home`, `Business Email`, `Email Status`, `Personal Email`, `Mobile`, `Mobile on DNC`, `Direct Phone`, `Company Phone`, `LinkedIn`, `Company LinkedIn`, `X (Twitter)`, `GitHub`, `Intent Topics`, `Intent Score`, `Last Active`, `Lane`, `Keywords Matched`, `Intent Strength`, `First Seen`, `Exported`, `Seen Before`, `Suppressed`, `Lead ID`. `Exported` is `delivered_at`. Lists (`Keywords Matched`) are joined with `; `, booleans are `Yes` or `No`, empty values are empty cells, and lines end with CRLF. Cells that start with `=`, `+`, `-`, `@` or a tab are prefixed with `'` so spreadsheets don't run them as formulas (phone numbers like `+1 612 555 0142` are left as they are).\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "name": "since",
            "in": "query",
            "required": false,
            "description": "`last` (default): new leads since this consumer's last pull, moving its cursor. Or a date `YYYY-MM-DD`: everything exported since then (UTC), no cursor change.",
            "schema": {
              "type": "string",
              "default": "last"
            },
            "example": "last"
          },
          {
            "name": "lane",
            "in": "query",
            "required": false,
            "description": "Only this lane's leads (case-insensitive). With `since=last` the lane has its own cursor.",
            "schema": {
              "type": "string"
            },
            "example": "L1"
          },
          {
            "name": "consumer",
            "in": "query",
            "required": false,
            "description": "Names the cursor for `since=last`, so separate jobs each get every lead. Letters, digits, `.`, `-` or `_`, up to 40.",
            "schema": {
              "type": "string",
              "default": "default",
              "pattern": "^[A-Za-z0-9_.-]{1,40}$"
            },
            "example": "crm-sync"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Leads per response, 1 to 5,000. Out-of-range values are clamped.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5000,
              "default": 1000
            },
            "example": 1000
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "`json` (default) or `csv`.",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "csv"
              ],
              "default": "json"
            },
            "example": "json"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Date mode only: the `next_page` value from the previous response.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Date mode only: last export date to include (`YYYY-MM-DD`, UTC, inclusive).",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "example": "2026-10-14"
          },
          {
            "name": "delivery",
            "in": "query",
            "required": false,
            "description": "Date mode only: only leads from this delivery id (see `GET /api/v1/deliveries`).",
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "example": 412
          },
          {
            "name": "strength",
            "in": "query",
            "required": false,
            "description": "Date mode only: `medium` (medium and high) or `high` (high only). Other values are ignored.",
            "schema": {
              "type": "string",
              "enum": [
                "medium",
                "high"
              ]
            },
            "example": "high"
          },
          {
            "name": "keyword",
            "in": "query",
            "required": false,
            "description": "Date mode only: only leads that matched this exact keyword (case-sensitive).",
            "schema": {
              "type": "string"
            },
            "example": "selling to group purchasing organizations"
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of leads, as JSON or (with `format=csv`) a CSV file.",
            "headers": {
              "X-Lead-Count": {
                "description": "CSV only: leads in this response.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-Has-More": {
                "description": "CSV only: `true` when the response is full and there may be more.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true",
                    "false"
                  ]
                }
              },
              "X-Next-Page": {
                "description": "CSV only, date mode: the `page` value for the next page. Absent on the last page.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LeadsPage"
                },
                "examples": {
                  "pull": {
                    "summary": "since=last",
                    "value": {
                      "since": "last",
                      "lane": null,
                      "count": 2,
                      "has_more": false,
                      "next_page": null,
                      "leads": [
                        {
                          "lead_id": "0199e3b2-5a7c-7e21-b4d3-8c9f0a1b2c3d",
                          "lane": "L1",
                          "keywords_matched": [
                            "selling to group purchasing organizations"
                          ],
                          "intent_strength": "high",
                          "first_seen": "2026-10-03T00:00:00+00:00",
                          "delivered_at": "2026-10-14T09:31:07.482913+00:00",
                          "seen_before": false,
                          "suppressed": false,
                          "first_name": "Jordan",
                          "last_name": "Lee",
                          "job_title": "VP of Sales",
                          "seniority": "VP",
                          "standard_title": "Vice President",
                          "department": "Sales",
                          "job_function": "Sales",
                          "subdepartments": "Business Development",
                          "headline": "VP of Sales at Acme Medical Supply",
                          "title_history": "VP of Sales, Regional Sales Director, Account Executive",
                          "employer_history": "Acme Medical Supply, Example Health",
                          "education": "University of Minnesota (MBA)",
                          "linkedin_connections": "500+",
                          "company": "Acme Medical Supply",
                          "website": "example.com",
                          "industry": "Medical Equipment Manufacturing",
                          "naics": "423450",
                          "sic": "5047",
                          "employees": 140,
                          "employee_range": "101 to 250",
                          "revenue": 38000000,
                          "revenue_range": "25 million to 50 million",
                          "company_address": "100 Example Avenue",
                          "city": "Minneapolis",
                          "state": "MN",
                          "company_zip": "55401",
                          "company_country": "United States",
                          "company_description": "Acme Medical Supply distributes surgical and clinical supplies to hospitals in the Midwest.",
                          "home_city": "Edina",
                          "home_state": "Minnesota",
                          "home_zip": "55424",
                          "home_country": "United States",
                          "age_range": "45-54",
                          "gender": "Male",
                          "household_income": "$150,000 to $199,999",
                          "net_worth": "$750,000 to $999,999",
                          "homeowner": true,
                          "married": true,
                          "children": true,
                          "business_email": "jordan.lee@example.com",
                          "email_status": "valid",
                          "personal_email": "jordan.lee.home@example.net",
                          "mobile": "+1 612 555 0142",
                          "mobile_on_dnc": false,
                          "direct_phone": "+1 612 555 0187",
                          "company_phone": "+1 612 555 0100",
                          "linkedin": "linkedin.com/in/example-jordan-lee",
                          "company_linkedin": "linkedin.com/company/example-acme-medical",
                          "twitter": null,
                          "github": null,
                          "intent_topics": "selling to group purchasing organizations",
                          "intent_score": 81,
                          "last_active": "2026-10-12"
                        },
                        {
                          "lead_id": "0199e3b2-5a7c-7e21-b4d3-8c9f0a1b2c3e",
                          "lane": "L1",
                          "keywords_matched": [
                            "finding medical device distributors"
                          ],
                          "intent_strength": "medium",
                          "first_seen": "2026-10-06T00:00:00+00:00",
                          "delivered_at": "2026-10-14T09:31:07.482913+00:00",
                          "seen_before": true,
                          "suppressed": false,
                          "first_name": "Sam",
                          "last_name": "Rivera",
                          "job_title": "Director of Business Development",
                          "seniority": "Director",
                          "standard_title": "Director",
                          "department": "Sales",
                          "job_function": null,
                          "subdepartments": null,
                          "headline": null,
                          "title_history": "Director of Business Development",
                          "employer_history": "Globex Surgical",
                          "education": null,
                          "linkedin_connections": "100-499",
                          "company": "Globex Surgical",
                          "website": "example.org",
                          "industry": "Medical Device",
                          "naics": null,
                          "sic": null,
                          "employees": 85,
                          "employee_range": "51 to 100",
                          "revenue": null,
                          "revenue_range": "10 million to 25 million",
                          "company_address": "200 Example Road",
                          "city": "Columbus",
                          "state": "OH",
                          "company_zip": "43215",
                          "company_country": "United States",
                          "company_description": null,
                          "home_city": "Columbus",
                          "home_state": "Ohio",
                          "home_zip": null,
                          "home_country": "United States",
                          "age_range": "35-44",
                          "gender": null,
                          "household_income": null,
                          "net_worth": null,
                          "homeowner": null,
                          "married": null,
                          "children": null,
                          "business_email": "sam.rivera@example.org",
                          "email_status": "valid",
                          "personal_email": null,
                          "mobile": null,
                          "mobile_on_dnc": null,
                          "direct_phone": "+1 614 555 0133",
                          "company_phone": "+1 614 555 0100",
                          "linkedin": "linkedin.com/in/example-sam-rivera",
                          "company_linkedin": "linkedin.com/company/example-globex-surgical",
                          "twitter": null,
                          "github": null,
                          "intent_topics": "finding medical device distributors",
                          "intent_score": 54,
                          "last_active": "2026-10-11"
                        }
                      ]
                    }
                  },
                  "by_date": {
                    "summary": "since=2026-10-01&limit=2",
                    "value": {
                      "since": "2026-10-01",
                      "lane": "L1",
                      "count": 2,
                      "has_more": true,
                      "next_page": "MTg0MjI",
                      "leads": [
                        {
                          "lead_id": "0199e3b2-5a7c-7e21-b4d3-8c9f0a1b2c3d",
                          "lane": "L1",
                          "keywords_matched": [
                            "selling to group purchasing organizations"
                          ],
                          "intent_strength": "high",
                          "first_seen": "2026-10-03T00:00:00+00:00",
                          "delivered_at": "2026-10-14T09:31:07.482913+00:00",
                          "seen_before": false,
                          "suppressed": false,
                          "first_name": "Jordan",
                          "last_name": "Lee",
                          "job_title": "VP of Sales",
                          "seniority": "VP",
                          "standard_title": "Vice President",
                          "department": "Sales",
                          "job_function": "Sales",
                          "subdepartments": "Business Development",
                          "headline": "VP of Sales at Acme Medical Supply",
                          "title_history": "VP of Sales, Regional Sales Director, Account Executive",
                          "employer_history": "Acme Medical Supply, Example Health",
                          "education": "University of Minnesota (MBA)",
                          "linkedin_connections": "500+",
                          "company": "Acme Medical Supply",
                          "website": "example.com",
                          "industry": "Medical Equipment Manufacturing",
                          "naics": "423450",
                          "sic": "5047",
                          "employees": 140,
                          "employee_range": "101 to 250",
                          "revenue": 38000000,
                          "revenue_range": "25 million to 50 million",
                          "company_address": "100 Example Avenue",
                          "city": "Minneapolis",
                          "state": "MN",
                          "company_zip": "55401",
                          "company_country": "United States",
                          "company_description": "Acme Medical Supply distributes surgical and clinical supplies to hospitals in the Midwest.",
                          "home_city": "Edina",
                          "home_state": "Minnesota",
                          "home_zip": "55424",
                          "home_country": "United States",
                          "age_range": "45-54",
                          "gender": "Male",
                          "household_income": "$150,000 to $199,999",
                          "net_worth": "$750,000 to $999,999",
                          "homeowner": true,
                          "married": true,
                          "children": true,
                          "business_email": "jordan.lee@example.com",
                          "email_status": "valid",
                          "personal_email": "jordan.lee.home@example.net",
                          "mobile": "+1 612 555 0142",
                          "mobile_on_dnc": false,
                          "direct_phone": "+1 612 555 0187",
                          "company_phone": "+1 612 555 0100",
                          "linkedin": "linkedin.com/in/example-jordan-lee",
                          "company_linkedin": "linkedin.com/company/example-acme-medical",
                          "twitter": null,
                          "github": null,
                          "intent_topics": "selling to group purchasing organizations",
                          "intent_score": 81,
                          "last_active": "2026-10-12"
                        },
                        {
                          "lead_id": "0199e3b2-5a7c-7e21-b4d3-8c9f0a1b2c3e",
                          "lane": "L1",
                          "keywords_matched": [
                            "finding medical device distributors"
                          ],
                          "intent_strength": "medium",
                          "first_seen": "2026-10-06T00:00:00+00:00",
                          "delivered_at": "2026-10-14T09:31:07.482913+00:00",
                          "seen_before": true,
                          "suppressed": false,
                          "first_name": "Sam",
                          "last_name": "Rivera",
                          "job_title": "Director of Business Development",
                          "seniority": "Director",
                          "standard_title": "Director",
                          "department": "Sales",
                          "job_function": null,
                          "subdepartments": null,
                          "headline": null,
                          "title_history": "Director of Business Development",
                          "employer_history": "Globex Surgical",
                          "education": null,
                          "linkedin_connections": "100-499",
                          "company": "Globex Surgical",
                          "website": "example.org",
                          "industry": "Medical Device",
                          "naics": null,
                          "sic": null,
                          "employees": 85,
                          "employee_range": "51 to 100",
                          "revenue": null,
                          "revenue_range": "10 million to 25 million",
                          "company_address": "200 Example Road",
                          "city": "Columbus",
                          "state": "OH",
                          "company_zip": "43215",
                          "company_country": "United States",
                          "company_description": null,
                          "home_city": "Columbus",
                          "home_state": "Ohio",
                          "home_zip": null,
                          "home_country": "United States",
                          "age_range": "35-44",
                          "gender": null,
                          "household_income": null,
                          "net_worth": null,
                          "homeowner": null,
                          "married": null,
                          "children": null,
                          "business_email": "sam.rivera@example.org",
                          "email_status": "valid",
                          "personal_email": null,
                          "mobile": null,
                          "mobile_on_dnc": null,
                          "direct_phone": "+1 614 555 0133",
                          "company_phone": "+1 614 555 0100",
                          "linkedin": "linkedin.com/in/example-sam-rivera",
                          "company_linkedin": "linkedin.com/company/example-globex-surgical",
                          "twitter": null,
                          "github": null,
                          "intent_topics": "finding medical device distributors",
                          "intent_score": 54,
                          "last_active": "2026-10-11"
                        }
                      ]
                    }
                  }
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string"
                },
                "example": "First Name,Last Name,Job Title,Seniority,Standard Title,Department,Job Function,Sub-departments,Headline,Title History,Employer History,Education,LinkedIn Connections,Company,Website,Industry,NAICS,SIC,Employees,Employee Range,Revenue,Revenue Range,Company Address,City,State,Company ZIP,Company Country,Company Description,Home City,Home State,Home ZIP,Home Country,Age Range,Gender,Household Income,Net Worth,Homeowner,Married,Children at Home,Business Email,Email Status,Personal Email,Mobile,Mobile on DNC,Direct Phone,Company Phone,LinkedIn,Company LinkedIn,X (Twitter),GitHub,Intent Topics,Intent Score,Last Active,Lane,Keywords Matched,Intent Strength,First Seen,Exported,Seen Before,Suppressed,Lead ID\r\nJordan,Lee,VP of Sales,VP,Vice President,Sales,Sales,Business Development,VP of Sales at Acme Medical Supply,\"VP of Sales, Regional Sales Director, Account Executive\",\"Acme Medical Supply, Example Health\",University of Minnesota (MBA),500+,Acme Medical Supply,example.com,Medical Equipment Manufacturing,423450,5047,140,101 to 250,38000000,25 million to 50 million,100 Example Avenue,Minneapolis,MN,55401,United States,Acme Medical Supply distributes surgical and clinical supplies to hospitals in the Midwest.,Edina,Minnesota,55424,United States,45-54,Male,\"$150,000 to $199,999\",\"$750,000 to $999,999\",Yes,Yes,Yes,jordan.lee@example.com,valid,jordan.lee.home@example.net,+1 612 555 0142,No,+1 612 555 0187,+1 612 555 0100,linkedin.com/in/example-jordan-lee,linkedin.com/company/example-acme-medical,,,selling to group purchasing organizations,81,2026-10-12,L1,selling to group purchasing organizations,high,2026-10-03T00:00:00+00:00,2026-10-14T09:31:07.482913+00:00,No,No,0199e3b2-5a7c-7e21-b4d3-8c9f0a1b2c3d\r\nSam,Rivera,Director of Business Development,Director,Director,Sales,,,,Director of Business Development,Globex Surgical,,100-499,Globex Surgical,example.org,Medical Device,,,85,51 to 100,,10 million to 25 million,200 Example Road,Columbus,OH,43215,United States,,Columbus,Ohio,,United States,35-44,,,,,,,sam.rivera@example.org,valid,,,,+1 614 555 0133,+1 614 555 0100,linkedin.com/in/example-sam-rivera,linkedin.com/company/example-globex-surgical,,,finding medical device distributors,54,2026-10-11,L1,finding medical device distributors,medium,2026-10-06T00:00:00+00:00,2026-10-14T09:31:07.482913+00:00,Yes,No,0199e3b2-5a7c-7e21-b4d3-8c9f0a1b2c3e\r\n"
              }
            }
          },
          "400": {
            "description": "A parameter isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_since": {
                    "value": {
                      "error": "invalid_since",
                      "message": "since must be 'last' or a date like 2026-10-01."
                    }
                  },
                  "invalid_consumer": {
                    "value": {
                      "error": "invalid_consumer",
                      "message": "consumer: letters, digits, dot, dash or underscore, up to 40."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/LaneNotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/deliveries": {
      "get": {
        "tags": [
          "Leads"
        ],
        "operationId": "listDeliveries",
        "summary": "List deliveries",
        "description": "Each export writes one delivery per lane it filled. Returns the latest 200, newest first. Get one delivery's leads with `GET /api/v1/leads?since=YYYY-MM-DD&delivery=ID`, using a `since` on or before its `delivered_on`.\n\n**Free.** This doesn't spend your balance.",
        "responses": {
          "200": {
            "description": "Deliveries, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deliveries": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Delivery"
                      }
                    }
                  },
                  "required": [
                    "deliveries"
                  ]
                },
                "example": {
                  "deliveries": [
                    {
                      "id": 413,
                      "delivered_on": "2026-10-14",
                      "lane": "L2",
                      "people": 61,
                      "contacts_billed": 61
                    },
                    {
                      "id": 412,
                      "delivered_on": "2026-10-14",
                      "lane": "L1",
                      "people": 189,
                      "contacts_billed": 189
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      }
    },
    "/api/v1/lanes": {
      "get": {
        "tags": [
          "Lanes"
        ],
        "operationId": "listLanes",
        "summary": "List lanes",
        "description": "Your lanes in priority order, with keyword counts and three kinds of numbers:\n\n- `researching_latest_day`: a quick one-day topic signal before any filter. Not people you could export.\n- `researching_14d`: people researching the lane's keywords over the 14-day `data_window`, before filters, from the latest check.\n- `after_filters`: people who pass every filter over the same window, from the latest check. Everyone already exported to you this billing period was left out when the check ran. `at_lane_strength` is the number at the lane's `min_strength`; this is what an export draws from.\n\n`researching_14d` and `after_filters` are null until a lane's first check finishes. For the live number an export could take now, use a dry run of `POST /api/v1/exports`.\n\n**Free.** This doesn't spend your balance.",
        "responses": {
          "200": {
            "description": "Lanes in priority order.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "lanes": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Lane"
                      }
                    }
                  },
                  "required": [
                    "lanes"
                  ]
                },
                "example": {
                  "lanes": [
                    {
                      "code": "L1",
                      "name": "Medical device distributors",
                      "priority": 1,
                      "min_strength": "medium",
                      "company_list_mode": "off",
                      "keywords_live": 8,
                      "keywords_pending": 2,
                      "researching_latest_day": {
                        "all": 1840,
                        "medium_plus": 620,
                        "high": 95,
                        "as_of": "2026-10-13",
                        "deliverable": false,
                        "note": "Quick topic signal from a separate preview index for one day, before any filter. Not people you could receive; use after_filters for that."
                      },
                      "researching_14d": {
                        "all": 21450,
                        "medium_plus": 7310,
                        "data_window": {
                          "start": "2026-09-30",
                          "end": "2026-10-13"
                        }
                      },
                      "after_filters": {
                        "all": 1265,
                        "medium_plus": 412,
                        "at_lane_strength": 412,
                        "filters_used": "industries",
                        "data_window": {
                          "start": "2026-09-30",
                          "end": "2026-10-13"
                        },
                        "checked_at": "2026-10-14T06:12:41.528311+00:00"
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      },
      "post": {
        "tags": [
          "Lanes"
        ],
        "operationId": "createLane",
        "summary": "Create a lane",
        "description": "Creates a lane with the next free code (`L1`, `L2`, …) and sends each keyword for approval as its own topic. Approval usually takes about a day; once a keyword is live, people show up within 2 to 4 days. Nothing is bought until you export.\n\nNew lanes start with `min_strength` `medium` and `company_list_mode` `narrow`; change them with `PATCH /api/v1/lanes/{code}` (they're ignored here). `us_only` defaults to true.\n\n**Good to know**\n- Keywords are split on commas and semicolons as well, deduplicated, and kept only if 3 to 120 characters long (others are dropped without an error). Up to 50.\n- Industries must be catalog values (`GET /api/v1/catalog`); unknown industries or seniority values are an error.\n- List filters over their limit are cut to the limit. Excluded industries that are also in `industries` are dropped.\n- `keywords_sent_for_approval` can be lower than `keywords`: the rest are queued and sent automatically.\n- Up to 30 lanes per organization.\n- On a free account, every keyword must be a topic we already track (`{\"topic\": ...}` or its exact name); otherwise `402 plan_required` and nothing is created.\n\n**Free.** This doesn't spend your balance.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LaneCreate"
              },
              "example": {
                "name": "Hospital supply sellers",
                "audience": "Owners and sales leaders at US medical supply companies with 20 to 300 staff",
                "keywords": [
                  "selling to group purchasing organizations",
                  "hospital supply chain contracts",
                  "selling to ambulatory surgery centers"
                ],
                "us_only": true,
                "employees": {
                  "min": 20,
                  "max": 300
                },
                "industries": [
                  "medical equipment manufacturing",
                  "medical device",
                  "wholesale"
                ],
                "seniority": [
                  "cxo",
                  "vp",
                  "director"
                ],
                "titles_exclude": [
                  "intern",
                  "assistant"
                ],
                "topics_to_leave_out": [
                  "job openings"
                ],
                "exclude_companies": [
                  "staffing firms"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Lane created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "description": "The new lane's code."
                    },
                    "keywords": {
                      "type": "integer",
                      "description": "Keywords added."
                    },
                    "keywords_sent_for_approval": {
                      "type": "integer",
                      "description": "New keywords already sent for approval; the rest are queued."
                    },
                    "existing_topics_live_now": {
                      "type": "integer",
                      "description": "Keywords that use a topic we already track: live at once."
                    }
                  },
                  "required": [
                    "code",
                    "keywords",
                    "keywords_sent_for_approval",
                    "existing_topics_live_now"
                  ]
                },
                "example": {
                  "code": "L3",
                  "keywords": 3,
                  "keywords_sent_for_approval": 1,
                  "existing_topics_live_now": 2
                }
              }
            }
          },
          "400": {
            "description": "The body isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_body": {
                    "value": {
                      "error": "invalid_body",
                      "message": "Send a JSON object. See /api/v1/catalog for valid filter values."
                    }
                  },
                  "invalid_lane": {
                    "value": {
                      "error": "invalid_lane",
                      "message": "Unknown industries: medical stuff. GET /api/v1/catalog lists valid values."
                    }
                  },
                  "invalid_lane_name": {
                    "summary": "invalid_lane (name)",
                    "value": {
                      "error": "invalid_lane",
                      "message": "Give the lane a name of 2 to 80 characters."
                    }
                  },
                  "invalid_lane_keywords": {
                    "summary": "invalid_lane (keywords)",
                    "value": {
                      "error": "invalid_lane",
                      "message": "Add at least one keyword (one per line)."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "description": "A free account sent keywords that aren't topics we already track. Nothing is created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanError"
                },
                "examples": {
                  "plan_required": {
                    "summary": "plan_required",
                    "value": {
                      "error": "plan_required",
                      "message": "New keywords need a balance. You can use any topic we already track for free: search for it and add it. To request new keywords, top up on the Billing page. Not tracked yet: something untracked.",
                      "top_up": "/dash/billing",
                      "existing_topics": "GET /api/v1/topics?search=…"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Your organization already has 30 lanes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "lane_limit": {
                    "value": {
                      "error": "lane_limit",
                      "message": "An organization can have up to 30 lanes."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      }
    },
    "/api/v1/lanes/{code}": {
      "get": {
        "tags": [
          "Lanes"
        ],
        "operationId": "getLane",
        "summary": "Get a lane",
        "description": "One lane in full: the counts from List lanes plus its audience, filters, every keyword (with its approval status and per-keyword counts) and the funnel.\n\n`funnel` shows how many people each filter step keeps, on the industry path, the company-list path and both together; each number carries the last data day behind it (finals are checked daily, other steps weekly).\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "$ref": "#/components/parameters/LaneCode"
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "responses": {
          "200": {
            "description": "The lane.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LaneDetail"
                },
                "example": {
                  "code": "L1",
                  "name": "Medical device distributors",
                  "priority": 1,
                  "min_strength": "medium",
                  "keywords_live": 8,
                  "keywords_pending": 2,
                  "researching_latest_day": {
                    "all": 1840,
                    "medium_plus": 620,
                    "high": 95,
                    "as_of": "2026-10-13",
                    "deliverable": false,
                    "note": "Quick topic signal from a separate preview index for one day, before any filter. Not people you could receive; use after_filters for that."
                  },
                  "researching_14d": {
                    "all": 21450,
                    "medium_plus": 7310,
                    "data_window": {
                      "start": "2026-09-30",
                      "end": "2026-10-13"
                    }
                  },
                  "after_filters": {
                    "all": 1265,
                    "medium_plus": 412,
                    "at_lane_strength": 412,
                    "filters_used": "industries",
                    "data_window": {
                      "start": "2026-09-30",
                      "end": "2026-10-13"
                    },
                    "checked_at": "2026-10-14T06:12:41.528311+00:00"
                  },
                  "company_list_mode": "off",
                  "audience": "Owners and sales leaders at US medical device distributors with 20 to 300 staff",
                  "filters": {
                    "countries": [
                      "United States"
                    ],
                    "headquarters_only": true,
                    "employees": {
                      "min": 20,
                      "max": 300
                    },
                    "industries": [
                      "medical equipment manufacturing",
                      "wholesale"
                    ],
                    "suggested_industries_not_applied": [],
                    "seniority": [
                      "cxo",
                      "vp",
                      "director"
                    ],
                    "titles_include": [],
                    "titles_exclude": [
                      "intern",
                      "assistant"
                    ],
                    "industries_exclude": [],
                    "exclude_companies": [
                      "staffing firms"
                    ],
                    "exclusions": {
                      "left_out_by_filter": [],
                      "screened_before_export": [
                        "staffing firms"
                      ],
                      "note": "industries_exclude is applied wherever the lane's industry list isn't (the company-list path, or a lane with no industries). screened_before_export lists setup notes with no matching filter: they are NOT applied to counts or exports. Use conditions or exclusions to leave those companies out."
                    },
                    "negative_topics": [
                      "job openings"
                    ],
                    "conditions": {
                      "all": [
                        {
                          "field": "department_detail",
                          "op": "any_of",
                          "value": [
                            "sales",
                            "business development"
                          ]
                        },
                        {
                          "field": "email_status",
                          "op": "any_of",
                          "value": [
                            "valid"
                          ]
                        }
                      ]
                    },
                    "conditions_summary": [
                      "All of:",
                      "  Department (detailed) is any of Sales, Business Development",
                      "  Email check result is Valid"
                    ]
                  },
                  "keyword_groups": [
                    {
                      "group": "A",
                      "keywords": 2,
                      "keywords_live": 1,
                      "min_strength": "medium",
                      "waiting_for_live_keyword": false,
                      "rule": "Researching any of these keywords."
                    }
                  ],
                  "keywords": [
                    {
                      "position": 1,
                      "keyword": "selling to group purchasing organizations",
                      "group": "A",
                      "status": "live",
                      "live_since": "2026-09-22",
                      "researching_latest_day": {
                        "all": 310,
                        "medium_plus": 102,
                        "high": 14,
                        "as_of": "2026-10-13",
                        "deliverable": false
                      },
                      "after_filters": {
                        "all": 96,
                        "window_end": "2026-10-10",
                        "note": "People on this keyword who pass the lane's US, size, industry, seniority and title filters over 14 days, any strength. Sized weekly."
                      }
                    },
                    {
                      "position": 2,
                      "keyword": "hospital supply chain contracts",
                      "group": "A",
                      "status": "pending_approval",
                      "live_since": null,
                      "researching_latest_day": {
                        "all": null,
                        "medium_plus": null,
                        "high": null,
                        "as_of": null,
                        "deliverable": false
                      },
                      "after_filters": null
                    }
                  ],
                  "funnel": {
                    "checked_at": "2026-10-14T06:12:41.528311+00:00",
                    "data_window": {
                      "start": "2026-09-30",
                      "end": "2026-10-13"
                    },
                    "unit": "people",
                    "note": "Finals are checked daily, other steps weekly; window_end is the last data day of the 14-day window behind each number.",
                    "filters_used": "industries",
                    "industry_path": {
                      "intent": {
                        "all": {
                          "people": 21450,
                          "window_end": "2026-10-10"
                        },
                        "medium_plus": {
                          "people": 7310,
                          "window_end": "2026-10-10"
                        }
                      },
                      "us": {
                        "all": {
                          "people": 14200,
                          "window_end": "2026-10-13"
                        },
                        "medium_plus": {
                          "people": 4905,
                          "window_end": "2026-10-10"
                        }
                      },
                      "size": {
                        "all": {
                          "people": 6020,
                          "window_end": "2026-10-13"
                        },
                        "medium_plus": {
                          "people": 2080,
                          "window_end": "2026-10-10"
                        }
                      },
                      "industry": {
                        "all": {
                          "people": 2410,
                          "window_end": "2026-10-13"
                        },
                        "medium_plus": {
                          "people": 815,
                          "window_end": "2026-10-10"
                        }
                      },
                      "seniority": {
                        "all": {
                          "people": 1530,
                          "window_end": "2026-10-13"
                        },
                        "medium_plus": {
                          "people": 498,
                          "window_end": "2026-10-10"
                        }
                      },
                      "rules": {
                        "all": {
                          "people": 1340,
                          "window_end": "2026-10-13"
                        },
                        "medium_plus": {
                          "people": 436,
                          "window_end": "2026-10-10"
                        }
                      },
                      "titles": {
                        "all": {
                          "people": 1265,
                          "window_end": "2026-10-13"
                        },
                        "medium_plus": {
                          "people": 412,
                          "window_end": "2026-10-13"
                        }
                      }
                    },
                    "company_list_path": null,
                    "both": null
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/LaneNotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      },
      "patch": {
        "tags": [
          "Lanes"
        ],
        "operationId": "updateLane",
        "summary": "Update a lane",
        "description": "Changes a lane's settings and filters. Fields you leave out keep their value; send `null` for `employees` to allow any size, or an empty list to clear a list filter. Returns the lane as Get a lane does.\n\n**Settings:** `min_strength` (`low` = any strength, `medium` = medium and high, `high` = high only) and `company_list_mode` (`narrow` = lane industries and your company list; `replace` = your company list instead of industries; `off` = ignore the list), and `priority` (1 is first: exports fill lanes in this order, and the other lanes move to make room).\n\n**Filters:** `name`, `audience`, `us_only`, `employees`, `industries`, `industries_exclude`, `seniority`, `titles_include`, `titles_exclude`, `topics_to_leave_out`, `exclude_companies`.\n\n**Good to know**\n- Counts in the response are from the last check, before your change. They update at the lane's next check (daily, or queue one with `POST /api/v1/lanes/{code}/checks`).\n- Changing any filter re-validates the lane's whole filter set, so its `name` (2 to 80 characters) and `audience` (10+ characters) must still be valid.\n- Keywords aren't changed here; use the Keywords endpoints.\n- `enabled` and `max_per_day` were removed and return `removed_field`.\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "$ref": "#/components/parameters/LaneCode"
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LaneUpdate"
              },
              "examples": {
                "strength": {
                  "summary": "Change settings",
                  "value": {
                    "min_strength": "high",
                    "company_list_mode": "replace"
                  }
                },
                "filters": {
                  "summary": "Change filters",
                  "value": {
                    "employees": {
                      "min": 50,
                      "max": 500
                    },
                    "seniority": [
                      "cxo",
                      "vp"
                    ],
                    "titles_exclude": [
                      "intern"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated lane.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LaneDetail"
                },
                "example": {
                  "code": "L1",
                  "name": "Medical device distributors",
                  "priority": 1,
                  "min_strength": "medium",
                  "keywords_live": 8,
                  "keywords_pending": 2,
                  "researching_latest_day": {
                    "all": 1840,
                    "medium_plus": 620,
                    "high": 95,
                    "as_of": "2026-10-13",
                    "deliverable": false,
                    "note": "Quick topic signal from a separate preview index for one day, before any filter. Not people you could receive; use after_filters for that."
                  },
                  "researching_14d": {
                    "all": 21450,
                    "medium_plus": 7310,
                    "data_window": {
                      "start": "2026-09-30",
                      "end": "2026-10-13"
                    }
                  },
                  "after_filters": {
                    "all": 1265,
                    "medium_plus": 412,
                    "at_lane_strength": 412,
                    "filters_used": "industries",
                    "data_window": {
                      "start": "2026-09-30",
                      "end": "2026-10-13"
                    },
                    "checked_at": "2026-10-14T06:12:41.528311+00:00"
                  },
                  "company_list_mode": "off",
                  "audience": "Owners and sales leaders at US medical device distributors with 20 to 300 staff",
                  "filters": {
                    "countries": [
                      "United States"
                    ],
                    "headquarters_only": true,
                    "employees": {
                      "min": 20,
                      "max": 300
                    },
                    "industries": [
                      "medical equipment manufacturing",
                      "wholesale"
                    ],
                    "suggested_industries_not_applied": [],
                    "seniority": [
                      "cxo",
                      "vp",
                      "director"
                    ],
                    "titles_include": [],
                    "titles_exclude": [
                      "intern",
                      "assistant"
                    ],
                    "industries_exclude": [],
                    "exclude_companies": [
                      "staffing firms"
                    ],
                    "exclusions": {
                      "left_out_by_filter": [],
                      "screened_before_export": [
                        "staffing firms"
                      ],
                      "note": "industries_exclude is applied wherever the lane's industry list isn't (the company-list path, or a lane with no industries). screened_before_export lists setup notes with no matching filter: they are NOT applied to counts or exports. Use conditions or exclusions to leave those companies out."
                    },
                    "negative_topics": [
                      "job openings"
                    ],
                    "conditions": {
                      "all": [
                        {
                          "field": "department_detail",
                          "op": "any_of",
                          "value": [
                            "sales",
                            "business development"
                          ]
                        },
                        {
                          "field": "email_status",
                          "op": "any_of",
                          "value": [
                            "valid"
                          ]
                        }
                      ]
                    },
                    "conditions_summary": [
                      "All of:",
                      "  Department (detailed) is any of Sales, Business Development",
                      "  Email check result is Valid"
                    ]
                  },
                  "keyword_groups": [
                    {
                      "group": "A",
                      "keywords": 2,
                      "keywords_live": 1,
                      "min_strength": "medium",
                      "waiting_for_live_keyword": false,
                      "rule": "Researching any of these keywords."
                    }
                  ],
                  "keywords": [
                    {
                      "position": 1,
                      "keyword": "selling to group purchasing organizations",
                      "group": "A",
                      "status": "live",
                      "live_since": "2026-09-22",
                      "researching_latest_day": {
                        "all": 310,
                        "medium_plus": 102,
                        "high": 14,
                        "as_of": "2026-10-13",
                        "deliverable": false
                      },
                      "after_filters": {
                        "all": 96,
                        "window_end": "2026-10-10",
                        "note": "People on this keyword who pass the lane's US, size, industry, seniority and title filters over 14 days, any strength. Sized weekly."
                      }
                    },
                    {
                      "position": 2,
                      "keyword": "hospital supply chain contracts",
                      "group": "A",
                      "status": "pending_approval",
                      "live_since": null,
                      "researching_latest_day": {
                        "all": null,
                        "medium_plus": null,
                        "high": null,
                        "as_of": null,
                        "deliverable": false
                      },
                      "after_filters": null
                    }
                  ],
                  "funnel": {
                    "checked_at": "2026-10-14T06:12:41.528311+00:00",
                    "data_window": {
                      "start": "2026-09-30",
                      "end": "2026-10-13"
                    },
                    "unit": "people",
                    "note": "Finals are checked daily, other steps weekly; window_end is the last data day of the 14-day window behind each number.",
                    "filters_used": "industries",
                    "industry_path": {
                      "intent": {
                        "all": {
                          "people": 21450,
                          "window_end": "2026-10-10"
                        },
                        "medium_plus": {
                          "people": 7310,
                          "window_end": "2026-10-10"
                        }
                      },
                      "us": {
                        "all": {
                          "people": 14200,
                          "window_end": "2026-10-13"
                        },
                        "medium_plus": {
                          "people": 4905,
                          "window_end": "2026-10-10"
                        }
                      },
                      "size": {
                        "all": {
                          "people": 6020,
                          "window_end": "2026-10-13"
                        },
                        "medium_plus": {
                          "people": 2080,
                          "window_end": "2026-10-10"
                        }
                      },
                      "industry": {
                        "all": {
                          "people": 2410,
                          "window_end": "2026-10-13"
                        },
                        "medium_plus": {
                          "people": 815,
                          "window_end": "2026-10-10"
                        }
                      },
                      "seniority": {
                        "all": {
                          "people": 1530,
                          "window_end": "2026-10-13"
                        },
                        "medium_plus": {
                          "people": 498,
                          "window_end": "2026-10-10"
                        }
                      },
                      "rules": {
                        "all": {
                          "people": 1340,
                          "window_end": "2026-10-13"
                        },
                        "medium_plus": {
                          "people": 436,
                          "window_end": "2026-10-10"
                        }
                      },
                      "titles": {
                        "all": {
                          "people": 1265,
                          "window_end": "2026-10-13"
                        },
                        "medium_plus": {
                          "people": 412,
                          "window_end": "2026-10-13"
                        }
                      }
                    },
                    "company_list_path": null,
                    "both": null
                  }
                }
              }
            }
          },
          "400": {
            "description": "The body isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_body": {
                    "value": {
                      "error": "invalid_body",
                      "message": "Send a JSON object."
                    }
                  },
                  "invalid_strength": {
                    "value": {
                      "error": "invalid_strength",
                      "message": "min_strength must be low, medium or high."
                    }
                  },
                  "invalid_list_mode": {
                    "value": {
                      "error": "invalid_list_mode",
                      "message": "company_list_mode must be narrow, replace or off."
                    }
                  },
                  "invalid_priority": {
                    "value": {
                      "error": "invalid_priority",
                      "message": "priority must be a whole number: 1 is first."
                    }
                  },
                  "invalid_lane": {
                    "value": {
                      "error": "invalid_lane",
                      "message": "Keep the staff range within 5,000 (for example 20 to 300)."
                    }
                  },
                  "removed_field": {
                    "value": {
                      "error": "removed_field",
                      "message": "Lanes no longer switch on or off and have no daily maximum. Export new people whenever you want with POST /api/v1/exports."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/LaneNotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/lanes/{code}/sample": {
      "get": {
        "tags": [
          "Lanes"
        ],
        "operationId": "getLaneSample",
        "summary": "Get a lane's sample",
        "description": "Up to 25 example people from the lane's latest checks: role, company and intent fields, plus whether an email, phone and LinkedIn are on file. No names or contact details.\n\nRows are at the lane's own strength. If nobody passes at that strength yet, rows at any strength are shown with `below_lane_strength: true`. Samples come from checks; queue a fresh one with `POST /api/v1/lanes/{code}/checks`. Values are as stored, so text is often lowercase.\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "$ref": "#/components/parameters/LaneCode"
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "responses": {
          "200": {
            "description": "The sample.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sample"
                },
                "example": {
                  "lane": "L1",
                  "status": "ready",
                  "checked_at": "2026-10-14T06:12:41.528311+00:00",
                  "data_window": {
                    "start": "2026-09-30",
                    "end": "2026-10-13"
                  },
                  "min_strength": "medium",
                  "filters_used": "industries",
                  "sample_strength": "medium_plus",
                  "below_lane_strength": false,
                  "after_filters": {
                    "all": 1265,
                    "medium_plus": 412,
                    "high": null
                  },
                  "rows": [
                    {
                      "job_title": "vp of sales",
                      "seniority": "vp",
                      "company": "acme medical supply",
                      "industry": "medical equipment manufacturing",
                      "employees": 140,
                      "city": "minneapolis",
                      "state": "mn",
                      "keyword_matched": "selling to group purchasing organizations",
                      "intent_strength": "high",
                      "intent_score": 81,
                      "last_active": "2026-10-12",
                      "has_business_email": true,
                      "has_phone": true,
                      "has_linkedin": true
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/LaneNotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/lanes/{code}/estimate": {
      "get": {
        "tags": [
          "Lanes"
        ],
        "operationId": "getContactEstimate",
        "summary": "Get a search lane's estimate",
        "description": "The latest free estimate for a [search lane](/guides/search): how many people match now, with a masked sample.\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "$ref": "#/components/parameters/LaneCode"
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "responses": {
          "200": {
            "description": "The estimate.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "lane": {
                      "type": "string"
                    },
                    "estimate": {
                      "$ref": "#/components/schemas/ContactEstimate"
                    }
                  },
                  "required": [
                    "lane",
                    "estimate"
                  ]
                },
                "example": {
                  "lane": "S1",
                  "estimate": {
                    "status": "done",
                    "people": 41382,
                    "requested_at": "2026-10-14T06:12:41.528311+00:00",
                    "finished_at": "2026-10-14T06:12:41.528311+00:00",
                    "approximate": false,
                    "sample": [
                      {
                        "seniority": "VP+",
                        "department": "Executive",
                        "company": "Example Family Medicine",
                        "industry": "Medical Practices",
                        "employees": 34,
                        "city": "Tampa",
                        "state": "Florida",
                        "has_business_email": true,
                        "has_phone": true,
                        "has_linkedin": false
                      }
                    ],
                    "error": null,
                    "note": "People who match the lane's filters now, leaving out anyone you've already bought, your exclusions and removals. Estimates usually take under an hour and are free."
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/LaneNotFound"
          },
          "409": {
            "description": "An intent lane.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_a_search_lane": {
                    "value": {
                      "error": "not_a_search_lane",
                      "message": "L1 is an intent lane."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      },
      "post": {
        "tags": [
          "Lanes"
        ],
        "operationId": "requestContactEstimate",
        "summary": "Ask for a search lane's estimate",
        "description": "Counts everyone who matches the search lane now, leaving out anyone you've already bought, your exclusions and removals. It usually takes under an hour: poll `GET` until `status` is `done`.\n\nAn estimate for the same filters from the last 24 hours is returned instead of a new one (`reused: true`). Change the filters for a fresh count.\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "$ref": "#/components/parameters/LaneCode"
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "responses": {
          "200": {
            "description": "An estimate for the same filters already exists.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "lane": {
                      "type": "string"
                    },
                    "reused": {
                      "type": "boolean"
                    },
                    "estimate": {
                      "$ref": "#/components/schemas/ContactEstimate"
                    }
                  },
                  "required": [
                    "lane",
                    "reused",
                    "estimate"
                  ]
                },
                "example": {
                  "lane": "S1",
                  "reused": true,
                  "estimate": {
                    "status": "done",
                    "people": 41382,
                    "requested_at": "2026-10-14T06:12:41.528311+00:00",
                    "finished_at": "2026-10-14T06:12:41.528311+00:00",
                    "approximate": false,
                    "sample": [
                      {
                        "seniority": "VP+",
                        "department": "Executive",
                        "company": "Example Family Medicine",
                        "industry": "Medical Practices",
                        "employees": 34,
                        "city": "Tampa",
                        "state": "Florida",
                        "has_business_email": true,
                        "has_phone": true,
                        "has_linkedin": false
                      }
                    ],
                    "error": null,
                    "note": "People who match the lane's filters now, leaving out anyone you've already bought, your exclusions and removals. Estimates usually take under an hour and are free."
                  }
                }
              }
            }
          },
          "202": {
            "description": "Counting.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "lane": {
                      "type": "string"
                    },
                    "reused": {
                      "type": "boolean"
                    },
                    "estimate": {
                      "$ref": "#/components/schemas/ContactEstimate"
                    }
                  },
                  "required": [
                    "lane",
                    "reused",
                    "estimate"
                  ]
                },
                "example": {
                  "lane": "S1",
                  "reused": false,
                  "estimate": {
                    "status": "queued",
                    "people": null,
                    "requested_at": "2026-10-14T06:12:41.528311+00:00",
                    "finished_at": null,
                    "approximate": false,
                    "sample": [],
                    "error": null,
                    "note": "Counting. This usually takes under an hour; it's free."
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/LaneNotFound"
          },
          "409": {
            "description": "An intent lane.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_a_search_lane": {
                    "value": {
                      "error": "not_a_search_lane",
                      "message": "L1 is an intent lane. Estimates are for search lanes; intent lanes are checked daily."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/topics": {
      "get": {
        "tags": [
          "Topics"
        ],
        "operationId": "searchTopics",
        "summary": "Search existing topics",
        "description": "Topics we already track, matched on name and related terms. Use them before adding new keywords: an existing topic is live at once, with history, while a new one takes about a day to approve and 2 to 4 days before people show up.\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "required": true,
            "description": "What buyers research, e.g. `answering service`.",
            "schema": {
              "type": "string"
            },
            "example": "answering service"
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "`b2b` (default), `b2c` or `all`.",
            "schema": {
              "type": "string",
              "enum": [
                "b2b",
                "b2c",
                "all"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "1 to 100, default 20.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "For the next page.",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "signal",
            "in": "query",
            "required": false,
            "description": "`true` adds the first 10 results' one-day size.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Matching topics.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "search": {
                      "type": "string"
                    },
                    "topics": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Topic"
                      }
                    },
                    "next_offset": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Pass as `offset` for more."
                    },
                    "note": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "search",
                    "topics",
                    "next_offset",
                    "note"
                  ]
                },
                "example": {
                  "search": "answering service",
                  "topics": [
                    {
                      "topic": "tp503611",
                      "name": "Outsourced Receptionist Services",
                      "type": "B2B",
                      "category": "Business & Industrial › Business Services",
                      "path": [
                        "Business & Industrial",
                        "Business Services"
                      ],
                      "first_tracked": "2026-08-06",
                      "signal_latest_day": {
                        "all": 3558,
                        "medium_plus": 308,
                        "as_of": "2026-10-14",
                        "deliverable": false
                      }
                    }
                  ],
                  "next_offset": null,
                  "note": "Existing topics are live now, with history."
                }
              }
            }
          },
          "400": {
            "description": "Bad search.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_search": {
                    "value": {
                      "error": "invalid_search",
                      "message": "Search for at least 2 characters."
                    }
                  },
                  "invalid_type": {
                    "value": {
                      "error": "invalid_type",
                      "message": "type must be b2b, b2c or all."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/topics/{topic}": {
      "get": {
        "tags": [
          "Topics"
        ],
        "operationId": "getTopic",
        "summary": "Get a topic",
        "description": "What one topic covers, the related terms it includes, and its one-day size.\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "name": "topic",
            "in": "path",
            "required": true,
            "description": "Topic id, like `tp503611`.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The topic.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "topic": {
                      "$ref": "#/components/schemas/TopicDetail"
                    }
                  },
                  "required": [
                    "topic"
                  ]
                },
                "example": {
                  "topic": {
                    "topic": "tp503611",
                    "name": "Outsourced Receptionist Services",
                    "type": "B2B",
                    "category": "Business & Industrial › Business Services",
                    "path": [
                      "Business & Industrial",
                      "Business Services"
                    ],
                    "first_tracked": "2026-08-06",
                    "signal_latest_day": {
                      "all": 3558,
                      "medium_plus": 308,
                      "as_of": "2026-10-14",
                      "deliverable": false
                    },
                    "description": "Outsourced receptionist services provide businesses with remote call answering, message taking and appointment scheduling.",
                    "related_terms": [
                      "outsourced receptionist",
                      "answering service",
                      "virtual receptionist",
                      "call answering"
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No such topic.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "topic_not_found": {
                    "value": {
                      "error": "topic_not_found",
                      "message": "No such topic in the catalog."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/lanes/{code}/keywords": {
      "post": {
        "tags": [
          "Keywords"
        ],
        "operationId": "addKeyword",
        "summary": "Add a keyword",
        "description": "Adds a keyword to a lane. **Look for an existing topic first** (`GET /api/v1/topics`): send `topic` and it's live at once, with history.\n\nWith `keyword`, a name that exactly matches a topic we already track uses that topic (`existing_topic: true`, `status: live`), unless `create_new` is true. Otherwise it's sent for approval as a new topic: `status` is `pending_approval` once it's sent, or `queued` if sending didn't go through yet (it's retried automatically).\n\nApproval usually takes about a day; once live, people show up within 2 to 4 days. Track it in Get a lane or Activity, or refresh it now with `POST /api/v1/lanes/{code}/signals`.\n\nA keyword needs 3 to 120 characters (spaces are collapsed). A lane holds up to 50 keywords, and the same keyword can't be added twice (case-insensitive).\n\n**New keywords need a balance.** Without one, a keyword that isn't a topic we already track (or one sent with `create_new`) returns `402 plan_required` with the closest topics we track.\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "$ref": "#/components/parameters/LaneCode"
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "topic": {
                    "type": "string",
                    "description": "A topic id from `GET /api/v1/topics`, like `tp503611`. Send this or `keyword`."
                  },
                  "keyword": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 120,
                    "description": "What people research, 3 to 120 characters."
                  },
                  "create_new": {
                    "type": "boolean",
                    "default": false,
                    "description": "Request a new topic even if one we track has exactly this name."
                  },
                  "group": {
                    "type": "string",
                    "enum": [
                      "A",
                      "B",
                      "C",
                      "D"
                    ],
                    "description": "Default `A`. `B`-`D`: the person must also research one keyword from each group in use. See [Keyword groups](/guides/keywords#keyword-groups)."
                  }
                },
                "required": [
                  "topic",
                  "keyword",
                  "create_new",
                  "group"
                ]
              },
              "examples": {
                "existing": {
                  "summary": "An existing topic",
                  "value": {
                    "topic": "tp503611"
                  }
                },
                "new": {
                  "summary": "A new keyword",
                  "value": {
                    "keyword": "selling to ambulatory surgery centers"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Keyword added.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "lane": {
                      "type": "string"
                    },
                    "keyword": {
                      "type": "string",
                      "description": "The keyword as stored (an existing topic's own name)."
                    },
                    "group": {
                      "type": "string",
                      "enum": [
                        "A",
                        "B",
                        "C",
                        "D"
                      ],
                      "description": "`A`: the lane's main keywords (researching any of them). `B`, `C`, `D`: the person must also research at least one keyword from each group in use."
                    },
                    "position": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "live",
                        "pending_approval",
                        "queued"
                      ]
                    },
                    "existing_topic": {
                      "type": "boolean"
                    },
                    "topic": {
                      "type": "string",
                      "description": "The topic id, when there is one."
                    },
                    "note": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "lane",
                    "keyword",
                    "group",
                    "position",
                    "status",
                    "existing_topic",
                    "topic",
                    "note"
                  ]
                },
                "examples": {
                  "existing": {
                    "summary": "Existing topic",
                    "value": {
                      "lane": "L1",
                      "keyword": "Outsourced Receptionist Services",
                      "group": "A",
                      "position": 11,
                      "status": "live",
                      "existing_topic": true,
                      "topic": "tp503611",
                      "note": "Uses a topic that already exists: live now, with history. Counts update at the lane's next check."
                    }
                  },
                  "new": {
                    "summary": "New keyword",
                    "value": {
                      "lane": "L1",
                      "keyword": "selling to ambulatory surgery centers",
                      "group": "A",
                      "position": 12,
                      "status": "pending_approval",
                      "existing_topic": false,
                      "note": "Sent for approval as a new topic: usually about a day, then 2-4 days before people show up. Search existing topics first with GET /api/v1/topics?search=…"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The keyword can't be added.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_keyword": {
                    "value": {
                      "error": "invalid_keyword",
                      "message": "A keyword needs 3 to 120 characters."
                    }
                  },
                  "duplicate": {
                    "summary": "invalid_keyword (duplicate)",
                    "value": {
                      "error": "invalid_keyword",
                      "message": "That keyword is already in this lane."
                    }
                  },
                  "full": {
                    "summary": "invalid_keyword (50 keywords)",
                    "value": {
                      "error": "invalid_keyword",
                      "message": "A lane can hold up to 50 keywords."
                    }
                  },
                  "invalid_group": {
                    "value": {
                      "error": "invalid_group",
                      "message": "group must be A, B, C or D."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "description": "A new keyword on an account without a balance. Topics we already track are free: add one of `closest_topics` instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanError"
                },
                "examples": {
                  "plan_required": {
                    "summary": "plan_required",
                    "value": {
                      "error": "plan_required",
                      "message": "New keywords need a balance. You can use any topic we already track for free: search for it and add it. To request new keywords, top up on the Billing page. Closest topics we track: Outsourced Receptionist Services (tp503611), Virtual Receptionist Services (tp533153).",
                      "top_up": "/dash/billing",
                      "existing_topics": "GET /api/v1/topics?search=…",
                      "closest_topics": [
                        {
                          "topic": "tp503611",
                          "name": "Outsourced Receptionist Services"
                        },
                        {
                          "topic": "tp533153",
                          "name": "Virtual Receptionist Services"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/LaneNotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      },
      "patch": {
        "tags": [
          "Keywords"
        ],
        "operationId": "moveKeyword",
        "summary": "Move a keyword to another group",
        "description": "Moves a keyword, matched on its exact text (case-insensitive), to group `A`, `B`, `C` or `D`. Group A: researching any of its keywords. Each group B-D in use adds: and also researching at least one of its keywords. A group with no live keyword yet stops the lane being checked or exported (`409 group_not_live`). Counts update at the lane's next check.\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "$ref": "#/components/parameters/LaneCode"
          },
          {
            "name": "keyword",
            "in": "query",
            "required": true,
            "description": "The keyword to move, exact text (case-insensitive).",
            "schema": {
              "type": "string"
            },
            "example": "finding medical device distributors"
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "group": {
                    "type": "string",
                    "enum": [
                      "A",
                      "B",
                      "C",
                      "D"
                    ],
                    "description": "`A`: the lane's main keywords (researching any of them). `B`, `C`, `D`: the person must also research at least one keyword from each group in use."
                  }
                },
                "required": [
                  "group"
                ]
              },
              "example": {
                "group": "B"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Keyword moved.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "lane": {
                      "type": "string"
                    },
                    "keyword": {
                      "type": "string"
                    },
                    "group": {
                      "type": "string",
                      "enum": [
                        "A",
                        "B",
                        "C",
                        "D"
                      ],
                      "description": "`A`: the lane's main keywords (researching any of them). `B`, `C`, `D`: the person must also research at least one keyword from each group in use."
                    }
                  },
                  "required": [
                    "lane",
                    "keyword",
                    "group"
                  ]
                },
                "example": {
                  "lane": "L1",
                  "keyword": "finding medical device distributors",
                  "group": "B"
                }
              }
            }
          },
          "400": {
            "description": "No keyword or group given.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "keyword_required": {
                    "value": {
                      "error": "keyword_required",
                      "message": "Pass ?keyword=… with the exact text to change."
                    }
                  },
                  "invalid_group": {
                    "value": {
                      "error": "invalid_group",
                      "message": "group must be A, B, C or D."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No such lane, or the keyword isn't in it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "lane_not_found": {
                    "value": {
                      "error": "lane_not_found",
                      "message": "No lane L9."
                    }
                  },
                  "keyword_not_found": {
                    "value": {
                      "error": "keyword_not_found",
                      "message": "That keyword isn't in this lane."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      },
      "delete": {
        "tags": [
          "Keywords"
        ],
        "operationId": "removeKeyword",
        "summary": "Remove a keyword",
        "description": "Removes a keyword from a lane, matched on its exact text (case-insensitive). Checks and exports stop using it straight away; the lane's counts update at its next check.\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "$ref": "#/components/parameters/LaneCode"
          },
          {
            "name": "keyword",
            "in": "query",
            "required": true,
            "description": "The keyword to remove, exact text (case-insensitive).",
            "schema": {
              "type": "string"
            },
            "example": "finding medical device distributors"
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "responses": {
          "200": {
            "description": "Keyword removed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "lane": {
                      "type": "string"
                    },
                    "removed": {
                      "type": "string",
                      "description": "The keyword as it was stored."
                    }
                  },
                  "required": [
                    "lane",
                    "removed"
                  ]
                },
                "example": {
                  "lane": "L1",
                  "removed": "finding medical device distributors"
                }
              }
            }
          },
          "400": {
            "description": "No keyword given, or it couldn't be removed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "keyword_required": {
                    "value": {
                      "error": "keyword_required",
                      "message": "Pass ?keyword=… to remove."
                    }
                  },
                  "invalid_keyword": {
                    "value": {
                      "error": "invalid_keyword",
                      "message": "Couldn't remove the keyword. Try again."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No such lane, or the keyword isn't in it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "lane_not_found": {
                    "value": {
                      "error": "lane_not_found",
                      "message": "No lane L9."
                    }
                  },
                  "keyword_not_found": {
                    "value": {
                      "error": "keyword_not_found",
                      "message": "That keyword isn't in this lane."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/lanes/{code}/checks": {
      "get": {
        "tags": [
          "Checks"
        ],
        "operationId": "listLaneChecks",
        "summary": "List a lane's checks",
        "description": "A check sizes a lane over a pinned 14-day data window: how many people pass each filter step, a sample, and per-keyword sizes. Lanes are checked automatically every day (final counts daily, the full funnel and keyword sizes about weekly).\n\nReturns the check in progress (or null) and finished checks with results, newest first.\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "$ref": "#/components/parameters/LaneCode"
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "responses": {
          "200": {
            "description": "The lane's checks.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "lane": {
                      "type": "string"
                    },
                    "in_progress": {
                      "description": "The check running now, or null.",
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "string",
                              "enum": [
                                "queued",
                                "running"
                              ]
                            },
                            "done": {
                              "type": "integer",
                              "description": "Counts finished (including ones that failed)."
                            },
                            "total": {
                              "type": "integer",
                              "description": "Counts in this check."
                            },
                            "data_window": {
                              "$ref": "#/components/schemas/DataWindow"
                            }
                          },
                          "required": [
                            "status",
                            "done",
                            "total",
                            "data_window"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "checks": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CheckRun"
                      },
                      "description": "Finished checks, newest first."
                    }
                  },
                  "required": [
                    "lane",
                    "in_progress",
                    "checks"
                  ]
                },
                "example": {
                  "lane": "L1",
                  "in_progress": {
                    "status": "running",
                    "done": 7,
                    "total": 19,
                    "data_window": {
                      "start": "2026-10-01",
                      "end": "2026-10-14"
                    }
                  },
                  "checks": [
                    {
                      "checked_at": "2026-10-14T06:12:41.528311+00:00",
                      "status": "completed",
                      "kind": "daily_finals",
                      "data_window": {
                        "start": "2026-09-30",
                        "end": "2026-10-13"
                      },
                      "industry_final": {
                        "all": 1265,
                        "medium_plus": 412
                      },
                      "company_list_final": null,
                      "both_final": null,
                      "counts_missing": 0
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/LaneNotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      },
      "post": {
        "tags": [
          "Checks"
        ],
        "operationId": "createLaneCheck",
        "summary": "Queue a lane check",
        "description": "Queues a fresh full check of one lane: the whole funnel, samples and per-keyword sizes. It takes minutes; poll `GET /api/v1/lanes/{code}/checks`.\n\nUse it after changing filters, keywords or your company list, so counts and samples reflect the change before the next automatic check.\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "$ref": "#/components/parameters/LaneCode"
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "responses": {
          "202": {
            "description": "Check queued.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "lane": {
                      "type": "string"
                    },
                    "queued": {
                      "type": "boolean",
                      "const": true
                    },
                    "poll": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "lane",
                    "queued",
                    "poll"
                  ]
                },
                "example": {
                  "lane": "L1",
                  "queued": true,
                  "poll": "/api/v1/lanes/L1/checks"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/LaneNotFound"
          },
          "409": {
            "description": "The lane can't be checked right now.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "in_progress": {
                    "value": {
                      "error": "in_progress",
                      "message": "A check is already running for this lane."
                    }
                  },
                  "no_live_keywords": {
                    "value": {
                      "error": "no_live_keywords",
                      "message": "This lane has no live keywords yet."
                    }
                  },
                  "group_not_live": {
                    "value": {
                      "error": "group_not_live",
                      "message": "One of this lane's keyword groups (B to D) has no live keyword yet. Wait for approval, or move those keywords to group A."
                    }
                  },
                  "not_configured": {
                    "value": {
                      "error": "not_configured",
                      "message": "This lane isn't connected yet."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "description": "No data day is ready yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "no_data": {
                    "value": {
                      "error": "no_data",
                      "message": "No data day is ready yet. Try again later."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/checks": {
      "post": {
        "tags": [
          "Checks"
        ],
        "operationId": "createChecks",
        "summary": "Queue checks for every lane",
        "description": "Queues a fresh full check for every lane that can be checked. Always returns `202` with one result per lane code: `queued`, `in_progress` (already running), `no_live_keywords`, `not_configured`, `no_data` or `failed`. Lanes that can't be checked are reported, not errors.\n\n**Free.** This doesn't spend your balance.",
        "responses": {
          "202": {
            "description": "Result per lane.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "lanes": {
                      "type": "object",
                      "description": "Lane code → result.",
                      "additionalProperties": {
                        "type": "string",
                        "enum": [
                          "queued",
                          "in_progress",
                          "no_live_keywords",
                          "group_not_live",
                          "not_configured",
                          "no_data",
                          "failed"
                        ]
                      }
                    }
                  },
                  "required": [
                    "lanes"
                  ]
                },
                "example": {
                  "lanes": {
                    "L1": "queued",
                    "L2": "in_progress",
                    "L3": "no_live_keywords"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      }
    },
    "/api/v1/lanes/{code}/signals": {
      "post": {
        "tags": [
          "Checks"
        ],
        "operationId": "refreshLaneSignals",
        "summary": "Refresh a lane's signals",
        "description": "Picks up keyword approval decisions (pending keywords move to `live` or `rejected`) and refreshes the lane's quick one-day topic signals (`researching_latest_day`, for the lane and each live keyword). Both also happen automatically; call this when you want them now.\n\nSignals aren't deliverable counts. For people you could export, use checks.\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "$ref": "#/components/parameters/LaneCode"
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "responses": {
          "200": {
            "description": "Refreshed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "lane": {
                      "type": "string"
                    },
                    "keyword_decisions": {
                      "type": "integer",
                      "description": "This lane's keywords that just moved to live or rejected."
                    },
                    "readings": {
                      "type": "integer",
                      "description": "Signal readings saved."
                    },
                    "as_of": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "date",
                      "description": "The data day of the readings."
                    },
                    "failed": {
                      "type": "integer",
                      "description": "Readings that couldn't be fetched."
                    }
                  },
                  "required": [
                    "lane",
                    "keyword_decisions",
                    "readings",
                    "as_of",
                    "failed"
                  ]
                },
                "example": {
                  "lane": "L1",
                  "keyword_decisions": 1,
                  "readings": 27,
                  "as_of": "2026-10-13",
                  "failed": 0
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/LaneNotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/company-list": {
      "get": {
        "tags": [
          "Company list"
        ],
        "operationId": "getCompanyList",
        "summary": "Get the company list",
        "description": "Your organization's company list. There's one list, shared by every lane; each lane's `company_list_mode` decides how it's used (`narrow`, `replace` or `off`). `company_list` is null when nothing was uploaded. The entries themselves aren't returned.\n\n**Free.** This doesn't spend your balance.",
        "responses": {
          "200": {
            "description": "The list's size and upload date.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "company_list": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/CompanyList"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "company_list"
                  ]
                },
                "example": {
                  "company_list": {
                    "companies": 1830,
                    "domains": 1800,
                    "linkedin_pages": 30,
                    "dropped_invalid": 12,
                    "duplicates_merged": 4,
                    "source": "Q4 target accounts",
                    "uploaded_at": "2026-10-12T15:04:22.731904+00:00"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      },
      "put": {
        "tags": [
          "Company list"
        ],
        "operationId": "replaceCompanyList",
        "summary": "Replace the company list",
        "description": "Replaces your company list; the previous one is deleted. Send either:\n\n- **CSV or plain text** (`text/csv` or `text/plain`): one domain or company LinkedIn URL per line, or a CSV whose header row has a domain column (`domain`, `company_domain`, `website`, `company_website`, `url`, `company domain` or `company website`) and/or a company LinkedIn column (`company_linkedin_url`, `company_linkedin`, `linkedin_company_url`, `company linkedin` or `company linkedin url`). Columns can be separated by commas, tabs or semicolons. Up to 60 MB. Name the list with `?name=`.\n- **JSON** (`application/json`): `{\"domains\": [...], \"linkedin\": [...], \"name\": \"...\"}`.\n\nWebsites are cleaned to the bare domain (`https://www.example.com/about` becomes `example.com`). Email addresses and invalid entries are dropped and counted, and duplicates are merged.\n\n**Good to know**\n- Lanes match your list on domains. LinkedIn company pages are stored and counted, but aren't used to match people, so a list of only LinkedIn pages doesn't change counts or exports. In CSV rows that have both, only the domain is kept.\n- Counts don't change until the next check; queue one with `POST /api/v1/checks`.\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "A name for the list when you send CSV or text (default `API upload`). For JSON, use `name` in the body.",
            "schema": {
              "type": "string"
            },
            "example": "Q4 target accounts"
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "text/csv": {
              "schema": {
                "type": "string"
              },
              "example": "company_domain,company_linkedin_url\nexample.com,https://www.linkedin.com/company/example\nexample.org,\n"
            },
            "text/plain": {
              "schema": {
                "type": "string"
              },
              "example": "example.com\nhttps://www.example.org/about\nhttps://www.linkedin.com/company/example-net\n"
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyListJson"
              },
              "example": {
                "name": "Q4 target accounts",
                "domains": [
                  "example.com",
                  "https://www.example.org/about"
                ],
                "linkedin": [
                  "https://www.linkedin.com/company/example-net"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The new list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "company_list": {
                      "$ref": "#/components/schemas/CompanyList"
                    }
                  },
                  "required": [
                    "company_list"
                  ]
                },
                "example": {
                  "company_list": {
                    "companies": 1830,
                    "domains": 1800,
                    "linkedin_pages": 30,
                    "dropped_invalid": 12,
                    "duplicates_merged": 4,
                    "source": "Q4 target accounts",
                    "uploaded_at": "2026-10-12T15:04:22.731904+00:00"
                  }
                }
              }
            }
          },
          "400": {
            "description": "The body isn't valid or has no companies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_body": {
                    "value": {
                      "error": "invalid_body",
                      "message": "Send JSON or CSV."
                    }
                  },
                  "no_companies": {
                    "value": {
                      "error": "no_companies",
                      "message": "No company domains or LinkedIn company URLs found."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "413": {
            "description": "The CSV or text body is over 60 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "value": {
                      "error": "too_large",
                      "message": "Up to 60 MB. Split bigger lists."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      },
      "post": {
        "tags": [
          "Company list"
        ],
        "operationId": "addToCompanyList",
        "summary": "Add companies to the list",
        "description": "Adds companies to your company list without replacing it; ones already on it are skipped. Same body as Replace the company list: JSON `{\"domains\": [...], \"linkedin\": [...]}`, or a CSV or plain list. If there's no list yet, this creates one.\n\nCounts change from each lane's next check.\n\n**Free.** This doesn't spend your balance.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyListJson"
              },
              "example": {
                "domains": [
                  "example.com",
                  "https://www.example.org/about"
                ],
                "linkedin": [
                  "https://www.linkedin.com/company/example-net"
                ]
              }
            },
            "text/csv": {
              "schema": {
                "type": "string"
              },
              "example": "domain\nexample.com\nexample.org\n"
            },
            "text/plain": {
              "schema": {
                "type": "string"
              },
              "example": "example.com\nexample.org\n"
            }
          }
        },
        "responses": {
          "200": {
            "description": "How many were added, and the list now.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "added": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "company_list": {
                      "$ref": "#/components/schemas/CompanyList"
                    }
                  },
                  "required": [
                    "added",
                    "company_list"
                  ]
                },
                "example": {
                  "added": 2,
                  "company_list": {
                    "companies": 1830,
                    "domains": 1800,
                    "linkedin_pages": 30,
                    "dropped_invalid": 12,
                    "duplicates_merged": 4,
                    "source": "Q4 target accounts",
                    "uploaded_at": "2026-10-12T15:04:22.731904+00:00"
                  }
                }
              }
            }
          },
          "400": {
            "description": "The body isn't valid or has no companies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_body": {
                    "value": {
                      "error": "invalid_body",
                      "message": "Send JSON or CSV."
                    }
                  },
                  "no_companies": {
                    "value": {
                      "error": "no_companies",
                      "message": "No company domains or LinkedIn company URLs found."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "413": {
            "description": "The CSV or text body is over 60 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "value": {
                      "error": "too_large",
                      "message": "Up to 60 MB. Split bigger lists."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      },
      "delete": {
        "tags": [
          "Company list"
        ],
        "operationId": "removeFromCompanyList",
        "summary": "Remove companies, or delete the list",
        "description": "Removes some companies from your company list: send them in the body (same formats as adding), or as query values like `?domain=example.com&domain=example.org`. `?all=true` deletes the whole list, and lanes then use their industry filters alone.\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "name": "all",
            "in": "query",
            "required": false,
            "description": "`true` deletes the whole list.",
            "schema": {
              "type": "boolean"
            },
            "example": true
          },
          {
            "name": "domain",
            "in": "query",
            "required": false,
            "description": "A domain to remove. Repeat it for several.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "example": [
              "example.com"
            ]
          },
          {
            "name": "linkedin",
            "in": "query",
            "required": false,
            "description": "A company LinkedIn URL to remove. Repeat it for several.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyListJson"
              },
              "example": {
                "domains": [
                  "example.com",
                  "https://www.example.org/about"
                ],
                "linkedin": [
                  "https://www.linkedin.com/company/example-net"
                ]
              }
            },
            "text/csv": {
              "schema": {
                "type": "string"
              },
              "example": "domain\nexample.com\nexample.org\n"
            },
            "text/plain": {
              "schema": {
                "type": "string"
              },
              "example": "example.com\nexample.org\n"
            }
          }
        },
        "responses": {
          "200": {
            "description": "How many were removed, and the list now (`null` once it's empty or deleted).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "removed": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "deleted": {
                      "type": [
                        "boolean",
                        "null"
                      ],
                      "description": "Present and true when the whole list is gone."
                    },
                    "company_list": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/CompanyList"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "company_list"
                  ]
                },
                "examples": {
                  "removed": {
                    "value": {
                      "removed": 1,
                      "company_list": {
                        "companies": 1830,
                        "domains": 1800,
                        "linkedin_pages": 30,
                        "dropped_invalid": 12,
                        "duplicates_merged": 4,
                        "source": "Q4 target accounts",
                        "uploaded_at": "2026-10-12T15:04:22.731904+00:00"
                      }
                    }
                  },
                  "deleted": {
                    "value": {
                      "company_list": null,
                      "deleted": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The body isn't valid or has no companies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_body": {
                    "value": {
                      "error": "invalid_body",
                      "message": "Send JSON or CSV."
                    }
                  },
                  "no_companies": {
                    "value": {
                      "error": "no_companies",
                      "message": "No company domains or LinkedIn company URLs found."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "There's no company list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "no_company_list": {
                    "value": {
                      "error": "no_company_list",
                      "message": "There's no company list to remove companies from."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/exclusions": {
      "get": {
        "tags": [
          "Exclusions"
        ],
        "operationId": "getExclusions",
        "summary": "Get exclusions",
        "description": "How many companies and people are left out of every lane, and when each list last changed.\n\n**Free.** This doesn't spend your balance.",
        "responses": {
          "200": {
            "description": "Counts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExclusionSummary"
                },
                "example": {
                  "companies": {
                    "domains": 412,
                    "linkedin_pages": 3,
                    "updated_at": "2026-10-14T09:12:00.000Z"
                  },
                  "people": {
                    "people": 1250,
                    "updated_at": "2026-10-14T09:14:30.000Z"
                  },
                  "note": "Left out of every lane before anything is bought. Lane counts leave them out from the next check."
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      }
    },
    "/api/v1/exclusions/companies": {
      "get": {
        "tags": [
          "Exclusions"
        ],
        "operationId": "listExcludedCompanies",
        "summary": "List excluded companies",
        "description": "The companies left out of every lane: domains first, then company LinkedIn pages. Page with `limit` and `offset`.\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size, 1 to 10,000 (default 1,000).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000
            },
            "example": 1000
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Where to start (default 0).",
            "schema": {
              "type": "integer",
              "minimum": 0
            },
            "example": 0
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "responses": {
          "200": {
            "description": "One page.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "total": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "companies": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "domain",
                              "linkedin"
                            ]
                          },
                          "value": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "type",
                          "value"
                        ]
                      }
                    },
                    "next_offset": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Pass as `offset` for the next page; `null` on the last page."
                    }
                  },
                  "required": [
                    "total",
                    "companies",
                    "next_offset"
                  ]
                },
                "example": {
                  "total": 3,
                  "companies": [
                    {
                      "type": "domain",
                      "value": "example.com"
                    },
                    {
                      "type": "domain",
                      "value": "example.org"
                    }
                  ],
                  "next_offset": 2
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      },
      "post": {
        "tags": [
          "Exclusions"
        ],
        "operationId": "addExcludedCompanies",
        "summary": "Leave out companies",
        "description": "Adds companies to leave out of every lane: current customers, competitors, partners. Ones already on the list are skipped. Send JSON `{\"domains\": [...], \"linkedin\": [...]}`, or a CSV (with a domain or company LinkedIn column) or a plain list, one per line.\n\nWebsites are cleaned to the bare domain (`https://www.example.com/about` becomes `example.com`). Up to 100,000 companies.\n\n**How it works**\n- Every lane leaves these out: they're excluded from the audience before anything is bought, and anyone who still comes back (for example under another email) is dropped before they're written or charged.\n- Lane counts and \"available now\" leave them out from each lane's next check (daily, or queue one with `POST /api/v1/checks`).\n- People already exported stay in your leads; exclusions apply to future exports.\n\n**Free.** This doesn't spend your balance.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyListJson"
              },
              "example": {
                "domains": [
                  "example.com",
                  "https://www.example.org/about"
                ],
                "linkedin": [
                  "https://www.linkedin.com/company/example-net"
                ]
              }
            },
            "text/csv": {
              "schema": {
                "type": "string"
              },
              "example": "domain\nexample.com\nexample.org\n"
            },
            "text/plain": {
              "schema": {
                "type": "string"
              },
              "example": "example.com\nexample.org\n"
            }
          }
        },
        "responses": {
          "200": {
            "description": "The change, and the totals now.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyExclusionChange"
                },
                "example": {
                  "changed": 2,
                  "dropped_invalid": 1,
                  "domains": 414,
                  "linkedin_pages": 3,
                  "updated_at": "2026-10-14T09:20:00.000Z"
                }
              }
            }
          },
          "400": {
            "description": "Nothing valid, or too many.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "no_companies": {
                    "value": {
                      "error": "no_companies",
                      "message": "No company domains or LinkedIn company URLs found."
                    }
                  },
                  "invalid_body": {
                    "value": {
                      "error": "invalid_body",
                      "message": "Send JSON or CSV."
                    }
                  },
                  "too_many_exclusions": {
                    "value": {
                      "error": "too_many_exclusions",
                      "message": "Up to 100,000 companies can be left out."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "413": {
            "description": "The CSV or text body is over 60 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "value": {
                      "error": "too_large",
                      "message": "Up to 60 MB. Split bigger lists."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      },
      "put": {
        "tags": [
          "Exclusions"
        ],
        "operationId": "replaceExcludedCompanies",
        "summary": "Replace excluded companies",
        "description": "Replaces the whole list of companies to leave out. Same body as Leave out companies.\n\n**How it works**\n- Every lane leaves these out: they're excluded from the audience before anything is bought, and anyone who still comes back (for example under another email) is dropped before they're written or charged.\n- Lane counts and \"available now\" leave them out from each lane's next check (daily, or queue one with `POST /api/v1/checks`).\n- People already exported stay in your leads; exclusions apply to future exports.\n\n**Free.** This doesn't spend your balance.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyListJson"
              },
              "example": {
                "domains": [
                  "example.com",
                  "https://www.example.org/about"
                ],
                "linkedin": [
                  "https://www.linkedin.com/company/example-net"
                ]
              }
            },
            "text/csv": {
              "schema": {
                "type": "string"
              },
              "example": "domain\nexample.com\nexample.org\n"
            },
            "text/plain": {
              "schema": {
                "type": "string"
              },
              "example": "example.com\nexample.org\n"
            }
          }
        },
        "responses": {
          "200": {
            "description": "The totals now.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyExclusionChange"
                },
                "example": {
                  "changed": 400,
                  "dropped_invalid": 0,
                  "domains": 400,
                  "linkedin_pages": 0,
                  "updated_at": "2026-10-14T09:20:00.000Z"
                }
              }
            }
          },
          "400": {
            "description": "Nothing valid, or too many.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "no_companies": {
                    "value": {
                      "error": "no_companies",
                      "message": "No company domains or LinkedIn company URLs found."
                    }
                  },
                  "too_many_exclusions": {
                    "value": {
                      "error": "too_many_exclusions",
                      "message": "Up to 100,000 companies can be left out."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "413": {
            "description": "The CSV or text body is over 60 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "value": {
                      "error": "too_large",
                      "message": "Up to 60 MB. Split bigger lists."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      },
      "delete": {
        "tags": [
          "Exclusions"
        ],
        "operationId": "removeExcludedCompanies",
        "summary": "Stop leaving out companies",
        "description": "Removes companies from the list: in the body (same formats as adding) or as query values like `?domain=example.com`. `?all=true` clears the list.\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "name": "all",
            "in": "query",
            "required": false,
            "description": "`true` clears every excluded company.",
            "schema": {
              "type": "boolean"
            },
            "example": true
          },
          {
            "name": "domain",
            "in": "query",
            "required": false,
            "description": "A domain to stop leaving out. Repeat for several.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "example": [
              "example.com"
            ]
          },
          {
            "name": "linkedin",
            "in": "query",
            "required": false,
            "description": "A company LinkedIn URL to stop leaving out. Repeat for several.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyListJson"
              },
              "example": {
                "domains": [
                  "example.com",
                  "https://www.example.org/about"
                ],
                "linkedin": [
                  "https://www.linkedin.com/company/example-net"
                ]
              }
            },
            "text/csv": {
              "schema": {
                "type": "string"
              },
              "example": "domain\nexample.com\nexample.org\n"
            },
            "text/plain": {
              "schema": {
                "type": "string"
              },
              "example": "example.com\nexample.org\n"
            }
          }
        },
        "responses": {
          "200": {
            "description": "The change, and the totals now.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyExclusionChange"
                },
                "example": {
                  "changed": 1,
                  "dropped_invalid": 0,
                  "domains": 413,
                  "linkedin_pages": 3,
                  "updated_at": "2026-10-14T09:25:00.000Z"
                }
              }
            }
          },
          "400": {
            "description": "The body isn't valid or has no companies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_body": {
                    "value": {
                      "error": "invalid_body",
                      "message": "Send JSON or CSV."
                    }
                  },
                  "no_companies": {
                    "value": {
                      "error": "no_companies",
                      "message": "No company domains or LinkedIn company URLs found."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/exclusions/people": {
      "get": {
        "tags": [
          "Exclusions"
        ],
        "operationId": "getExcludedPeople",
        "summary": "Count excluded people",
        "description": "How many people are left out of every lane. Only hashes are kept, so the list itself can't be read back.\n\n**Free.** This doesn't spend your balance.",
        "responses": {
          "200": {
            "description": "The count.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "people": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "updated_at": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "date-time"
                    }
                  },
                  "required": [
                    "people",
                    "updated_at"
                  ]
                },
                "example": {
                  "people": 1250,
                  "updated_at": "2026-10-14T09:14:30.000Z"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      },
      "post": {
        "tags": [
          "Exclusions"
        ],
        "operationId": "addExcludedPeople",
        "summary": "Leave out people",
        "description": "Adds people to leave out of every lane: contacts already in your CRM, current customers, people who opted out with you. Send JSON `{\"emails\": [...], \"email_sha256\": [...], \"linkedin\": [...]}`, or a CSV or plain list: every cell that's an email, a sha256 of a lowercased email or a LinkedIn profile URL counts.\n\nOnly a sha256 of each email or profile is kept, never the value itself. Up to 50,000.\n\n**How it works**\n- Every lane leaves these out: they're excluded from the audience before anything is bought, and anyone who still comes back (for example under another email) is dropped before they're written or charged.\n- Lane counts and \"available now\" leave them out from each lane's next check (daily, or queue one with `POST /api/v1/checks`).\n- People already exported stay in your leads; exclusions apply to future exports.\n\n**Free.** This doesn't spend your balance.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PeopleListJson"
              },
              "example": {
                "emails": [
                  "jordan.lee@example.com"
                ],
                "email_sha256": [],
                "linkedin": [
                  "https://www.linkedin.com/in/sam-rivera-example"
                ]
              }
            },
            "text/csv": {
              "schema": {
                "type": "string"
              },
              "example": "email\njordan.lee@example.com\nsam.rivera@example.org\n"
            },
            "text/plain": {
              "schema": {
                "type": "string"
              },
              "example": "jordan.lee@example.com\nhttps://www.linkedin.com/in/sam-rivera-example\n"
            }
          }
        },
        "responses": {
          "200": {
            "description": "The change, and the total now.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PeopleExclusionChange"
                },
                "example": {
                  "changed": 2,
                  "dropped_invalid": 0,
                  "people": 1252,
                  "updated_at": "2026-10-14T09:30:00.000Z"
                }
              }
            }
          },
          "400": {
            "description": "Nothing valid, or too many.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "no_people": {
                    "value": {
                      "error": "no_people",
                      "message": "No emails, email hashes or LinkedIn profile URLs found."
                    }
                  },
                  "invalid_body": {
                    "value": {
                      "error": "invalid_body",
                      "message": "Send JSON or CSV."
                    }
                  },
                  "too_many_exclusions": {
                    "value": {
                      "error": "too_many_exclusions",
                      "message": "Up to 50,000 people can be left out."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "413": {
            "description": "The CSV or text body is over 60 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "value": {
                      "error": "too_large",
                      "message": "Up to 60 MB. Split bigger lists."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      },
      "put": {
        "tags": [
          "Exclusions"
        ],
        "operationId": "replaceExcludedPeople",
        "summary": "Replace excluded people",
        "description": "Replaces everyone on the list with the people you send. Same body as Leave out people.\n\n**Free.** This doesn't spend your balance.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PeopleListJson"
              },
              "example": {
                "emails": [
                  "jordan.lee@example.com"
                ],
                "email_sha256": [],
                "linkedin": [
                  "https://www.linkedin.com/in/sam-rivera-example"
                ]
              }
            },
            "text/csv": {
              "schema": {
                "type": "string"
              },
              "example": "email\njordan.lee@example.com\nsam.rivera@example.org\n"
            },
            "text/plain": {
              "schema": {
                "type": "string"
              },
              "example": "jordan.lee@example.com\nhttps://www.linkedin.com/in/sam-rivera-example\n"
            }
          }
        },
        "responses": {
          "200": {
            "description": "The total now.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PeopleExclusionChange"
                },
                "example": {
                  "changed": 900,
                  "dropped_invalid": 3,
                  "people": 900,
                  "updated_at": "2026-10-14T09:30:00.000Z"
                }
              }
            }
          },
          "400": {
            "description": "Nothing valid, or too many.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "no_people": {
                    "value": {
                      "error": "no_people",
                      "message": "No emails, email hashes or LinkedIn profile URLs found."
                    }
                  },
                  "invalid_body": {
                    "value": {
                      "error": "invalid_body",
                      "message": "Send JSON or CSV."
                    }
                  },
                  "too_many_exclusions": {
                    "value": {
                      "error": "too_many_exclusions",
                      "message": "Up to 50,000 people can be left out."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "413": {
            "description": "The CSV or text body is over 60 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_large": {
                    "value": {
                      "error": "too_large",
                      "message": "Up to 60 MB. Split bigger lists."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      },
      "delete": {
        "tags": [
          "Exclusions"
        ],
        "operationId": "removeExcludedPeople",
        "summary": "Stop leaving out people",
        "description": "Removes people from the list: in the body (same formats as adding) or as query values like `?email=jordan.lee@example.com`. `?all=true` clears it.\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "name": "all",
            "in": "query",
            "required": false,
            "description": "`true` clears the list.",
            "schema": {
              "type": "boolean"
            },
            "example": true
          },
          {
            "name": "email",
            "in": "query",
            "required": false,
            "description": "An email to stop leaving out. Repeat for several.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "email_sha256",
            "in": "query",
            "required": false,
            "description": "An email hash to stop leaving out.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "linkedin",
            "in": "query",
            "required": false,
            "description": "A LinkedIn profile URL to stop leaving out.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PeopleListJson"
              },
              "example": {
                "emails": [
                  "jordan.lee@example.com"
                ],
                "email_sha256": [],
                "linkedin": [
                  "https://www.linkedin.com/in/sam-rivera-example"
                ]
              }
            },
            "text/csv": {
              "schema": {
                "type": "string"
              },
              "example": "email\njordan.lee@example.com\nsam.rivera@example.org\n"
            },
            "text/plain": {
              "schema": {
                "type": "string"
              },
              "example": "jordan.lee@example.com\nhttps://www.linkedin.com/in/sam-rivera-example\n"
            }
          }
        },
        "responses": {
          "200": {
            "description": "The change, and the total now.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PeopleExclusionChange"
                },
                "example": {
                  "changed": 1,
                  "dropped_invalid": 0,
                  "people": 1251,
                  "updated_at": "2026-10-14T09:30:00.000Z"
                }
              }
            }
          },
          "400": {
            "description": "Nothing valid, or too many.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "no_people": {
                    "value": {
                      "error": "no_people",
                      "message": "No emails, email hashes or LinkedIn profile URLs found."
                    }
                  },
                  "invalid_body": {
                    "value": {
                      "error": "invalid_body",
                      "message": "Send JSON or CSV."
                    }
                  },
                  "too_many_exclusions": {
                    "value": {
                      "error": "too_many_exclusions",
                      "message": "Up to 50,000 people can be left out."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/suppressions": {
      "get": {
        "tags": [
          "Suppressions"
        ],
        "operationId": "listSuppressions",
        "summary": "List suppressions",
        "description": "People you exported who later asked to be removed. Under the data terms, delete them from your own systems (CRM, sequencer, spreadsheets) within 10 business days of `suppressed_at`.\n\nMatch on `lead_id`, or on `email_sha256`: the SHA-256 (hex) of the trimmed, lowercased email the person was recorded under. That can be a different address from the lead's `business_email`, so prefer `lead_id`.\n\nOldest first, up to 10,000. Use `since` to fetch only new ones. Suppressed people also come back with `suppressed: true` and empty contact fields in every re-download, and are left out of all future exports.\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "name": "since",
            "in": "query",
            "required": false,
            "description": "Only suppressions on or after this date (`YYYY-MM-DD`, UTC).",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "example": "2026-10-01"
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "responses": {
          "200": {
            "description": "Suppressed leads.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "since": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "date",
                      "description": "The `since` you sent, or null."
                    },
                    "suppressions": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Suppression"
                      }
                    },
                    "note": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "since",
                    "suppressions",
                    "note"
                  ]
                },
                "example": {
                  "since": "2026-10-01",
                  "suppressions": [
                    {
                      "lead_id": "0199e3b2-5a7c-7e21-b4d3-8c9f0a1b2c3e",
                      "email_sha256": "5f2b9c7a1e4d8f6b3a0c9e2d7b5f1a8c4e6d2b9f7a3c5e1d8b6f4a2c0e9d7b5f",
                      "suppressed_at": "2026-10-09T11:20:00.000000+00:00"
                    }
                  ],
                  "note": "Delete these people from your systems within 10 business days of suppressed_at."
                }
              }
            }
          },
          "400": {
            "description": "`since` isn't a date.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_since": {
                    "value": {
                      "error": "invalid_since",
                      "message": "since must be a date like 2026-10-01."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/webhooks": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "operationId": "listWebhooks",
        "summary": "List webhook endpoints",
        "description": "Webhook endpoints receive events as they happen, signed: `removals` (people you exported who asked to be removed) and `visitors` (people identified on your websites). Use one endpoint for everything (`\"events\": \"*\"`) or one per event. Webhooks never buy anyone. See the [webhooks guide](/guides/removals-webhook) for payloads, signatures and retries.\n\nSecrets aren't listed. Works with any key.\n\n**Free.** This doesn't spend your balance.",
        "responses": {
          "200": {
            "description": "Your endpoints.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "endpoints": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/WebhookEndpoint"
                      }
                    }
                  },
                  "required": [
                    "endpoints"
                  ]
                },
                "example": {
                  "endpoints": [
                    {
                      "id": "5b1d0a7e-3c2f-4e0b-9a51-2f6c8d7e9a10",
                      "url": "https://app.example.com/hooks/intent-leads",
                      "description": "CRM sync",
                      "events": "*",
                      "receives": [
                        "removals",
                        "visitors"
                      ],
                      "enabled": true,
                      "status": "ok",
                      "failed_attempts": 0,
                      "failing_since": null,
                      "next_retry_at": null,
                      "last_attempt_at": "2026-11-12T09:15:02.118Z",
                      "last_status": 200,
                      "last_error": null,
                      "last_success_at": "2026-11-12T09:15:02.118Z",
                      "waiting": {
                        "removals": 0
                      },
                      "legacy": false,
                      "created_at": "2026-11-11T14:00:00.000Z",
                      "updated_at": "2026-11-11T14:00:00.000Z"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      },
      "post": {
        "tags": [
          "Webhooks"
        ],
        "operationId": "createWebhook",
        "summary": "Add a webhook endpoint",
        "description": "Webhook endpoints receive events as they happen, signed: `removals` (people you exported who asked to be removed) and `visitors` (people identified on your websites). Use one endpoint for everything (`\"events\": \"*\"`) or one per event. Webhooks never buy anyone. See the [webhooks guide](/guides/removals-webhook) for payloads, signatures and retries.\n\n`events` defaults to `\"*\"`. Every request is signed; get the secret from `GET /api/v1/webhooks/{id}/secret` if you want to check signatures (optional, recommended). Up to 16 endpoints.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "description": "A public https URL."
                  },
                  "events": {
                    "oneOf": [
                      {
                        "type": "string",
                        "enum": [
                          "*"
                        ],
                        "description": "`*`: every event, including types added later."
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "removals",
                            "visitors"
                          ]
                        },
                        "description": "Only these events."
                      }
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Up to 200 characters."
                  }
                },
                "required": [
                  "url"
                ]
              },
              "example": {
                "url": "https://app.example.com/hooks/intent-leads",
                "events": [
                  "visitors"
                ],
                "description": "Visitors to the CRM"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new endpoint.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "endpoint": {
                      "$ref": "#/components/schemas/WebhookEndpoint"
                    }
                  },
                  "required": [
                    "endpoint"
                  ]
                },
                "example": {
                  "endpoint": {
                    "id": "5b1d0a7e-3c2f-4e0b-9a51-2f6c8d7e9a10",
                    "url": "https://app.example.com/hooks/intent-leads",
                    "description": "CRM sync",
                    "events": "*",
                    "receives": [
                      "removals",
                      "visitors"
                    ],
                    "enabled": true,
                    "status": "no_deliveries_yet",
                    "failed_attempts": 0,
                    "failing_since": null,
                    "next_retry_at": null,
                    "last_attempt_at": null,
                    "last_status": null,
                    "last_error": null,
                    "last_success_at": null,
                    "waiting": {
                      "removals": 0
                    },
                    "legacy": false,
                    "created_at": "2026-11-11T14:00:00.000Z",
                    "updated_at": "2026-11-11T14:00:00.000Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Something in the body is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_url": {
                    "value": {
                      "error": "invalid_url",
                      "message": "url must start with https://."
                    }
                  },
                  "invalid_events": {
                    "value": {
                      "error": "invalid_events",
                      "message": "Unknown event: nope. Known: removals, visitors."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "409": {
            "description": "Too many endpoints.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "too_many_endpoints": {
                    "value": {
                      "error": "too_many_endpoints",
                      "message": "You can have up to 16 webhook endpoints. Remove one first."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      }
    },
    "/api/v1/webhooks/events": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "operationId": "listWebhookEvents",
        "summary": "List event types",
        "description": "Every event type an endpoint can receive. Use the ids in `events`, or `*` for all of them (including types added later).\n\n**Free.** This doesn't spend your balance.",
        "responses": {
          "200": {
            "description": "The event types.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "events": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "batch_size": {
                            "type": "integer",
                            "description": "Most items in one request."
                          }
                        },
                        "required": [
                          "id",
                          "label",
                          "description",
                          "batch_size"
                        ]
                      }
                    },
                    "all": {
                      "type": "string",
                      "enum": [
                        "*"
                      ]
                    }
                  },
                  "required": [
                    "events",
                    "all"
                  ]
                },
                "example": {
                  "events": [
                    {
                      "id": "removals",
                      "label": "Removal requests",
                      "description": "People you exported who asked to be removed. Delete them within 10 business days.",
                      "batch_size": 500
                    },
                    {
                      "id": "visitors",
                      "label": "Website visitors",
                      "description": "People identified on your websites, with every lead field plus their LinkedIn photo and current profile.",
                      "batch_size": 100
                    }
                  ],
                  "all": "*"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      }
    },
    "/api/v1/webhooks/{id}": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "operationId": "getWebhook",
        "summary": "Get a webhook endpoint",
        "description": "One endpoint, with what's waiting per event.\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The endpoint id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "5b1d0a7e-3c2f-4e0b-9a51-2f6c8d7e9a10"
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "responses": {
          "200": {
            "description": "The endpoint.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "endpoint": {
                      "$ref": "#/components/schemas/WebhookEndpoint"
                    }
                  },
                  "required": [
                    "endpoint"
                  ]
                },
                "example": {
                  "endpoint": {
                    "id": "5b1d0a7e-3c2f-4e0b-9a51-2f6c8d7e9a10",
                    "url": "https://app.example.com/hooks/intent-leads",
                    "description": "CRM sync",
                    "events": "*",
                    "receives": [
                      "removals",
                      "visitors"
                    ],
                    "enabled": true,
                    "status": "ok",
                    "failed_attempts": 0,
                    "failing_since": null,
                    "next_retry_at": null,
                    "last_attempt_at": "2026-11-12T09:15:02.118Z",
                    "last_status": 200,
                    "last_error": null,
                    "last_success_at": "2026-11-12T09:15:02.118Z",
                    "waiting": {
                      "removals": 0
                    },
                    "legacy": false,
                    "created_at": "2026-11-11T14:00:00.000Z",
                    "updated_at": "2026-11-11T14:00:00.000Z"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No such endpoint.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "error": "not_found",
                      "message": "No webhook endpoint with that id."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      },
      "patch": {
        "tags": [
          "Webhooks"
        ],
        "operationId": "updateWebhook",
        "summary": "Change a webhook endpoint",
        "description": "Send any of `url`, `events`, `description`, `enabled`, `rotate_secret`. Events you add start from now (nothing older is replayed). A new URL keeps the endpoint's place, so nothing is skipped or sent twice. With `rotate_secret`, the new secret comes back here.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The endpoint id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "5b1d0a7e-3c2f-4e0b-9a51-2f6c8d7e9a10"
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "description": "A public https URL."
                  },
                  "events": {
                    "oneOf": [
                      {
                        "type": "string",
                        "enum": [
                          "*"
                        ],
                        "description": "`*`: every event, including types added later."
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "removals",
                            "visitors"
                          ]
                        },
                        "description": "Only these events."
                      }
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Up to 200 characters."
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "rotate_secret": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "url",
                  "events",
                  "description",
                  "enabled",
                  "rotate_secret"
                ]
              },
              "example": {
                "events": [
                  "visitors"
                ],
                "enabled": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The endpoint.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "endpoint": {
                      "$ref": "#/components/schemas/WebhookEndpoint"
                    },
                    "secret": {
                      "type": "string",
                      "description": "Only after rotate_secret."
                    }
                  },
                  "required": [
                    "endpoint",
                    "secret"
                  ]
                },
                "example": {
                  "endpoint": {
                    "id": "5b1d0a7e-3c2f-4e0b-9a51-2f6c8d7e9a10",
                    "url": "https://app.example.com/hooks/intent-leads",
                    "description": "CRM sync",
                    "events": [
                      "visitors"
                    ],
                    "receives": [
                      "visitors"
                    ],
                    "enabled": true,
                    "status": "ok",
                    "failed_attempts": 0,
                    "failing_since": null,
                    "next_retry_at": null,
                    "last_attempt_at": "2026-11-12T09:15:02.118Z",
                    "last_status": 200,
                    "last_error": null,
                    "last_success_at": "2026-11-12T09:15:02.118Z",
                    "waiting": {
                      "removals": 0
                    },
                    "legacy": false,
                    "created_at": "2026-11-11T14:00:00.000Z",
                    "updated_at": "2026-11-11T14:00:00.000Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Something in the body is wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_url": {
                    "value": {
                      "error": "invalid_url",
                      "message": "url must start with https://."
                    }
                  },
                  "invalid_events": {
                    "value": {
                      "error": "invalid_events",
                      "message": "Unknown event: nope. Known: removals, visitors."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "404": {
            "description": "No such endpoint.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "error": "not_found",
                      "message": "No webhook endpoint with that id."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      },
      "delete": {
        "tags": [
          "Webhooks"
        ],
        "operationId": "deleteWebhook",
        "summary": "Delete a webhook endpoint",
        "description": "Removals stay in `GET /api/v1/suppressions` and website visitors in `GET /api/v1/leads`.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The endpoint id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "5b1d0a7e-3c2f-4e0b-9a51-2f6c8d7e9a10"
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "deleted"
                  ]
                },
                "example": {
                  "deleted": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "404": {
            "description": "No such endpoint.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "error": "not_found",
                      "message": "No webhook endpoint with that id."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/webhooks/{id}/test": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "operationId": "testWebhook",
        "summary": "Send a test",
        "description": "Sends a signed test to this endpoint now and returns what it answered. With `event`, a made-up sample of that event (same shape as the real thing, plus `\"test\": true`); without it, `{\"type\": \"webhook.test\"}`. Tests never contain real people and don't move the endpoint's place.\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The endpoint id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "5b1d0a7e-3c2f-4e0b-9a51-2f6c8d7e9a10"
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "event": {
                    "type": "string",
                    "description": "`removals`, `visitors`, or leave it out for a ping."
                  }
                },
                "required": [
                  "event"
                ]
              },
              "example": {
                "event": "visitors"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "What your endpoint answered.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "delivered": {
                      "type": "boolean"
                    },
                    "event": {
                      "type": "string"
                    },
                    "status": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "error": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "response": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "duration_ms": {
                      "type": "integer"
                    },
                    "webhook_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "delivered",
                    "event",
                    "status",
                    "error",
                    "response",
                    "duration_ms",
                    "webhook_id"
                  ]
                },
                "example": {
                  "delivered": true,
                  "event": "visitors",
                  "status": 200,
                  "error": null,
                  "response": "ok",
                  "duration_ms": 182,
                  "webhook_id": "test_9c1d2e3f4a5b6c7d8e9f0a1b"
                }
              }
            }
          },
          "400": {
            "description": "Unknown event.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_event": {
                    "value": {
                      "error": "invalid_event",
                      "message": "Unknown event: nope. Known: removals, visitors or webhook.test."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No such endpoint.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "error": "not_found",
                      "message": "No webhook endpoint with that id."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/webhooks/{id}/attempts": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "operationId": "listWebhookAttempts",
        "summary": "List delivery attempts",
        "description": "Recent deliveries and tests to this endpoint, newest first. We keep the last 100.\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The endpoint id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "5b1d0a7e-3c2f-4e0b-9a51-2f6c8d7e9a10"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "1 to 100. Default 20.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "example": 20
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "responses": {
          "200": {
            "description": "Attempts.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "attempts": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/WebhookAttempt"
                      }
                    }
                  },
                  "required": [
                    "attempts"
                  ]
                },
                "example": {
                  "attempts": [
                    {
                      "id": 912,
                      "event": "visitors",
                      "webhook_id": "vs_4f2a…",
                      "count": 3,
                      "test": false,
                      "delivered": true,
                      "status": 200,
                      "error": null,
                      "response": "ok",
                      "duration_ms": 143,
                      "at": "2026-11-12T09:15:02.118Z"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No such endpoint.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "error": "not_found",
                      "message": "No webhook endpoint with that id."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/webhooks/{id}/secret": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "operationId": "getWebhookSecret",
        "summary": "Get the signing secret",
        "description": "The secret (`whsec_…`) the endpoint's requests are signed with. Checking the signature is optional but recommended. Rotate it with `PATCH {\"rotate_secret\": true}`.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The endpoint id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "5b1d0a7e-3c2f-4e0b-9a51-2f6c8d7e9a10"
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "responses": {
          "200": {
            "description": "The secret.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "secret": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "secret"
                  ]
                },
                "example": {
                  "secret": "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "404": {
            "description": "No such endpoint.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "error": "not_found",
                      "message": "No webhook endpoint with that id."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/webhooks/removals": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "operationId": "getRemovalsWebhook",
        "summary": "Get the webhook (legacy)",
        "description": "**Legacy.** Kept so existing integrations keep working. It manages one endpoint that receives every event; use `/api/v1/webhooks` to have several and pick their events.\n\n`webhook` is null when none is set.\n\n**Free.** This doesn't spend your balance.",
        "responses": {
          "200": {
            "description": "The webhook, or null.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "webhook": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/RemovalWebhook"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "webhook"
                  ]
                },
                "example": {
                  "webhook": {
                    "id": "5b1d0a7e-3c2f-4e0b-9a51-2f6c8d7e9a10",
                    "url": "https://app.example.com/hooks/intent-leads",
                    "status": "ok",
                    "failing_since": null,
                    "last_attempt_at": "2026-11-12T09:15:02.118Z",
                    "last_status": 200,
                    "last_error": null,
                    "last_success_at": "2026-11-12T09:15:02.118Z",
                    "created_at": "2026-11-11T14:00:00.000Z",
                    "updated_at": "2026-11-11T14:00:00.000Z",
                    "sending_removals_since": "2026-11-11T14:00:00.000Z",
                    "pending": 0,
                    "failed_attempts": 0
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      },
      "put": {
        "tags": [
          "Webhooks"
        ],
        "operationId": "setRemovalsWebhook",
        "summary": "Set the webhook (legacy)",
        "description": "**Legacy.** Kept so existing integrations keep working. It manages one endpoint that receives every event; use `/api/v1/webhooks` to have several and pick their events.\n\nSets or changes the URL. The signing `secret` comes back when the webhook is first set and when you send `\"rotate_secret\": true`; it's always available from `GET /api/v1/webhooks/{id}/secret`.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "rotate_secret": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "url"
                ]
              },
              "example": {
                "url": "https://app.example.com/hooks/intent-leads"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The webhook, plus the secret when it's new.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "webhook": {
                      "$ref": "#/components/schemas/RemovalWebhook"
                    },
                    "secret": {
                      "type": "string"
                    },
                    "secret_note": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "webhook",
                    "secret",
                    "secret_note"
                  ]
                },
                "example": {
                  "webhook": {
                    "id": "5b1d0a7e-3c2f-4e0b-9a51-2f6c8d7e9a10",
                    "url": "https://app.example.com/hooks/intent-leads",
                    "status": "ok",
                    "failing_since": null,
                    "last_attempt_at": "2026-11-12T09:15:02.118Z",
                    "last_status": 200,
                    "last_error": null,
                    "last_success_at": "2026-11-12T09:15:02.118Z",
                    "created_at": "2026-11-11T14:00:00.000Z",
                    "updated_at": "2026-11-11T14:00:00.000Z",
                    "sending_removals_since": "2026-11-11T14:00:00.000Z",
                    "pending": 0,
                    "failed_attempts": 0
                  },
                  "secret": "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw"
                }
              }
            }
          },
          "400": {
            "description": "The URL isn't a public https address.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_url": {
                    "value": {
                      "error": "invalid_url",
                      "message": "url must start with https://."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      },
      "delete": {
        "tags": [
          "Webhooks"
        ],
        "operationId": "deleteRemovalsWebhook",
        "summary": "Turn off the webhook (legacy)",
        "description": "**Legacy.** Kept so existing integrations keep working. It manages one endpoint that receives every event; use `/api/v1/webhooks` to have several and pick their events.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "responses": {
          "200": {
            "description": "Whether it was removed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "deleted"
                  ]
                },
                "example": {
                  "deleted": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      }
    },
    "/api/v1/webhooks/removals/test": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "operationId": "testRemovalsWebhook",
        "summary": "Send a test (legacy)",
        "description": "**Legacy.** Kept so existing integrations keep working. It manages one endpoint that receives every event; use `/api/v1/webhooks` to have several and pick their events.\n\nSends a signed `{\"type\": \"webhook.test\"}` now and returns what your endpoint answered.\n\n**Free.** This doesn't spend your balance.",
        "responses": {
          "200": {
            "description": "What your endpoint answered.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "delivered": {
                      "type": "boolean"
                    },
                    "event": {
                      "type": "string"
                    },
                    "status": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "error": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "response": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "duration_ms": {
                      "type": "integer"
                    },
                    "webhook_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "delivered",
                    "event",
                    "status",
                    "error",
                    "response",
                    "duration_ms",
                    "webhook_id"
                  ]
                },
                "example": {
                  "delivered": true,
                  "event": "webhook.test",
                  "status": 200,
                  "error": null,
                  "response": "ok",
                  "duration_ms": 120,
                  "webhook_id": "test_9c1d2e3f4a5b6c7d8e9f0a1b"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No webhook is set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "no_webhook": {
                    "value": {
                      "error": "no_webhook",
                      "message": "Set a webhook first (PUT /api/v1/webhooks/removals or POST /api/v1/webhooks)."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      }
    },
    "/api/v1/sites": {
      "get": {
        "tags": [
          "Websites"
        ],
        "operationId": "listSites",
        "summary": "List websites",
        "description": "[Websites](/guides/websites): the people we identify among a site's US visitors arrive as leads. Each is charged once per billing month at intent prices, from your balance, up to `monthly_cap`.\n\n**Free.** This doesn't spend your balance.",
        "responses": {
          "200": {
            "description": "Your websites.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sites": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "visitors"
                            ]
                          },
                          "name": {
                            "type": "string"
                          },
                          "domain": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "setup",
                              "active",
                              "capped",
                              "paused"
                            ],
                            "description": "`setup` (not connected yet), `active`, `capped` (paused at the cap or because the plan ran out) or `paused`."
                          },
                          "monthly_cap": {
                            "type": "integer"
                          },
                          "identified_this_period": {
                            "type": "integer"
                          },
                          "period": {
                            "type": [
                              "object",
                              "null"
                            ]
                          },
                          "install_snippet": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "setup_error": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "note": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "code",
                          "kind",
                          "name",
                          "domain",
                          "status",
                          "monthly_cap",
                          "identified_this_period",
                          "period",
                          "install_snippet",
                          "setup_error",
                          "note"
                        ]
                      }
                    }
                  },
                  "required": [
                    "sites"
                  ]
                },
                "example": {
                  "sites": [
                    {
                      "code": "V1",
                      "kind": "visitors",
                      "name": "Main site",
                      "domain": "example.com",
                      "status": "active",
                      "monthly_cap": 500,
                      "identified_this_period": 137,
                      "period": {
                        "start": "2026-11-09",
                        "end": "2026-12-09"
                      },
                      "install_snippet": "<script src=\"https://…/p.js\" async></script>",
                      "setup_error": null,
                      "note": "Identified visitors arrive as leads on this site's lane (GET /api/v1/leads?lane=V1&since=last). Each person is charged once per billing month on the intent meter of your balance, up to monthly_cap."
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      },
      "post": {
        "tags": [
          "Websites"
        ],
        "operationId": "createSite",
        "summary": "Add a website",
        "description": "[Websites](/guides/websites): the people we identify among a site's US visitors arrive as leads. Each is charged once per billing month at intent prices, from your balance, up to `monthly_cap`.\n\nReturns the install snippet once the site is connected (a few seconds).\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "domain": {
                    "type": "string"
                  },
                  "monthly_cap": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "Most people identified per billing month. Default 500."
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "domain"
                ]
              },
              "example": {
                "domain": "example.com",
                "monthly_cap": 500,
                "name": "Main site"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Added.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "visitors"
                      ]
                    },
                    "name": {
                      "type": "string"
                    },
                    "domain": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "setup",
                        "active",
                        "capped",
                        "paused"
                      ],
                      "description": "`setup` (not connected yet), `active`, `capped` (paused at the cap or because the plan ran out) or `paused`."
                    },
                    "monthly_cap": {
                      "type": "integer"
                    },
                    "identified_this_period": {
                      "type": "integer"
                    },
                    "period": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "install_snippet": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "setup_error": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "kind",
                    "name",
                    "domain",
                    "status",
                    "monthly_cap",
                    "identified_this_period",
                    "period",
                    "install_snippet",
                    "setup_error",
                    "note"
                  ]
                },
                "example": {
                  "code": "V1",
                  "kind": "visitors",
                  "name": "Main site",
                  "domain": "example.com",
                  "status": "active",
                  "monthly_cap": 500,
                  "identified_this_period": 137,
                  "period": {
                    "start": "2026-11-09",
                    "end": "2026-12-09"
                  },
                  "install_snippet": "<script src=\"https://…/p.js\" async></script>",
                  "setup_error": null,
                  "note": "Identified visitors arrive as leads on this site's lane (GET /api/v1/leads?lane=V1&since=last). Each person is charged once per billing month on the intent meter of your balance, up to monthly_cap."
                }
              }
            }
          },
          "400": {
            "description": "Bad domain or cap.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_domain": {
                    "value": {
                      "error": "invalid_domain",
                      "message": "domain must be a website address like example.com."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "409": {
            "description": "Already set up.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "site_exists": {
                    "value": {
                      "error": "site_exists",
                      "message": "example.com is already set up."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      }
    },
    "/api/v1/sites/{code}": {
      "get": {
        "tags": [
          "Websites"
        ],
        "operationId": "getSite",
        "summary": "Get a website",
        "description": "**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "description": "The site's code, e.g. `V1`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "responses": {
          "200": {
            "description": "The site.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "visitors"
                      ]
                    },
                    "name": {
                      "type": "string"
                    },
                    "domain": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "setup",
                        "active",
                        "capped",
                        "paused"
                      ],
                      "description": "`setup` (not connected yet), `active`, `capped` (paused at the cap or because the plan ran out) or `paused`."
                    },
                    "monthly_cap": {
                      "type": "integer"
                    },
                    "identified_this_period": {
                      "type": "integer"
                    },
                    "period": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "install_snippet": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "setup_error": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "kind",
                    "name",
                    "domain",
                    "status",
                    "monthly_cap",
                    "identified_this_period",
                    "period",
                    "install_snippet",
                    "setup_error",
                    "note"
                  ]
                },
                "example": {
                  "code": "V1",
                  "kind": "visitors",
                  "name": "Main site",
                  "domain": "example.com",
                  "status": "active",
                  "monthly_cap": 500,
                  "identified_this_period": 137,
                  "period": {
                    "start": "2026-11-09",
                    "end": "2026-12-09"
                  },
                  "install_snippet": "<script src=\"https://…/p.js\" async></script>",
                  "setup_error": null,
                  "note": "Identified visitors arrive as leads on this site's lane (GET /api/v1/leads?lane=V1&since=last). Each person is charged once per billing month on the intent meter of your balance, up to monthly_cap."
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No such site.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "site_not_found": {
                    "value": {
                      "error": "site_not_found",
                      "message": "No site V9."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      },
      "patch": {
        "tags": [
          "Websites"
        ],
        "operationId": "updateSite",
        "summary": "Change a website",
        "description": "Change `monthly_cap` or `name`, or pause and resume with `paused`. A higher cap restarts a site paused at its cap straight away.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "description": "The site's code, e.g. `V1`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "monthly_cap": {
                    "type": "integer"
                  },
                  "name": {
                    "type": "string"
                  },
                  "paused": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "monthly_cap",
                  "name",
                  "paused"
                ]
              },
              "example": {
                "monthly_cap": 1000
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The site.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "visitors"
                      ]
                    },
                    "name": {
                      "type": "string"
                    },
                    "domain": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "setup",
                        "active",
                        "capped",
                        "paused"
                      ],
                      "description": "`setup` (not connected yet), `active`, `capped` (paused at the cap or because the plan ran out) or `paused`."
                    },
                    "monthly_cap": {
                      "type": "integer"
                    },
                    "identified_this_period": {
                      "type": "integer"
                    },
                    "period": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "install_snippet": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "setup_error": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "kind",
                    "name",
                    "domain",
                    "status",
                    "monthly_cap",
                    "identified_this_period",
                    "period",
                    "install_snippet",
                    "setup_error",
                    "note"
                  ]
                },
                "example": {
                  "code": "V1",
                  "kind": "visitors",
                  "name": "Main site",
                  "domain": "example.com",
                  "status": "active",
                  "monthly_cap": 500,
                  "identified_this_period": 137,
                  "period": {
                    "start": "2026-11-09",
                    "end": "2026-12-09"
                  },
                  "install_snippet": "<script src=\"https://…/p.js\" async></script>",
                  "setup_error": null,
                  "note": "Identified visitors arrive as leads on this site's lane (GET /api/v1/leads?lane=V1&since=last). Each person is charged once per billing month on the intent meter of your balance, up to monthly_cap."
                }
              }
            }
          },
          "400": {
            "description": "Bad cap.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_cap": {
                    "value": {
                      "error": "invalid_cap",
                      "message": "monthly_cap must be a whole number from 1 to 1,000,000."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "404": {
            "description": "No such site.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "site_not_found": {
                    "value": {
                      "error": "site_not_found",
                      "message": "No site V9."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/sites/{code}/verify": {
      "post": {
        "tags": [
          "Websites"
        ],
        "operationId": "verifySite",
        "summary": "Check the snippet is installed",
        "description": "Fetches a page of the site and checks the snippet is there, or that it sent visits in the last day.\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "description": "The site's code, e.g. `V1`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "A page on the site. Default: the home page."
                  }
                },
                "required": [
                  "url"
                ]
              },
              "example": {
                "url": "https://example.com/pricing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "installed": {
                      "type": "boolean"
                    },
                    "events_last_24h": {
                      "type": "integer"
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "installed",
                    "events_last_24h",
                    "message"
                  ]
                },
                "example": {
                  "installed": true,
                  "events_last_24h": 214,
                  "message": null
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No such site.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "site_not_found": {
                    "value": {
                      "error": "site_not_found",
                      "message": "No site V9."
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Not connected yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_set_up": {
                    "value": {
                      "error": "not_set_up",
                      "message": "This site isn't connected yet."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/billing/balance": {
      "get": {
        "tags": [
          "Billing"
        ],
        "operationId": "getBalance",
        "summary": "Get your balance",
        "description": "Your prepaid [balance](/guides/billing), this billing month's people and dollars on each meter (intent covers intent leads and website visitors), the price per person now and where it drops next, and the price tiers. Prices fall as your organization, with its workspaces, uses more in a billing month, and reset next month.\n\nWorks with any key. A workspace's own key gets its workspace's spending and monthly budget (`workspace_budget`) and never the organization's balance. Admin keys of the organization also see the monthly top-up and each workspace.\n\n**Free.** This doesn't spend your balance.",
        "responses": {
          "200": {
            "description": "The balance.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Balance"
                },
                "example": {
                  "balance_usd": 412.5,
                  "held_by_running_exports_usd": 20,
                  "available_usd": 392.5,
                  "expires_at": "2027-02-09T14:02:11.000Z",
                  "expiry_rule": "The balance expires after 3 months with no top-up, grant or spending; any of those resets the clock.",
                  "month": {
                    "start": "2026-11-09",
                    "end": "2026-12-09"
                  },
                  "meters": {
                    "intent": {
                      "people_this_month": 2140,
                      "spent_usd": 214,
                      "price_now_cents": 10,
                      "next_price_drop": {
                        "after_people": 2500,
                        "cents": 8
                      },
                      "people_the_balance_covers": 4816
                    },
                    "search": {
                      "people_this_month": 0,
                      "spent_usd": 0,
                      "price_now_cents": 5,
                      "next_price_drop": {
                        "after_people": 50000,
                        "cents": 4
                      },
                      "people_the_balance_covers": 7850
                    }
                  },
                  "this_organization": {
                    "intent_leads": 2100,
                    "search_results": 0,
                    "website_visitors": 40,
                    "spent_usd": 214
                  },
                  "paid_by": "this_organization",
                  "prices": {
                    "intent": [
                      {
                        "from": 1,
                        "to": 2500,
                        "cents": 10
                      },
                      {
                        "from": 2501,
                        "to": 7500,
                        "cents": 8
                      },
                      {
                        "from": 7501,
                        "to": 20000,
                        "cents": 6.7
                      },
                      {
                        "from": 20001,
                        "to": null,
                        "cents": 5
                      }
                    ],
                    "search": [
                      {
                        "from": 1,
                        "to": 50000,
                        "cents": 5
                      },
                      {
                        "from": 50001,
                        "to": 250000,
                        "cents": 4
                      },
                      {
                        "from": 250001,
                        "to": null,
                        "cents": 2.5
                      }
                    ],
                    "note": "Per person, marginal: the price falls as your organization (with its workspaces) uses more in a billing month, and resets next month. Website visitors use the intent prices."
                  },
                  "top_ups": {
                    "presets_usd": [
                      250,
                      500,
                      1000,
                      2500,
                      10000
                    ],
                    "min_usd": 250,
                    "max_usd": 50000,
                    "how": "POST /api/v1/billing/topups {\"amount\": 500} (admin key) returns a checkout_url. Automatic top-up: PUT /api/v1/billing/auto-topup {\"enabled\": true, \"amount\": 500, \"threshold\": 50}."
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/usage": {
      "get": {
        "tags": [
          "Billing"
        ],
        "operationId": "getUsage",
        "summary": "Get usage (same as balance)",
        "description": "Same as `GET /api/v1/billing/balance`, kept for older clients.\n\n**Free.** This doesn't spend your balance.",
        "responses": {
          "200": {
            "description": "The balance.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Balance"
                },
                "example": {
                  "balance_usd": 412.5,
                  "held_by_running_exports_usd": 20,
                  "available_usd": 392.5,
                  "expires_at": "2027-02-09T14:02:11.000Z",
                  "expiry_rule": "The balance expires after 3 months with no top-up, grant or spending; any of those resets the clock.",
                  "month": {
                    "start": "2026-11-09",
                    "end": "2026-12-09"
                  },
                  "meters": {
                    "intent": {
                      "people_this_month": 2140,
                      "spent_usd": 214,
                      "price_now_cents": 10,
                      "next_price_drop": {
                        "after_people": 2500,
                        "cents": 8
                      },
                      "people_the_balance_covers": 4816
                    },
                    "search": {
                      "people_this_month": 0,
                      "spent_usd": 0,
                      "price_now_cents": 5,
                      "next_price_drop": {
                        "after_people": 50000,
                        "cents": 4
                      },
                      "people_the_balance_covers": 7850
                    }
                  },
                  "this_organization": {
                    "intent_leads": 2100,
                    "search_results": 0,
                    "website_visitors": 40,
                    "spent_usd": 214
                  },
                  "paid_by": "this_organization",
                  "prices": {
                    "intent": [
                      {
                        "from": 1,
                        "to": 2500,
                        "cents": 10
                      },
                      {
                        "from": 2501,
                        "to": 7500,
                        "cents": 8
                      },
                      {
                        "from": 7501,
                        "to": 20000,
                        "cents": 6.7
                      },
                      {
                        "from": 20001,
                        "to": null,
                        "cents": 5
                      }
                    ],
                    "search": [
                      {
                        "from": 1,
                        "to": 50000,
                        "cents": 5
                      },
                      {
                        "from": 50001,
                        "to": 250000,
                        "cents": 4
                      },
                      {
                        "from": 250001,
                        "to": null,
                        "cents": 2.5
                      }
                    ],
                    "note": "Per person, marginal: the price falls as your organization (with its workspaces) uses more in a billing month, and resets next month. Website visitors use the intent prices."
                  },
                  "top_ups": {
                    "presets_usd": [
                      250,
                      500,
                      1000,
                      2500,
                      10000
                    ],
                    "min_usd": 250,
                    "max_usd": 50000,
                    "how": "POST /api/v1/billing/topups {\"amount\": 500} (admin key) returns a checkout_url. Automatic top-up: PUT /api/v1/billing/auto-topup {\"enabled\": true, \"amount\": 500, \"threshold\": 50}."
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/billing/estimate": {
      "get": {
        "tags": [
          "Billing"
        ],
        "operationId": "estimateCost",
        "summary": "Estimate a cost",
        "description": "What `quantity` more people would cost now on a meter, at this month's prices, and whether your balance covers it. In a workspace with a monthly budget, also what's left of it. Nothing is held. An export's own dry run shows its exact cost.\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "name": "meter",
            "in": "query",
            "required": false,
            "description": "`intent` (default; website visitors use it too) or `search`.",
            "schema": {
              "type": "string",
              "enum": [
                "intent",
                "search"
              ]
            }
          },
          {
            "name": "quantity",
            "in": "query",
            "required": true,
            "description": "How many people.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The estimate.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "meter": {
                      "type": "string",
                      "enum": [
                        "intent",
                        "search"
                      ]
                    },
                    "quantity": {
                      "type": "integer"
                    },
                    "cost_usd": {
                      "type": "number"
                    },
                    "average_cents": {
                      "type": "number"
                    },
                    "people_this_month_before": {
                      "type": "integer"
                    },
                    "available_usd": {
                      "type": "number",
                      "description": "The organization's available balance. Not shown to a workspace's own key."
                    },
                    "covered_by_balance": {
                      "type": "boolean"
                    },
                    "people_the_balance_covers": {
                      "type": "integer",
                      "description": "Not shown to a workspace's own key."
                    },
                    "workspace_limit_left": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "People the rest of the workspace's monthly budget buys now, or null when it has none."
                    },
                    "workspace_budget_left_usd": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "What's left of the workspace's monthly budget, or null when it has none."
                    },
                    "note": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "meter",
                    "quantity",
                    "cost_usd",
                    "average_cents",
                    "people_this_month_before",
                    "covered_by_balance",
                    "workspace_limit_left",
                    "workspace_budget_left_usd",
                    "note"
                  ]
                },
                "example": {
                  "meter": "intent",
                  "quantity": 1000,
                  "cost_usd": 87.2,
                  "average_cents": 8.72,
                  "people_this_month_before": 2140,
                  "available_usd": 392.5,
                  "covered_by_balance": true,
                  "people_the_balance_covers": 4816,
                  "workspace_limit_left": null,
                  "workspace_budget_left_usd": null,
                  "note": "Free and nothing is held."
                }
              }
            }
          },
          "400": {
            "description": "Bad parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_meter": {
                    "value": {
                      "error": "invalid_meter",
                      "message": "meter must be intent or search."
                    }
                  },
                  "invalid_quantity": {
                    "value": {
                      "error": "invalid_quantity",
                      "message": "quantity must be a whole number from 1 to 10,000,000."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/billing": {
      "get": {
        "tags": [
          "Billing"
        ],
        "operationId": "getBilling",
        "summary": "Get billing",
        "description": "Everything in Get your balance, plus the monthly top-up amounts you can choose and how to pay.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.\n\n**Free.** This doesn't spend your balance.",
        "x-admin-only": true,
        "responses": {
          "200": {
            "description": "Billing.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {},
                  "required": []
                },
                "example": {
                  "balance_usd": 412.5,
                  "held_by_running_exports_usd": 20,
                  "available_usd": 392.5,
                  "expires_at": "2027-02-09T14:02:11.000Z",
                  "expiry_rule": "The balance expires after 3 months with no top-up, grant or spending; any of those resets the clock.",
                  "month": {
                    "start": "2026-11-09",
                    "end": "2026-12-09"
                  },
                  "meters": {
                    "intent": {
                      "people_this_month": 2140,
                      "spent_usd": 214,
                      "price_now_cents": 10,
                      "next_price_drop": {
                        "after_people": 2500,
                        "cents": 8
                      },
                      "people_the_balance_covers": 4816
                    },
                    "search": {
                      "people_this_month": 0,
                      "spent_usd": 0,
                      "price_now_cents": 5,
                      "next_price_drop": {
                        "after_people": 50000,
                        "cents": 4
                      },
                      "people_the_balance_covers": 7850
                    }
                  },
                  "this_organization": {
                    "intent_leads": 2100,
                    "search_results": 0,
                    "website_visitors": 40,
                    "spent_usd": 214
                  },
                  "paid_by": "this_organization",
                  "prices": {
                    "intent": [
                      {
                        "from": 1,
                        "to": 2500,
                        "cents": 10
                      },
                      {
                        "from": 2501,
                        "to": 7500,
                        "cents": 8
                      },
                      {
                        "from": 7501,
                        "to": 20000,
                        "cents": 6.7
                      },
                      {
                        "from": 20001,
                        "to": null,
                        "cents": 5
                      }
                    ],
                    "search": [
                      {
                        "from": 1,
                        "to": 50000,
                        "cents": 5
                      },
                      {
                        "from": 50001,
                        "to": 250000,
                        "cents": 4
                      },
                      {
                        "from": 250001,
                        "to": null,
                        "cents": 2.5
                      }
                    ],
                    "note": "Per person, marginal: the price falls as your organization (with its workspaces) uses more in a billing month, and resets next month. Website visitors use the intent prices."
                  },
                  "top_ups": {
                    "presets_usd": [
                      250,
                      500,
                      1000,
                      2500,
                      10000
                    ],
                    "min_usd": 250,
                    "max_usd": 50000,
                    "how": "POST /api/v1/billing/topups {\"amount\": 500} (admin key) returns a checkout_url. Automatic top-up: PUT /api/v1/billing/auto-topup {\"enabled\": true, \"amount\": 500, \"threshold\": 50}."
                  },
                  "monthly_topup": {
                    "plan": "starter",
                    "amount_usd": 250,
                    "status": "active",
                    "renews_on": "2026-12-09",
                    "by_card": true
                  },
                  "monthly_topup_amounts": [
                    {
                      "id": "starter",
                      "amount_usd": 250,
                      "current": true
                    },
                    {
                      "id": "growth",
                      "amount_usd": 500,
                      "current": false
                    },
                    {
                      "id": "scale",
                      "amount_usd": 1000,
                      "current": false
                    },
                    {
                      "id": "partner",
                      "amount_usd": 2000,
                      "current": false
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/billing/topups": {
      "post": {
        "tags": [
          "Billing"
        ],
        "operationId": "topUp",
        "summary": "Top up",
        "description": "Starts a card payment to add `amount` US dollars ($250 to $50,000) to your balance and returns its `checkout_url`. The balance goes up as soon as the payment clears. The balance expires after 3 months with no top-up, grant or spending.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "number",
                    "description": "US dollars."
                  },
                  "email": {
                    "type": "string",
                    "format": "email",
                    "description": "Prefills the receipt email."
                  }
                },
                "required": [
                  "amount"
                ]
              },
              "example": {
                "amount": 500
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The payment page.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "amount_usd": {
                      "type": "number"
                    },
                    "status": {
                      "type": "string",
                      "const": "checkout"
                    },
                    "checkout_url": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "amount_usd",
                    "status",
                    "checkout_url"
                  ]
                },
                "example": {
                  "amount_usd": 500,
                  "status": "checkout",
                  "checkout_url": "https://checkout.example.com/session/7f3c2a9e"
                }
              }
            }
          },
          "400": {
            "description": "Bad amount.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_amount": {
                    "value": {
                      "error": "invalid_amount",
                      "message": "A top-up is from $250 to $50,000."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "409": {
            "description": "This is a workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "billed_by_parent": {
                    "value": {
                      "error": "billed_by_parent",
                      "message": "This workspace spends its organization's balance. Top-ups are managed there."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "description": "The payment provider refused the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "billing_failed": {
                    "value": {
                      "error": "billing_failed",
                      "message": "The payment didn't go through. Try again, or contact us."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/billing/auto-topup": {
      "get": {
        "tags": [
          "Billing"
        ],
        "operationId": "getAutoTopup",
        "summary": "Get the automatic top-up",
        "description": "The automatic top-up: its amount, the low-balance threshold, the card, the last automatic charge, and whether it's paused. A workspace key shows its organization's (`managed_by: parent_organization`).\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "responses": {
          "200": {
            "description": "The automatic top-up.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean",
                      "description": "On when anything tops up automatically (the low-balance top-up, the billing-day top-up, or an older monthly card payment)."
                    },
                    "amount_usd": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Added each time, $250 or more."
                    },
                    "threshold_usd": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "The low-balance top-up runs when the available balance drops below this. Null when that part is off."
                    },
                    "triggers": {
                      "type": "object",
                      "properties": {
                        "low_balance": {
                          "type": "boolean"
                        },
                        "billing_day": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "low_balance",
                        "billing_day"
                      ]
                    },
                    "billing_day_by": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "auto",
                        "subscription"
                      ],
                      "description": "Who does the billing-day top-up: `auto` (us) or `subscription` (an older monthly card payment)."
                    },
                    "amount_choices_usd": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "number"
                      },
                      "description": "With a monthly card payment, the amount is one of these."
                    },
                    "paused": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "payment_failed",
                        "monthly_cap",
                        "no_card"
                      ],
                      "description": "Why automatic top-ups are paused: a failed payment, 5 low-balance top-ups this billing month, or no card."
                    },
                    "paused_at": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "date-time"
                    },
                    "card": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "brand": {
                              "type": "string"
                            },
                            "last4": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "brand",
                            "last4"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "last": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "trigger": {
                              "type": "string",
                              "enum": [
                                "low_balance",
                                "billing_day"
                              ]
                            },
                            "amount_usd": {
                              "type": "number"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "pending",
                                "paid",
                                "failed"
                              ]
                            },
                            "at": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "paid_at": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "format": "date-time"
                            },
                            "invoice_url": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "format": "uri"
                            },
                            "error": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "trigger",
                            "amount_usd",
                            "status",
                            "at",
                            "paid_at",
                            "invoice_url",
                            "error"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "enabled",
                    "amount_usd",
                    "threshold_usd",
                    "triggers",
                    "billing_day_by",
                    "amount_choices_usd",
                    "paused",
                    "paused_at",
                    "card",
                    "last"
                  ]
                },
                "example": {
                  "enabled": true,
                  "amount_usd": 500,
                  "threshold_usd": 50,
                  "triggers": {
                    "low_balance": true,
                    "billing_day": true
                  },
                  "billing_day_by": "auto",
                  "amount_choices_usd": null,
                  "paused": null,
                  "paused_at": null,
                  "card": {
                    "brand": "visa",
                    "last4": "4242"
                  },
                  "last": {
                    "trigger": "low_balance",
                    "amount_usd": 500,
                    "status": "paid",
                    "at": "2026-11-20T09:14:02.000Z",
                    "paid_at": "2026-11-20T09:14:04.000Z",
                    "invoice_url": "https://invoice.example.com/i/acct_1/in_1",
                    "error": null
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      },
      "put": {
        "tags": [
          "Billing"
        ],
        "operationId": "setAutoTopup",
        "summary": "Set the automatic top-up",
        "description": "Adds `amount` US dollars ($250 or more) by card **when the available balance drops below `threshold`**, and **on the billing day** once a month. Each automatic top-up has its own invoice. `{\"enabled\": false}` turns it off.\n\n- **No card on file:** `409 card_required` with a `card_setup_url`. Add the card there; the automatic top-up switches on with these settings once it's saved.\n- **A failed payment** pauses automatic top-ups (`paused: payment_failed`) until a new card is added or the invoice is paid. The low-balance top-up runs at most 5 times a billing month (`paused: monthly_cap`); saving the settings again resumes it.\n- **An older monthly card payment** ($250, $500, $1,000 or $2,000) is the billing-day part: `amount` must be one of those, and `\"low_balance\": false` keeps only the monthly payment.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "amount": {
                    "type": "number",
                    "description": "US dollars, $250 or more."
                  },
                  "threshold": {
                    "type": "number",
                    "description": "US dollars; the low-balance top-up runs below this."
                  },
                  "low_balance": {
                    "type": "boolean",
                    "description": "Only with an older monthly card payment: false keeps just the monthly payment."
                  },
                  "email": {
                    "type": "string",
                    "format": "email",
                    "description": "Prefills the card page."
                  }
                },
                "required": [
                  "enabled"
                ]
              },
              "examples": {
                "on": {
                  "summary": "Turn on",
                  "value": {
                    "enabled": true,
                    "amount": 500,
                    "threshold": 50
                  }
                },
                "off": {
                  "summary": "Turn off",
                  "value": {
                    "enabled": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The automatic top-up after the change.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean",
                      "description": "On when anything tops up automatically (the low-balance top-up, the billing-day top-up, or an older monthly card payment)."
                    },
                    "amount_usd": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Added each time, $250 or more."
                    },
                    "threshold_usd": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "The low-balance top-up runs when the available balance drops below this. Null when that part is off."
                    },
                    "triggers": {
                      "type": "object",
                      "properties": {
                        "low_balance": {
                          "type": "boolean"
                        },
                        "billing_day": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "low_balance",
                        "billing_day"
                      ]
                    },
                    "billing_day_by": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "auto",
                        "subscription"
                      ],
                      "description": "Who does the billing-day top-up: `auto` (us) or `subscription` (an older monthly card payment)."
                    },
                    "amount_choices_usd": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "number"
                      },
                      "description": "With a monthly card payment, the amount is one of these."
                    },
                    "paused": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "payment_failed",
                        "monthly_cap",
                        "no_card"
                      ],
                      "description": "Why automatic top-ups are paused: a failed payment, 5 low-balance top-ups this billing month, or no card."
                    },
                    "paused_at": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "date-time"
                    },
                    "card": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "brand": {
                              "type": "string"
                            },
                            "last4": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "brand",
                            "last4"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "last": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "trigger": {
                              "type": "string",
                              "enum": [
                                "low_balance",
                                "billing_day"
                              ]
                            },
                            "amount_usd": {
                              "type": "number"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "pending",
                                "paid",
                                "failed"
                              ]
                            },
                            "at": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "paid_at": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "format": "date-time"
                            },
                            "invoice_url": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "format": "uri"
                            },
                            "error": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "trigger",
                            "amount_usd",
                            "status",
                            "at",
                            "paid_at",
                            "invoice_url",
                            "error"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "enabled",
                    "amount_usd",
                    "threshold_usd",
                    "triggers",
                    "billing_day_by",
                    "amount_choices_usd",
                    "paused",
                    "paused_at",
                    "card",
                    "last"
                  ]
                },
                "example": {
                  "enabled": true,
                  "amount_usd": 500,
                  "threshold_usd": 50,
                  "triggers": {
                    "low_balance": true,
                    "billing_day": true
                  },
                  "billing_day_by": "auto",
                  "amount_choices_usd": null,
                  "paused": null,
                  "paused_at": null,
                  "card": {
                    "brand": "visa",
                    "last4": "4242"
                  },
                  "last": {
                    "trigger": "low_balance",
                    "amount_usd": 500,
                    "status": "paid",
                    "at": "2026-11-20T09:14:02.000Z",
                    "paid_at": "2026-11-20T09:14:04.000Z",
                    "invoice_url": "https://invoice.example.com/i/acct_1/in_1",
                    "error": null
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad settings.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_body": {
                    "value": {
                      "error": "invalid_body",
                      "message": "Send {\"enabled\": true, \"amount\": 500, \"threshold\": 50} (amount from 250 to 50000 US dollars) or {\"enabled\": false}."
                    }
                  },
                  "invalid_amount": {
                    "value": {
                      "error": "invalid_amount",
                      "message": "The automatic top-up is from $250 to $50,000, in whole dollars."
                    }
                  },
                  "invalid_threshold": {
                    "value": {
                      "error": "invalid_threshold",
                      "message": "The low-balance amount must be $0 or more, and less than the top-up."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "409": {
            "description": "No card yet, or this is a workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "card_required": {
                    "value": {
                      "error": "card_required",
                      "message": "Add a card to turn on the automatic top-up. It switches on with these settings once the card is saved: https://checkout.example.com/setup/7f3c2a9e",
                      "card_setup_url": "https://checkout.example.com/setup/7f3c2a9e"
                    }
                  },
                  "billed_by_parent": {
                    "value": {
                      "error": "billed_by_parent",
                      "message": "This workspace spends its organization's balance. Top-ups are managed there."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "description": "The payment provider refused the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "billing_failed": {
                    "value": {
                      "error": "billing_failed",
                      "message": "The payment didn't go through. Try again, or contact us."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/billing/plan": {
      "post": {
        "tags": [
          "Billing"
        ],
        "operationId": "setMonthlyTopup",
        "summary": "Set the monthly top-up",
        "description": "A monthly card payment added to your balance on each renewal: `starter` ($250), `growth` ($500), `scale` ($1,000) or `partner` ($2,000). `{\"amount\": 500}` works too.\n\n- **None yet:** returns `status: checkout` and a `checkout_url`. Pass `email` to prefill it.\n- **Paid by card:** changes the amount from the next renewal (`status: changed`); nothing is charged now.\n- **Otherwise:** `202` with `status: pending_confirmation`; we confirm by email.\n\nCancel it, and see invoices and your card, with `POST /api/v1/billing/portal`.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "plan": {
                    "type": "string",
                    "enum": [
                      "starter",
                      "growth",
                      "scale",
                      "partner"
                    ]
                  },
                  "amount": {
                    "type": "number"
                  },
                  "email": {
                    "type": "string",
                    "format": "email"
                  }
                },
                "required": [
                  "plan",
                  "amount",
                  "email"
                ]
              },
              "example": {
                "plan": "starter"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A checkout link, or the change.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "plan": {
                      "type": "string"
                    },
                    "amount_usd": {
                      "type": "number"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "checkout",
                        "changed",
                        "unchanged"
                      ]
                    },
                    "checkout_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "note": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "plan",
                    "amount_usd",
                    "status",
                    "checkout_url",
                    "note"
                  ]
                },
                "examples": {
                  "checkout": {
                    "summary": "None yet",
                    "value": {
                      "plan": "growth",
                      "status": "checkout",
                      "checkout_url": "https://checkout.example.com/session/7f3c2a9e"
                    }
                  },
                  "changed": {
                    "summary": "Changed",
                    "value": {
                      "plan": "scale",
                      "amount_usd": 1000,
                      "status": "changed",
                      "note": "The new amount applies from the next renewal."
                    }
                  }
                }
              }
            }
          },
          "202": {
            "description": "A request we confirm by email.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "requested": {
                      "type": "string"
                    },
                    "amount_usd": {
                      "type": "number"
                    },
                    "status": {
                      "type": "string",
                      "const": "pending_confirmation"
                    },
                    "note": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "requested",
                    "amount_usd",
                    "status",
                    "note"
                  ]
                },
                "example": {
                  "requested": "starter",
                  "amount_usd": 250,
                  "status": "pending_confirmation",
                  "note": "We confirm this change by email."
                }
              }
            }
          },
          "400": {
            "description": "Unknown amount.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_plan": {
                    "value": {
                      "error": "invalid_plan",
                      "message": "plan must be starter ($250), growth ($500), scale ($1,000) or partner ($2,000), or send {\"amount\": 500}."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "description": "The payment provider refused the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "billing_failed": {
                    "value": {
                      "error": "billing_failed",
                      "message": "The payment didn't go through. Try again, or contact us."
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Online payment isn't set up.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "billing_not_configured": {
                    "value": {
                      "error": "billing_not_configured",
                      "message": "Online payment isn't set up yet. Contact us and we'll sort it out."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/billing/portal": {
      "post": {
        "tags": [
          "Billing"
        ],
        "operationId": "createBillingPortal",
        "summary": "Get a billing portal link",
        "description": "A short-lived link to the billing portal, where an owner can see and download invoices, change the card or cancel. Only for plans paid by card; plans we invoice directly get `409 no_billing_account`.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.\n\n**Free.** This doesn't spend your balance.",
        "x-admin-only": true,
        "responses": {
          "200": {
            "description": "Portal link.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "url"
                  ]
                },
                "example": {
                  "url": "https://billing.example.com/session/c41d7e90"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "409": {
            "description": "No card payments yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "no_billing_account": {
                    "value": {
                      "error": "no_billing_account",
                      "message": "There are no card payments on this account yet. Your receipts arrive by email after each top-up."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "description": "The payment provider refused the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "billing_failed": {
                    "value": {
                      "error": "billing_failed",
                      "message": "The payment didn't go through. Try again, or contact us."
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Online payment isn't set up.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "billing_not_configured": {
                    "value": {
                      "error": "billing_not_configured",
                      "message": "Online payment isn't set up yet. Contact us and we'll sort it out."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/team": {
      "get": {
        "tags": [
          "Team"
        ],
        "operationId": "getTeam",
        "summary": "List members and invites",
        "description": "Everyone in your organization (or, with a workspace's key, the workspace, with each person's `level`) and every open invite link (not yet used, revoked or expired).\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "responses": {
          "200": {
            "description": "Members and open invites.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "members": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TeamMember"
                      },
                      "description": "Oldest first."
                    },
                    "invites": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Invite"
                      },
                      "description": "Newest first."
                    }
                  },
                  "required": [
                    "members",
                    "invites"
                  ]
                },
                "example": {
                  "members": [
                    {
                      "user_id": "3b8e1f42-9d6a-4c2e-b7f0-5a1c9e8d2b67",
                      "email": "jordan.lee@example.com",
                      "role": "owner",
                      "joined_at": "2026-09-02T14:11:09.120044+00:00"
                    },
                    {
                      "user_id": "c41d7e90-2a3b-4f5c-8d6e-9f0a1b2c3d4e",
                      "email": "alex.chen@example.com",
                      "role": "member",
                      "joined_at": "2026-09-18T08:40:51.662310+00:00"
                    }
                  ],
                  "invites": [
                    {
                      "id": 17,
                      "email": "sam.rivera@example.com",
                      "role": "member",
                      "created_at": "2026-10-13T10:02:44.091337+00:00",
                      "expires_at": "2026-10-27T10:02:44.091337+00:00"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      }
    },
    "/api/v1/team/invites": {
      "post": {
        "tags": [
          "Team"
        ],
        "operationId": "createInvite",
        "summary": "Create an invite link",
        "description": "Creates a single-use invite link that's valid for 14 days. Nothing is emailed: send the link yourself. `email` is a label shown on the Team page and isn't enforced, so whoever opens the link first can join with it. `role` defaults to `member`.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email",
                    "description": "Who the link is for (a label, not enforced)."
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "member",
                      "owner"
                    ],
                    "default": "member"
                  }
                },
                "required": []
              },
              "example": {
                "email": "sam.rivera@example.com",
                "role": "member"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Invite created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "link": {
                      "type": "string",
                      "format": "uri",
                      "description": "The invite link. Shown only here."
                    },
                    "role": {
                      "type": "string",
                      "enum": [
                        "member",
                        "owner"
                      ]
                    },
                    "email": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "expires_in_days": {
                      "type": "integer",
                      "const": 14
                    }
                  },
                  "required": [
                    "link",
                    "role",
                    "email",
                    "expires_in_days"
                  ]
                },
                "example": {
                  "link": "https://intentleads.si/join/Xk7mQ2pR9tW4vB8nC3hJ6dF5gL2sA9eZ7yU4qN8m",
                  "role": "member",
                  "email": "sam.rivera@example.com",
                  "expires_in_days": 14
                }
              }
            }
          },
          "400": {
            "description": "The body isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_email": {
                    "value": {
                      "error": "invalid_email",
                      "message": "That email doesn't look right."
                    }
                  },
                  "invalid_role": {
                    "value": {
                      "error": "invalid_role",
                      "message": "role must be member or owner."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      }
    },
    "/api/v1/team/invites/{id}": {
      "delete": {
        "tags": [
          "Team"
        ],
        "operationId": "revokeInvite",
        "summary": "Revoke an invite link",
        "description": "Revokes an open invite link so it can't be used.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Invite id from List members and invites.",
            "schema": {
              "type": "integer"
            },
            "example": 17
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "responses": {
          "200": {
            "description": "Revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer"
                    },
                    "revoked": {
                      "type": "boolean",
                      "const": true
                    }
                  },
                  "required": [
                    "id",
                    "revoked"
                  ]
                },
                "example": {
                  "id": 17,
                  "revoked": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "404": {
            "description": "No open invite with that id (already used, revoked or expired).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invite_not_found": {
                    "value": {
                      "error": "invite_not_found",
                      "message": "No open invite with that id."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/team/members/{userId}": {
      "patch": {
        "tags": [
          "Team"
        ],
        "operationId": "updateMember",
        "summary": "Change a member's role",
        "description": "Makes someone an `owner` or a `member`. The last owner can't be made a member.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "description": "The member's `user_id`.",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "c41d7e90-2a3b-4f5c-8d6e-9f0a1b2c3d4e"
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "role": {
                    "type": "string",
                    "enum": [
                      "member",
                      "owner"
                    ]
                  }
                },
                "required": [
                  "role"
                ]
              },
              "example": {
                "role": "owner"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Role set.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "user_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "role": {
                      "type": "string",
                      "enum": [
                        "member",
                        "owner"
                      ]
                    }
                  },
                  "required": [
                    "user_id",
                    "role"
                  ]
                },
                "example": {
                  "user_id": "c41d7e90-2a3b-4f5c-8d6e-9f0a1b2c3d4e",
                  "role": "owner"
                }
              }
            }
          },
          "400": {
            "description": "Unknown role.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_role": {
                    "value": {
                      "error": "invalid_role",
                      "message": "role must be member or owner."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "409": {
            "description": "The person isn't in your organization, or the change would leave it without an owner.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "team_rule": {
                    "value": {
                      "error": "team_rule",
                      "message": "An organization needs at least one owner."
                    }
                  },
                  "not_member": {
                    "summary": "team_rule (not a member)",
                    "value": {
                      "error": "team_rule",
                      "message": "That person isn't in this organization."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      },
      "delete": {
        "tags": [
          "Team"
        ],
        "operationId": "removeMember",
        "summary": "Remove a member",
        "description": "Removes someone from your organization. The last owner can't be removed. API keys belong to the organization, so they keep working.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "description": "The member's `user_id`.",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "c41d7e90-2a3b-4f5c-8d6e-9f0a1b2c3d4e"
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "responses": {
          "200": {
            "description": "Removed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "user_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "removed": {
                      "type": "boolean",
                      "const": true
                    }
                  },
                  "required": [
                    "user_id",
                    "removed"
                  ]
                },
                "example": {
                  "user_id": "c41d7e90-2a3b-4f5c-8d6e-9f0a1b2c3d4e",
                  "removed": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "409": {
            "description": "The person isn't in your organization, or the change would leave it without an owner.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "team_rule": {
                    "value": {
                      "error": "team_rule",
                      "message": "An organization needs at least one owner."
                    }
                  },
                  "not_member": {
                    "summary": "team_rule (not a member)",
                    "value": {
                      "error": "team_rule",
                      "message": "That person isn't in this organization."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/workspaces": {
      "get": {
        "tags": [
          "Workspaces"
        ],
        "operationId": "listWorkspaces",
        "summary": "List workspaces",
        "description": "[Workspaces](/guides/workspaces): one per client, each with its own lanes, keys, exclusions and leads, all paid from your organization's balance.\n\nWith a workspace's own key: `{\"workspace\": true}` and no list, so a client's key never sees the organization.\n\n**Free.** This doesn't spend your balance.",
        "responses": {
          "200": {
            "description": "Your workspaces.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "workspace": {
                      "type": "boolean"
                    },
                    "balance_usd": {
                      "type": "number"
                    },
                    "month": {
                      "type": "object",
                      "properties": {
                        "start": {
                          "type": "string",
                          "format": "date"
                        },
                        "end": {
                          "type": "string",
                          "format": "date"
                        }
                      },
                      "required": [
                        "start",
                        "end"
                      ]
                    },
                    "workspaces": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "name": {
                            "type": "string"
                          },
                          "created_at": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "members": {
                            "type": "integer"
                          },
                          "this_month": {
                            "type": "object",
                            "properties": {
                              "intent_leads": {
                                "type": "integer"
                              },
                              "search_results": {
                                "type": "integer"
                              },
                              "website_visitors": {
                                "type": "integer"
                              },
                              "spent_usd": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "intent_leads",
                              "search_results",
                              "website_visitors",
                              "spent_usd"
                            ]
                          },
                          "budget": {
                            "type": "object",
                            "properties": {
                              "budget_usd": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Monthly budget in dollars, or null for none."
                              },
                              "spent_usd": {
                                "type": "number",
                                "description": "Spent this billing month."
                              },
                              "left_usd": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "What's left this month, less holds for running exports; null when there's no budget."
                              }
                            },
                            "required": [
                              "budget_usd",
                              "spent_usd",
                              "left_usd"
                            ],
                            "description": "What the workspace may spend each billing month, across intent leads, search results and website visitors."
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "created_at",
                          "members",
                          "this_month",
                          "budget"
                        ]
                      }
                    }
                  },
                  "required": [
                    "workspace",
                    "balance_usd",
                    "month",
                    "workspaces"
                  ]
                },
                "example": {
                  "workspace": false,
                  "balance_usd": 412.5,
                  "month": {
                    "start": "2026-11-09",
                    "end": "2026-12-09"
                  },
                  "workspaces": [
                    {
                      "id": "6f1d2c3b-4a5e-4f60-8172-93a4b5c6d7e8",
                      "name": "Acme Medical",
                      "created_at": "2026-10-14T06:12:41.528311+00:00",
                      "members": 2,
                      "this_month": {
                        "intent_leads": 412,
                        "search_results": 0,
                        "website_visitors": 18,
                        "spent_usd": 43
                      },
                      "budget": {
                        "budget_usd": 500,
                        "spent_usd": 43,
                        "left_usd": 457
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      },
      "post": {
        "tags": [
          "Workspaces"
        ],
        "operationId": "createWorkspace",
        "summary": "Create a workspace",
        "description": "[Workspaces](/guides/workspaces): one per client, each with its own lanes, keys, exclusions and leads, all paid from your organization's balance.\n\nEveryone in your organization can open it, with their organization role. Make its API key with `POST /api/v1/workspaces/{id}/keys`.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ]
              },
              "example": {
                "name": "Acme Medical"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "workspace": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name"
                      ]
                    },
                    "next": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "workspace",
                    "next"
                  ]
                },
                "example": {
                  "workspace": {
                    "id": "6f1d2c3b-4a5e-4f60-8172-93a4b5c6d7e8",
                    "name": "Acme Medical"
                  },
                  "next": "POST /api/v1/workspaces/.../keys for its API key."
                }
              }
            }
          },
          "400": {
            "description": "Bad name.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_name": {
                    "value": {
                      "error": "invalid_name",
                      "message": "name: 2 to 100 characters."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "409": {
            "description": "A workspace can't have workspaces.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "nested_workspace": {
                    "value": {
                      "error": "nested_workspace",
                      "message": "A workspace can't have workspaces of its own. Create it from the main organization."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/workspaces/{id}": {
      "get": {
        "tags": [
          "Workspaces"
        ],
        "operationId": "getWorkspace",
        "summary": "Get a workspace",
        "description": "**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The workspace id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "name": {
                      "type": "string"
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "members": {
                      "type": "integer"
                    },
                    "this_month": {
                      "type": "object",
                      "properties": {
                        "intent_leads": {
                          "type": "integer"
                        },
                        "search_results": {
                          "type": "integer"
                        },
                        "website_visitors": {
                          "type": "integer"
                        },
                        "spent_usd": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "intent_leads",
                        "search_results",
                        "website_visitors",
                        "spent_usd"
                      ]
                    },
                    "budget": {
                      "type": "object",
                      "properties": {
                        "budget_usd": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Monthly budget in dollars, or null for none."
                        },
                        "spent_usd": {
                          "type": "number",
                          "description": "Spent this billing month."
                        },
                        "left_usd": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "What's left this month, less holds for running exports; null when there's no budget."
                        }
                      },
                      "required": [
                        "budget_usd",
                        "spent_usd",
                        "left_usd"
                      ],
                      "description": "What the workspace may spend each billing month, across intent leads, search results and website visitors."
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "created_at",
                    "members",
                    "this_month",
                    "budget"
                  ]
                },
                "example": {
                  "id": "6f1d2c3b-4a5e-4f60-8172-93a4b5c6d7e8",
                  "name": "Acme Medical",
                  "created_at": "2026-10-14T06:12:41.528311+00:00",
                  "members": 2,
                  "this_month": {
                    "intent_leads": 412,
                    "search_results": 0,
                    "website_visitors": 18,
                    "spent_usd": 43
                  },
                  "budget": {
                    "budget_usd": 500,
                    "spent_usd": 43,
                    "left_usd": 457
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "Not one of your workspaces.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "workspace_not_found": {
                    "value": {
                      "error": "workspace_not_found",
                      "message": "No such workspace in your organization."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      },
      "patch": {
        "tags": [
          "Workspaces"
        ],
        "operationId": "renameWorkspace",
        "summary": "Rename a workspace",
        "description": "**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The workspace id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ]
              },
              "example": {
                "name": "Acme Medical Group"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Renamed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "workspace": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name"
                      ]
                    }
                  },
                  "required": [
                    "workspace"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "404": {
            "description": "Not one of your workspaces.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "workspace_not_found": {
                    "value": {
                      "error": "workspace_not_found",
                      "message": "No such workspace in your organization."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/workspaces/{id}/limits": {
      "get": {
        "tags": [
          "Workspaces"
        ],
        "operationId": "getWorkspaceBudget",
        "summary": "Get a workspace's budget",
        "description": "A workspace's monthly budget in dollars, covering intent leads, search results and website visitors together, and what it spent, holds and has left this billing month. `budget_usd` null means no budget. Use your organization's key. (The path keeps its old name: the budget replaced per-source limits in people.)\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The workspace id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The budget.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "workspace": {
                      "type": "string",
                      "format": "uuid",
                      "description": "The workspace id."
                    },
                    "budget_usd": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "The monthly budget in dollars, or null for none."
                    },
                    "spent_usd": {
                      "type": "number",
                      "description": "Charged to the workspace this billing month."
                    },
                    "held_usd": {
                      "type": "number",
                      "description": "Held for its exports still running, until they're charged."
                    },
                    "left_usd": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "budget − spent − held (never below 0), or null when there's no budget."
                    },
                    "note": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "workspace",
                    "budget_usd",
                    "spent_usd",
                    "held_usd",
                    "left_usd",
                    "note"
                  ]
                },
                "example": {
                  "workspace": "6f1d2c3b-4a5e-4f60-8172-93a4b5c6d7e8",
                  "budget_usd": 500,
                  "spent_usd": 43,
                  "held_usd": 0,
                  "left_usd": 457,
                  "note": "Dollars per billing month, across intent leads, search results and website visitors. budget_usd null means no budget."
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "Not one of your workspaces.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_your_workspace": {
                    "value": {
                      "error": "not_your_workspace",
                      "message": "That workspace isn't one of this organization's."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      },
      "put": {
        "tags": [
          "Workspaces"
        ],
        "operationId": "setWorkspaceBudget",
        "summary": "Set a workspace's budget",
        "description": "Sets or removes a workspace's monthly budget in dollars (0 to 1,000,000; `null` removes it). It covers intent leads, search results and website visitors together and starts again each billing month. Once it's used, the workspace's exports stop at what's left and its websites pause until next month; the workspace and your organization get an email. `PATCH` and `POST` do the same.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The workspace id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "budget_usd": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Dollars per billing month, or null for no budget."
                  }
                },
                "required": [
                  "budget_usd"
                ]
              },
              "example": {
                "budget_usd": 500
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The budget now.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "workspace": {
                      "type": "string",
                      "format": "uuid",
                      "description": "The workspace id."
                    },
                    "budget_usd": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "The monthly budget in dollars, or null for none."
                    },
                    "spent_usd": {
                      "type": "number",
                      "description": "Charged to the workspace this billing month."
                    },
                    "held_usd": {
                      "type": "number",
                      "description": "Held for its exports still running, until they're charged."
                    },
                    "left_usd": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "budget − spent − held (never below 0), or null when there's no budget."
                    },
                    "note": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "workspace",
                    "budget_usd",
                    "spent_usd",
                    "held_usd",
                    "left_usd",
                    "note"
                  ]
                },
                "example": {
                  "workspace": "6f1d2c3b-4a5e-4f60-8172-93a4b5c6d7e8",
                  "budget_usd": 500,
                  "spent_usd": 43,
                  "held_usd": 0,
                  "left_usd": 457,
                  "note": "Dollars per billing month, across intent leads, search results and website visitors. budget_usd null means no budget."
                }
              }
            }
          },
          "400": {
            "description": "The budget isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_budget": {
                    "value": {
                      "error": "invalid_budget",
                      "message": "budget_usd must be a number of dollars from 0 to 1,000,000, or null for no budget."
                    }
                  },
                  "budget_required": {
                    "value": {
                      "error": "budget_required",
                      "message": "Send {\"budget_usd\": 500}, or {\"budget_usd\": null} for no budget."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "404": {
            "description": "Not one of your workspaces.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_your_workspace": {
                    "value": {
                      "error": "not_your_workspace",
                      "message": "That workspace isn't one of this organization's."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/workspaces/{id}/keys": {
      "post": {
        "tags": [
          "Workspaces"
        ],
        "operationId": "createWorkspaceKey",
        "summary": "Create a workspace API key",
        "description": "An API key for the workspace, made with the main organization's admin key. The key is shown once and works for that workspace only.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The workspace id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "standard",
                      "admin"
                    ]
                  }
                },
                "required": [
                  "name",
                  "role"
                ]
              },
              "example": {
                "name": "Acme OS",
                "role": "standard"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The key.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "workspace": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "key": {
                      "type": "string"
                    },
                    "role": {
                      "type": "string"
                    },
                    "note": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "workspace",
                    "id",
                    "key",
                    "role",
                    "note"
                  ]
                },
                "example": {
                  "workspace": "6f1d2c3b-4a5e-4f60-8172-93a4b5c6d7e8",
                  "id": "2b3c…",
                  "key": "il_live_…",
                  "role": "standard",
                  "note": "Store this key now; it isn't shown again. It works for this workspace only."
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "404": {
            "description": "Not one of your workspaces.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "workspace_not_found": {
                    "value": {
                      "error": "workspace_not_found",
                      "message": "No such workspace in your organization."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/workspaces/{id}/handover": {
      "post": {
        "tags": [
          "Workspaces"
        ],
        "operationId": "workspaceHandover",
        "summary": "Invite the client to take over",
        "description": "Handover, step 1: an owner invite link for the client. They open it, sign up (accepting the terms) and become an owner. Then release the workspace.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The workspace id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "description": "Optional."
                  }
                },
                "required": [
                  "email"
                ]
              },
              "example": {
                "email": "ops@acme-medical.example"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The invite link.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "workspace": {
                      "type": "string"
                    },
                    "invite_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "next": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "workspace",
                    "invite_url",
                    "next"
                  ]
                },
                "example": {
                  "workspace": "6f1d2c3b-4a5e-4f60-8172-93a4b5c6d7e8",
                  "invite_url": "https://intentleads.si/join/…",
                  "next": "When they've joined, POST /api/v1/workspaces/.../release."
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "404": {
            "description": "Not one of your workspaces.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "workspace_not_found": {
                    "value": {
                      "error": "workspace_not_found",
                      "message": "No such workspace in your organization."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/workspaces/{id}/release": {
      "post": {
        "tags": [
          "Workspaces"
        ],
        "operationId": "releaseWorkspace",
        "summary": "Release a workspace",
        "description": "Handover, step 2: detaches the workspace. Its lanes, keywords, lists, leads and keys go with it; from then on it needs its own plan. `leave: true` also removes your team (needs a client owner first).\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The workspace id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "leave": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "leave"
                ]
              },
              "example": {
                "leave": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Released.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "released": {
                      "type": "boolean"
                    },
                    "client_owners": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "id",
                    "released",
                    "client_owners"
                  ]
                },
                "example": {
                  "id": "6f1d2c3b-4a5e-4f60-8172-93a4b5c6d7e8",
                  "released": true,
                  "client_owners": 1
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "404": {
            "description": "Not one of your workspaces.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "workspace_not_found": {
                    "value": {
                      "error": "workspace_not_found",
                      "message": "No such workspace in your organization."
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "No client owner yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "no_client_owner": {
                    "value": {
                      "error": "no_client_owner",
                      "message": "Invite the client as an owner first (and have them accept), so the workspace isn't left without one."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/workspaces/{id}/transfer": {
      "post": {
        "tags": [
          "Workspaces"
        ],
        "operationId": "offerWorkspaceTransfer",
        "summary": "Start moving a workspace to another organization",
        "description": "A one-time code, valid 14 days. An admin of the receiving organization accepts it with `POST /api/v1/workspaces/transfers/accept`. Any earlier open code for the workspace is cancelled.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The workspace id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The code.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "workspace": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name"
                      ]
                    },
                    "transfer_code": {
                      "type": "string"
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "next": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "workspace",
                    "transfer_code",
                    "expires_at",
                    "next"
                  ]
                },
                "example": {
                  "workspace": {
                    "id": "6f1d2c3b-4a5e-4f60-8172-93a4b5c6d7e8",
                    "name": "Acme Medical"
                  },
                  "transfer_code": "wst_…",
                  "expires_at": "2026-10-14T06:12:41.528311+00:00",
                  "next": "An admin of the receiving organization accepts it."
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "404": {
            "description": "Not one of your workspaces.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "workspace_not_found": {
                    "value": {
                      "error": "workspace_not_found",
                      "message": "No such workspace in your organization."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      },
      "delete": {
        "tags": [
          "Workspaces"
        ],
        "operationId": "cancelWorkspaceTransfer",
        "summary": "Cancel a transfer code",
        "description": "**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The workspace id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Whether a code was cancelled.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "cancelled": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "cancelled"
                  ]
                },
                "example": {
                  "cancelled": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "404": {
            "description": "Not one of your workspaces.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "workspace_not_found": {
                    "value": {
                      "error": "workspace_not_found",
                      "message": "No such workspace in your organization."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/workspaces/transfers/accept": {
      "post": {
        "tags": [
          "Workspaces"
        ],
        "operationId": "acceptWorkspaceTransfer",
        "summary": "Receive a workspace",
        "description": "With the receiving organization's admin key: the workspace moves here with its lanes, keywords, websites, lists, leads and keys, and this organization's plan and contact credits pay for it from now on. The receiving organization's users get it; the sending organization's users lose it unless `keep_previous_members` is true (then they stay as workspace users). Workspace users stay.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "keep_previous_members": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "code"
                ]
              },
              "example": {
                "code": "wst_…",
                "keep_previous_members": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Moved.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "workspace": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "from": {
                          "type": "string"
                        },
                        "to": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "from",
                        "to"
                      ]
                    }
                  },
                  "required": [
                    "workspace"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "404": {
            "description": "Bad code.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_code": {
                    "value": {
                      "error": "invalid_code",
                      "message": "That transfer code isn't valid: it may have expired, been used or been cancelled."
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Accept from the main organization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "not_an_organization": {
                    "value": {
                      "error": "not_an_organization",
                      "message": "Accept the transfer from your main organization, not from one of its workspaces."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/workspaces/{id}/members": {
      "get": {
        "tags": [
          "Workspaces"
        ],
        "operationId": "listWorkspaceMembers",
        "summary": "List a workspace's people",
        "description": "Workspace users are invited to one workspace and only see that one. Organization users open every workspace and are managed on the organization (`/api/v1/team`).\n\n**Admin key** of the organization, or of the workspace itself. Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The workspace id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Everyone who can open the workspace, and its open invites.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "workspace": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name"
                      ]
                    },
                    "members": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "user_id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "email": {
                            "type": "string",
                            "format": "email"
                          },
                          "role": {
                            "type": "string",
                            "enum": [
                              "owner",
                              "member"
                            ],
                            "description": "Their role here: owner if any of their access makes them one."
                          },
                          "level": {
                            "type": "string",
                            "enum": [
                              "workspace",
                              "org",
                              "both"
                            ],
                            "description": "`workspace`: invited to this workspace; `org`: through the organization (change them there); `both`."
                          },
                          "workspace_role": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Their role from a workspace invite, if they have one."
                          },
                          "org_role": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Their role in the organization, if they have access through it."
                          },
                          "joined_at": {
                            "type": "string",
                            "format": "date-time"
                          }
                        },
                        "required": [
                          "user_id",
                          "email",
                          "role",
                          "level",
                          "workspace_role",
                          "org_role",
                          "joined_at"
                        ]
                      }
                    },
                    "invites": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Invite"
                      }
                    },
                    "note": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "workspace",
                    "members",
                    "invites",
                    "note"
                  ]
                },
                "example": {
                  "workspace": {
                    "id": "6f1d2c3b-4a5e-4f60-8172-93a4b5c6d7e8",
                    "name": "Acme Medical"
                  },
                  "members": [
                    {
                      "user_id": "3b8e1f42-9d6a-4c2e-b7f0-5a1c9e8d2b67",
                      "email": "jordan.lee@example.com",
                      "role": "owner",
                      "level": "org",
                      "workspace_role": null,
                      "org_role": "owner",
                      "joined_at": "2026-10-14T06:12:41.528311+00:00"
                    },
                    {
                      "user_id": "c41d7e90-2a3b-4f5c-8d6e-9f0a1b2c3d4e",
                      "email": "jo.patel@client.example",
                      "role": "member",
                      "level": "workspace",
                      "workspace_role": "member",
                      "org_role": null,
                      "joined_at": "2026-10-14T06:12:41.528311+00:00"
                    }
                  ],
                  "invites": []
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "404": {
            "description": "Not one of your workspaces.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "workspace_not_found": {
                    "value": {
                      "error": "workspace_not_found",
                      "message": "No such workspace in your organization."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      },
      "post": {
        "tags": [
          "Workspaces"
        ],
        "operationId": "inviteWorkspaceMember",
        "summary": "Invite someone to a workspace",
        "description": "Same as `POST /api/v1/workspaces/{id}/invites`.\n\n**Admin key** of the organization, or of the workspace itself. Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The workspace id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email",
                    "description": "Who it's for (a label, not enforced)."
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "member",
                      "owner"
                    ],
                    "default": "member"
                  }
                },
                "required": []
              },
              "example": {
                "email": "jo.patel@client.example",
                "role": "member"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "A single-use link to this workspace only, valid 14 days. Nothing is emailed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "workspace": {
                      "type": "string"
                    },
                    "link": {
                      "type": "string",
                      "format": "uri"
                    },
                    "role": {
                      "type": "string"
                    },
                    "email": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "level": {
                      "type": "string",
                      "const": "workspace"
                    },
                    "expires_in_days": {
                      "type": "integer",
                      "const": 14
                    }
                  },
                  "required": [
                    "workspace",
                    "link",
                    "role",
                    "email",
                    "level",
                    "expires_in_days"
                  ]
                },
                "example": {
                  "workspace": "6f1d2c3b-4a5e-4f60-8172-93a4b5c6d7e8",
                  "link": "https://intentleads.si/join/…",
                  "role": "member",
                  "email": "jo.patel@client.example",
                  "level": "workspace",
                  "expires_in_days": 14
                }
              }
            }
          },
          "400": {
            "description": "Bad body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_email": {
                    "value": {
                      "error": "invalid_email",
                      "message": "That email doesn't look right."
                    }
                  },
                  "invalid_role": {
                    "value": {
                      "error": "invalid_role",
                      "message": "role must be member or owner."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "404": {
            "description": "Not one of your workspaces.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "workspace_not_found": {
                    "value": {
                      "error": "workspace_not_found",
                      "message": "No such workspace in your organization."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/workspaces/{id}/members/{userId}": {
      "patch": {
        "tags": [
          "Workspaces"
        ],
        "operationId": "updateWorkspaceMember",
        "summary": "Change a workspace user's role",
        "description": "Their role from the workspace invite. Organization users are changed on the organization.\n\n**Admin key** of the organization, or of the workspace itself. Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The workspace id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "description": "The person's `user_id`.",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "c41d7e90-2a3b-4f5c-8d6e-9f0a1b2c3d4e"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "role": {
                    "type": "string",
                    "enum": [
                      "member",
                      "owner"
                    ]
                  }
                },
                "required": [
                  "role"
                ]
              },
              "example": {
                "role": "owner"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Role set.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "workspace": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "role": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "workspace",
                    "user_id",
                    "role"
                  ]
                },
                "example": {
                  "workspace": "6f1d2c3b-4a5e-4f60-8172-93a4b5c6d7e8",
                  "user_id": "c41d7e90-2a3b-4f5c-8d6e-9f0a1b2c3d4e",
                  "role": "owner"
                }
              }
            }
          },
          "400": {
            "description": "Unknown role.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_role": {
                    "value": {
                      "error": "invalid_role",
                      "message": "role must be member or owner."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "404": {
            "description": "Not one of your workspaces.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "workspace_not_found": {
                    "value": {
                      "error": "workspace_not_found",
                      "message": "No such workspace in your organization."
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The change isn't allowed here.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "org_level_user": {
                    "value": {
                      "error": "org_level_user",
                      "message": "This person has access through the organization. Change their role on the organization's members page."
                    }
                  },
                  "last_owner": {
                    "value": {
                      "error": "last_owner",
                      "message": "A workspace needs at least one owner."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      },
      "delete": {
        "tags": [
          "Workspaces"
        ],
        "operationId": "removeWorkspaceMember",
        "summary": "Remove a workspace user",
        "description": "Removes their workspace access. If they also have it through the organization, they keep that.\n\n**Admin key** of the organization, or of the workspace itself. Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The workspace id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "description": "The person's `user_id`.",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "c41d7e90-2a3b-4f5c-8d6e-9f0a1b2c3d4e"
          }
        ],
        "responses": {
          "200": {
            "description": "Removed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "workspace": {
                      "type": "string"
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "removed": {
                      "type": "boolean"
                    },
                    "still_has_access_through_organization": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "workspace",
                    "user_id",
                    "removed",
                    "still_has_access_through_organization"
                  ]
                },
                "example": {
                  "workspace": "6f1d2c3b-4a5e-4f60-8172-93a4b5c6d7e8",
                  "user_id": "c41d7e90-2a3b-4f5c-8d6e-9f0a1b2c3d4e",
                  "removed": true,
                  "still_has_access_through_organization": false
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "404": {
            "description": "Not one of your workspaces.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "workspace_not_found": {
                    "value": {
                      "error": "workspace_not_found",
                      "message": "No such workspace in your organization."
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The change isn't allowed here.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "org_level_user": {
                    "value": {
                      "error": "org_level_user",
                      "message": "This person has access through the organization. Change their role on the organization's members page."
                    }
                  },
                  "last_owner": {
                    "value": {
                      "error": "last_owner",
                      "message": "A workspace needs at least one owner."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/workspaces/{id}/invites": {
      "get": {
        "tags": [
          "Workspaces"
        ],
        "operationId": "listWorkspaceInvites",
        "summary": "List a workspace's invite links",
        "description": "**Admin key** of the organization, or of the workspace itself. Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The workspace id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Open invites.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "workspace": {
                      "type": "string"
                    },
                    "invites": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Invite"
                      }
                    }
                  },
                  "required": [
                    "workspace",
                    "invites"
                  ]
                },
                "example": {
                  "workspace": "6f1d2c3b-4a5e-4f60-8172-93a4b5c6d7e8",
                  "invites": []
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "404": {
            "description": "Not one of your workspaces.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "workspace_not_found": {
                    "value": {
                      "error": "workspace_not_found",
                      "message": "No such workspace in your organization."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      },
      "post": {
        "tags": [
          "Workspaces"
        ],
        "operationId": "createWorkspaceInvite",
        "summary": "Invite someone to a workspace",
        "description": "Workspace users are invited to one workspace and only see that one. Organization users open every workspace and are managed on the organization (`/api/v1/team`).\n\n**Admin key** of the organization, or of the workspace itself. Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The workspace id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email",
                    "description": "Who it's for (a label, not enforced)."
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "member",
                      "owner"
                    ],
                    "default": "member"
                  }
                },
                "required": []
              },
              "example": {
                "email": "jo.patel@client.example",
                "role": "member"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "A single-use link to this workspace only, valid 14 days. Nothing is emailed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "workspace": {
                      "type": "string"
                    },
                    "link": {
                      "type": "string",
                      "format": "uri"
                    },
                    "role": {
                      "type": "string"
                    },
                    "email": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "level": {
                      "type": "string",
                      "const": "workspace"
                    },
                    "expires_in_days": {
                      "type": "integer",
                      "const": 14
                    }
                  },
                  "required": [
                    "workspace",
                    "link",
                    "role",
                    "email",
                    "level",
                    "expires_in_days"
                  ]
                },
                "example": {
                  "workspace": "6f1d2c3b-4a5e-4f60-8172-93a4b5c6d7e8",
                  "link": "https://intentleads.si/join/…",
                  "role": "member",
                  "email": "jo.patel@client.example",
                  "level": "workspace",
                  "expires_in_days": 14
                }
              }
            }
          },
          "400": {
            "description": "Bad body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_email": {
                    "value": {
                      "error": "invalid_email",
                      "message": "That email doesn't look right."
                    }
                  },
                  "invalid_role": {
                    "value": {
                      "error": "invalid_role",
                      "message": "role must be member or owner."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "404": {
            "description": "Not one of your workspaces.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "workspace_not_found": {
                    "value": {
                      "error": "workspace_not_found",
                      "message": "No such workspace in your organization."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/workspaces/{id}/invites/{inviteId}": {
      "delete": {
        "tags": [
          "Workspaces"
        ],
        "operationId": "revokeWorkspaceInvite",
        "summary": "Revoke a workspace invite link",
        "description": "**Admin key** of the organization, or of the workspace itself. Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The workspace id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "inviteId",
            "in": "path",
            "required": true,
            "description": "Invite id.",
            "schema": {
              "type": "integer"
            },
            "example": 17
          }
        ],
        "responses": {
          "200": {
            "description": "Revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "workspace": {
                      "type": "string"
                    },
                    "id": {
                      "type": "integer"
                    },
                    "revoked": {
                      "type": "boolean",
                      "const": true
                    }
                  },
                  "required": [
                    "workspace",
                    "id",
                    "revoked"
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invite_not_found": {
                    "value": {
                      "error": "invite_not_found",
                      "message": "No open invite with that id."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/keys": {
      "get": {
        "tags": [
          "API keys"
        ],
        "operationId": "listKeys",
        "summary": "List API keys",
        "description": "Every API key in your organization, newest first, including revoked ones (`active: false`). Secrets are never returned.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "responses": {
          "200": {
            "description": "Keys.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "keys": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ApiKey"
                      }
                    }
                  },
                  "required": [
                    "keys"
                  ]
                },
                "example": {
                  "keys": [
                    {
                      "id": "7f3c2a9e-4b1d-4e8a-9c6f-2d5b8e1a0c34",
                      "name": "CRM sync",
                      "role": "standard",
                      "prefix": "il_live_7QmX",
                      "created_at": "2026-10-02T12:00:31.402219+00:00",
                      "last_used_at": "2026-10-14T09:30:01.884105+00:00",
                      "rotated_at": null,
                      "revoked_at": null,
                      "active": true
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      },
      "post": {
        "tags": [
          "API keys"
        ],
        "operationId": "createKey",
        "summary": "Create an API key",
        "description": "Creates an API key. The full secret (`il_live_…`) is in `key` and is shown only once; only a hash is stored.\n\n`standard` keys (the default) work with lanes, keywords, checks, company lists, exports, leads, suppressions, usage and activity. `admin` keys can also manage billing, the team and other keys. Names are trimmed and cut at 80 characters.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "A name to recognise the key by. Trimmed and cut at 80 characters."
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "standard",
                      "admin"
                    ],
                    "default": "standard"
                  }
                },
                "required": [
                  "name"
                ]
              },
              "example": {
                "name": "CRM sync",
                "role": "standard"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Key created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeySecret"
                },
                "example": {
                  "id": "7f3c2a9e-4b1d-4e8a-9c6f-2d5b8e1a0c34",
                  "name": "CRM sync",
                  "role": "standard",
                  "key": "il_live_7QmXa2Bc9DeF4gHj6KmN8pQr3StUvW5x",
                  "note": "Store this key now; it isn't shown again."
                }
              }
            }
          },
          "400": {
            "description": "The body isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "name_required": {
                    "value": {
                      "error": "name_required",
                      "message": "Give the key a name."
                    }
                  },
                  "invalid_role": {
                    "value": {
                      "error": "invalid_role",
                      "message": "role must be standard or admin."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ]
      }
    },
    "/api/v1/keys/{id}": {
      "patch": {
        "tags": [
          "API keys"
        ],
        "operationId": "updateKey",
        "summary": "Rename a key or change its role",
        "description": "Changes a key's `name`, `role` or both. You can change the key you're calling with; if you make it `standard`, it can't call admin endpoints any more.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Key id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "7f3c2a9e-4b1d-4e8a-9c6f-2d5b8e1a0c34"
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "New name. Trimmed and cut at 80 characters; can't be empty."
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "standard",
                      "admin"
                    ]
                  }
                },
                "required": []
              },
              "example": {
                "name": "CRM sync (prod)"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated key.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "name": {
                      "type": "string"
                    },
                    "role": {
                      "type": "string",
                      "enum": [
                        "standard",
                        "admin"
                      ]
                    },
                    "prefix": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "role",
                    "prefix"
                  ]
                },
                "example": {
                  "id": "7f3c2a9e-4b1d-4e8a-9c6f-2d5b8e1a0c34",
                  "name": "CRM sync (prod)",
                  "role": "standard",
                  "prefix": "il_live_7QmX"
                }
              }
            }
          },
          "400": {
            "description": "The body isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_name": {
                    "value": {
                      "error": "invalid_name",
                      "message": "name can't be empty."
                    }
                  },
                  "invalid_role": {
                    "value": {
                      "error": "invalid_role",
                      "message": "role must be standard or admin."
                    }
                  },
                  "nothing_to_change": {
                    "value": {
                      "error": "nothing_to_change",
                      "message": "Pass name and/or role."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "404": {
            "description": "No active key with that id in your organization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "key_not_found": {
                    "value": {
                      "error": "key_not_found",
                      "message": "No active key with that id."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      },
      "delete": {
        "tags": [
          "API keys"
        ],
        "operationId": "revokeKey",
        "summary": "Revoke an API key",
        "description": "Revokes a key; it stops working at once. `revoked_self` is true when you revoked the key that made this call.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Key id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "7f3c2a9e-4b1d-4e8a-9c6f-2d5b8e1a0c34"
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "responses": {
          "200": {
            "description": "Revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "revoked": {
                      "type": "boolean",
                      "const": true
                    },
                    "revoked_self": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "revoked",
                    "revoked_self"
                  ]
                },
                "example": {
                  "id": "7f3c2a9e-4b1d-4e8a-9c6f-2d5b8e1a0c34",
                  "revoked": true,
                  "revoked_self": false
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "404": {
            "description": "No active key with that id in your organization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "key_not_found": {
                    "value": {
                      "error": "key_not_found",
                      "message": "No active key with that id."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/keys/{id}/rotate": {
      "post": {
        "tags": [
          "API keys"
        ],
        "operationId": "rotateKey",
        "summary": "Rotate an API key",
        "description": "Issues a new secret for a key, keeping its id, name and role. The old secret stops working at once, including when you rotate the key you're calling with. The new secret is shown only in this response.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Key id.",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "7f3c2a9e-4b1d-4e8a-9c6f-2d5b8e1a0c34"
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "responses": {
          "200": {
            "description": "New secret.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeySecret"
                },
                "example": {
                  "id": "7f3c2a9e-4b1d-4e8a-9c6f-2d5b8e1a0c34",
                  "name": "CRM sync",
                  "role": "standard",
                  "key": "il_live_Rt5Yu8Io2Pa4Sd6Fg9Hj3Kl7Zx1Cv5Bn",
                  "note": "The old secret no longer works. Store this one now."
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "404": {
            "description": "No active key with that id in your organization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "key_not_found": {
                    "value": {
                      "error": "key_not_found",
                      "message": "No active key with that id."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/me": {
      "get": {
        "tags": [
          "Account"
        ],
        "operationId": "getMe",
        "summary": "Check a key",
        "description": "Your organization's name and this key's role. A quick way to check that a key works.\n\n**Free.** This doesn't spend your balance.",
        "responses": {
          "200": {
            "description": "The key's organization and role.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "organization": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "key_role": {
                      "type": "string",
                      "enum": [
                        "standard",
                        "admin"
                      ]
                    }
                  },
                  "required": [
                    "organization",
                    "key_role"
                  ]
                },
                "example": {
                  "organization": "Acme Corp",
                  "key_role": "standard"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/organization": {
      "get": {
        "tags": [
          "Account"
        ],
        "operationId": "getOrganization",
        "summary": "Get the organization",
        "description": "Your organization's id and name.\n\n**Free.** This doesn't spend your balance.",
        "responses": {
          "200": {
            "description": "The organization.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "organization": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uuid"
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "created_at": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "created_at"
                      ]
                    }
                  },
                  "required": [
                    "organization"
                  ]
                },
                "example": {
                  "organization": {
                    "id": "8f14e45f-ceea-467a-9b1e-3c2d4a5b6c7d",
                    "name": "Acme Corp",
                    "created_at": "2026-10-09T15:20:11.000Z"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      },
      "patch": {
        "tags": [
          "Account"
        ],
        "operationId": "renameOrganization",
        "summary": "Rename the organization",
        "description": "Renames your organization. It's the name shown in the dashboard and to your team.\n\n**Admin key required.** Standard keys get `403 admin_key_required`.",
        "x-admin-only": true,
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "2 to 100 characters."
                  }
                },
                "required": [
                  "name"
                ]
              },
              "example": {
                "name": "Acme Corporation"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The renamed organization.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "organization": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uuid"
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "created_at": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "created_at"
                      ]
                    }
                  },
                  "required": [
                    "organization"
                  ]
                },
                "example": {
                  "organization": {
                    "id": "8f14e45f-ceea-467a-9b1e-3c2d4a5b6c7d",
                    "name": "Acme Corporation",
                    "created_at": "2026-10-09T15:20:11.000Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "The name isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalid_name": {
                    "value": {
                      "error": "invalid_name",
                      "message": "name: 2 to 100 characters."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/AdminKeyRequired"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/catalog": {
      "get": {
        "tags": [
          "Reference"
        ],
        "operationId": "getCatalog",
        "summary": "List filter values",
        "description": "Valid values for lane filters: every industry (for `industries` and `industries_exclude`), seniority levels, strengths and company-list modes. The example shows a few industries; the real list has a few hundred.\n\n**Free.** This doesn't spend your balance.",
        "responses": {
          "200": {
            "description": "Filter values.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Catalog"
                },
                "example": {
                  "industries": [
                    "accounting",
                    "medical device",
                    "medical equipment manufacturing",
                    "plastics manufacturing",
                    "wholesale"
                  ],
                  "seniority": [
                    {
                      "value": "cxo",
                      "label": "C-suite and owners"
                    },
                    {
                      "value": "vp",
                      "label": "VP"
                    },
                    {
                      "value": "director",
                      "label": "Director"
                    },
                    {
                      "value": "manager",
                      "label": "Manager"
                    },
                    {
                      "value": "staff",
                      "label": "Staff"
                    }
                  ],
                  "strengths": [
                    "low",
                    "medium",
                    "high"
                  ],
                  "company_list_modes": [
                    "narrow",
                    "replace",
                    "off"
                  ],
                  "keyword_groups": {
                    "groups": [
                      "A",
                      "B",
                      "C",
                      "D"
                    ],
                    "note": "Group A: researching any of its keywords. Each of B, C and D adds: and also researching at least one of its keywords. Set a group's minimum strength with group_strength."
                  },
                  "conditions": {
                    "shape": "{\"all\": [condition or group, ...]} or {\"any\": [...]}; a condition is {\"field\": \"...\", \"op\": \"...\", \"value\": ...}",
                    "max_conditions": 40,
                    "max_depth": 3,
                    "max_size_kb": 60,
                    "blanks": "none_of, not_contains, is_not also leave out people with no value for the field.",
                    "operators": {
                      "any_of": "is any of",
                      "none_of": "is none of",
                      "at_least": "is at least",
                      "between": "is between",
                      "exists": "has a value"
                    },
                    "values": {
                      "numbers": "at_least and at_most take a number; between takes [min, max]."
                    },
                    "fields": [
                      {
                        "field": "department",
                        "label": "Department",
                        "section": "Role",
                        "kind": "pick",
                        "ops": [
                          "any_of",
                          "none_of"
                        ],
                        "values": [
                          "sales",
                          "marketing",
                          "executive"
                        ]
                      },
                      {
                        "field": "naics",
                        "label": "NAICS code",
                        "section": "Company",
                        "kind": "codes",
                        "ops": [
                          "starts_with",
                          "exists"
                        ],
                        "digits": [
                          2,
                          6
                        ]
                      },
                      {
                        "field": "intent_score",
                        "label": "Intent score",
                        "section": "Intent",
                        "kind": "number",
                        "ops": [
                          "at_least",
                          "at_most",
                          "between"
                        ],
                        "min": 1,
                        "max": 99
                      },
                      {
                        "field": "has_mobile",
                        "label": "Mobile number",
                        "section": "Contact details",
                        "kind": "flag",
                        "ops": [
                          "is"
                        ]
                      }
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/activity": {
      "get": {
        "tags": [
          "Activity"
        ],
        "operationId": "listActivity",
        "summary": "List activity",
        "description": "Recent changes and events in your organization, newest first: keyword approvals, checks, exports, lane edits, company-list uploads, plan changes, keys, invites and team changes.\n\n`action` is a stable dotted code, such as `lane.created`, `lane.filters_changed`, `lane.strength_changed`, `lane.list_mode_changed`, `lane.check_queued`, `lanes.check_queued`, `lane.check_completed`, `keyword.added`, `keyword.removed`, `keyword.approved`, `keyword.rejected`, `company_list.uploaded`, `export.started`, `export.completed`, `api_key.created`, `api_key.updated`, `api_key.rotated`, `api_key.revoked`, `invite.created`, `invite.accepted`, `invite.revoked`, `member.role_changed`, `member.removed`, `plan.started`, `plan.upgraded`, `plan.change_requested`, `plan.canceled`, `suppression.applied` and `terms.accepted`. `text` is one plain-English sentence.\n\n**Free.** This doesn't spend your balance.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many items, 1 to 500. Out-of-range values are clamped.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 100
            },
            "example": 50
          },
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "responses": {
          "200": {
            "description": "Activity, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "activity": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ActivityItem"
                      }
                    }
                  },
                  "required": [
                    "activity"
                  ]
                },
                "example": {
                  "activity": [
                    {
                      "at": "2026-10-14T09:41:56.020871+00:00",
                      "action": "export.completed",
                      "text": "Exported 250 new people from L1, L2",
                      "by": "intent_leads_or_api"
                    },
                    {
                      "at": "2026-10-14T09:30:02.201563+00:00",
                      "action": "export.started",
                      "text": "Started an export of up to 250 new people from L1, L2",
                      "by": "intent_leads_or_api"
                    },
                    {
                      "at": "2026-10-13T16:05:12.774390+00:00",
                      "action": "keyword.approved",
                      "text": "\"selling to group purchasing organizations\" in L1 was approved and is live; people start showing up in 2–4 days",
                      "by": "intent_leads_or_api"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "il_live_…",
        "description": "An Intent Leads API key, e.g. `il_live_` followed by 32 letters and digits. Create one on the API and CLI page of the dashboard."
      }
    },
    "parameters": {
      "Workspace": {
        "name": "Intent-Leads-Workspace",
        "in": "header",
        "required": false,
        "description": "Only with an **organization** key: the workspace to act in (its id; `?workspace=<id>` works too). Lanes, leads, exports, lists, websites and webhooks live in workspaces. Without it, an organization key acts in its only workspace, or gets `400 workspace_required` (with the list of workspaces) when it has several. Workspace keys don't need it. On keys, team and activity it switches from the organization's own to that workspace's.",
        "schema": {
          "type": "string",
          "format": "uuid"
        },
        "example": "0a0e5135-a046-4f8c-8ca9-33de7cf9e54d"
      },
      "LaneCode": {
        "name": "code",
        "in": "path",
        "required": true,
        "description": "Lane code, e.g. `L1`. Case-insensitive.",
        "schema": {
          "type": "string"
        },
        "example": "L1"
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Missing, malformed, unknown or revoked API key.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "unauthorized": {
                "value": {
                  "error": "unauthorized",
                  "message": "Send a valid API key as: Authorization: Bearer il_live_…"
                }
              }
            }
          }
        }
      },
      "AdminKeyRequired": {
        "description": "This endpoint needs an admin key.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "admin_key_required": {
                "value": {
                  "error": "admin_key_required",
                  "message": "This needs an admin API key. Owners create one under Settings → API keys."
                }
              }
            }
          }
        }
      },
      "LaneNotFound": {
        "description": "No lane with that code.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "lane_not_found": {
                "value": {
                  "error": "lane_not_found",
                  "message": "No lane L9."
                }
              }
            }
          }
        }
      },
      "InternalError": {
        "description": "Unexpected server error. Safe to retry reads; retry an export only with the same `idempotency_key`.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "internal_error": {
                "value": {
                  "error": "internal_error",
                  "message": "Something went wrong. Try again."
                }
              }
            }
          }
        }
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "example": "lane_not_found",
            "description": "Stable machine-readable code, e.g. `lane_not_found`."
          },
          "message": {
            "type": "string",
            "example": "No lane L9.",
            "description": "Plain-English explanation you can show to a person."
          }
        },
        "required": [
          "error",
          "message"
        ],
        "description": "Every error has this shape."
      },
      "PlanError": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "enum": [
              "balance_empty",
              "workspace_budget_reached",
              "plan_required"
            ],
            "description": "`balance_empty` or `workspace_budget_reached` (exports), `plan_required` (new keywords need a balance)."
          },
          "message": {
            "type": "string"
          },
          "top_up": {
            "type": "string",
            "example": "/dash/billing",
            "description": "Where an owner can top up."
          },
          "existing_topics": {
            "type": "string",
            "description": "`plan_required` only: where to search the topics we already track."
          },
          "closest_topics": {
            "type": "array",
            "description": "`plan_required` from adding a keyword only: up to five topics we already track that are closest to the keyword. Add one with `{\"topic\": ...}`.",
            "items": {
              "type": "object",
              "properties": {
                "topic": {
                  "type": "string",
                  "example": "tp503611"
                },
                "name": {
                  "type": "string",
                  "example": "Outsourced Receptionist Services"
                }
              },
              "required": [
                "topic",
                "name"
              ]
            }
          }
        },
        "required": [
          "error",
          "message",
          "top_up",
          "existing_topics",
          "closest_topics"
        ],
        "description": "Returned by `POST /api/v1/exports` when there's no active plan or no contacts left, and when a free account asks for a new keyword."
      },
      "DataWindow": {
        "type": "object",
        "properties": {
          "start": {
            "type": "string",
            "format": "date",
            "description": "First data day (inclusive), UTC."
          },
          "end": {
            "type": "string",
            "format": "date",
            "description": "Last data day (inclusive), UTC."
          }
        },
        "required": [
          "start",
          "end"
        ],
        "description": "The 14-day data window a count covers. It can be shorter when fewer consecutive data days are ready.",
        "example": {
          "start": "2026-09-30",
          "end": "2026-10-13"
        }
      },
      "Strength": {
        "type": "string",
        "enum": [
          "low",
          "medium",
          "high"
        ],
        "description": "Intent strength. As a minimum: `low` = any strength, `medium` = medium and high, `high` = high only."
      },
      "Lead": {
        "type": "object",
        "properties": {
          "lead_id": {
            "type": "string",
            "format": "uuid",
            "description": "Stable id for this lead. Use it to dedupe and to match suppressions."
          },
          "lane": {
            "type": [
              "string",
              "null"
            ],
            "description": "Code of the lane that found this person, or null if that lane no longer exists."
          },
          "keywords_matched": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The lane keywords this person was researching."
          },
          "intent_strength": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "low",
              "medium",
              "high",
              null
            ],
            "description": "How strongly this person is researching."
          },
          "first_seen": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When this person was first seen researching the topic."
          },
          "delivered_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the lead was exported to you. The CSV column is `Exported`."
          },
          "seen_before": {
            "type": "boolean",
            "description": "True when this person was also exported to you in an earlier billing period. They count again in this one."
          },
          "suppressed": {
            "type": "boolean",
            "description": "True when this person asked to be removed. All contact fields are null; delete them from your systems (see Suppressions)."
          },
          "first_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "last_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "job_title": {
            "type": [
              "string",
              "null"
            ]
          },
          "seniority": {
            "type": [
              "string",
              "null"
            ],
            "description": "Seniority level, e.g. `CXO`, `VP`, `Director`, `Manager`."
          },
          "standard_title": {
            "type": [
              "string",
              "null"
            ],
            "description": "The job title in standard form, e.g. `Vice President`."
          },
          "department": {
            "type": [
              "string",
              "null"
            ],
            "description": "Department, e.g. `Sales`, `Engineering`, `Executive`."
          },
          "job_function": {
            "type": [
              "string",
              "null"
            ],
            "description": "Job function(s), comma separated."
          },
          "subdepartments": {
            "type": [
              "string",
              "null"
            ],
            "description": "Sub-departments, comma separated."
          },
          "headline": {
            "type": [
              "string",
              "null"
            ],
            "description": "Profile headline."
          },
          "title_history": {
            "type": [
              "string",
              "null"
            ],
            "description": "Job titles the person has held, the current one included, comma separated."
          },
          "employer_history": {
            "type": [
              "string",
              "null"
            ],
            "description": "Companies the person has worked for, comma separated."
          },
          "education": {
            "type": [
              "string",
              "null"
            ],
            "description": "Schools, with the degree in brackets when known, separated by `; `."
          },
          "linkedin_connections": {
            "type": [
              "string",
              "null"
            ],
            "description": "LinkedIn connections band, e.g. `1-9`, `500+`."
          },
          "company": {
            "type": [
              "string",
              "null"
            ],
            "description": "Company name."
          },
          "website": {
            "type": [
              "string",
              "null"
            ],
            "description": "Company domain."
          },
          "industry": {
            "type": [
              "string",
              "null"
            ],
            "description": "Company industry."
          },
          "naics": {
            "type": [
              "string",
              "null"
            ],
            "description": "NAICS codes, comma separated."
          },
          "sic": {
            "type": [
              "string",
              "null"
            ],
            "description": "SIC codes, comma separated."
          },
          "employees": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Company headcount."
          },
          "employee_range": {
            "type": [
              "string",
              "null"
            ],
            "description": "Headcount band, e.g. `101 to 250`."
          },
          "revenue": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Company annual revenue in US dollars."
          },
          "revenue_range": {
            "type": [
              "string",
              "null"
            ],
            "description": "Revenue band, e.g. `25 million to 50 million`."
          },
          "company_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "Company street address."
          },
          "city": {
            "type": [
              "string",
              "null"
            ],
            "description": "Company city."
          },
          "state": {
            "type": [
              "string",
              "null"
            ],
            "description": "Company state (US two-letter code or name)."
          },
          "company_zip": {
            "type": [
              "string",
              "null"
            ],
            "description": "Company ZIP or postal code."
          },
          "company_country": {
            "type": [
              "string",
              "null"
            ],
            "description": "Company country."
          },
          "company_description": {
            "type": [
              "string",
              "null"
            ],
            "description": "The company's description of itself."
          },
          "home_city": {
            "type": [
              "string",
              "null"
            ],
            "description": "City where the person lives."
          },
          "home_state": {
            "type": [
              "string",
              "null"
            ],
            "description": "State where the person lives."
          },
          "home_zip": {
            "type": [
              "string",
              "null"
            ],
            "description": "ZIP code where the person lives."
          },
          "home_country": {
            "type": [
              "string",
              "null"
            ],
            "description": "Country where the person lives."
          },
          "age_range": {
            "type": [
              "string",
              "null"
            ],
            "description": "Age band: `18-24`, `25-34`, `35-44`, `45-54`, `55-64` or `65+`."
          },
          "gender": {
            "type": [
              "string",
              "null"
            ],
            "description": "`Male` or `Female`. Null when unknown."
          },
          "household_income": {
            "type": [
              "string",
              "null"
            ],
            "description": "Estimated household income band, e.g. `$100,000 to $149,999`, `Less than $20,000`, `$250,000+`."
          },
          "net_worth": {
            "type": [
              "string",
              "null"
            ],
            "description": "Estimated net worth band, e.g. `$750,000 to $999,999`, `$1,000,000 or more`."
          },
          "homeowner": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Owns their home. Null when unknown."
          },
          "married": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Married. Null when unknown."
          },
          "children": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Children at home. Null when unknown."
          },
          "business_email": {
            "type": [
              "string",
              "null"
            ],
            "format": "email"
          },
          "email_status": {
            "type": [
              "string",
              "null"
            ],
            "description": "Validation status of `business_email`, lowercase (e.g. `valid`). Null when there's no email."
          },
          "personal_email": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "description": "Personal email address, lowercase. Null when we have none."
          },
          "mobile": {
            "type": [
              "string",
              "null"
            ],
            "description": "A mobile number. The first one not on the do-not-call list is picked when that's known."
          },
          "mobile_on_dnc": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether `mobile` is on the do-not-call list. Null when there's no mobile or it isn't known."
          },
          "direct_phone": {
            "type": [
              "string",
              "null"
            ],
            "description": "Direct dial."
          },
          "company_phone": {
            "type": [
              "string",
              "null"
            ],
            "description": "Company switchboard."
          },
          "linkedin": {
            "type": [
              "string",
              "null"
            ],
            "description": "Personal LinkedIn profile URL."
          },
          "company_linkedin": {
            "type": [
              "string",
              "null"
            ],
            "description": "Company LinkedIn page URL."
          },
          "twitter": {
            "type": [
              "string",
              "null"
            ],
            "description": "X (Twitter) profile URL."
          },
          "github": {
            "type": [
              "string",
              "null"
            ],
            "description": "GitHub profile URL."
          },
          "intent_topics": {
            "type": [
              "string",
              "null"
            ],
            "description": "The topic this person matched: normally the lane keyword."
          },
          "intent_score": {
            "type": [
              "number",
              "null"
            ],
            "description": "Intent score for the matched topic. Higher means more research activity. Not a percentile."
          },
          "last_active": {
            "type": [
              "string",
              "null"
            ],
            "description": "Day the person was last seen researching (`YYYY-MM-DD`)."
          }
        },
        "required": [
          "lead_id",
          "lane",
          "keywords_matched",
          "intent_strength",
          "first_seen",
          "delivered_at",
          "seen_before",
          "suppressed",
          "first_name",
          "last_name",
          "job_title",
          "seniority",
          "standard_title",
          "department",
          "job_function",
          "subdepartments",
          "headline",
          "title_history",
          "employer_history",
          "education",
          "linkedin_connections",
          "company",
          "website",
          "industry",
          "naics",
          "sic",
          "employees",
          "employee_range",
          "revenue",
          "revenue_range",
          "company_address",
          "city",
          "state",
          "company_zip",
          "company_country",
          "company_description",
          "home_city",
          "home_state",
          "home_zip",
          "home_country",
          "age_range",
          "gender",
          "household_income",
          "net_worth",
          "homeowner",
          "married",
          "children",
          "business_email",
          "email_status",
          "personal_email",
          "mobile",
          "mobile_on_dnc",
          "direct_phone",
          "company_phone",
          "linkedin",
          "company_linkedin",
          "twitter",
          "github",
          "intent_topics",
          "intent_score",
          "last_active"
        ],
        "description": "One exported person. Every field is always present; unknown values are null. Names, titles, companies and places are title-cased; emails, URLs and domains are left as they are.",
        "example": {
          "lead_id": "0199e3b2-5a7c-7e21-b4d3-8c9f0a1b2c3d",
          "lane": "L1",
          "keywords_matched": [
            "selling to group purchasing organizations"
          ],
          "intent_strength": "high",
          "first_seen": "2026-10-03T00:00:00+00:00",
          "delivered_at": "2026-10-14T09:31:07.482913+00:00",
          "seen_before": false,
          "suppressed": false,
          "first_name": "Jordan",
          "last_name": "Lee",
          "job_title": "VP of Sales",
          "seniority": "VP",
          "standard_title": "Vice President",
          "department": "Sales",
          "job_function": "Sales",
          "subdepartments": "Business Development",
          "headline": "VP of Sales at Acme Medical Supply",
          "title_history": "VP of Sales, Regional Sales Director, Account Executive",
          "employer_history": "Acme Medical Supply, Example Health",
          "education": "University of Minnesota (MBA)",
          "linkedin_connections": "500+",
          "company": "Acme Medical Supply",
          "website": "example.com",
          "industry": "Medical Equipment Manufacturing",
          "naics": "423450",
          "sic": "5047",
          "employees": 140,
          "employee_range": "101 to 250",
          "revenue": 38000000,
          "revenue_range": "25 million to 50 million",
          "company_address": "100 Example Avenue",
          "city": "Minneapolis",
          "state": "MN",
          "company_zip": "55401",
          "company_country": "United States",
          "company_description": "Acme Medical Supply distributes surgical and clinical supplies to hospitals in the Midwest.",
          "home_city": "Edina",
          "home_state": "Minnesota",
          "home_zip": "55424",
          "home_country": "United States",
          "age_range": "45-54",
          "gender": "Male",
          "household_income": "$150,000 to $199,999",
          "net_worth": "$750,000 to $999,999",
          "homeowner": true,
          "married": true,
          "children": true,
          "business_email": "jordan.lee@example.com",
          "email_status": "valid",
          "personal_email": "jordan.lee.home@example.net",
          "mobile": "+1 612 555 0142",
          "mobile_on_dnc": false,
          "direct_phone": "+1 612 555 0187",
          "company_phone": "+1 612 555 0100",
          "linkedin": "linkedin.com/in/example-jordan-lee",
          "company_linkedin": "linkedin.com/company/example-acme-medical",
          "twitter": null,
          "github": null,
          "intent_topics": "selling to group purchasing organizations",
          "intent_score": 81,
          "last_active": "2026-10-12"
        }
      },
      "Export": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Export id."
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "completed",
              "partial",
              "failed"
            ],
            "description": "`queued` and `running` are in progress. `completed`: everything reserved was exported. `partial`: some people were exported, fewer than `will_export`. `failed`: nobody was exported. You're charged only for the people delivered; the rest of the hold is released."
          },
          "lanes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Lane codes, in the order they're filled."
          },
          "requested": {
            "type": "integer",
            "description": "The number reserved when the export started (the quote's `will_export`), not the `max` you sent."
          },
          "will_export": {
            "type": "integer",
            "description": "Contacts reserved for this export."
          },
          "exported": {
            "type": "integer",
            "description": "People exported so far. Only these are charged."
          },
          "min_strength": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "low",
              "medium",
              "high",
              null
            ],
            "description": "Strength override sent with the export, or null for each lane's own `min_strength`."
          },
          "billing_period": {
            "type": "string",
            "format": "date",
            "description": "Start date of the billing month the export counts in (search exports use the fixed 2000-01-01: a person is bought once, ever)."
          },
          "via": {
            "type": "string",
            "enum": [
              "dashboard",
              "api",
              "cli",
              "mcp"
            ],
            "description": "Where the export was started."
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "finished_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why a `partial` or `failed` export stopped short, e.g. `No new people were available in these lanes.` or `Fewer new people were available than estimated.` Always null for other statuses."
          },
          "stage": {
            "type": "string",
            "enum": [
              "starting",
              "preparing",
              "saving",
              "done"
            ],
            "description": "Where a running export is. `preparing`: the people are being built (search lanes: about 50 minutes when none were prepared ahead; see `ready_at`). `saving`: they're being read and added to your leads, usually under a minute. `starting` just after you confirm, `done` once the status is final."
          },
          "preparing_since": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the people it's waiting on started being prepared, while `stage` is `preparing`."
          },
          "ready_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When those people should be ready (they usually are by then), while `stage` is `preparing`."
          },
          "slow": {
            "type": "boolean",
            "description": "True when preparing is taking longer than usual. A second, identical build is then running beside the first; whichever finishes first is used."
          }
        },
        "required": [
          "id",
          "status",
          "lanes",
          "requested",
          "will_export",
          "exported",
          "min_strength",
          "billing_period",
          "via",
          "created_at",
          "finished_at",
          "error",
          "stage",
          "preparing_since",
          "ready_at",
          "slow"
        ],
        "example": {
          "id": "0199e3a1-2f4b-7c10-8e2d-1a2b3c4d5e6f",
          "status": "completed",
          "lanes": [
            "L1",
            "L2"
          ],
          "requested": 250,
          "will_export": 250,
          "exported": 250,
          "min_strength": null,
          "billing_period": "2026-10-01",
          "via": "api",
          "created_at": "2026-10-14T09:30:02.114502+00:00",
          "finished_at": "2026-10-14T09:41:55.903117+00:00",
          "error": null
        }
      },
      "LaneAvailability": {
        "type": "object",
        "properties": {
          "lane": {
            "type": "string",
            "description": "Lane code."
          },
          "name": {
            "type": "string",
            "description": "Lane name."
          },
          "strength": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "description": "Minimum strength this export would use for the lane."
          },
          "available": {
            "type": "object",
            "properties": {
              "high": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "High strength only."
              },
              "medium_plus": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Medium and high."
              },
              "all": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Any strength."
              },
              "at_lane_strength": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "At the strength used for this export (the override, or the lane's own `min_strength`)."
              }
            },
            "required": [
              "high",
              "medium_plus",
              "all",
              "at_lane_strength"
            ],
            "description": "New people available now: the latest check's final count, less people exported from this lane since that check. Null when the lane hasn't been sized."
          },
          "data_window": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DataWindow"
              },
              {
                "type": "null"
              }
            ],
            "description": "Window of the check behind the counts, or null if the lane hasn't been checked."
          },
          "checked_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When that check finished."
          },
          "approximate": {
            "type": "boolean",
            "description": "True when the count is summed over parts of a large company list, so someone tied to two listed companies can be counted twice. An export never buys anyone twice."
          }
        },
        "required": [
          "lane",
          "name",
          "strength",
          "available",
          "data_window",
          "checked_at",
          "approximate"
        ]
      },
      "ExportQuote": {
        "type": "object",
        "properties": {
          "dry_run": {
            "type": "boolean",
            "const": true,
            "description": "Always true: nothing was bought."
          },
          "lanes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LaneAvailability"
            }
          },
          "requested": {
            "type": "integer",
            "description": "The `max` you sent."
          },
          "available": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Sum of `at_lane_strength` over the lanes, or null if any lane hasn't been sized yet."
          },
          "kind": {
            "type": "string",
            "enum": [
              "intent",
              "search"
            ],
            "description": "`intent` or `search`: which meter the export is priced on."
          },
          "will_export": {
            "type": "integer",
            "description": "What an export would get now: the smallest of `max`, `available`, what the balance covers and (in a workspace) what's left of its monthly budget. 0 with an empty balance."
          },
          "capped_by": {
            "type": "string",
            "enum": [
              "max",
              "balance",
              "workspace_limit",
              "available"
            ],
            "description": "Which limit set `will_export`. `workspace_limit` means the workspace's monthly budget."
          },
          "cost": {
            "type": "object",
            "properties": {
              "meter": {
                "type": "string",
                "enum": [
                  "intent",
                  "search"
                ]
              },
              "people": {
                "type": "integer",
                "description": "Same as `will_export`."
              },
              "amount_usd": {
                "type": "number",
                "description": "What those people cost now, at this month's prices. The most you'll be charged: only people delivered are."
              },
              "amount": {
                "type": "string",
                "description": "`amount_usd` formatted, e.g. \"$20.00\"."
              },
              "balance_before_usd": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Available balance now (less holds for running exports). Null with a workspace's own key: it never sees the organization's balance."
              },
              "balance_after_usd": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Null with a workspace's own key."
              },
              "used_this_month": {
                "type": "integer",
                "description": "People already charged on this meter this billing month, across your organization and its workspaces."
              },
              "month_end": {
                "type": "string",
                "format": "date",
                "description": "When this billing month ends and prices go back to the first tier."
              },
              "workspace_limit_left": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "People the rest of this workspace's monthly budget buys now, or null when it has no budget. Kept for older clients; `workspace_budget_left_usd` is the same in dollars."
              },
              "workspace_budget_usd": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "This workspace's monthly budget in dollars, or null when it has none."
              },
              "workspace_budget_left_usd": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "What's left of the budget this billing month (less holds for running exports), or null when there's no budget."
              }
            },
            "required": [
              "meter",
              "people",
              "amount_usd",
              "amount",
              "balance_before_usd",
              "balance_after_usd",
              "used_this_month",
              "month_end",
              "workspace_limit_left",
              "workspace_budget_usd",
              "workspace_budget_left_usd"
            ]
          },
          "exports_enabled": {
            "type": "boolean",
            "description": "False while exports aren't open for your account; a real export would then fail with `exports_disabled`."
          },
          "ready_now": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Search lanes: people already prepared, who arrive within about a minute of confirming. Null for intent lanes (they build in a couple of minutes)."
          },
          "ready_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Search lanes: when the next prepared people should be ready, if more are being prepared now; else null. People beyond `ready_now` arrive then."
          },
          "notes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Plain-English caveats about this quote, including when the people will arrive."
          },
          "dry_run_defaulted": {
            "type": "boolean",
            "const": true,
            "description": "Only present (true) when you left `dry_run` out."
          },
          "note": {
            "type": "string",
            "description": "Only present when you left `dry_run` out: explains how to export for real."
          }
        },
        "required": [
          "dry_run",
          "lanes",
          "requested",
          "available",
          "will_export",
          "capped_by",
          "cost",
          "exports_enabled",
          "notes"
        ],
        "description": "A free quote. Nothing is bought.",
        "example": {
          "dry_run": true,
          "lanes": [
            {
              "lane": "L1",
              "name": "Medical device distributors",
              "strength": "medium",
              "available": {
                "high": 88,
                "medium_plus": 412,
                "all": 1265,
                "at_lane_strength": 412
              },
              "data_window": {
                "start": "2026-09-30",
                "end": "2026-10-13"
              },
              "checked_at": "2026-10-14T06:12:41.528311+00:00",
              "approximate": false
            },
            {
              "lane": "L2",
              "name": "Plastics molders",
              "strength": "high",
              "available": {
                "high": 61,
                "medium_plus": 230,
                "all": 702,
                "at_lane_strength": 61
              },
              "data_window": {
                "start": "2026-09-30",
                "end": "2026-10-13"
              },
              "checked_at": "2026-10-14T06:12:41.528311+00:00",
              "approximate": false
            }
          ],
          "requested": 250,
          "available": 473,
          "will_export": 250,
          "capped_by": "max",
          "cost": {
            "meter": "intent",
            "people": 250,
            "amount_usd": 20,
            "amount": "$20.00",
            "balance_before_usd": 420,
            "balance_after_usd": 400,
            "used_this_month": 2900,
            "month_end": "2026-11-01",
            "workspace_limit_left": null,
            "workspace_budget_usd": null,
            "workspace_budget_left_usd": null
          },
          "exports_enabled": true,
          "notes": [
            "Available counts come from each lane's latest daily check, less people exported since. An export fills the number shown, or fewer if fewer are really there.",
            "Intent is a rolling 14-day window: people who aren't exported within about two weeks of researching drop out."
          ]
        }
      },
      "ExportStarted": {
        "type": "object",
        "properties": {
          "export": {
            "$ref": "#/components/schemas/Export"
          },
          "reused": {
            "type": "boolean",
            "description": "True when this `idempotency_key` was used before: this is that earlier export and nothing new was bought."
          },
          "poll": {
            "type": "string",
            "example": "/api/v1/exports/0199e3a1-2f4b-7c10-8e2d-1a2b3c4d5e6f",
            "description": "Path to poll for progress and leads."
          }
        },
        "required": [
          "export",
          "reused",
          "poll"
        ]
      },
      "ExportRequest": {
        "type": "object",
        "properties": {
          "lanes": {
            "description": "Lane codes to export from, e.g. `[\"L1\", \"L6\"]`, a single code (`\"L1\"`), or `\"all\"` for every lane. Codes are case-insensitive.",
            "oneOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "minItems": 1,
                "example": [
                  "L1",
                  "L2"
                ]
              },
              {
                "type": "string",
                "example": "all"
              }
            ]
          },
          "max": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100000,
            "example": 250,
            "description": "Most new people to export. The export takes fewer if fewer are available or you have fewer contacts left."
          },
          "min_strength": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "description": "Overrides every chosen lane's own minimum strength for this export. Leave it out to use each lane's `min_strength`."
          },
          "dry_run": {
            "type": "boolean",
            "default": true,
            "description": "Leave out or `true` for a free quote. Only the JSON boolean `false` exports (and uses contacts). Anything else, including the string `\"false\"`, is a quote."
          },
          "idempotency_key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "example": "crm-sync-2026-10-14",
            "description": "Required when `dry_run` is `false`. Any unique string up to 200 characters. Retrying with the same key returns the first export and never buys twice."
          },
          "via": {
            "type": "string",
            "enum": [
              "api",
              "cli",
              "mcp"
            ],
            "description": "Label recorded on the export. Defaults to `api` (`cli` for the Intent Leads CLI)."
          }
        },
        "required": [
          "lanes",
          "max"
        ]
      },
      "LeadsPage": {
        "type": "object",
        "properties": {
          "since": {
            "type": "string",
            "example": "last",
            "description": "The `since` you sent: `last` or a date."
          },
          "lane": {
            "type": [
              "string",
              "null"
            ],
            "description": "Lane filter, or null for every lane."
          },
          "count": {
            "type": "integer",
            "description": "Leads in this response."
          },
          "has_more": {
            "type": "boolean",
            "description": "True when this response is full (`count` equals `limit`): call again for more."
          },
          "next_page": {
            "type": [
              "string",
              "null"
            ],
            "description": "Only with `since=YYYY-MM-DD`: pass as `page` to get the next page. Null when there are no more, and always null with `since=last`."
          },
          "leads": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Lead"
            }
          }
        },
        "required": [
          "since",
          "lane",
          "count",
          "has_more",
          "next_page",
          "leads"
        ]
      },
      "Delivery": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Delivery id. Filter leads with `GET /api/v1/leads?since=DATE&delivery=ID`."
          },
          "delivered_on": {
            "type": "string",
            "format": "date",
            "description": "UTC date the delivery was written."
          },
          "lane": {
            "type": [
              "string",
              "null"
            ],
            "description": "Lane code, or null if that lane no longer exists."
          },
          "people": {
            "type": "integer",
            "description": "People in this delivery."
          },
          "contacts_billed": {
            "type": "integer",
            "description": "People in this delivery (each charged once)."
          }
        },
        "required": [
          "id",
          "delivered_on",
          "lane",
          "people",
          "contacts_billed"
        ],
        "description": "Each export writes one delivery per lane it filled."
      },
      "Lane": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "example": "L1",
            "description": "Lane code, e.g. `L1`."
          },
          "name": {
            "type": "string"
          },
          "priority": {
            "type": "integer",
            "description": "Order in which lanes are listed and filled (lower first)."
          },
          "min_strength": {
            "$ref": "#/components/schemas/Strength"
          },
          "company_list_mode": {
            "type": "string",
            "enum": [
              "narrow",
              "replace",
              "off"
            ],
            "description": "How the lane uses your company list: `narrow` = lane industries and your list; `replace` = your list instead of industries; `off` = ignore the list."
          },
          "keywords_live": {
            "type": "integer",
            "description": "Keywords approved and in use."
          },
          "keywords_pending": {
            "type": "integer",
            "description": "Keywords waiting for approval."
          },
          "researching_latest_day": {
            "type": "object",
            "properties": {
              "all": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "medium_plus": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "high": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "as_of": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date",
                "description": "The data day these numbers are for."
              },
              "deliverable": {
                "type": "boolean",
                "const": false,
                "description": "Always false: these aren't people you could export."
              },
              "note": {
                "type": "string"
              }
            },
            "required": [
              "all",
              "medium_plus",
              "high",
              "as_of",
              "deliverable",
              "note"
            ],
            "description": "Quick one-day topic signal, before any filter. Not people you could export."
          },
          "researching_14d": {
            "description": "People researching the lane's keywords over the data window, before any filter, from the latest check. Null until the first check finishes.",
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "all": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "medium_plus": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "data_window": {
                    "$ref": "#/components/schemas/DataWindow"
                  }
                },
                "required": [
                  "all",
                  "medium_plus",
                  "data_window"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "after_filters": {
            "description": "People who pass every filter over the data window, from the latest check. Everyone already exported to you this billing period was left out when the check ran. This is what an export draws from. Null until the first check finishes.",
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "all": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Any strength."
                  },
                  "medium_plus": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Medium and high."
                  },
                  "high": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "High only. Present only when the check sized it (lanes with `min_strength` `high`)."
                  },
                  "at_lane_strength": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "At the lane's `min_strength`."
                  },
                  "filters_used": {
                    "type": "string",
                    "enum": [
                      "industries",
                      "company_list",
                      "industries_and_company_list"
                    ],
                    "description": "Which filters the lane's headline count uses: its industries, your company list (company_list_mode `replace`), or both (`narrow`)."
                  },
                  "data_window": {
                    "$ref": "#/components/schemas/DataWindow"
                  },
                  "checked_at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date-time"
                  }
                },
                "required": [
                  "all",
                  "medium_plus",
                  "at_lane_strength",
                  "filters_used",
                  "data_window",
                  "checked_at"
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "code",
          "name",
          "priority",
          "min_strength",
          "company_list_mode",
          "keywords_live",
          "keywords_pending",
          "researching_latest_day",
          "researching_14d",
          "after_filters"
        ],
        "example": {
          "code": "L1",
          "name": "Medical device distributors",
          "priority": 1,
          "min_strength": "medium",
          "company_list_mode": "off",
          "keywords_live": 8,
          "keywords_pending": 2,
          "researching_latest_day": {
            "all": 1840,
            "medium_plus": 620,
            "high": 95,
            "as_of": "2026-10-13",
            "deliverable": false,
            "note": "Quick topic signal from a separate preview index for one day, before any filter. Not people you could receive; use after_filters for that."
          },
          "researching_14d": {
            "all": 21450,
            "medium_plus": 7310,
            "data_window": {
              "start": "2026-09-30",
              "end": "2026-10-13"
            }
          },
          "after_filters": {
            "all": 1265,
            "medium_plus": 412,
            "at_lane_strength": 412,
            "filters_used": "industries",
            "data_window": {
              "start": "2026-09-30",
              "end": "2026-10-13"
            },
            "checked_at": "2026-10-14T06:12:41.528311+00:00"
          }
        }
      },
      "Keyword": {
        "type": "object",
        "properties": {
          "position": {
            "type": "integer"
          },
          "keyword": {
            "type": "string"
          },
          "group": {
            "type": "string",
            "enum": [
              "A",
              "B",
              "C",
              "D"
            ],
            "description": "`A`: the lane's main keywords (researching any of them). `B`, `C`, `D`: the person must also research at least one keyword from each group in use."
          },
          "existing_topic": {
            "type": "boolean",
            "description": "True when the keyword uses a topic we already track (live at once, with history) rather than a new topic requested for it."
          },
          "topic": {
            "type": [
              "string",
              "null"
            ],
            "description": "The topic id, once the keyword has one. Look it up with `GET /api/v1/topics/{topic}`."
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "pending_approval",
              "approved",
              "live",
              "rejected"
            ],
            "description": "`queued`: not sent for approval yet (retried automatically). `pending_approval`: sent, waiting for approval (usually about a day). `approved`: approved, going live. `live`: in use; people show up within 2 to 4 days of going live. `rejected`: not approved; try rewording it."
          },
          "live_since": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "researching_latest_day": {
            "type": "object",
            "properties": {
              "all": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "medium_plus": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "high": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "as_of": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date"
              },
              "deliverable": {
                "type": "boolean",
                "const": false
              }
            },
            "required": [
              "all",
              "medium_plus",
              "high",
              "as_of",
              "deliverable"
            ],
            "description": "One-day topic signal for this keyword, before filters. Not deliverable."
          },
          "after_filters": {
            "description": "People on this keyword who pass the lane's filters over 14 days, any strength. Sized weekly. Null until sized.",
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "all": {
                    "type": "integer"
                  },
                  "window_end": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date",
                    "description": "Last data day of the window behind the number."
                  },
                  "note": {
                    "type": "string"
                  }
                },
                "required": [
                  "all",
                  "window_end",
                  "note"
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "position",
          "keyword",
          "group",
          "existing_topic",
          "topic",
          "status",
          "live_since",
          "researching_latest_day",
          "after_filters"
        ]
      },
      "Condition": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string",
            "description": "A field from `GET /api/v1/catalog` (`conditions.fields`), e.g. `department`, `naics`, `revenue`, `email_status`."
          },
          "op": {
            "type": "string",
            "enum": [
              "any_of",
              "none_of",
              "is",
              "is_not",
              "contains",
              "not_contains",
              "starts_with",
              "ends_with",
              "exists",
              "missing",
              "at_least",
              "at_most",
              "between"
            ],
            "description": "Operator. Each field takes some of these: see the catalog."
          },
          "value": {
            "description": "Lists of strings for any_of, none_of, is, is_not, contains, not_contains, starts_with and ends_with (one string also works); a number for at_least and at_most; `[min, max]` for between; `true` or `false` for flag fields (op `is`). Omit for exists and missing.",
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "array",
                "items": {
                  "type": "number"
                },
                "minItems": 2,
                "maxItems": 2
              },
              {
                "type": "boolean"
              }
            ]
          }
        },
        "required": [
          "field",
          "op"
        ],
        "description": "One condition.",
        "example": {
          "field": "naics",
          "op": "starts_with",
          "value": [
            "3391"
          ]
        }
      },
      "ConditionGroup": {
        "description": "A group of conditions and nested groups: `all` (AND) or `any` (OR). Nests up to 3 levels; up to 40 conditions and about 60 KB of values per lane. See [More filters](/guides/more-filters).",
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "all": {
                "type": "array",
                "items": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Condition"
                    },
                    {
                      "$ref": "#/components/schemas/ConditionGroup"
                    }
                  ]
                },
                "minItems": 1
              }
            },
            "required": [
              "all"
            ]
          },
          {
            "type": "object",
            "properties": {
              "any": {
                "type": "array",
                "items": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Condition"
                    },
                    {
                      "$ref": "#/components/schemas/ConditionGroup"
                    }
                  ]
                },
                "minItems": 1
              }
            },
            "required": [
              "any"
            ]
          }
        ],
        "example": {
          "all": [
            {
              "field": "department",
              "op": "any_of",
              "value": [
                "sales"
              ]
            },
            {
              "any": [
                {
                  "field": "naics",
                  "op": "starts_with",
                  "value": [
                    "3391"
                  ]
                },
                {
                  "field": "revenue_range",
                  "op": "any_of",
                  "value": [
                    "10 million to 25 million"
                  ]
                }
              ]
            }
          ]
        }
      },
      "KeywordGroupSummary": {
        "type": "object",
        "properties": {
          "group": {
            "type": "string",
            "enum": [
              "A",
              "B",
              "C",
              "D"
            ],
            "description": "`A`: the lane's main keywords (researching any of them). `B`, `C`, `D`: the person must also research at least one keyword from each group in use."
          },
          "keywords": {
            "type": "integer",
            "description": "Keywords in the group (not removed or rejected)."
          },
          "keywords_live": {
            "type": "integer"
          },
          "min_strength": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "description": "Group A uses the lane's `min_strength`; groups B-D their own `group_strength` (default `low`, any strength)."
          },
          "waiting_for_live_keyword": {
            "type": "boolean",
            "description": "True for a group B-D with no live keyword yet: the lane can't be checked or exported until it has one."
          },
          "rule": {
            "type": "string",
            "description": "The group's rule in words."
          }
        },
        "required": [
          "group",
          "keywords",
          "keywords_live",
          "min_strength",
          "waiting_for_live_keyword",
          "rule"
        ]
      },
      "LaneFilters": {
        "type": "object",
        "properties": {
          "countries": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "`[\"United States\"]` when `us_only` is on, else empty."
          },
          "headquarters_only": {
            "type": "boolean",
            "description": "True when `us_only` is on: the company's headquarters must be in the US."
          },
          "employees": {
            "description": "Company size range, or null for any size.",
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "min": {
                    "type": "integer"
                  },
                  "max": {
                    "type": "integer"
                  }
                },
                "required": [
                  "min",
                  "max"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "industries": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "suggested_industries_not_applied": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Industries we suggest adding. Shown only, never applied."
          },
          "seniority": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "titles_include": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Job title must contain one of these (lowercase)."
          },
          "titles_exclude": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Job title must not contain any of these (lowercase)."
          },
          "industries_exclude": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Industries left out where the lane's industry list isn't applied (the company-list path, or a lane with no industries)."
          },
          "exclude_companies": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Notes only, not applied. Use `conditions` (e.g. industry none_of) or exclusions to leave companies out."
          },
          "exclusions": {
            "type": "object",
            "properties": {
              "left_out_by_filter": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Exclusions already covered by `industries_exclude`."
              },
              "screened_before_export": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Setup notes with no matching filter. Not applied to counts or exports."
              },
              "note": {
                "type": "string"
              }
            },
            "required": [
              "left_out_by_filter",
              "screened_before_export",
              "note"
            ]
          },
          "negative_topics": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Topics to leave out (set with `topics_to_leave_out`)."
          },
          "conditions": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ConditionGroup"
              },
              {
                "type": "null"
              }
            ],
            "description": "More filters, or null for none."
          },
          "conditions_summary": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The more filters in plain words, one line each, indented by nesting."
          }
        },
        "required": [
          "countries",
          "headquarters_only",
          "employees",
          "industries",
          "suggested_industries_not_applied",
          "seniority",
          "titles_include",
          "titles_exclude",
          "industries_exclude",
          "exclude_companies",
          "exclusions",
          "negative_topics",
          "conditions",
          "conditions_summary"
        ]
      },
      "FunnelStage": {
        "type": "object",
        "properties": {
          "all": {
            "type": "object",
            "properties": {
              "people": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "window_end": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date",
                "description": "Last data day of the 14-day window behind this number."
              }
            },
            "required": [
              "people",
              "window_end"
            ]
          },
          "medium_plus": {
            "type": "object",
            "properties": {
              "people": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "window_end": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date",
                "description": "Last data day of the 14-day window behind this number."
              }
            },
            "required": [
              "people",
              "window_end"
            ]
          },
          "high": {
            "type": "object",
            "properties": {
              "people": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "window_end": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date",
                "description": "Last data day of the 14-day window behind this number."
              }
            },
            "required": [
              "people",
              "window_end"
            ]
          }
        },
        "required": [],
        "description": "People left at one filter step, per strength. A strength is present only when it was sized."
      },
      "Funnel": {
        "type": "object",
        "properties": {
          "checked_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "data_window": {
            "$ref": "#/components/schemas/DataWindow"
          },
          "unit": {
            "type": "string",
            "const": "people"
          },
          "note": {
            "type": "string"
          },
          "filters_used": {
            "type": "string",
            "enum": [
              "industries",
              "company_list",
              "industries_and_company_list"
            ],
            "description": "Which filters the lane's headline count uses: its industries, your company list (company_list_mode `replace`), or both (`narrow`)."
          },
          "industry_path": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "$ref": "#/components/schemas/FunnelStage"
            },
            "description": "Steps when filtering by industries, cumulatively: `intent` (researching your keywords), `us`, `size`, `industry`, `seniority`, `titles` (final)."
          },
          "company_list_path": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "$ref": "#/components/schemas/FunnelStage"
            },
            "description": "Steps when using your company list instead of industries: `list`, `seniority`, `titles` (final). Null without a company list."
          },
          "both": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "$ref": "#/components/schemas/FunnelStage"
            },
            "description": "Lane industries and your company list together: `titles` (final). Only for `narrow` lanes with a company list."
          }
        },
        "required": [
          "checked_at",
          "data_window",
          "unit",
          "note",
          "filters_used",
          "industry_path",
          "company_list_path",
          "both"
        ],
        "description": "How many people each filter step keeps. Finals are checked daily, other steps weekly."
      },
      "LaneDetail": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Lane"
          },
          {
            "type": "object",
            "properties": {
              "audience": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Who you sell to in this lane."
              },
              "filters": {
                "$ref": "#/components/schemas/LaneFilters"
              },
              "keyword_groups": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/KeywordGroupSummary"
                },
                "description": "Group A, plus any of groups B-D that hold keywords."
              },
              "keywords": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Keyword"
                },
                "description": "Every keyword except removed ones, in order."
              },
              "funnel": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Funnel"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Null until the lane's first check has results."
              }
            },
            "required": [
              "audience",
              "filters",
              "keyword_groups",
              "keywords",
              "funnel"
            ]
          }
        ],
        "example": {
          "code": "L1",
          "name": "Medical device distributors",
          "priority": 1,
          "min_strength": "medium",
          "keywords_live": 8,
          "keywords_pending": 2,
          "researching_latest_day": {
            "all": 1840,
            "medium_plus": 620,
            "high": 95,
            "as_of": "2026-10-13",
            "deliverable": false,
            "note": "Quick topic signal from a separate preview index for one day, before any filter. Not people you could receive; use after_filters for that."
          },
          "researching_14d": {
            "all": 21450,
            "medium_plus": 7310,
            "data_window": {
              "start": "2026-09-30",
              "end": "2026-10-13"
            }
          },
          "after_filters": {
            "all": 1265,
            "medium_plus": 412,
            "at_lane_strength": 412,
            "filters_used": "industries",
            "data_window": {
              "start": "2026-09-30",
              "end": "2026-10-13"
            },
            "checked_at": "2026-10-14T06:12:41.528311+00:00"
          },
          "company_list_mode": "off",
          "audience": "Owners and sales leaders at US medical device distributors with 20 to 300 staff",
          "filters": {
            "countries": [
              "United States"
            ],
            "headquarters_only": true,
            "employees": {
              "min": 20,
              "max": 300
            },
            "industries": [
              "medical equipment manufacturing",
              "wholesale"
            ],
            "suggested_industries_not_applied": [],
            "seniority": [
              "cxo",
              "vp",
              "director"
            ],
            "titles_include": [],
            "titles_exclude": [
              "intern",
              "assistant"
            ],
            "industries_exclude": [],
            "exclude_companies": [
              "staffing firms"
            ],
            "exclusions": {
              "left_out_by_filter": [],
              "screened_before_export": [
                "staffing firms"
              ],
              "note": "industries_exclude is applied wherever the lane's industry list isn't (the company-list path, or a lane with no industries). screened_before_export lists setup notes with no matching filter: they are NOT applied to counts or exports. Use conditions or exclusions to leave those companies out."
            },
            "negative_topics": [
              "job openings"
            ],
            "conditions": {
              "all": [
                {
                  "field": "department_detail",
                  "op": "any_of",
                  "value": [
                    "sales",
                    "business development"
                  ]
                },
                {
                  "field": "email_status",
                  "op": "any_of",
                  "value": [
                    "valid"
                  ]
                }
              ]
            },
            "conditions_summary": [
              "All of:",
              "  Department (detailed) is any of Sales, Business Development",
              "  Email check result is Valid"
            ]
          },
          "keyword_groups": [
            {
              "group": "A",
              "keywords": 2,
              "keywords_live": 1,
              "min_strength": "medium",
              "waiting_for_live_keyword": false,
              "rule": "Researching any of these keywords."
            }
          ],
          "keywords": [
            {
              "position": 1,
              "keyword": "selling to group purchasing organizations",
              "group": "A",
              "status": "live",
              "live_since": "2026-09-22",
              "researching_latest_day": {
                "all": 310,
                "medium_plus": 102,
                "high": 14,
                "as_of": "2026-10-13",
                "deliverable": false
              },
              "after_filters": {
                "all": 96,
                "window_end": "2026-10-10",
                "note": "People on this keyword who pass the lane's US, size, industry, seniority and title filters over 14 days, any strength. Sized weekly."
              }
            },
            {
              "position": 2,
              "keyword": "hospital supply chain contracts",
              "group": "A",
              "status": "pending_approval",
              "live_since": null,
              "researching_latest_day": {
                "all": null,
                "medium_plus": null,
                "high": null,
                "as_of": null,
                "deliverable": false
              },
              "after_filters": null
            }
          ],
          "funnel": {
            "checked_at": "2026-10-14T06:12:41.528311+00:00",
            "data_window": {
              "start": "2026-09-30",
              "end": "2026-10-13"
            },
            "unit": "people",
            "note": "Finals are checked daily, other steps weekly; window_end is the last data day of the 14-day window behind each number.",
            "filters_used": "industries",
            "industry_path": {
              "intent": {
                "all": {
                  "people": 21450,
                  "window_end": "2026-10-10"
                },
                "medium_plus": {
                  "people": 7310,
                  "window_end": "2026-10-10"
                }
              },
              "us": {
                "all": {
                  "people": 14200,
                  "window_end": "2026-10-13"
                },
                "medium_plus": {
                  "people": 4905,
                  "window_end": "2026-10-10"
                }
              },
              "size": {
                "all": {
                  "people": 6020,
                  "window_end": "2026-10-13"
                },
                "medium_plus": {
                  "people": 2080,
                  "window_end": "2026-10-10"
                }
              },
              "industry": {
                "all": {
                  "people": 2410,
                  "window_end": "2026-10-13"
                },
                "medium_plus": {
                  "people": 815,
                  "window_end": "2026-10-10"
                }
              },
              "seniority": {
                "all": {
                  "people": 1530,
                  "window_end": "2026-10-13"
                },
                "medium_plus": {
                  "people": 498,
                  "window_end": "2026-10-10"
                }
              },
              "rules": {
                "all": {
                  "people": 1340,
                  "window_end": "2026-10-13"
                },
                "medium_plus": {
                  "people": 436,
                  "window_end": "2026-10-10"
                }
              },
              "titles": {
                "all": {
                  "people": 1265,
                  "window_end": "2026-10-13"
                },
                "medium_plus": {
                  "people": 412,
                  "window_end": "2026-10-13"
                }
              }
            },
            "company_list_path": null,
            "both": null
          }
        }
      },
      "LaneCreate": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 80,
            "description": "2 to 80 characters."
          },
          "audience": {
            "type": "string",
            "minLength": 10,
            "description": "Who you sell to in this lane: at least a short sentence (10+ characters, cut at 400)."
          },
          "keywords": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "string",
                  "description": "A group A keyword."
                },
                {
                  "type": "object",
                  "properties": {
                    "keyword": {
                      "type": "string",
                      "minLength": 3,
                      "maxLength": 120
                    },
                    "group": {
                      "type": "string",
                      "enum": [
                        "A",
                        "B",
                        "C",
                        "D"
                      ],
                      "description": "`A`: the lane's main keywords (researching any of them). `B`, `C`, `D`: the person must also research at least one keyword from each group in use."
                    }
                  },
                  "required": [
                    "keyword"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "topic": {
                      "type": "string",
                      "description": "A topic id from `GET /api/v1/topics`: live at once."
                    },
                    "group": {
                      "type": "string",
                      "enum": [
                        "A",
                        "B",
                        "C",
                        "D"
                      ],
                      "description": "`A`: the lane's main keywords (researching any of them). `B`, `C`, `D`: the person must also research at least one keyword from each group in use."
                    }
                  },
                  "required": [
                    "topic"
                  ]
                }
              ]
            },
            "minItems": 1,
            "maxItems": 50,
            "description": "What people in this lane research, one topic per keyword; each is sent for approval as its own topic. Strings go in group A; use `{\"keyword\": \"...\", \"group\": \"B\"}` for [keyword groups](/guides/keywords#keyword-groups). Every keyword must be 3 to 120 characters, or the request is refused; up to 50."
          },
          "us_only": {
            "type": "boolean",
            "description": "Only people at companies headquartered in the US. Defaults to true on create."
          },
          "employees": {
            "description": "Company size range, both ends from 1 to 100,000 and at most 5,000 apart, e.g. `{\"min\": 20, \"max\": 300}`. Send both or neither. `null` means any size.",
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "min": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "max": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  }
                },
                "required": [
                  "min",
                  "max"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "industries": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Industry values from `GET /api/v1/catalog` (case-insensitive). Unknown values are an error. Up to 60; extra entries are dropped."
          },
          "industries_exclude": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Industries to leave out where the industry list isn't applied (the company-list path, or a lane with no industries). Catalog values. Up to 80; extra entries are dropped."
          },
          "seniority": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "cxo",
                "vp",
                "director",
                "manager",
                "staff"
              ]
            },
            "description": "Seniority levels. `cxo` is C-suite and owners."
          },
          "titles_include": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Job title must contain one of these. Stored lowercase. Up to 60; extra entries are dropped."
          },
          "titles_exclude": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Job title must not contain any of these. Stored lowercase. Up to 80; extra entries are dropped."
          },
          "topics_to_leave_out": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Topics to leave out of the keyword topics, e.g. job openings. Up to 40; extra entries are dropped."
          },
          "exclude_companies": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Notes only: not applied to counts or exports. To leave companies out, use `conditions` (e.g. industry none_of, company_description not_contains) or exclusions. Up to 20."
          },
          "conditions": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ConditionGroup"
              },
              {
                "type": "null"
              }
            ],
            "description": "More filters on about 40 fields, in all/any groups. `null` removes them. See [More filters](/guides/more-filters)."
          },
          "group_strength": {
            "type": "object",
            "properties": {
              "B": {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high"
                ]
              },
              "C": {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high"
                ]
              },
              "D": {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high"
                ]
              }
            },
            "required": [
              "B",
              "C",
              "D"
            ],
            "description": "Minimum strength for keyword groups B to D, e.g. `{\"B\": \"medium\"}`. Group A uses `min_strength`. Unset groups count any strength."
          },
          "kind": {
            "type": "string",
            "enum": [
              "intent",
              "search",
              "contacts"
            ],
            "description": "`intent` (the default) or `search` (`contacts` also works). A [search lane](/guides/search) takes the same filters plus `contact`, and no keywords, audience or topics_to_leave_out."
          },
          "contact": {
            "type": "object",
            "properties": {
              "mobile": {
                "type": "boolean",
                "description": "Only people with a mobile number."
              },
              "email": {
                "type": "boolean",
                "description": "Only people with a business email."
              },
              "no_dnc": {
                "type": "boolean",
                "description": "Only people whose mobiles aren't on the do-not-call list (implies a mobile)."
              }
            },
            "required": [
              "mobile",
              "email",
              "no_dnc"
            ],
            "description": "Search lanes only: which contact details each person must have."
          }
        },
        "required": [
          "name"
        ],
        "description": "Intent lanes need `name`, `audience` and `keywords`. Search lanes (`\"kind\": \"search\"`) need only `name`."
      },
      "LaneUpdate": {
        "type": "object",
        "properties": {
          "min_strength": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "description": "Minimum intent strength: `low` = any, `medium` = medium and high, `high` = high only."
          },
          "company_list_mode": {
            "type": "string",
            "enum": [
              "narrow",
              "replace",
              "off"
            ],
            "description": "`narrow`, `replace` or `off`."
          },
          "priority": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "description": "The lane's position, 1 being first. Exports fill lanes in this order; the others move to make room."
          },
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 80,
            "description": "2 to 80 characters."
          },
          "audience": {
            "type": "string",
            "minLength": 10,
            "description": "Who you sell to in this lane: at least a short sentence (10+ characters, cut at 400)."
          },
          "us_only": {
            "type": "boolean",
            "description": "Only people at companies headquartered in the US. Defaults to true on create."
          },
          "employees": {
            "description": "Company size range, both ends from 1 to 100,000 and at most 5,000 apart, e.g. `{\"min\": 20, \"max\": 300}`. Send both or neither. `null` means any size.",
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "min": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "max": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  }
                },
                "required": [
                  "min",
                  "max"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "industries": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Industry values from `GET /api/v1/catalog` (case-insensitive). Unknown values are an error. Up to 60; extra entries are dropped."
          },
          "industries_exclude": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Industries to leave out where the industry list isn't applied (the company-list path, or a lane with no industries). Catalog values. Up to 80; extra entries are dropped."
          },
          "seniority": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "cxo",
                "vp",
                "director",
                "manager",
                "staff"
              ]
            },
            "description": "Seniority levels. `cxo` is C-suite and owners."
          },
          "titles_include": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Job title must contain one of these. Stored lowercase. Up to 60; extra entries are dropped."
          },
          "titles_exclude": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Job title must not contain any of these. Stored lowercase. Up to 80; extra entries are dropped."
          },
          "topics_to_leave_out": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Topics to leave out of the keyword topics, e.g. job openings. Up to 40; extra entries are dropped."
          },
          "exclude_companies": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Notes only: not applied to counts or exports. To leave companies out, use `conditions` (e.g. industry none_of, company_description not_contains) or exclusions. Up to 20."
          },
          "conditions": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ConditionGroup"
              },
              {
                "type": "null"
              }
            ],
            "description": "More filters on about 40 fields, in all/any groups. `null` removes them. See [More filters](/guides/more-filters)."
          },
          "group_strength": {
            "type": "object",
            "properties": {
              "B": {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high"
                ]
              },
              "C": {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high"
                ]
              },
              "D": {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high"
                ]
              }
            },
            "required": [
              "B",
              "C",
              "D"
            ],
            "description": "Minimum strength for keyword groups B to D, e.g. `{\"B\": \"medium\"}`. Group A uses `min_strength`. Unset groups count any strength."
          },
          "contact": {
            "type": "object",
            "properties": {
              "mobile": {
                "type": "boolean",
                "description": "Only people with a mobile number."
              },
              "email": {
                "type": "boolean",
                "description": "Only people with a business email."
              },
              "no_dnc": {
                "type": "boolean",
                "description": "Only people whose mobiles aren't on the do-not-call list (implies a mobile)."
              }
            },
            "required": [
              "mobile",
              "email",
              "no_dnc"
            ],
            "description": "Search lanes only: which contact details each person must have."
          }
        },
        "required": [],
        "description": "Send only what you want to change. Search lanes take filters, `company_list_mode`, `priority` and `contact`."
      },
      "CheckCounts": {
        "type": "object",
        "properties": {
          "all": {
            "type": [
              "integer",
              "null"
            ]
          },
          "medium_plus": {
            "type": [
              "integer",
              "null"
            ]
          },
          "high": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Present only when the check sized it."
          }
        },
        "required": [
          "all",
          "medium_plus"
        ]
      },
      "CheckRun": {
        "type": "object",
        "properties": {
          "checked_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the check finished."
          },
          "status": {
            "type": "string",
            "enum": [
              "completed",
              "partial",
              "failed"
            ],
            "description": "`partial` means some counts couldn't be sized (`counts_missing`)."
          },
          "kind": {
            "type": "string",
            "enum": [
              "full",
              "daily_finals",
              "company_list_only"
            ],
            "description": "`full`: the whole funnel, samples and keyword sizes. `daily_finals`: final counts only. `company_list_only`: only the company-list path."
          },
          "data_window": {
            "$ref": "#/components/schemas/DataWindow"
          },
          "industry_final": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CheckCounts"
              },
              {
                "type": "null"
              }
            ],
            "description": "Final count on the industry path."
          },
          "company_list_final": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CheckCounts"
              },
              {
                "type": "null"
              }
            ],
            "description": "Final count on the company-list path, or null without a company list."
          },
          "both_final": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CheckCounts"
              },
              {
                "type": "null"
              }
            ],
            "description": "Final count with industries and the company list together (`narrow` lanes), or null."
          },
          "counts_missing": {
            "type": "integer",
            "description": "Counts in this check that couldn't be sized."
          }
        },
        "required": [
          "checked_at",
          "status",
          "kind",
          "data_window",
          "industry_final",
          "company_list_final",
          "both_final",
          "counts_missing"
        ]
      },
      "SampleRow": {
        "type": "object",
        "properties": {
          "job_title": {
            "type": [
              "string",
              "null"
            ]
          },
          "seniority": {
            "type": [
              "string",
              "null"
            ]
          },
          "company": {
            "type": [
              "string",
              "null"
            ]
          },
          "industry": {
            "type": [
              "string",
              "null"
            ]
          },
          "employees": {
            "type": [
              "integer",
              "null"
            ]
          },
          "city": {
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "type": [
              "string",
              "null"
            ]
          },
          "keyword_matched": {
            "type": [
              "string",
              "null"
            ]
          },
          "intent_strength": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "low",
              "medium",
              "high",
              null
            ]
          },
          "intent_score": {
            "type": [
              "number",
              "null"
            ]
          },
          "last_active": {
            "type": [
              "string",
              "null"
            ]
          },
          "has_business_email": {
            "type": "boolean"
          },
          "has_phone": {
            "type": "boolean"
          },
          "has_linkedin": {
            "type": "boolean"
          }
        },
        "required": [
          "job_title",
          "seniority",
          "company",
          "industry",
          "employees",
          "city",
          "state",
          "keyword_matched",
          "intent_strength",
          "intent_score",
          "last_active",
          "has_business_email",
          "has_phone",
          "has_linkedin"
        ],
        "description": "An example match. No names or contact details. Values are as stored, so text is often lowercase."
      },
      "Sample": {
        "type": "object",
        "properties": {
          "lane": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "ready",
              "ready_check_in_progress",
              "checking",
              "none"
            ],
            "description": "`ready`: rows from the latest checks. `ready_check_in_progress`: rows shown, a newer check is running. `checking`: a check is running and there are no rows yet. `none`: no rows (no check yet, or nobody matched)."
          },
          "checked_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "data_window": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DataWindow"
              },
              {
                "type": "null"
              }
            ]
          },
          "min_strength": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "all",
              "medium",
              "high",
              null
            ],
            "description": "The lane strength the check used, as a count band: `all` (lane `min_strength` low), `medium` (medium and high) or `high`."
          },
          "filters_used": {
            "type": "string",
            "enum": [
              "industries",
              "company_list",
              "industries_and_company_list"
            ],
            "description": "Which filters the lane's headline count uses: its industries, your company list (company_list_mode `replace`), or both (`narrow`)."
          },
          "sample_strength": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "all",
              "medium_plus",
              "high",
              null
            ],
            "description": "Strength of the rows shown."
          },
          "below_lane_strength": {
            "type": "boolean",
            "description": "True when nobody passes at the lane's strength yet, so the rows are at any strength."
          },
          "note": {
            "type": "string",
            "description": "Present only when `below_lane_strength` is true."
          },
          "after_filters": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CheckCounts"
              },
              {
                "type": "null"
              }
            ]
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SampleRow"
            },
            "maxItems": 25,
            "description": "Up to 25 rows."
          }
        },
        "required": [
          "lane",
          "status",
          "checked_at",
          "data_window",
          "min_strength",
          "filters_used",
          "sample_strength",
          "below_lane_strength",
          "after_filters",
          "rows"
        ]
      },
      "CompanyList": {
        "type": "object",
        "properties": {
          "companies": {
            "type": "integer",
            "description": "Domains plus LinkedIn company pages."
          },
          "domains": {
            "type": "integer"
          },
          "linkedin_pages": {
            "type": "integer"
          },
          "dropped_invalid": {
            "type": "integer",
            "description": "Rows dropped because they had no valid domain or company LinkedIn URL."
          },
          "duplicates_merged": {
            "type": "integer"
          },
          "source": {
            "type": [
              "string",
              "null"
            ],
            "description": "The list's name: the uploaded file name, `?name=`, or `API upload`."
          },
          "uploaded_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "companies",
          "domains",
          "linkedin_pages",
          "dropped_invalid",
          "duplicates_merged",
          "source",
          "uploaded_at"
        ]
      },
      "CompanyListJson": {
        "type": "object",
        "properties": {
          "domains": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Company domains or website URLs, e.g. `example.com` or `https://www.example.com/about`."
          },
          "linkedin": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Company LinkedIn URLs, e.g. `https://www.linkedin.com/company/example`."
          },
          "name": {
            "type": "string",
            "description": "A name for the list (default `API upload`)."
          }
        },
        "required": []
      },
      "Suppression": {
        "type": "object",
        "properties": {
          "lead_id": {
            "type": "string",
            "format": "uuid"
          },
          "email_sha256": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9a-f]{64}$",
            "description": "SHA-256 (hex) of the trimmed, lowercased email the person was recorded under. Null when there was none. This can be a different address from `business_email`, so match on `lead_id` first."
          },
          "suppressed_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "lead_id",
          "email_sha256",
          "suppressed_at"
        ]
      },
      "Balance": {
        "type": "object",
        "properties": {
          "balance_usd": {
            "type": "number",
            "description": "Your organization's prepaid balance. Workspaces spend their organization's. Not shown to a workspace's own key (it may belong to a client): that gets `workspace_budget` instead, and none of the balance fields."
          },
          "held_by_running_exports_usd": {
            "type": "number",
            "description": "Held for exports still running; released when they finish, less the people delivered."
          },
          "available_usd": {
            "type": "number",
            "description": "`balance_usd` less what's held."
          },
          "expires_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the balance expires unless something is added or spent first (3 months after the last top-up, grant or spending). Null when there's nothing to expire."
          },
          "expiry_rule": {
            "type": "string",
            "description": "The expiry rule in words."
          },
          "workspace_budget": {
            "type": "object",
            "properties": {
              "budget_usd": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "The monthly budget its organization set, or null for none."
              },
              "spent_usd": {
                "type": "number",
                "description": "Spent this billing month."
              },
              "held_usd": {
                "type": "number",
                "description": "Held for its exports still running."
              },
              "left_usd": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "budget − spent − held, or null when there's no budget."
              },
              "note": {
                "type": "string"
              }
            },
            "required": [
              "budget_usd",
              "spent_usd",
              "held_usd",
              "left_usd",
              "note"
            ],
            "description": "Only with a workspace's own key: what the workspace may spend each billing month, across intent leads, search results and website visitors."
          },
          "month": {
            "type": "object",
            "properties": {
              "start": {
                "type": "string",
                "format": "date"
              },
              "end": {
                "type": "string",
                "format": "date"
              },
              "provisional": {
                "type": "boolean",
                "description": "Present before your first payment: months then start on that day."
              }
            },
            "required": [
              "start",
              "end",
              "provisional"
            ]
          },
          "meters": {
            "type": "object",
            "properties": {
              "intent": {
                "type": "object",
                "properties": {
                  "people_this_month": {
                    "type": "integer",
                    "description": "People charged on this meter this billing month, across your organization and its workspaces."
                  },
                  "spent_usd": {
                    "type": "number"
                  },
                  "price_now_cents": {
                    "type": "number",
                    "description": "Price of the next person on this meter."
                  },
                  "next_price_drop": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "description": "Where the price drops next: `after_people` and the new `cents`. Null in the last tier."
                  },
                  "people_the_balance_covers": {
                    "type": "integer",
                    "description": "People the available balance buys now, at this month's prices. Not shown to a workspace's own key."
                  }
                },
                "required": [
                  "people_this_month",
                  "spent_usd",
                  "price_now_cents",
                  "next_price_drop"
                ]
              },
              "search": {
                "type": "object",
                "properties": {
                  "people_this_month": {
                    "type": "integer",
                    "description": "People charged on this meter this billing month, across your organization and its workspaces."
                  },
                  "spent_usd": {
                    "type": "number"
                  },
                  "price_now_cents": {
                    "type": "number",
                    "description": "Price of the next person on this meter."
                  },
                  "next_price_drop": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "description": "Where the price drops next: `after_people` and the new `cents`. Null in the last tier."
                  },
                  "people_the_balance_covers": {
                    "type": "integer",
                    "description": "People the available balance buys now, at this month's prices. Not shown to a workspace's own key."
                  }
                },
                "required": [
                  "people_this_month",
                  "spent_usd",
                  "price_now_cents",
                  "next_price_drop"
                ]
              }
            },
            "required": [
              "intent",
              "search"
            ],
            "description": "Intent covers intent leads and website visitors."
          },
          "this_organization": {
            "type": "object",
            "properties": {
              "intent_leads": {
                "type": "integer"
              },
              "search_results": {
                "type": "integer"
              },
              "website_visitors": {
                "type": "integer"
              },
              "spent_usd": {
                "type": "number"
              }
            },
            "required": [
              "intent_leads",
              "search_results",
              "website_visitors",
              "spent_usd"
            ],
            "description": "This organization (or workspace) alone, this month."
          },
          "paid_by": {
            "type": "string",
            "enum": [
              "this_organization",
              "parent_organization"
            ]
          },
          "monthly_topup": {
            "type": [
              "object",
              "null"
            ],
            "description": "Admin keys: the monthly top-up (`plan`, `amount_usd`, `status`, `renews_on`, `by_card`), or null."
          },
          "workspaces": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "required": []
            },
            "description": "Admin keys of an organization with workspaces: each one's people and dollars this month and its budget (as in List workspaces)."
          },
          "prices": {
            "type": "object",
            "properties": {
              "intent": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "from": {
                      "type": "integer"
                    },
                    "to": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "cents": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "from",
                    "to",
                    "cents"
                  ]
                }
              },
              "search": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "from": {
                      "type": "integer"
                    },
                    "to": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "cents": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "from",
                    "to",
                    "cents"
                  ]
                }
              },
              "note": {
                "type": "string"
              }
            },
            "required": [
              "intent",
              "search",
              "note"
            ]
          },
          "top_ups": {
            "type": "object",
            "properties": {
              "presets_usd": {
                "type": "array",
                "items": {
                  "type": "number"
                }
              },
              "min_usd": {
                "type": "number"
              },
              "max_usd": {
                "type": "number"
              },
              "how": {
                "type": "string"
              }
            },
            "required": [
              "presets_usd",
              "min_usd",
              "max_usd",
              "how"
            ]
          }
        },
        "required": [
          "month",
          "meters",
          "this_organization",
          "paid_by",
          "prices",
          "top_ups"
        ],
        "example": {
          "balance_usd": 412.5,
          "held_by_running_exports_usd": 20,
          "available_usd": 392.5,
          "expires_at": "2027-02-09T14:02:11.000Z",
          "expiry_rule": "The balance expires after 3 months with no top-up, grant or spending; any of those resets the clock.",
          "month": {
            "start": "2026-11-09",
            "end": "2026-12-09"
          },
          "meters": {
            "intent": {
              "people_this_month": 2140,
              "spent_usd": 214,
              "price_now_cents": 10,
              "next_price_drop": {
                "after_people": 2500,
                "cents": 8
              },
              "people_the_balance_covers": 4816
            },
            "search": {
              "people_this_month": 0,
              "spent_usd": 0,
              "price_now_cents": 5,
              "next_price_drop": {
                "after_people": 50000,
                "cents": 4
              },
              "people_the_balance_covers": 7850
            }
          },
          "this_organization": {
            "intent_leads": 2100,
            "search_results": 0,
            "website_visitors": 40,
            "spent_usd": 214
          },
          "paid_by": "this_organization",
          "prices": {
            "intent": [
              {
                "from": 1,
                "to": 2500,
                "cents": 10
              },
              {
                "from": 2501,
                "to": 7500,
                "cents": 8
              },
              {
                "from": 7501,
                "to": 20000,
                "cents": 6.7
              },
              {
                "from": 20001,
                "to": null,
                "cents": 5
              }
            ],
            "search": [
              {
                "from": 1,
                "to": 50000,
                "cents": 5
              },
              {
                "from": 50001,
                "to": 250000,
                "cents": 4
              },
              {
                "from": 250001,
                "to": null,
                "cents": 2.5
              }
            ],
            "note": "Per person, marginal: the price falls as your organization (with its workspaces) uses more in a billing month, and resets next month. Website visitors use the intent prices."
          },
          "top_ups": {
            "presets_usd": [
              250,
              500,
              1000,
              2500,
              10000
            ],
            "min_usd": 250,
            "max_usd": 50000,
            "how": "POST /api/v1/billing/topups {\"amount\": 500} (admin key) returns a checkout_url. Automatic top-up: PUT /api/v1/billing/auto-topup {\"enabled\": true, \"amount\": 500, \"threshold\": 50}."
          }
        }
      },
      "TeamMember": {
        "type": "object",
        "properties": {
          "user_id": {
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "role": {
            "type": "string",
            "enum": [
              "owner",
              "member"
            ]
          },
          "joined_at": {
            "type": "string",
            "format": "date-time"
          },
          "level": {
            "type": "string",
            "enum": [
              "org",
              "workspace",
              "both"
            ],
            "description": "`org`: a member of the organization (opens all its workspaces). In a workspace, `workspace`: invited to this workspace only; `both`: either way."
          }
        },
        "required": [
          "user_id",
          "email",
          "role",
          "joined_at"
        ]
      },
      "Invite": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Invite id, for revoking."
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "description": "Who the link is meant for. A label only; not enforced."
          },
          "role": {
            "type": "string",
            "enum": [
              "owner",
              "member"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "email",
          "role",
          "created_at",
          "expires_at"
        ]
      },
      "ApiKey": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "enum": [
              "standard",
              "admin"
            ],
            "description": "`standard` or `admin`."
          },
          "prefix": {
            "type": "string",
            "example": "il_live_7QmX",
            "description": "The first 12 characters of the secret, to tell keys apart."
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "last_used_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Updated at most once a minute."
          },
          "rotated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "revoked_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "active": {
            "type": "boolean",
            "description": "False once revoked."
          }
        },
        "required": [
          "id",
          "name",
          "role",
          "prefix",
          "created_at",
          "last_used_at",
          "rotated_at",
          "revoked_at",
          "active"
        ],
        "description": "An API key. The secret itself is never returned after it's created or rotated."
      },
      "ApiKeySecret": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "enum": [
              "standard",
              "admin"
            ]
          },
          "key": {
            "type": "string",
            "pattern": "^il_live_[A-Za-z0-9]{32}$",
            "description": "The full secret. Shown only in this response; store it now."
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "role",
          "key",
          "note"
        ]
      },
      "Catalog": {
        "type": "object",
        "properties": {
          "industries": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Every valid industry value (lowercase), for `industries` and `industries_exclude`."
          },
          "seniority": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "value": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                }
              },
              "required": [
                "value",
                "label"
              ]
            },
            "description": "Valid `seniority` values and their labels."
          },
          "strengths": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "low",
                "medium",
                "high"
              ]
            }
          },
          "company_list_modes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "narrow",
                "replace",
                "off"
              ]
            }
          },
          "keyword_groups": {
            "type": "object",
            "properties": {
              "groups": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "A",
                    "B",
                    "C",
                    "D"
                  ]
                }
              },
              "note": {
                "type": "string"
              }
            },
            "required": [
              "groups",
              "note"
            ]
          },
          "conditions": {
            "type": "object",
            "properties": {
              "shape": {
                "type": "string"
              },
              "max_conditions": {
                "type": "integer"
              },
              "max_depth": {
                "type": "integer"
              },
              "max_size_kb": {
                "type": "integer",
                "description": "Most values a lane's conditions can hold, in KB."
              },
              "blanks": {
                "type": "string",
                "description": "Which operators also leave out people with no value."
              },
              "operators": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Operator → what it means."
              },
              "values": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              },
              "fields": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "field": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "section": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "pick",
                        "text",
                        "codes",
                        "number",
                        "flag"
                      ]
                    },
                    "ops": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "any_of",
                          "none_of",
                          "is",
                          "is_not",
                          "contains",
                          "not_contains",
                          "starts_with",
                          "ends_with",
                          "exists",
                          "missing",
                          "at_least",
                          "at_most",
                          "between"
                        ]
                      }
                    },
                    "values": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "For pick fields: every valid value."
                    },
                    "min": {
                      "type": "number"
                    },
                    "max": {
                      "type": "number"
                    },
                    "digits": {
                      "type": "array",
                      "items": {
                        "type": "integer"
                      },
                      "description": "For code fields: shortest and longest length."
                    },
                    "true_only": {
                      "type": "boolean",
                      "description": "Flag fields that can only be required."
                    },
                    "hint": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "field",
                    "label",
                    "section",
                    "kind",
                    "ops"
                  ]
                },
                "description": "Every field more filters can use."
              }
            },
            "required": [
              "shape",
              "max_conditions",
              "max_depth",
              "max_size_kb",
              "blanks",
              "operators",
              "values",
              "fields"
            ],
            "description": "What [more filters](/guides/more-filters) can use."
          }
        },
        "required": [
          "industries",
          "seniority",
          "strengths",
          "company_list_modes",
          "keyword_groups",
          "conditions"
        ],
        "example": {
          "industries": [
            "accounting",
            "medical device",
            "medical equipment manufacturing",
            "plastics manufacturing",
            "wholesale"
          ],
          "seniority": [
            {
              "value": "cxo",
              "label": "C-suite and owners"
            },
            {
              "value": "vp",
              "label": "VP"
            },
            {
              "value": "director",
              "label": "Director"
            },
            {
              "value": "manager",
              "label": "Manager"
            },
            {
              "value": "staff",
              "label": "Staff"
            }
          ],
          "strengths": [
            "low",
            "medium",
            "high"
          ],
          "company_list_modes": [
            "narrow",
            "replace",
            "off"
          ],
          "keyword_groups": {
            "groups": [
              "A",
              "B",
              "C",
              "D"
            ],
            "note": "Group A: researching any of its keywords. Each of B, C and D adds: and also researching at least one of its keywords. Set a group's minimum strength with group_strength."
          },
          "conditions": {
            "shape": "{\"all\": [condition or group, ...]} or {\"any\": [...]}; a condition is {\"field\": \"...\", \"op\": \"...\", \"value\": ...}",
            "max_conditions": 40,
            "max_depth": 3,
            "max_size_kb": 60,
            "blanks": "none_of, not_contains, is_not also leave out people with no value for the field.",
            "operators": {
              "any_of": "is any of",
              "none_of": "is none of",
              "at_least": "is at least",
              "between": "is between",
              "exists": "has a value"
            },
            "values": {
              "numbers": "at_least and at_most take a number; between takes [min, max]."
            },
            "fields": [
              {
                "field": "department",
                "label": "Department",
                "section": "Role",
                "kind": "pick",
                "ops": [
                  "any_of",
                  "none_of"
                ],
                "values": [
                  "sales",
                  "marketing",
                  "executive"
                ]
              },
              {
                "field": "naics",
                "label": "NAICS code",
                "section": "Company",
                "kind": "codes",
                "ops": [
                  "starts_with",
                  "exists"
                ],
                "digits": [
                  2,
                  6
                ]
              },
              {
                "field": "intent_score",
                "label": "Intent score",
                "section": "Intent",
                "kind": "number",
                "ops": [
                  "at_least",
                  "at_most",
                  "between"
                ],
                "min": 1,
                "max": 99
              },
              {
                "field": "has_mobile",
                "label": "Mobile number",
                "section": "Contact details",
                "kind": "flag",
                "ops": [
                  "is"
                ]
              }
            ]
          }
        }
      },
      "ActivityItem": {
        "type": "object",
        "properties": {
          "at": {
            "type": "string",
            "format": "date-time"
          },
          "action": {
            "type": "string",
            "example": "export.completed",
            "description": "Stable dotted code, e.g. `export.completed`, `keyword.approved`, `lane.filters_changed`."
          },
          "text": {
            "type": "string",
            "description": "One plain-English sentence."
          },
          "by": {
            "type": "string",
            "enum": [
              "team_member",
              "intent_leads_or_api"
            ],
            "description": "`team_member`: a person in the dashboard. `intent_leads_or_api`: an API key, the CLI, MCP or an automatic event."
          }
        },
        "required": [
          "at",
          "action",
          "text",
          "by"
        ]
      },
      "ContactEstimate": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "none",
              "queued",
              "building",
              "done",
              "failed"
            ],
            "description": "`none`, `queued`, `building`, `done` or `failed`."
          },
          "people": {
            "type": [
              "integer",
              "null"
            ],
            "description": "People who match now, leaving out anyone you've already bought, your exclusions and removals."
          },
          "requested_at": {
            "type": "string",
            "format": "date-time"
          },
          "finished_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "approximate": {
            "type": "boolean",
            "description": "True when your company list is counted in parts: someone tied to two listed companies can count twice."
          },
          "sample": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "seniority": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "A band, e.g. VP+."
                },
                "department": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "company": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "industry": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "employees": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "city": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "state": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "has_business_email": {
                  "type": "boolean"
                },
                "has_phone": {
                  "type": "boolean"
                },
                "has_linkedin": {
                  "type": "boolean"
                }
              },
              "required": [
                "seniority",
                "department",
                "company",
                "industry",
                "employees",
                "city",
                "state",
                "has_business_email",
                "has_phone",
                "has_linkedin"
              ]
            },
            "description": "Up to 10 people who match: seniority band, department, company and location, and which contact details exist. No names, titles or contact details."
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "status",
          "people",
          "requested_at",
          "finished_at",
          "approximate",
          "sample",
          "error",
          "note"
        ]
      },
      "WebhookEndpoint": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Where we POST."
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "events": {
            "oneOf": [
              {
                "type": "string",
                "enum": [
                  "*"
                ],
                "description": "`*`: every event, including types added later."
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "removals",
                    "visitors"
                  ]
                },
                "description": "Only these events."
              }
            ]
          },
          "receives": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "removals",
                "visitors"
              ]
            },
            "description": "The events it gets today."
          },
          "enabled": {
            "type": "boolean"
          },
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "failing",
              "disabled",
              "no_deliveries_yet"
            ],
            "description": "`failing` after a failed attempt, until one succeeds."
          },
          "failed_attempts": {
            "type": "integer",
            "description": "Failed attempts in a row. We retry after 1, 2, 4, 8 minutes, then every hour."
          },
          "failing_since": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "next_retry_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "last_attempt_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "last_status": {
            "type": [
              "integer",
              "null"
            ],
            "description": "HTTP status your endpoint returned last time, or null if it didn't answer."
          },
          "last_error": {
            "type": [
              "string",
              "null"
            ]
          },
          "last_success_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Last delivery your endpoint accepted."
          },
          "waiting": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            },
            "description": "Items waiting per event, where cheap to count (list and get only)."
          },
          "legacy": {
            "type": "boolean",
            "description": "The endpoint behind the legacy single-webhook API."
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "url",
          "description",
          "events",
          "receives",
          "enabled",
          "status",
          "failed_attempts",
          "failing_since",
          "next_retry_at",
          "last_attempt_at",
          "last_status",
          "last_error",
          "last_success_at",
          "waiting",
          "legacy",
          "created_at",
          "updated_at"
        ]
      },
      "WebhookAttempt": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "event": {
            "type": "string",
            "description": "`removals`, `visitors` or `webhook.test`."
          },
          "webhook_id": {
            "type": "string",
            "description": "The webhook-id header sent. A retry of the same batch keeps the same id."
          },
          "count": {
            "type": "integer",
            "description": "Items in the request."
          },
          "test": {
            "type": "boolean",
            "description": "A test send (made-up data)."
          },
          "delivered": {
            "type": "boolean",
            "description": "True on a 2xx answer."
          },
          "status": {
            "type": [
              "integer",
              "null"
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "response": {
            "type": [
              "string",
              "null"
            ],
            "description": "The start of what your endpoint answered."
          },
          "duration_ms": {
            "type": [
              "integer",
              "null"
            ]
          },
          "at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "event",
          "webhook_id",
          "count",
          "test",
          "delivered",
          "status",
          "error",
          "response",
          "duration_ms",
          "at"
        ]
      },
      "RemovalWebhook": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The endpoint id, usable with /api/v1/webhooks/{id}."
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "failing"
            ]
          },
          "sending_removals_since": {
            "type": "string",
            "format": "date-time"
          },
          "pending": {
            "type": "integer",
            "description": "Removals waiting to be sent."
          },
          "last_success_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "failing_since": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "failed_attempts": {
            "type": "integer"
          },
          "last_attempt_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "last_status": {
            "type": [
              "integer",
              "null"
            ]
          },
          "last_error": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "url",
          "status",
          "sending_removals_since",
          "pending",
          "last_success_at",
          "failing_since",
          "failed_attempts",
          "last_attempt_at",
          "last_status",
          "last_error",
          "created_at",
          "updated_at",
          "note"
        ]
      },
      "Topic": {
        "type": "object",
        "properties": {
          "topic": {
            "type": "string",
            "description": "Topic id, like `tp503611`. Add it to a lane with `POST /api/v1/lanes/{code}/keywords {\"topic\": ...}`."
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "description": "`B2B` or `B2C`."
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "path": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Where the topic sits, broadest first."
          },
          "first_tracked": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "When we started tracking it."
          },
          "signal_latest_day": {
            "type": "object",
            "properties": {
              "all": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "medium_plus": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "as_of": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date"
              },
              "deliverable": {
                "type": "boolean",
                "const": false
              }
            },
            "required": [
              "all",
              "medium_plus",
              "as_of",
              "deliverable"
            ],
            "description": "One day's research on the topic, worldwide and before any filter. A size guide, not people you could export."
          }
        },
        "required": [
          "topic",
          "name"
        ],
        "example": {
          "topic": "tp503611",
          "name": "Outsourced Receptionist Services",
          "type": "B2B",
          "category": "Business & Industrial › Business Services",
          "path": [
            "Business & Industrial",
            "Business Services"
          ],
          "first_tracked": "2026-08-06",
          "signal_latest_day": {
            "all": 3558,
            "medium_plus": 308,
            "as_of": "2026-10-14",
            "deliverable": false
          }
        }
      },
      "TopicDetail": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Topic"
          },
          {
            "type": "object",
            "properties": {
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "What the topic covers and who reads it."
              },
              "related_terms": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Terms the topic also covers."
              }
            },
            "required": [
              "description",
              "related_terms"
            ]
          }
        ],
        "example": {
          "topic": "tp503611",
          "name": "Outsourced Receptionist Services",
          "type": "B2B",
          "category": "Business & Industrial › Business Services",
          "path": [
            "Business & Industrial",
            "Business Services"
          ],
          "first_tracked": "2026-08-06",
          "signal_latest_day": {
            "all": 3558,
            "medium_plus": 308,
            "as_of": "2026-10-14",
            "deliverable": false
          },
          "description": "Outsourced receptionist services provide businesses with remote call answering, message taking and appointment scheduling.",
          "related_terms": [
            "outsourced receptionist",
            "answering service",
            "virtual receptionist",
            "call answering"
          ]
        }
      },
      "ExclusionSummary": {
        "type": "object",
        "properties": {
          "companies": {
            "type": "object",
            "properties": {
              "domains": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "linkedin_pages": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the list last changed."
              }
            },
            "required": [
              "domains",
              "linkedin_pages",
              "updated_at"
            ]
          },
          "people": {
            "type": "object",
            "properties": {
              "people": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Hashes held: each email, email hash or LinkedIn profile you sent, plus other email hashes we found for those people."
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              }
            },
            "required": [
              "people",
              "updated_at"
            ]
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "companies",
          "people",
          "note"
        ]
      },
      "CompanyExclusionChange": {
        "type": "object",
        "properties": {
          "changed": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Companies added or removed by this call."
          },
          "dropped_invalid": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Values that weren't a domain or company LinkedIn page."
          },
          "domains": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Domains left out now."
          },
          "linkedin_pages": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Company LinkedIn pages left out now."
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cleared": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Present and true after `?all=true`."
          }
        },
        "required": [
          "changed",
          "dropped_invalid",
          "domains",
          "linkedin_pages",
          "updated_at"
        ]
      },
      "PeopleExclusionChange": {
        "type": "object",
        "properties": {
          "changed": {
            "type": [
              "integer",
              "null"
            ],
            "description": "People added or removed by this call."
          },
          "dropped_invalid": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Values that weren't an email, email hash or LinkedIn profile."
          },
          "people": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Hashes held now."
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cleared": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Present and true after `?all=true`."
          }
        },
        "required": [
          "changed",
          "dropped_invalid",
          "people",
          "updated_at"
        ]
      },
      "PeopleListJson": {
        "type": "object",
        "properties": {
          "emails": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Email addresses. Only their sha256 is kept."
          },
          "email_sha256": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "sha256 of the trimmed, lowercased email, if you'd rather not send emails."
          },
          "linkedin": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "LinkedIn profile URLs (linkedin.com/in/…). Only a hash is kept."
          }
        },
        "required": [],
        "description": "Any of the three; at least one valid value."
      }
    }
  }
}
