{
  "openapi": "3.1.0",
  "info": {
    "title": "outbound.dev API",
    "version": "v1",
    "description": "Find people and companies, and see what every call costs, with one API key."
  },
  "servers": [
    {
      "url": "https://api.outbound.dev"
    }
  ],
  "x-service-info": {
    "categories": [
      "data",
      "search"
    ],
    "docs": {
      "homepage": "https://outbound.dev",
      "apiReference": "https://docs.outbound.dev/api-reference",
      "llms": "https://docs.outbound.dev/llms.txt"
    }
  },
  "tags": [
    {
      "name": "Sign-up",
      "description": "Get an account and an API key from an agent: the person approves once by email, then the agent collects the key."
    },
    {
      "name": "People",
      "description": "Search people with filters, a saved search or a plain-language query, count matches and look up filter values."
    },
    {
      "name": "Companies",
      "description": "Search companies, count matches, name one company by its name, domain or LinkedIn page, and list its people."
    },
    {
      "name": "Saved searches",
      "description": "Keep a search under a title and run it again, for people or for companies."
    },
    {
      "name": "Lists",
      "description": "Keep people or companies in lists: create and change lists, page through their rows, and add or remove people."
    },
    {
      "name": "Folders",
      "description": "Group lists of one kind into folders."
    },
    {
      "name": "Enrichment",
      "description": "Find people's work emails and phone numbers: one person, a batch of people, or a list."
    },
    {
      "name": "Jobs",
      "description": "Long tasks a call started: their progress, what they produced and what they were charged, and stopping them."
    },
    {
      "name": "Accounts",
      "description": "Connect the mailboxes and LinkedIn seats that campaigns and the inbox send from, and look after them."
    },
    {
      "name": "Campaigns",
      "description": "Email and LinkedIn campaigns: their steps, the people they enroll, their queue of messages, templates, the knowledge hubs and writing styles AI steps are written from, the tracking domain their links go through, and the lists every campaign leaves out."
    },
    {
      "name": "Inbox",
      "description": "Read and answer the conversations of your mailboxes and LinkedIn seats, and send new messages and invitations."
    },
    {
      "name": "Account",
      "description": "The calling key and its organization, its rate limits, and revoking the key."
    },
    {
      "name": "Billing",
      "description": "The balance, the ledger of every change to it, and the price list."
    },
    {
      "name": "Usage and requests",
      "description": "Calls and spend by day, and the record of every request of the last 30 days."
    }
  ],
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "An API key from the console, starting `ob_live_`, sent as `Authorization: Bearer <key>`."
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message",
              "doc_url"
            ],
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable and machine-readable: branch on it. It never changes meaning."
              },
              "message": {
                "type": "string",
                "description": "A human-readable explanation for logs. It may be reworded at any time."
              },
              "param": {
                "type": "string",
                "description": "The request field the error is about, when there is one."
              },
              "doc_url": {
                "type": "string",
                "description": "The code's entry in the errors reference."
              },
              "request_id": {
                "type": "string",
                "description": "The request's id, as in the X-Request-Id header. Quote it to support."
              }
            }
          }
        },
        "example": {
          "error": {
            "code": "insufficient_balance",
            "message": "Your balance cannot cover this call. Add funds and try again.",
            "doc_url": "https://docs.outbound.dev/errors#insufficient_balance",
            "request_id": "req_6a1f0c2b9d4e8a7f3c5b2e10"
          }
        }
      }
    },
    "headers": {
      "RequestId": {
        "description": "The request's id. Quote it when you write to support.",
        "schema": {
          "type": "string",
          "example": "req_6a1f0c2b9d4e8a7f3c5b2e10"
        }
      },
      "ChargedUsd": {
        "description": "What this call cost, in US dollars as an exact six-decimal string.",
        "schema": {
          "type": "string",
          "example": "0.005000"
        }
      },
      "BalanceUsd": {
        "description": "The organization's balance after this call, in US dollars as an exact six-decimal string.",
        "schema": {
          "type": "string",
          "example": "9.995000"
        }
      },
      "RateLimitLimit": {
        "description": "The calls allowed in the window of the route's limit with the fewest calls left.",
        "schema": {
          "type": "integer",
          "example": 20
        }
      },
      "RateLimitRemaining": {
        "description": "The calls left in that window.",
        "schema": {
          "type": "integer",
          "example": 19
        }
      },
      "RateLimitReset": {
        "description": "Seconds until that window resets.",
        "schema": {
          "type": "integer",
          "example": 42
        }
      },
      "RetryAfter": {
        "description": "Seconds to wait before calling again.",
        "schema": {
          "type": "integer",
          "example": 42
        }
      },
      "IdempotentReplayed": {
        "description": "`true` on an answer given again for an `Idempotency-Key`: it is the first call's, and nothing ran or was charged this time. Absent otherwise.",
        "schema": {
          "type": "string",
          "enum": [
            "true"
          ]
        }
      }
    },
    "responses": {
      "Error": {
        "description": "The request was refused. The body names the reason in `error.code`.",
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/RequestId"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "RateLimited": {
        "description": "Too many calls. Wait the seconds in Retry-After, then call again. When the limit reached does not say when it resets, such as a mail provider's own limit on a mailbox, Retry-After is 60. The RateLimit headers describe this API's own limits, so they come only with a 429 one of those gave. The body is empty.",
        "headers": {
          "Retry-After": {
            "$ref": "#/components/headers/RetryAfter"
          },
          "X-Request-Id": {
            "$ref": "#/components/headers/RequestId"
          },
          "RateLimit-Limit": {
            "$ref": "#/components/headers/RateLimitLimit"
          },
          "RateLimit-Remaining": {
            "$ref": "#/components/headers/RateLimitRemaining"
          },
          "RateLimit-Reset": {
            "$ref": "#/components/headers/RateLimitReset"
          }
        }
      },
      "ServerError": {
        "description": "Something failed on our side and nothing was charged. Retry with backoff; quote X-Request-Id if it persists. The body is empty.",
        "headers": {
          "X-Request-Id": {
            "$ref": "#/components/headers/RequestId"
          }
        }
      }
    }
  },
  "paths": {
    "/v1/agent-sign-ups": {
      "post": {
        "operationId": "postAgentSignUps",
        "tags": [
          "Sign-up"
        ],
        "summary": "Sign up from an agent",
        "description": "Asks for an outbound.dev API key for a person, from an agent that has none yet: with a new account, or for the account the address already has. No key is needed for this call. We email the person a link to approve the request. It works for 30 minutes, and nothing is created until they approve. Show the person the `matchCode`. For a new account, the email and the approval page show the same code, and they should approve only if it matches. Then call `POST /v1/agent-sign-ups/poll` with the `pollToken`, every `pollIntervalSeconds`, until it answers `approved` with the API key.\n\nThe answer never says whether an address has an account. When it has one, the person signs in to it, types the `matchCode` you show them, and picks the organization the key is for. A newer request for the same address replaces one still waiting. An address that cannot receive mail, or whose mailbox does not seem to exist, is refused with `422` `email_undeliverable`; if it is right, the person signs up in the console instead. Free. An address gets at most 10 of our emails a day, and so does an inbox, its `+tag` addresses included. One IP address may have 20 requests a day refused, and a request still being checked counts toward them; past that, this call answers `429` until the next UTC midnight. Start and poll together allow 600 calls a minute from one IP address. While agent sign-up is paused, this call answers `503`.",
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "description": "The work email of the person the key is for. They get the email that approves it.",
                    "maxLength": 320,
                    "example": "maya@acme.com"
                  },
                  "agentName": {
                    "type": "string",
                    "description": "What to call the agent in the approval email and on the page the person approves on: up to 40 letters, digits, spaces, hyphens and underscores, and a dot between two digits (`Claude 3.5`). The new key is named after it.",
                    "minLength": 1,
                    "maxLength": 40,
                    "pattern": "^(?:[A-Za-z0-9 _-]|(?<=\\d)\\.(?=\\d))+$",
                    "example": "Claude Code"
                  }
                },
                "required": [
                  "email"
                ]
              },
              "example": {
                "email": "maya@acme.com",
                "agentName": "Claude Code"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The approval email is on its way. Poll with the `pollToken` until the person approves.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "pollToken",
                    "matchCode",
                    "pollIntervalSeconds",
                    "expiresAt"
                  ],
                  "properties": {
                    "pollToken": {
                      "type": "string",
                      "description": "Send it to `POST /v1/agent-sign-ups/poll`. Keep it secret: it collects the API key."
                    },
                    "matchCode": {
                      "type": "string",
                      "description": "Show it to the person. For a new account, the approval email and page show the same code, and the person approves only if the two match. For an address that already has an account, the person types it to approve. It is not a secret."
                    },
                    "pollIntervalSeconds": {
                      "type": "integer",
                      "description": "Wait this many seconds between polls."
                    },
                    "expiresAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the request ends if the person has not approved it."
                    }
                  }
                },
                "example": {
                  "pollToken": "Zt3bVq8N2xKp7LmR4sWd9YhC6jFa1QeU0oGiTnBvXyE",
                  "matchCode": "WDJB-MJHT",
                  "pollIntervalSeconds": 5,
                  "expiresAt": "2026-11-30T10:30:00.000Z"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/agent-sign-ups/poll": {
      "post": {
        "operationId": "postAgentSignUpsPoll",
        "tags": [
          "Sign-up"
        ],
        "summary": "Poll an agent sign-up",
        "description": "Whether the person approved the sign-up. It answers `pending` until they do, then `approved` with the API key and its organization: the new account's, or the one the person picked in the account the address already had. The key has full access and a $20 daily cap, which the person can change in the console. It is returned once: a later poll answers `409` `api_key_already_issued`. The answer is `410` `agent_sign_up_expired` when the person declined or did not approve within 30 minutes, when the key was not collected within 10 minutes of the approval, and when the organization can no longer take it. Free. Start and poll together allow 600 calls a minute from one IP address.",
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "pollToken": {
                    "type": "string",
                    "description": "The `pollToken` the sign-up answered.",
                    "minLength": 32,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9_-]+$"
                  }
                },
                "required": [
                  "pollToken"
                ]
              },
              "example": {
                "pollToken": "Zt3bVq8N2xKp7LmR4sWd9YhC6jFa1QeU0oGiTnBvXyE"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "`pending` until the person approves; then `approved`, once, with the API key.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "approved"
                      ]
                    },
                    "apiKey": {
                      "type": "string",
                      "description": "The API key, `ob_live_...`: full access, with a $20 daily cap the person can change in the console. Returned only on the `approved` answer, and only once."
                    },
                    "org": {
                      "type": "object",
                      "description": "The organization the key belongs to. Only on the `approved` answer.",
                      "required": [
                        "id",
                        "name",
                        "slug"
                      ],
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "slug": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "example": {
                  "status": "approved",
                  "apiKey": "ob_live_...",
                  "org": {
                    "id": "6748f1a2c3d4e5f6a7b8c9d0",
                    "name": "Acme",
                    "slug": "acme"
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/people/search": {
      "post": {
        "operationId": "postPeopleSearch",
        "tags": [
          "People"
        ],
        "summary": "Search people",
        "description": "Finds people by a plain-language `query`, by `filters`, or by a saved search (`savedSearchId` or `savedSearchName`): send exactly one. `linkedinUrl` looks up one person, on its own or within the search.\n\nReturns one page of people and the `filters` the search ran with. For the next page, send those `filters` with the page's `pagination.nextCursor` as `cursor`. A page can hold fewer people than `limit`, so only a missing `nextCursor` marks the end. People never carry an email address or a phone number.\n\n**Price:** \\$0.001 per person returned. Before the search runs, `limit` times \\$0.001 is held from your balance, and what the page does not use is released. A page with nothing on it costs nothing. **Scope:** search. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "query": {
                    "type": "string",
                    "description": "Who to find, in plain language. It is turned into filters, which the page answers with as `filters`.",
                    "minLength": 1,
                    "maxLength": 2000,
                    "example": "operations directors at logistics companies in Portugal"
                  },
                  "filters": {
                    "type": "object",
                    "description": "Filters by name, with values from `GET /v1/people/filters` and `GET /v1/people/autocomplete`.",
                    "maxProperties": 100,
                    "additionalProperties": {},
                    "example": {
                      "job_title_levels": [
                        "director",
                        "vp"
                      ],
                      "job_title_role": [
                        "operations"
                      ]
                    }
                  },
                  "savedSearchId": {
                    "type": "string",
                    "description": "Run a saved people search by its id.",
                    "minLength": 24,
                    "maxLength": 24,
                    "pattern": "^[0-9a-fA-F]+$"
                  },
                  "savedSearchName": {
                    "type": "string",
                    "description": "Run a saved people search by its title. A title several saved searches share answers 409 `saved_search_name_ambiguous`.",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "linkedinUrl": {
                    "type": "string",
                    "description": "Look up one person by a LinkedIn profile URL, `in/<slug>` or the bare slug. It counts as a search on its own, or narrows one.",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "limit": {
                    "type": "integer",
                    "description": "People per page. The page's most possible cost, `limit` times \\$0.001, is held from your balance first.",
                    "default": 10,
                    "minimum": 1,
                    "maximum": 100
                  },
                  "cursor": {
                    "type": "string",
                    "description": "The `pagination.nextCursor` of the page before. Send it with the same search, as the `filters` the first page answered with.",
                    "minLength": 1,
                    "maxLength": 65536
                  }
                }
              },
              "example": {
                "query": "operations directors at logistics companies in Portugal",
                "limit": 25
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "One page of people.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination",
                    "filters"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "description": "A person as LinkedIn and the data providers describe them. Never an email address or a phone number.",
                        "required": [
                          "linkedinMemberId",
                          "linkedin_url",
                          "full_name"
                        ],
                        "additionalProperties": true,
                        "properties": {
                          "linkedinMemberId": {
                            "type": "string",
                            "description": "The person's LinkedIn member id."
                          },
                          "linkedin_url": {
                            "type": "string",
                            "description": "`linkedin.com/in/<slug>` in lower case: the person's key across searches."
                          },
                          "full_name": {
                            "type": "string"
                          },
                          "first_name": {
                            "type": "string"
                          },
                          "last_name": {
                            "type": "string"
                          },
                          "profile_picture_url": {
                            "type": "string",
                            "description": "A public https link to the profile picture. Absent when there is none."
                          },
                          "job_title": {
                            "type": "string",
                            "description": "The current job's title, as written on LinkedIn."
                          },
                          "job_title_levels": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Seniority worked out from the title, in the `job_title_levels` filter's values."
                          },
                          "job_title_role": {
                            "type": "string",
                            "description": "Department worked out from the title, in the `job_title_role` filter's values."
                          },
                          "job_title_sub_role": {
                            "type": "string",
                            "description": "Sub-department worked out from the title."
                          },
                          "industry": {
                            "type": "string",
                            "description": "The person's industry, in the `industry` filter's values."
                          },
                          "job_company_name": {
                            "type": "string"
                          },
                          "job_company_website": {
                            "type": "string",
                            "description": "The employer's bare domain."
                          },
                          "job_company_linkedin_url": {
                            "type": "string",
                            "description": "The employer's LinkedIn page, as `linkedin.com/company/<slug>`."
                          },
                          "job_company_industry": {
                            "type": "string"
                          },
                          "job_company_employee_count": {
                            "type": "integer",
                            "description": "The employer's headcount: the low end of the estimate."
                          },
                          "job_end_date": {
                            "type": "string",
                            "description": "Only for a person with no current job: the job fields then describe the last job, which ended on this date (`YYYY-MM-DD`)."
                          },
                          "is_open_to_work": {
                            "type": "boolean",
                            "description": "Whether the person shows on LinkedIn that they are open to work. Absent when not known."
                          },
                          "location_name": {
                            "type": "string",
                            "description": "Lower-case `city, state, country`; missing parts are dropped from the front."
                          },
                          "summary": {
                            "type": "string"
                          },
                          "experience": {
                            "type": "array",
                            "description": "Job history, current jobs included.",
                            "items": {
                              "type": "object",
                              "properties": {
                                "company": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string"
                                    },
                                    "website": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "title": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "start_date": {
                                  "type": "string",
                                  "description": "`YYYY-MM-DD`."
                                },
                                "end_date": {
                                  "type": "string",
                                  "description": "`YYYY-MM-DD`. Absent on a current job."
                                },
                                "summary": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "pagination": {
                      "type": "object",
                      "properties": {
                        "nextCursor": {
                          "type": "string",
                          "description": "Send as `cursor`, with the same search, for the next page. Absent on the last page. A page can hold fewer people than `limit`, so only a missing cursor marks the end."
                        },
                        "total": {
                          "type": "integer",
                          "description": "An estimate of everyone matching, on the first page of a search on people filters only. Absent on later pages and when the filters name employers' size, industry, location or funding."
                        }
                      }
                    },
                    "filters": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "The filters the search ran with. Send them with `cursor` for the next page, or save them as a saved search."
                    },
                    "unresolvedCriteria": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "With `query`: the parts of it that could not be turned into a filter."
                    },
                    "closestCompanyMatches": {
                      "type": "array",
                      "description": "With `query`: each company it named that the search chose between same-named companies for, and the one chosen.",
                      "items": {
                        "type": "object",
                        "required": [
                          "requestedName",
                          "name"
                        ],
                        "properties": {
                          "requestedName": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "domain": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "ignoredFilterKeys": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "With a saved search: stored filters the search no longer takes, left out."
                    },
                    "unappliedCompanyNames": {
                      "type": "array",
                      "description": "Company names in the filters the search could not apply yet, by filter.",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "linkedinMemberId": "ACoAAB2cdEF",
                      "linkedin_url": "linkedin.com/in/ana-ruiz-ops",
                      "full_name": "Ana Ruiz",
                      "first_name": "Ana",
                      "last_name": "Ruiz",
                      "job_title": "Director of Operations",
                      "job_title_levels": [
                        "director"
                      ],
                      "job_title_role": "operations",
                      "job_company_name": "Halden Freight",
                      "job_company_website": "haldenfreight.com",
                      "job_company_linkedin_url": "linkedin.com/company/halden-freight",
                      "job_company_employee_count": 240,
                      "location_name": "lisbon, lisbon, portugal"
                    }
                  ],
                  "pagination": {
                    "nextCursor": "c2Nyb2xsXzI",
                    "total": 1246
                  },
                  "filters": {
                    "job_title_levels": [
                      "director"
                    ],
                    "job_title_role": [
                      "operations"
                    ],
                    "job_company_location_country": [
                      "portugal"
                    ]
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/people/count": {
      "post": {
        "operationId": "postPeopleCount",
        "tags": [
          "People"
        ],
        "summary": "Count people",
        "description": "Counts the people a search would find, without listing them. Send exactly one of `query`, `filters`, `savedSearchId` or `savedSearchName`, as the search takes them.\n\nA new count runs in the background: the first answer is `202` with `status` `pending`. Send the same request again every few seconds until it answers `200` with `status` `ready` and the `total`. A count takes up to about a minute and a half.\n\nFree. **Scope:** search. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "query": {
                    "type": "string",
                    "description": "Who to find, in plain language. It is turned into filters, which the page answers with as `filters`.",
                    "minLength": 1,
                    "maxLength": 2000,
                    "example": "operations directors at logistics companies in Portugal"
                  },
                  "filters": {
                    "type": "object",
                    "description": "Filters by name, with values from `GET /v1/people/filters` and `GET /v1/people/autocomplete`.",
                    "maxProperties": 100,
                    "additionalProperties": {},
                    "example": {
                      "job_title_levels": [
                        "director",
                        "vp"
                      ],
                      "job_title_role": [
                        "operations"
                      ]
                    }
                  },
                  "savedSearchId": {
                    "type": "string",
                    "description": "Run a saved people search by its id.",
                    "minLength": 24,
                    "maxLength": 24,
                    "pattern": "^[0-9a-fA-F]+$"
                  },
                  "savedSearchName": {
                    "type": "string",
                    "description": "Run a saved people search by its title. A title several saved searches share answers 409 `saved_search_name_ambiguous`.",
                    "minLength": 1,
                    "maxLength": 255
                  }
                }
              },
              "example": {
                "filters": {
                  "job_title_levels": [
                    "director",
                    "vp"
                  ],
                  "job_title_role": [
                    "operations"
                  ]
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The count is ready.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "total",
                    "filters"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "ready"
                      ]
                    },
                    "total": {
                      "type": "integer",
                      "description": "How many match."
                    },
                    "filters": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "The filters counted. Send them to the search to list the matches."
                    },
                    "unresolvedCriteria": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "With `query`: the parts of it that could not be turned into a filter."
                    },
                    "closestCompanyMatches": {
                      "type": "array",
                      "description": "With `query`: each company it named that the search chose between same-named companies for, and the one chosen.",
                      "items": {
                        "type": "object",
                        "required": [
                          "requestedName",
                          "name"
                        ],
                        "properties": {
                          "requestedName": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "domain": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "ignoredFilterKeys": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "With a saved search: stored filters the search no longer takes, left out."
                    },
                    "unappliedCompanyNames": {
                      "type": "array",
                      "description": "Company names in the filters the search could not apply yet, by filter.",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    }
                  }
                },
                "example": {
                  "status": "ready",
                  "total": 1246019,
                  "filters": {
                    "job_title_levels": [
                      "director",
                      "vp"
                    ],
                    "job_title_role": [
                      "operations"
                    ]
                  }
                }
              }
            }
          },
          "202": {
            "description": "Still counting. Send the same request again in a few seconds; a count takes up to about a minute and a half.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "filters"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending"
                      ]
                    },
                    "filters": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "The filters counted. Send them to the search to list the matches."
                    },
                    "unresolvedCriteria": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "With `query`: the parts of it that could not be turned into a filter."
                    },
                    "closestCompanyMatches": {
                      "type": "array",
                      "description": "With `query`: each company it named that the search chose between same-named companies for, and the one chosen.",
                      "items": {
                        "type": "object",
                        "required": [
                          "requestedName",
                          "name"
                        ],
                        "properties": {
                          "requestedName": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "domain": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "ignoredFilterKeys": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "With a saved search: stored filters the search no longer takes, left out."
                    },
                    "unappliedCompanyNames": {
                      "type": "array",
                      "description": "Company names in the filters the search could not apply yet, by filter.",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    }
                  }
                },
                "example": {
                  "status": "pending",
                  "filters": {
                    "job_title_levels": [
                      "director",
                      "vp"
                    ],
                    "job_title_role": [
                      "operations"
                    ]
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/people/filters": {
      "get": {
        "operationId": "getPeopleFilters",
        "tags": [
          "People"
        ],
        "summary": "List people filter values",
        "description": "The filters the people search takes and the values each accepts, or one filter's with `field`. A free-text filter has no fixed values: its `autocomplete` is the `GET /v1/people/autocomplete` query that suggests them. `jobTitleRoleToSubRole` lists each department's sub-departments.\n\nFree. **Scope:** search. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "field",
            "in": "query",
            "required": false,
            "description": "One filter's values, by the filter's name. Without it, every filter's.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The values the people search filters take.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fields": {
                      "type": "object",
                      "description": "One entry per filter, by the filter's name.",
                      "additionalProperties": {
                        "type": "object",
                        "required": [
                          "valueShape",
                          "values"
                        ],
                        "properties": {
                          "valueShape": {
                            "type": "string",
                            "enum": [
                              "include_exclude",
                              "term",
                              "range",
                              "date_range"
                            ],
                            "description": "How the filter takes values: `include_exclude` entries, plain `term`s, or a range."
                          },
                          "values": {
                            "type": "array",
                            "description": "The values the filter accepts. Empty for a free-text filter.",
                            "items": {
                              "type": "object",
                              "required": [
                                "label",
                                "value"
                              ],
                              "properties": {
                                "label": {
                                  "type": "string"
                                },
                                "value": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "autocomplete": {
                            "type": "string",
                            "description": "A free-text filter's suggestions route: add `&q=` and the text typed."
                          }
                        }
                      }
                    },
                    "jobTitleRoleToSubRole": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "description": "Each `job_title_role` department's sub-departments, the `job_title_sub_role` values."
                    }
                  }
                },
                "example": {
                  "fields": {
                    "job_title_levels": {
                      "valueShape": "term",
                      "values": [
                        {
                          "label": "Director",
                          "value": "director"
                        },
                        {
                          "label": "VP",
                          "value": "vp"
                        }
                      ]
                    },
                    "job_title": {
                      "valueShape": "term",
                      "values": [],
                      "autocomplete": "/v1/people/autocomplete?field=title"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/people/autocomplete": {
      "get": {
        "operationId": "getPeopleAutocomplete",
        "tags": [
          "People"
        ],
        "summary": "Suggest people filter values",
        "description": "Suggests values for a free-text people filter as it is typed: job titles, companies, websites, locations, regions, schools and skills. Send a suggestion's `name` as the filter's value.\n\nFree. **Scope:** search. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "field",
            "in": "query",
            "required": true,
            "description": "The filter to suggest values for.",
            "schema": {
              "type": "string",
              "enum": [
                "title",
                "company",
                "website",
                "location",
                "region",
                "school",
                "skill"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "What has been typed so far.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "example": "head of operations"
          }
        ],
        "responses": {
          "200": {
            "description": "Suggested values for the filter.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "field",
                    "suggestions"
                  ],
                  "properties": {
                    "field": {
                      "type": "string",
                      "enum": [
                        "title",
                        "company",
                        "website",
                        "location",
                        "region",
                        "school",
                        "skill"
                      ]
                    },
                    "suggestions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "name"
                        ],
                        "additionalProperties": true,
                        "properties": {
                          "name": {
                            "type": "string",
                            "description": "The value to send in the filter."
                          },
                          "domain": {
                            "type": "string",
                            "description": "For `field=company`: the company's website domain, when known."
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "field": "title",
                  "suggestions": [
                    {
                      "name": "head of operations"
                    },
                    {
                      "name": "head of business operations"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/companies/search": {
      "post": {
        "operationId": "postCompaniesSearch",
        "tags": [
          "Companies"
        ],
        "summary": "Search companies",
        "description": "Finds companies by a plain-language `query`, by `filters`, or by a saved company search: send exactly one.\n\nReturns one page of companies and the `filters` the search ran with. For the next page, send those `filters` with the page's `pagination.nextCursor` as `cursor`.\n\n**Price:** \\$0.001 per company returned. Before the search runs, `limit` times \\$0.001 is held from your balance, and what the page does not use is released. A page with nothing on it costs nothing. **Scope:** search. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "query": {
                    "type": "string",
                    "description": "Which companies to find, in plain language. It is turned into filters, which the page answers with as `filters`.",
                    "minLength": 1,
                    "maxLength": 2000,
                    "example": "logistics companies in Portugal"
                  },
                  "filters": {
                    "type": "object",
                    "description": "Filters by name, with values from `GET /v1/companies/filters` and `GET /v1/companies/autocomplete`.",
                    "maxProperties": 100,
                    "additionalProperties": {},
                    "example": {
                      "headquartersCountryCode": [
                        "PRT"
                      ]
                    }
                  },
                  "savedSearchId": {
                    "type": "string",
                    "description": "Run a saved company search by its id.",
                    "minLength": 24,
                    "maxLength": 24,
                    "pattern": "^[0-9a-fA-F]+$"
                  },
                  "savedSearchName": {
                    "type": "string",
                    "description": "Run a saved company search by its title. A title several saved searches share answers 409 `saved_search_name_ambiguous`.",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "limit": {
                    "type": "integer",
                    "description": "Companies per page. The page's most possible cost, `limit` times \\$0.001, is held from your balance first.",
                    "default": 25,
                    "minimum": 1,
                    "maximum": 100
                  },
                  "cursor": {
                    "type": "string",
                    "description": "The `pagination.nextCursor` of the page before. Send it with the same search, as the `filters` the first page answered with.",
                    "minLength": 1,
                    "maxLength": 65536
                  }
                }
              },
              "example": {
                "query": "logistics companies in Portugal",
                "limit": 25
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "One page of companies.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination",
                    "filters"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "description": "A company as the company data providers describe it. Fields without a value are left out.",
                        "additionalProperties": true,
                        "properties": {
                          "preferred_name": {
                            "type": "string",
                            "description": "The company's name."
                          },
                          "names": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Every name the company is known by."
                          },
                          "domains": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Its website domains."
                          },
                          "linkedin_primary_slug": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Its LinkedIn page, as `linkedin.com/company/<slug>`."
                          },
                          "standard_industries": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "naics_codes": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "tags": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "status_consensus": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Whether it operates, such as `active`."
                          },
                          "funding_stage": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "employee_count_consensus": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "description": "The headcount, as a range.",
                            "properties": {
                              "gte": {
                                "type": "integer"
                              },
                              "lte": {
                                "type": "integer"
                              }
                            }
                          },
                          "location_consensus": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "description": "Where it is headquartered.",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "pagination": {
                      "type": "object",
                      "properties": {
                        "nextCursor": {
                          "type": "string",
                          "description": "Send as `cursor`, with the same search, for the next page. Absent on the last page."
                        },
                        "total": {
                          "type": "integer",
                          "description": "An estimate of every company matching. Absent when unknown."
                        }
                      }
                    },
                    "filters": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "The filters the search ran with. Send them with `cursor` for the next page, or save them as a saved search."
                    },
                    "unresolvedCriteria": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "With `query`: the parts of it that could not be turned into a filter."
                    },
                    "unmatchedDomains": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "With a `domains` filter, on a first page that has no next page: the domains no company was found for."
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "preferred_name": "Halden Freight",
                      "names": [
                        "Halden Freight",
                        "Halden Freight Lda"
                      ],
                      "domains": [
                        "haldenfreight.com"
                      ],
                      "linkedin_primary_slug": "halden-freight",
                      "standard_industries": [
                        "Transportation and Logistics"
                      ],
                      "status_consensus": "active",
                      "employee_count_consensus": {
                        "gte": 201,
                        "lte": 500
                      }
                    }
                  ],
                  "pagination": {
                    "nextCursor": "Y29tcGFueV8y",
                    "total": 812
                  },
                  "filters": {
                    "headquartersCountryCode": [
                      {
                        "value": "PRT",
                        "label": "PRT",
                        "status": "include"
                      }
                    ],
                    "linkedinIndustries": [
                      {
                        "value": "Transportation, Logistics, Supply Chain and Storage",
                        "label": "Transportation, Logistics, Supply Chain and Storage",
                        "status": "include"
                      }
                    ]
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/companies/search/save": {
      "post": {
        "operationId": "postCompaniesSearchSave",
        "tags": [
          "Companies"
        ],
        "summary": "Save a company search to a list",
        "description": "Saves up to `limit` companies (10,000 at most) that a company search finds to one of your company lists, in the background. Send exactly one of `query`, `filters`, `savedSearchId` or `savedSearchName`, as `POST /v1/companies/search` takes them, and the company list as `listId`.\n\nThe answer is the job, with `202`. Follow it with `GET /v1/jobs/{jobId}` until its `status` is `succeeded` or `failed`: its `progress` counts the companies saved so far out of `limit`, and the saved companies are on the list's rows, read with `GET /v1/lists/{listId}/rows`. A save cannot be cancelled. Another organization's list answers `404` `list_not_found`, and a people list `422` `company_list_required`. These calls share the company search's rate limit.\n\n**Price:** \\$0.001 per company saved. When the save starts, `limit` times \\$0.001 is held from your balance; when it ends, it is charged for the companies it saved, a save that failed partway included, and the rest is released. **Scope:** search, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Names this operation, so a retry with the same key and body gets the first success again, marked `Idempotent-Replayed`, instead of running or charging twice. A mailbox's `password` is not compared: the same mailbox sent again with another password is the same call, and gets the first answer. Kept 24 hours for your organization and this route. A refusal (`4xx`) frees the key at once, so a corrected retry runs. After a server error (`5xx`), which may still take effect, the key stays held for 5 minutes from the call's start, and a retry in that time answers `409` `idempotency_in_progress`; after that, a send or import that may already have gone out answers `409` `idempotency_outcome_unknown` instead of running again. 1 to 255 visible ASCII characters, such as a UUID.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7E]+$"
            },
            "example": "5f1c9d2e-8a4b-4e7c-9f30-6b2a1d8e4c75"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "query": {
                    "type": "string",
                    "description": "Which companies to save, in plain language.",
                    "minLength": 1,
                    "maxLength": 2000,
                    "example": "logistics companies in Portugal"
                  },
                  "filters": {
                    "type": "object",
                    "description": "Filters by name, with values from `GET /v1/companies/filters` and `GET /v1/companies/autocomplete`.",
                    "maxProperties": 100,
                    "additionalProperties": {},
                    "example": {
                      "headquartersCountryCode": [
                        "PRT"
                      ]
                    }
                  },
                  "savedSearchId": {
                    "type": "string",
                    "description": "Run a saved company search by its id.",
                    "minLength": 24,
                    "maxLength": 24,
                    "pattern": "^[0-9a-fA-F]+$"
                  },
                  "savedSearchName": {
                    "type": "string",
                    "description": "Run a saved company search by its title. A title several saved searches share answers 409 `saved_search_name_ambiguous`.",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "limit": {
                    "type": "integer",
                    "description": "The most companies to save, 1 to 10,000. `limit` times \\$0.001 is held when the save starts.",
                    "minimum": 1,
                    "maximum": 10000
                  },
                  "listId": {
                    "type": "string",
                    "description": "The company list to save the companies to.",
                    "minLength": 24,
                    "maxLength": 24,
                    "pattern": "^[0-9a-fA-F]+$"
                  }
                },
                "required": [
                  "limit",
                  "listId"
                ]
              },
              "example": {
                "query": "logistics companies in Portugal",
                "limit": 2500,
                "listId": "6a1f0c2b9d4e8a7f3c5b2e20"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The job, started. Read its progress and result with `GET /v1/jobs/{jobId}`.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "type",
                    "status",
                    "units",
                    "createdAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "email_verification",
                        "people_enrichment",
                        "list_enrichment",
                        "company_save"
                      ],
                      "description": "What the job does."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "running",
                        "succeeded",
                        "failed",
                        "cancelled"
                      ],
                      "description": "`running` until the job ends as `succeeded`, `failed` or `cancelled`."
                    },
                    "listId": {
                      "type": "string",
                      "description": "For a list enrichment, the list it runs over, and for a company save, the company list it saves to. What either adds is on the list's rows: read them with `GET /v1/lists/{listId}/rows`."
                    },
                    "find": {
                      "type": "string",
                      "enum": [
                        "email",
                        "phone",
                        "email_and_phone"
                      ],
                      "description": "For an enrichment, what it looks for."
                    },
                    "providers": {
                      "type": "string",
                      "enum": [
                        "package",
                        "waterfall"
                      ],
                      "description": "For an enrichment, where it looks."
                    },
                    "progress": {
                      "type": "object",
                      "description": "How far the job got. Absent until it reports progress. For a company save, `done` is the companies saved so far and `total` its `limit`.",
                      "properties": {
                        "done": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        }
                      }
                    },
                    "units": {
                      "type": "array",
                      "description": "What the job produced so far, by price item.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "item": {
                            "type": "string"
                          },
                          "units": {
                            "type": "integer"
                          }
                        }
                      }
                    },
                    "chargedUsd": {
                      "type": "string",
                      "description": "What the job was charged, in US dollars as an exact six-decimal string. Present once it ended."
                    },
                    "results": {
                      "type": "array",
                      "description": "For a people enrichment, once it ended: every person's result, in the order the request named them. Shown to keys that can read enrichment.",
                      "items": {
                        "type": "object",
                        "description": "The person as `POST /v1/people/enrich` answers them, with their place in the request, or, when they were not enriched, their place and why. Nothing is charged for a person with an `error`.",
                        "required": [
                          "index"
                        ],
                        "properties": {
                          "index": {
                            "type": "integer",
                            "description": "The person's place in the request's `people`, from 0."
                          },
                          "personId": {
                            "type": "string",
                            "description": "The person's id in your workspace, as list rows and `personIds` name it. Send it as `personId` to enrich them again. Absent when the person could not be saved."
                          },
                          "emails": {
                            "type": "array",
                            "description": "Every work email address the person has whose check showed it can receive mail: `valid`, or `catch-all` (the domain accepts mail for any address, so this one could not be confirmed). Personal addresses are left out.",
                            "items": {
                              "type": "object",
                              "required": [
                                "email",
                                "status"
                              ],
                              "properties": {
                                "email": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "valid",
                                    "catch-all"
                                  ]
                                },
                                "atCurrentCompany": {
                                  "type": "boolean",
                                  "description": "Whether the address is at a company the person works at now, by their job history. `false` can also be a second domain of their employer. Absent when no current company is known for them."
                                }
                              }
                            }
                          },
                          "phones": {
                            "type": "array",
                            "description": "Every phone number the person has, with what checking it showed.",
                            "items": {
                              "type": "object",
                              "required": [
                                "phoneNumber"
                              ],
                              "properties": {
                                "phoneNumber": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "valid",
                                    "hq",
                                    "unverified"
                                  ],
                                  "description": "`hq` is the company's main line."
                                }
                              }
                            }
                          },
                          "primaryEmail": {
                            "type": "string",
                            "description": "The address to write to. Absent when the person has no address in `emails`."
                          },
                          "primaryPhone": {
                            "type": "string",
                            "description": "The number to call. Absent when the person has no phone number."
                          },
                          "found": {
                            "type": "object",
                            "description": "What this call found that the person did not have: the values it was charged for. Empty when it found nothing new.",
                            "properties": {
                              "email": {
                                "type": "object",
                                "description": "The work email address found. Absent when none was.",
                                "required": [
                                  "email",
                                  "foundBy"
                                ],
                                "properties": {
                                  "email": {
                                    "type": "string"
                                  },
                                  "foundBy": {
                                    "type": "string",
                                    "enum": [
                                      "package",
                                      "waterfall"
                                    ],
                                    "description": "Who found the value, which sets its price: `package` or `waterfall`."
                                  }
                                }
                              },
                              "phone": {
                                "type": "object",
                                "description": "The phone number found. Absent when none was.",
                                "required": [
                                  "phoneNumber",
                                  "foundBy"
                                ],
                                "properties": {
                                  "phoneNumber": {
                                    "type": "string"
                                  },
                                  "foundBy": {
                                    "type": "string",
                                    "enum": [
                                      "package",
                                      "waterfall"
                                    ],
                                    "description": "Who found the value, which sets its price: `package` or `waterfall`."
                                  }
                                }
                              }
                            }
                          },
                          "error": {
                            "type": "object",
                            "description": "Why the person was not enriched: `person_not_found`, `person_not_identifiable`, `enrichment_in_progress` (another call was enriching them), `enrichment_failed`, or `enrichment_not_run` (the job ended before it reached them). Absent when they were enriched.",
                            "required": [
                              "code",
                              "message"
                            ],
                            "properties": {
                              "code": {
                                "type": "string",
                                "enum": [
                                  "person_not_found",
                                  "person_not_identifiable",
                                  "enrichment_in_progress",
                                  "enrichment_failed",
                                  "enrichment_not_run"
                                ]
                              },
                              "message": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "finishedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the job ended. Absent while it runs."
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e14",
                  "type": "company_save",
                  "status": "running",
                  "listId": "6a1f0c2b9d4e8a7f3c5b2e20",
                  "progress": {
                    "done": 0,
                    "total": 2500
                  },
                  "units": [],
                  "createdAt": "2026-11-26T10:00:00.000Z"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/companies/count": {
      "post": {
        "operationId": "postCompaniesCount",
        "tags": [
          "Companies"
        ],
        "summary": "Count companies",
        "description": "Counts the companies a search would find, without listing them. Send exactly one of `query`, `filters`, `savedSearchId` or `savedSearchName`, as the search takes them.\n\nA new count runs in the background: the first answer is `202` with `status` `pending`. Send the same request again every few seconds until it answers `200` with `status` `ready` and the `total`.\n\nFree. **Scope:** search. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "query": {
                    "type": "string",
                    "description": "Which companies to find, in plain language. It is turned into filters, which the page answers with as `filters`.",
                    "minLength": 1,
                    "maxLength": 2000,
                    "example": "logistics companies in Portugal"
                  },
                  "filters": {
                    "type": "object",
                    "description": "Filters by name, with values from `GET /v1/companies/filters` and `GET /v1/companies/autocomplete`.",
                    "maxProperties": 100,
                    "additionalProperties": {},
                    "example": {
                      "headquartersCountryCode": [
                        "PRT"
                      ]
                    }
                  },
                  "savedSearchId": {
                    "type": "string",
                    "description": "Run a saved company search by its id.",
                    "minLength": 24,
                    "maxLength": 24,
                    "pattern": "^[0-9a-fA-F]+$"
                  },
                  "savedSearchName": {
                    "type": "string",
                    "description": "Run a saved company search by its title. A title several saved searches share answers 409 `saved_search_name_ambiguous`.",
                    "minLength": 1,
                    "maxLength": 255
                  }
                }
              },
              "example": {
                "query": "logistics companies in Portugal"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The count is ready.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "total",
                    "filters"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "ready"
                      ]
                    },
                    "total": {
                      "type": "integer",
                      "description": "How many match."
                    },
                    "filters": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "The filters counted. Send them to the search to list the matches."
                    },
                    "unresolvedCriteria": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "With `query`: the parts of it that could not be turned into a filter."
                    },
                    "closestCompanyMatches": {
                      "type": "array",
                      "description": "With `query`: each company it named that the search chose between same-named companies for, and the one chosen.",
                      "items": {
                        "type": "object",
                        "required": [
                          "requestedName",
                          "name"
                        ],
                        "properties": {
                          "requestedName": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "domain": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "ignoredFilterKeys": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "With a saved search: stored filters the search no longer takes, left out."
                    },
                    "unappliedCompanyNames": {
                      "type": "array",
                      "description": "Company names in the filters the search could not apply yet, by filter.",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    }
                  }
                },
                "example": {
                  "status": "ready",
                  "total": 1246019,
                  "filters": {
                    "job_title_levels": [
                      "director",
                      "vp"
                    ],
                    "job_title_role": [
                      "operations"
                    ]
                  }
                }
              }
            }
          },
          "202": {
            "description": "Still counting. Send the same request again in a few seconds; a count takes up to about a minute and a half.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "filters"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending"
                      ]
                    },
                    "filters": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "The filters counted. Send them to the search to list the matches."
                    },
                    "unresolvedCriteria": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "With `query`: the parts of it that could not be turned into a filter."
                    },
                    "closestCompanyMatches": {
                      "type": "array",
                      "description": "With `query`: each company it named that the search chose between same-named companies for, and the one chosen.",
                      "items": {
                        "type": "object",
                        "required": [
                          "requestedName",
                          "name"
                        ],
                        "properties": {
                          "requestedName": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "domain": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "ignoredFilterKeys": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "With a saved search: stored filters the search no longer takes, left out."
                    },
                    "unappliedCompanyNames": {
                      "type": "array",
                      "description": "Company names in the filters the search could not apply yet, by filter.",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    }
                  }
                },
                "example": {
                  "status": "pending",
                  "filters": {
                    "job_title_levels": [
                      "director",
                      "vp"
                    ],
                    "job_title_role": [
                      "operations"
                    ]
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/companies/filters": {
      "get": {
        "operationId": "getCompaniesFilters",
        "tags": [
          "Companies"
        ],
        "summary": "List company filter values",
        "description": "The values the company search filters take. Without `field`, one list per filter: `industries` for `industriesV2`, `linkedinIndustries` for `linkedinIndustries`, `crunchbaseIndustries` for `crunchbaseCategories`, `crunchbaseCategoryGroups` for `crunchbaseCategoryGroups`, `companyTags` for `tags`, `naicsCodes[].code` for `naicsCodes`, `countries[].apiCode` for `headquartersCountryCode` and `officeLocationsV2`, `accelerators[].acceleratorSlug` for `acceleratorsV2`, `fundingStages` for `stage`, `technologies` for `technologies`, `statuses` for `status` and `fortuneRankings` for `fortuneRankings`. Copy values exactly: they are case-sensitive.\n\nWith `field`, that filter's entry, shaped as the people filters' are. Company names and places come from `GET /v1/companies/autocomplete`.\n\nWith `q`, only the values whose label holds that text or whose code starts with it, in any case: `q=hospital`, or `q=62` for the NAICS codes of health care. The NAICS list is too long for one answer through MCP, so name what you look for.\n\nFree. **Scope:** search. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "field",
            "in": "query",
            "required": false,
            "description": "One filter's values, by the filter's name. Without it, every filter's.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Only values whose label holds this text or whose code starts with it.",
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The values the company search filters take.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "fields": {
                      "type": "object",
                      "description": "With `field`: that filter's entry, by its name.",
                      "additionalProperties": {
                        "type": "object",
                        "required": [
                          "valueShape",
                          "values"
                        ],
                        "properties": {
                          "valueShape": {
                            "type": "string",
                            "enum": [
                              "include_exclude",
                              "term",
                              "range",
                              "date_range"
                            ],
                            "description": "How the filter takes values: `include_exclude` entries, plain `term`s, or a range."
                          },
                          "values": {
                            "type": "array",
                            "description": "The values the filter accepts. Empty for a free-text filter.",
                            "items": {
                              "type": "object",
                              "required": [
                                "label",
                                "value"
                              ],
                              "properties": {
                                "label": {
                                  "type": "string"
                                },
                                "value": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "autocomplete": {
                            "type": "string",
                            "description": "A free-text filter's suggestions route: add `&q=` and the text typed."
                          }
                        }
                      }
                    },
                    "industries": {
                      "type": "array",
                      "description": "The values of the `industriesV2` filter."
                    },
                    "linkedinIndustries": {
                      "type": "array",
                      "description": "The values of the `linkedinIndustries` filter."
                    },
                    "countries": {
                      "type": "array",
                      "description": "Countries: each one's `apiCode` is a value of `headquartersCountryCode`."
                    },
                    "fundingStages": {
                      "type": "array",
                      "description": "The values of the `stage` filter."
                    },
                    "statuses": {
                      "type": "array",
                      "description": "The values of the `status` filter."
                    },
                    "technologies": {
                      "type": "array",
                      "description": "The values of the `technologies` filter."
                    }
                  }
                },
                "example": {
                  "industries": [
                    "Logistics",
                    "Freight"
                  ],
                  "fundingStages": [
                    "seed",
                    "series_a"
                  ],
                  "statuses": [
                    "active"
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/companies/autocomplete": {
      "get": {
        "operationId": "getCompaniesAutocomplete",
        "tags": [
          "Companies"
        ],
        "summary": "Suggest company filter values",
        "description": "Suggests company names (`company`), headquarters places (`location`, values of `headquartersCity`) or states (`state`, values of `headquartersStateName`) as they are typed. `orgType=investor` narrows company names to investors, for the `investors` filter.\n\nFree. **Scope:** search. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "field",
            "in": "query",
            "required": true,
            "description": "The filter to suggest values for: company names, headquarters places, or states.",
            "schema": {
              "type": "string",
              "enum": [
                "company",
                "location",
                "state"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "What has been typed so far, two characters or more.",
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 200
            },
            "example": "mae"
          },
          {
            "name": "orgType",
            "in": "query",
            "required": false,
            "description": "`investor` narrows `field=company` to investors. Only with `field=company`.",
            "schema": {
              "type": "string",
              "enum": [
                "investor"
              ]
            }
          },
          {
            "name": "countries",
            "in": "query",
            "required": false,
            "description": "Only with `field=state`: comma-separated countries whose states to suggest, as `USA` or `US`. Without it, every country's.",
            "schema": {
              "type": "string",
              "maxLength": 1000,
              "pattern": "^[A-Za-z]{2,3}(\\s*,\\s*[A-Za-z]{2,3})*$"
            }
          },
          {
            "name": "excludedCountries",
            "in": "query",
            "required": false,
            "description": "Only with `field=state`: comma-separated countries whose states to leave out.",
            "schema": {
              "type": "string",
              "maxLength": 1000,
              "pattern": "^[A-Za-z]{2,3}(\\s*,\\s*[A-Za-z]{2,3})*$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Suggested values for the filter.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "field",
                    "suggestions"
                  ],
                  "properties": {
                    "field": {
                      "type": "string",
                      "enum": [
                        "company",
                        "location",
                        "state"
                      ]
                    },
                    "suggestions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "name"
                        ],
                        "additionalProperties": true,
                        "properties": {
                          "name": {
                            "type": "string",
                            "description": "The value to send in the filter."
                          },
                          "domain": {
                            "type": "string",
                            "description": "For `field=company`: the company's website domain, when known."
                          },
                          "country": {
                            "type": "string",
                            "description": "For `field=state`: the state's country, which tells same-named states apart."
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "field": "company",
                  "suggestions": [
                    {
                      "name": "A.P. Moller - Maersk",
                      "domain": "maersk.com"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/companies/resolve": {
      "post": {
        "operationId": "postCompaniesResolve",
        "tags": [
          "Companies"
        ],
        "summary": "Resolve a company",
        "description": "Names one company from its `name`, website `domain` or `linkedinUrl`: its name, domain, LinkedIn page and logo. Send at least one. When several are sent, only the most precise is looked up: `linkedinUrl`, then `domain`, then `name`. A name resolves to the best-known company of that name, so send a domain for a common name.\n\nA company nothing matches answers `200` with `status` `not_found`, never a guess.\n\nFree. **Scope:** search. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The company's name.",
                    "minLength": 1,
                    "maxLength": 255,
                    "example": "A.P. Moller - Maersk"
                  },
                  "domain": {
                    "type": "string",
                    "description": "The company's website domain.",
                    "minLength": 1,
                    "maxLength": 253,
                    "example": "maersk.com"
                  },
                  "linkedinUrl": {
                    "type": "string",
                    "description": "The company's LinkedIn page URL.",
                    "minLength": 1,
                    "maxLength": 2048
                  }
                }
              },
              "example": {
                "domain": "maersk.com"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The company named, or `not_found`.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "company"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "found",
                        "not_found"
                      ]
                    },
                    "company": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "The company, each field null when unknown. Null when nothing matches.",
                      "properties": {
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "domain": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "linkedinUrl": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "logoUrl": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    }
                  }
                },
                "example": {
                  "status": "found",
                  "company": {
                    "name": "A.P. Moller - Maersk",
                    "domain": "maersk.com",
                    "linkedinUrl": "linkedin.com/company/maersk-group",
                    "logoUrl": "https://logo.example/maersk.com.png"
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/companies/people": {
      "post": {
        "operationId": "postCompaniesPeople",
        "tags": [
          "Companies"
        ],
        "summary": "List a company's people",
        "description": "Lists the people who work at one company, narrowed by people `filters` such as seniority or department when you send them. Send `company` as `POST /v1/companies/resolve` takes it.\n\nFor the next page, send the same `company` and `filters` with the page's `pagination.nextCursor` as `cursor`. A company nothing matches answers `status` `not_found`, with no people, and costs nothing.\n\n**Price:** \\$0.001 per person returned. Before the search runs, `limit` times \\$0.001 is held from your balance, and what the page does not use is released. A page with nothing on it costs nothing. **Scope:** search. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "company": {
                    "type": "object",
                    "description": "The company, as `POST /v1/companies/resolve` takes it. Only the most precise of the values sent is looked up.",
                    "properties": {
                      "name": {
                        "type": "string",
                        "description": "The company's name.",
                        "minLength": 1,
                        "maxLength": 255,
                        "example": "A.P. Moller - Maersk"
                      },
                      "domain": {
                        "type": "string",
                        "description": "The company's website domain.",
                        "minLength": 1,
                        "maxLength": 253,
                        "example": "maersk.com"
                      },
                      "linkedinUrl": {
                        "type": "string",
                        "description": "The company's LinkedIn page URL.",
                        "minLength": 1,
                        "maxLength": 2048
                      }
                    }
                  },
                  "filters": {
                    "type": "object",
                    "description": "People filters to narrow the company's people, such as seniority or department, from `GET /v1/people/filters`. One filter is this route's own: `excludedTitlesAtCompany`, a list of up to 50 title words such as `advisor`, `board member` or `investor`. People whose title at this company holds one of them, as whole words in any case, are left out; a title they hold at another company is not read.",
                    "maxProperties": 100,
                    "additionalProperties": {},
                    "example": {
                      "job_title_levels": [
                        "director"
                      ]
                    }
                  },
                  "limit": {
                    "type": "integer",
                    "description": "People per page, up to 25. The page's most possible cost, `limit` times \\$0.001, is held from your balance first.",
                    "default": 10,
                    "minimum": 1,
                    "maximum": 25
                  },
                  "cursor": {
                    "type": "string",
                    "description": "The `pagination.nextCursor` of the page before. Send it with the same search, as the `filters` the first page answered with.",
                    "minLength": 1,
                    "maxLength": 65536
                  }
                },
                "required": [
                  "company"
                ]
              },
              "example": {
                "company": {
                  "domain": "maersk.com"
                },
                "filters": {
                  "job_title_levels": [
                    "director"
                  ]
                },
                "limit": 10
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "One page of the company's people.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "company",
                    "data",
                    "pagination"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "found",
                        "not_found"
                      ],
                      "description": "`not_found` when nothing matches the company: no people, nothing charged."
                    },
                    "company": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "The company, each field null when unknown. Null when nothing matches.",
                      "properties": {
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "domain": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "linkedinUrl": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "logoUrl": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "description": "A person as LinkedIn and the data providers describe them. Never an email address or a phone number.",
                        "required": [
                          "linkedinMemberId",
                          "linkedin_url",
                          "full_name"
                        ],
                        "additionalProperties": true,
                        "properties": {
                          "linkedinMemberId": {
                            "type": "string",
                            "description": "The person's LinkedIn member id."
                          },
                          "linkedin_url": {
                            "type": "string",
                            "description": "`linkedin.com/in/<slug>` in lower case: the person's key across searches."
                          },
                          "full_name": {
                            "type": "string"
                          },
                          "first_name": {
                            "type": "string"
                          },
                          "last_name": {
                            "type": "string"
                          },
                          "profile_picture_url": {
                            "type": "string",
                            "description": "A public https link to the profile picture. Absent when there is none."
                          },
                          "job_title": {
                            "type": "string",
                            "description": "The current job's title, as written on LinkedIn."
                          },
                          "job_title_levels": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Seniority worked out from the title, in the `job_title_levels` filter's values."
                          },
                          "job_title_role": {
                            "type": "string",
                            "description": "Department worked out from the title, in the `job_title_role` filter's values."
                          },
                          "job_title_sub_role": {
                            "type": "string",
                            "description": "Sub-department worked out from the title."
                          },
                          "industry": {
                            "type": "string",
                            "description": "The person's industry, in the `industry` filter's values."
                          },
                          "job_company_name": {
                            "type": "string"
                          },
                          "job_company_website": {
                            "type": "string",
                            "description": "The employer's bare domain."
                          },
                          "job_company_linkedin_url": {
                            "type": "string",
                            "description": "The employer's LinkedIn page, as `linkedin.com/company/<slug>`."
                          },
                          "job_company_industry": {
                            "type": "string"
                          },
                          "job_company_employee_count": {
                            "type": "integer",
                            "description": "The employer's headcount: the low end of the estimate."
                          },
                          "job_end_date": {
                            "type": "string",
                            "description": "Only for a person with no current job: the job fields then describe the last job, which ended on this date (`YYYY-MM-DD`)."
                          },
                          "is_open_to_work": {
                            "type": "boolean",
                            "description": "Whether the person shows on LinkedIn that they are open to work. Absent when not known."
                          },
                          "location_name": {
                            "type": "string",
                            "description": "Lower-case `city, state, country`; missing parts are dropped from the front."
                          },
                          "summary": {
                            "type": "string"
                          },
                          "experience": {
                            "type": "array",
                            "description": "Job history, current jobs included.",
                            "items": {
                              "type": "object",
                              "properties": {
                                "company": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string"
                                    },
                                    "website": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "title": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "start_date": {
                                  "type": "string",
                                  "description": "`YYYY-MM-DD`."
                                },
                                "end_date": {
                                  "type": "string",
                                  "description": "`YYYY-MM-DD`. Absent on a current job."
                                },
                                "summary": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "pagination": {
                      "type": "object",
                      "properties": {
                        "nextCursor": {
                          "type": "string",
                          "description": "Send as `cursor`, with the same search, for the next page. Absent on the last page. A page can hold fewer people than `limit`, so only a missing cursor marks the end."
                        },
                        "total": {
                          "type": "integer",
                          "description": "An estimate of everyone matching, on the first page only."
                        }
                      }
                    }
                  }
                },
                "example": {
                  "status": "found",
                  "company": {
                    "name": "A.P. Moller - Maersk",
                    "domain": "maersk.com",
                    "linkedinUrl": "linkedin.com/company/maersk-group",
                    "logoUrl": "https://logo.example/maersk.com.png"
                  },
                  "data": [
                    {
                      "linkedinMemberId": "ACoAAB2cdEF",
                      "linkedin_url": "linkedin.com/in/ana-ruiz-ops",
                      "full_name": "Ana Ruiz",
                      "first_name": "Ana",
                      "last_name": "Ruiz",
                      "job_title": "Director of Operations",
                      "job_title_levels": [
                        "director"
                      ],
                      "job_title_role": "operations",
                      "job_company_name": "A.P. Moller - Maersk",
                      "job_company_website": "maersk.com",
                      "job_company_linkedin_url": "linkedin.com/company/halden-freight",
                      "job_company_employee_count": 240,
                      "location_name": "lisbon, lisbon, portugal"
                    }
                  ],
                  "pagination": {
                    "nextCursor": "c2Nyb2xsXzI",
                    "total": 2737
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/saved-searches": {
      "post": {
        "operationId": "postSavedSearches",
        "tags": [
          "Saved searches"
        ],
        "summary": "Create a saved search",
        "description": "Keeps a search's `filters` under a `title`, for people (the default) or for companies. To keep a search you ran, send the `filters` its page answered with.\n\nRun a saved people search with `POST /v1/saved-searches/{savedSearchId}/run`, or any saved search as `savedSearchId` in a search or a count.\n\nFree. **Scope:** search, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "description": "The saved search's title. Titles need not be unique, but a shared title cannot be run by name.",
                    "minLength": 1,
                    "maxLength": 255,
                    "example": "Portugal freight ops"
                  },
                  "type": {
                    "type": "string",
                    "description": "The kind of search the filters are for. It cannot change later.",
                    "enum": [
                      "people",
                      "company"
                    ],
                    "default": "people"
                  },
                  "filters": {
                    "type": "object",
                    "description": "The search's filters, as the people or company search takes them, such as the `filters` a search page answered with.",
                    "maxProperties": 100,
                    "additionalProperties": {},
                    "example": {
                      "job_title_levels": [
                        "director"
                      ],
                      "job_title_role": [
                        "operations"
                      ]
                    }
                  }
                },
                "required": [
                  "title",
                  "filters"
                ]
              },
              "example": {
                "title": "Portugal freight ops",
                "filters": {
                  "job_title_levels": [
                    "director"
                  ],
                  "job_title_role": [
                    "operations"
                  ]
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The saved search.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "title",
                    "type",
                    "filters",
                    "createdAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "people",
                        "company"
                      ],
                      "description": "The kind of search the filters are for."
                    },
                    "filters": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "ignoredFilterKeys": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Stored filters the search no longer takes, which are left out when it runs."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Absent until it is first changed."
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e15",
                  "title": "Portugal freight ops",
                  "type": "people",
                  "filters": {
                    "job_title_levels": [
                      "director"
                    ],
                    "job_title_role": [
                      "operations"
                    ]
                  },
                  "ignoredFilterKeys": [],
                  "createdAt": "2026-11-14T10:05:00.000Z"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "get": {
        "operationId": "getSavedSearches",
        "tags": [
          "Saved searches"
        ],
        "summary": "List saved searches",
        "description": "The organization's saved searches, people and company alike, or one kind with `type`.\n\nFree. **Scope:** search. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Only saved searches of this kind.",
            "schema": {
              "type": "string",
              "enum": [
                "people",
                "company"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The organization's saved searches.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "savedSearches"
                  ],
                  "properties": {
                    "savedSearches": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "title",
                          "type",
                          "filters",
                          "createdAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "people",
                              "company"
                            ],
                            "description": "The kind of search the filters are for."
                          },
                          "filters": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "ignoredFilterKeys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Stored filters the search no longer takes, which are left out when it runs."
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "description": "Absent until it is first changed."
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "savedSearches": [
                    {
                      "id": "6a1f0c2b9d4e8a7f3c5b2e15",
                      "title": "Portugal freight ops",
                      "type": "people",
                      "filters": {
                        "job_title_levels": [
                          "director"
                        ],
                        "job_title_role": [
                          "operations"
                        ]
                      },
                      "ignoredFilterKeys": [],
                      "createdAt": "2026-11-14T10:05:00.000Z"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/saved-searches/{savedSearchId}": {
      "get": {
        "operationId": "getSavedSearchesSavedSearchId",
        "tags": [
          "Saved searches"
        ],
        "summary": "Get a saved search",
        "description": "One saved search. Another organization's, or one that was deleted, answers `404`.\n\nFree. **Scope:** search. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "savedSearchId",
            "in": "path",
            "required": true,
            "description": "The saved search's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The saved search.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "title",
                    "type",
                    "filters",
                    "createdAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "people",
                        "company"
                      ],
                      "description": "The kind of search the filters are for."
                    },
                    "filters": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "ignoredFilterKeys": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Stored filters the search no longer takes, which are left out when it runs."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Absent until it is first changed."
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e15",
                  "title": "Portugal freight ops",
                  "type": "people",
                  "filters": {
                    "job_title_levels": [
                      "director"
                    ],
                    "job_title_role": [
                      "operations"
                    ]
                  },
                  "ignoredFilterKeys": [],
                  "createdAt": "2026-11-14T10:05:00.000Z"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "patch": {
        "operationId": "patchSavedSearchesSavedSearchId",
        "tags": [
          "Saved searches"
        ],
        "summary": "Update a saved search",
        "description": "Renames a saved search, replaces its filters, or both. Its kind cannot change.\n\nFree. **Scope:** search, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "savedSearchId",
            "in": "path",
            "required": true,
            "description": "The saved search's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "description": "A new title.",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "filters": {
                    "type": "object",
                    "description": "New filters, replacing the old ones, in the saved search's own kind.",
                    "maxProperties": 100,
                    "additionalProperties": {}
                  }
                }
              },
              "example": {
                "title": "Portugal freight ops, directors"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The saved search.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "title",
                    "type",
                    "filters",
                    "createdAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "people",
                        "company"
                      ],
                      "description": "The kind of search the filters are for."
                    },
                    "filters": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "ignoredFilterKeys": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Stored filters the search no longer takes, which are left out when it runs."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Absent until it is first changed."
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e15",
                  "title": "Portugal freight ops",
                  "type": "people",
                  "filters": {
                    "job_title_levels": [
                      "director"
                    ],
                    "job_title_role": [
                      "operations"
                    ]
                  },
                  "ignoredFilterKeys": [],
                  "createdAt": "2026-11-14T10:05:00.000Z"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "delete": {
        "operationId": "deleteSavedSearchesSavedSearchId",
        "tags": [
          "Saved searches"
        ],
        "summary": "Delete a saved search",
        "description": "Deletes a saved search.\n\nFree. **Scope:** search, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "savedSearchId",
            "in": "path",
            "required": true,
            "description": "The saved search's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The saved search is deleted.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/saved-searches/{savedSearchId}/run": {
      "post": {
        "operationId": "postSavedSearchesSavedSearchIdRun",
        "tags": [
          "Saved searches"
        ],
        "summary": "Run a saved search",
        "description": "Runs a saved people search and returns one page of people, as `POST /v1/people/search` does with `savedSearchId`. The stored filters are the search: the body only pages it (`limit`, `cursor`) or narrows it to one person (`linkedinUrl`). Stored filters the search no longer takes are left out and listed in `ignoredFilterKeys`.\n\nA saved company search answers `422` `saved_search_type_mismatch`: run it with `POST /v1/companies/search` and `savedSearchId`.\n\n**Price:** \\$0.001 per person returned. Before the search runs, `limit` times \\$0.001 is held from your balance, and what the page does not use is released. A page with nothing on it costs nothing. **Scope:** search. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "savedSearchId",
            "in": "path",
            "required": true,
            "description": "The saved search's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "limit": {
                    "type": "integer",
                    "description": "People per page. The page's most possible cost, `limit` times \\$0.001, is held from your balance first.",
                    "default": 10,
                    "minimum": 1,
                    "maximum": 100
                  },
                  "cursor": {
                    "type": "string",
                    "description": "The `pagination.nextCursor` of the page before. Send it with the same search, as the `filters` the first page answered with.",
                    "minLength": 1,
                    "maxLength": 65536
                  },
                  "linkedinUrl": {
                    "type": "string",
                    "description": "Narrow the saved search to one person, by LinkedIn profile URL.",
                    "minLength": 1,
                    "maxLength": 2048
                  }
                }
              },
              "example": {
                "limit": 10
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "One page of people.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination",
                    "filters"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "description": "A person as LinkedIn and the data providers describe them. Never an email address or a phone number.",
                        "required": [
                          "linkedinMemberId",
                          "linkedin_url",
                          "full_name"
                        ],
                        "additionalProperties": true,
                        "properties": {
                          "linkedinMemberId": {
                            "type": "string",
                            "description": "The person's LinkedIn member id."
                          },
                          "linkedin_url": {
                            "type": "string",
                            "description": "`linkedin.com/in/<slug>` in lower case: the person's key across searches."
                          },
                          "full_name": {
                            "type": "string"
                          },
                          "first_name": {
                            "type": "string"
                          },
                          "last_name": {
                            "type": "string"
                          },
                          "profile_picture_url": {
                            "type": "string",
                            "description": "A public https link to the profile picture. Absent when there is none."
                          },
                          "job_title": {
                            "type": "string",
                            "description": "The current job's title, as written on LinkedIn."
                          },
                          "job_title_levels": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Seniority worked out from the title, in the `job_title_levels` filter's values."
                          },
                          "job_title_role": {
                            "type": "string",
                            "description": "Department worked out from the title, in the `job_title_role` filter's values."
                          },
                          "job_title_sub_role": {
                            "type": "string",
                            "description": "Sub-department worked out from the title."
                          },
                          "industry": {
                            "type": "string",
                            "description": "The person's industry, in the `industry` filter's values."
                          },
                          "job_company_name": {
                            "type": "string"
                          },
                          "job_company_website": {
                            "type": "string",
                            "description": "The employer's bare domain."
                          },
                          "job_company_linkedin_url": {
                            "type": "string",
                            "description": "The employer's LinkedIn page, as `linkedin.com/company/<slug>`."
                          },
                          "job_company_industry": {
                            "type": "string"
                          },
                          "job_company_employee_count": {
                            "type": "integer",
                            "description": "The employer's headcount: the low end of the estimate."
                          },
                          "job_end_date": {
                            "type": "string",
                            "description": "Only for a person with no current job: the job fields then describe the last job, which ended on this date (`YYYY-MM-DD`)."
                          },
                          "is_open_to_work": {
                            "type": "boolean",
                            "description": "Whether the person shows on LinkedIn that they are open to work. Absent when not known."
                          },
                          "location_name": {
                            "type": "string",
                            "description": "Lower-case `city, state, country`; missing parts are dropped from the front."
                          },
                          "summary": {
                            "type": "string"
                          },
                          "experience": {
                            "type": "array",
                            "description": "Job history, current jobs included.",
                            "items": {
                              "type": "object",
                              "properties": {
                                "company": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string"
                                    },
                                    "website": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "title": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "start_date": {
                                  "type": "string",
                                  "description": "`YYYY-MM-DD`."
                                },
                                "end_date": {
                                  "type": "string",
                                  "description": "`YYYY-MM-DD`. Absent on a current job."
                                },
                                "summary": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "pagination": {
                      "type": "object",
                      "properties": {
                        "nextCursor": {
                          "type": "string",
                          "description": "Send as `cursor`, with the same search, for the next page. Absent on the last page. A page can hold fewer people than `limit`, so only a missing cursor marks the end."
                        },
                        "total": {
                          "type": "integer",
                          "description": "An estimate of everyone matching, on the first page of a search on people filters only. Absent on later pages and when the filters name employers' size, industry, location or funding."
                        }
                      }
                    },
                    "filters": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "The filters the search ran with. Send them with `cursor` for the next page, or save them as a saved search."
                    },
                    "unresolvedCriteria": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "With `query`: the parts of it that could not be turned into a filter."
                    },
                    "closestCompanyMatches": {
                      "type": "array",
                      "description": "With `query`: each company it named that the search chose between same-named companies for, and the one chosen.",
                      "items": {
                        "type": "object",
                        "required": [
                          "requestedName",
                          "name"
                        ],
                        "properties": {
                          "requestedName": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "domain": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "ignoredFilterKeys": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "With a saved search: stored filters the search no longer takes, left out."
                    },
                    "unappliedCompanyNames": {
                      "type": "array",
                      "description": "Company names in the filters the search could not apply yet, by filter.",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "linkedinMemberId": "ACoAAB2cdEF",
                      "linkedin_url": "linkedin.com/in/ana-ruiz-ops",
                      "full_name": "Ana Ruiz",
                      "first_name": "Ana",
                      "last_name": "Ruiz",
                      "job_title": "Director of Operations",
                      "job_title_levels": [
                        "director"
                      ],
                      "job_title_role": "operations",
                      "job_company_name": "Halden Freight",
                      "job_company_website": "haldenfreight.com",
                      "job_company_linkedin_url": "linkedin.com/company/halden-freight",
                      "job_company_employee_count": 240,
                      "location_name": "lisbon, lisbon, portugal"
                    }
                  ],
                  "pagination": {
                    "nextCursor": "c2Nyb2xsXzI",
                    "total": 1246
                  },
                  "filters": {
                    "job_title_levels": [
                      "director"
                    ],
                    "job_title_role": [
                      "operations"
                    ],
                    "job_company_location_country": [
                      "portugal"
                    ]
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/lists": {
      "post": {
        "operationId": "postLists",
        "tags": [
          "Lists"
        ],
        "summary": "Create a list",
        "description": "Creates an empty list of people (the default) or of companies. A name another list of the organization has answers `409` `list_name_taken`.\n\nAdd people to a people list with `POST /v1/lists/{listId}/rows` or `POST /v1/lists/{listId}/people`, and companies to a company list with `POST /v1/lists/{listId}/companies`.\n\nFree. **Scope:** lists, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The list's name. A name another list of the organization has is refused.",
                    "minLength": 1,
                    "maxLength": 255,
                    "example": "Portugal freight ops"
                  },
                  "type": {
                    "type": "string",
                    "description": "What the list's rows are: people (the default) or companies. It cannot change later.",
                    "enum": [
                      "people",
                      "company"
                    ],
                    "default": "people"
                  }
                },
                "required": [
                  "name"
                ]
              },
              "example": {
                "name": "Portugal freight ops"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new list, empty.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "type",
                    "rowCount"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "people",
                        "company"
                      ],
                      "description": "What the rows are: `people` or `company`."
                    },
                    "rowCount": {
                      "type": "integer",
                      "description": "The people or companies the list holds."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "folderId": {
                      "type": "string",
                      "description": "The folder the list is in. Absent for a list in no folder."
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e20",
                  "name": "Portugal freight ops",
                  "type": "people",
                  "rowCount": 0,
                  "createdAt": "2026-11-14T10:05:00.000Z"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "get": {
        "operationId": "getLists",
        "tags": [
          "Lists"
        ],
        "summary": "List lists",
        "description": "The organization's lists, newest first: all of them, those of one kind with `type`, those in one folder with `folderId`, or those whose name contains `search`.\n\nFor the next page, send the page's `pagination.nextCursor` as `cursor`. Later pages keep the first page's `pageSize`; only a missing `nextCursor` marks the end. Send the same `type`, `folderId` and `search` with it.\n\nFree. **Scope:** lists. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Only lists of this kind.",
            "schema": {
              "type": "string",
              "enum": [
                "people",
                "company"
              ]
            }
          },
          {
            "name": "folderId",
            "in": "query",
            "required": false,
            "description": "Only the lists in this folder.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "description": "Only lists whose name contains this text, in any case.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "description": "Lists per page.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The `pagination.nextCursor` of the page before. Later pages keep the first page's size.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of the organization's lists, newest first.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "name",
                          "type",
                          "rowCount"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "people",
                              "company"
                            ],
                            "description": "What the rows are: `people` or `company`."
                          },
                          "rowCount": {
                            "type": "integer",
                            "description": "The people or companies the list holds."
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "folderId": {
                            "type": "string",
                            "description": "The folder the list is in. Absent for a list in no folder."
                          }
                        }
                      }
                    },
                    "pagination": {
                      "type": "object",
                      "required": [
                        "pageSize",
                        "total"
                      ],
                      "properties": {
                        "pageSize": {
                          "type": "integer"
                        },
                        "nextCursor": {
                          "type": "string",
                          "description": "Send as `cursor` for the next page. Absent on the last page."
                        },
                        "total": {
                          "type": "integer",
                          "description": "Everything that matches, across every page."
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "id": "6a1f0c2b9d4e8a7f3c5b2e20",
                      "name": "Portugal freight ops",
                      "type": "people",
                      "rowCount": 42,
                      "createdAt": "2026-11-14T10:05:00.000Z",
                      "folderId": "6a1f0c2b9d4e8a7f3c5b2e21"
                    }
                  ],
                  "pagination": {
                    "pageSize": 50,
                    "nextCursor": "Mjo1MA",
                    "total": 63
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/lists/{listId}": {
      "get": {
        "operationId": "getListsListId",
        "tags": [
          "Lists"
        ],
        "summary": "Get a list",
        "description": "One list: its kind, its folder, how many rows it holds, whether rows are still being added (`status`), how many of its people have each kind of contact data (`metrics`), and its own `columns`. Another organization's list, or one that was deleted, answers `404`.\n\nFree. **Scope:** lists. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "listId",
            "in": "path",
            "required": true,
            "description": "The list's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The list, with its own columns.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "type",
                    "rowCount",
                    "columns"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "people",
                        "company"
                      ],
                      "description": "What the rows are: `people` or `company`."
                    },
                    "folderId": {
                      "type": "string",
                      "description": "The folder the list is in. Absent for a list in no folder."
                    },
                    "status": {
                      "type": "string",
                      "description": "`processing` while rows are still being added to the list, then `complete`. Absent when not known."
                    },
                    "rowCount": {
                      "type": "integer",
                      "description": "The people or companies the list holds."
                    },
                    "metrics": {
                      "type": "object",
                      "description": "For a people list: how many of its people have each kind of contact data. Absent for a company list.",
                      "properties": {
                        "totalEnriched": {
                          "type": "integer",
                          "description": "People whose contact data was looked up."
                        },
                        "totalWithLinkedin": {
                          "type": "integer",
                          "description": "People with a LinkedIn profile."
                        },
                        "totalWithProfessionalEmail": {
                          "type": "integer",
                          "description": "People with a work email address."
                        },
                        "totalWithPersonalEmail": {
                          "type": "integer",
                          "description": "People with a personal email address."
                        },
                        "totalWithValidPhone": {
                          "type": "integer",
                          "description": "People with a valid phone number."
                        }
                      }
                    },
                    "columns": {
                      "type": "array",
                      "description": "The list's own columns. A row carries their values in `columnValues`, by column id.",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "name",
                          "type"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string",
                            "description": "What the column holds, such as `string`, `number` or `date`."
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e20",
                  "name": "Portugal freight ops",
                  "type": "people",
                  "folderId": "6a1f0c2b9d4e8a7f3c5b2e21",
                  "status": "complete",
                  "rowCount": 42,
                  "metrics": {
                    "totalEnriched": 30,
                    "totalWithLinkedin": 42,
                    "totalWithProfessionalEmail": 25,
                    "totalWithPersonalEmail": 4,
                    "totalWithValidPhone": 11
                  },
                  "columns": [
                    {
                      "id": "6a1f0c2b9d4e8a7f3c5b2e24",
                      "name": "Fit notes",
                      "type": "string"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "patch": {
        "operationId": "patchListsListId",
        "tags": [
          "Lists"
        ],
        "summary": "Update a list",
        "description": "Renames a list, moves it into a folder, or both. Name the folder by id (`folderId`, or null to take the list out of every folder) or by name (`folderName`, which creates the folder when there is none). A folder holds one kind of list: a folder for the other kind answers `404` `folder_not_found`.\n\nAnswers the list's id and what changed.\n\nFree. **Scope:** lists, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "listId",
            "in": "path",
            "required": true,
            "description": "The list's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "A new name.",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "folderId": {
                    "type": "string",
                    "description": "Move the list into this folder, one for the list's own kind, or out of every folder with null.",
                    "minLength": 24,
                    "maxLength": 24,
                    "pattern": "^[0-9a-fA-F]+$"
                  },
                  "folderName": {
                    "type": "string",
                    "description": "Move the list into the folder of this name, in any case, which is created when the list's kind has none. Send this or `folderId`, not both.",
                    "minLength": 1,
                    "maxLength": 120
                  }
                }
              },
              "example": {
                "name": "Portugal freight ops, directors",
                "folderName": "Iberia"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "What changed: the list's new name, its new folder, or both.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string",
                      "description": "The new name, when it changed."
                    },
                    "folderId": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The folder the list moved to, when it moved: null when it moved out of every folder."
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e20",
                  "folderId": "6a1f0c2b9d4e8a7f3c5b2e21"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "delete": {
        "operationId": "deleteListsListId",
        "tags": [
          "Lists"
        ],
        "summary": "Delete a list",
        "description": "Deletes a list and its own columns. Its people stay in the workspace and in every other list they are in. Deleting it again answers `404` `list_not_found`.\n\nFree. **Scope:** lists, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "listId",
            "in": "path",
            "required": true,
            "description": "The list's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The list is deleted.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/lists/{listId}/rows": {
      "get": {
        "operationId": "getListsListIdRows",
        "tags": [
          "Lists"
        ],
        "summary": "List a list's rows",
        "description": "One page of a list's rows: people in a people list, companies in a company list, as `type` says. A row's `columnValues` holds the values of the list's own columns, by column id.\n\nFor the next page, send the page's `pagination.nextCursor` as `cursor`. Later pages keep the first page's `pageSize`; only a missing `nextCursor` marks the end. Send the same `filters` and sort with it.\n\n`filters` narrows the rows: a JSON object in which a row must match every key, and any of a key's values. Text keys take an array of values or `{\"include\": [...], \"exclude\": [...]}`: `name`, `title`, `dept`, `level`, `industryName`, `country`, `state`, `personalLocation`, `companyName`, `companyIndustry`, `companyHeadQuartersCountry`, `companyLocation`, `website`, `campaignEngagement` and `otherLists` (the names of other lists). `numberOfEmployees` takes ranges written as strings, such as `\"51-200\"` or `\"10001+\"`, and `revenue` a range in US dollars, `{\"rangeMin\": 1000000, \"rangeMax\": 50000000}`, with either end left out for an open one. `keywords` (a job title, with `*` and `?` as wildcards) and `linkedinUrl` take one string.\n\n`enrichedEmail` (`enriched`, `not_enriched`, `no_emails_found`), `enrichedPhone` (`enriched`, `not_enriched`) and `emailValidity` (`valid`, `invalid`, `catch-all`, `unknown`, `do_not_mail`, `personal`, `unverified`) take `{\"include\": [...]}` or `{\"exclude\": [...]}`. `icpMatch` takes `[\"yes\"]` or `[\"no\"]`. `customColumns` maps a column id to `{\"dataType\": \"string\", \"include\": [...]}`, `{\"dataType\": \"boolean\", \"value\": true}` or `{\"dataType\": \"number\", \"rangeMin\": 1, \"rangeMax\": 10}`. Company lists take `companyName`, `companyIndustry`, `companyHeadQuartersCountry`, `companyLocation` (the company's city, state or country), `website`, `numberOfEmployees`, `revenue`, `campaignEngagement` and `customColumns`.\n\nValues for `level`, `dept`, `industryName` and `country` are the people search's own, from `GET /v1/people/filters`, and `website` is a bare domain. With `exclude`, `companyLocation` also leaves out every company with no stored location, and on a people list everyone whose company has none. A key the list kind does not take, or a value of the wrong shape, answers `422` `invalid_row_filters`; a value no row has matches nothing.\n\nFree. **Scope:** lists. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "listId",
            "in": "path",
            "required": true,
            "description": "The list's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "description": "Rows per page.",
            "schema": {
              "type": "integer",
              "default": 100,
              "minimum": 1,
              "maximum": 1000
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The `pagination.nextCursor` of the page before. Later pages keep the first page's size.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "required": false,
            "description": "The field to sort by. People lists: `firstName`, `lastName`, `jobTitle`, `createdAt`, `address.city`, `address.country`, a company field such as `company.name` or `company.linkedInHeadCount`, or `customColumns_<columnId>`. Company lists: `name`, `domain`, `industry`, `revenue` (in US dollars, companies without a figure last), `linkedInHeadCount` or `customColumns_<columnId>`. A field it does not know keeps the list's own order.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "sortOrder",
            "in": "query",
            "required": false,
            "description": "The order `sortBy` sorts in.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ],
              "default": "asc"
            }
          },
          {
            "name": "filters",
            "in": "query",
            "required": false,
            "description": "Only the rows that match: a JSON object of row filters, at most 8,000 characters, in the keys this route describes.",
            "schema": {
              "type": "string",
              "maxLength": 8000
            },
            "example": "{\"companyName\":[\"northwind\"],\"enrichedEmail\":{\"include\":[\"enriched\"]}}"
          }
        ],
        "responses": {
          "200": {
            "description": "One page of the list's rows.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "type",
                    "data",
                    "pagination"
                  ],
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "people",
                        "company"
                      ],
                      "description": "What the rows are: `people` or `company`."
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "description": "A person in a people list, a company in a company list. A field without a value is absent.",
                        "required": [
                          "id"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "The row's id. In a people list, the person's id, as `personIds` takes it."
                          },
                          "firstName": {
                            "type": "string",
                            "description": "People rows."
                          },
                          "lastName": {
                            "type": "string",
                            "description": "People rows."
                          },
                          "linkedinUrl": {
                            "type": "string",
                            "description": "People rows: the LinkedIn profile, as a full https URL."
                          },
                          "profilePictureUrl": {
                            "type": "string",
                            "description": "People rows: a public https link to the profile picture."
                          },
                          "jobTitle": {
                            "type": "string",
                            "description": "People rows."
                          },
                          "companyName": {
                            "type": "string",
                            "description": "People rows: the employer's name."
                          },
                          "companyDomain": {
                            "type": "string",
                            "description": "People rows: the employer's domain."
                          },
                          "emails": {
                            "type": "array",
                            "description": "People rows: every email address found, with what checking it showed.",
                            "items": {
                              "type": "object",
                              "required": [
                                "email",
                                "isPersonal"
                              ],
                              "properties": {
                                "email": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "valid",
                                    "invalid",
                                    "catch-all",
                                    "unknown",
                                    "do_not_mail",
                                    "unverified"
                                  ]
                                },
                                "isPersonal": {
                                  "type": "boolean",
                                  "description": "A personal address rather than a work one."
                                }
                              }
                            }
                          },
                          "phones": {
                            "type": "array",
                            "description": "People rows: every phone number found.",
                            "items": {
                              "type": "object",
                              "required": [
                                "phoneNumber"
                              ],
                              "properties": {
                                "phoneNumber": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "valid",
                                    "hq",
                                    "unverified"
                                  ],
                                  "description": "`hq` is the company's main line."
                                }
                              }
                            }
                          },
                          "primaryEmail": {
                            "type": "string",
                            "description": "People rows: the address to write to."
                          },
                          "primaryPhone": {
                            "type": "string",
                            "description": "People rows: the number to call."
                          },
                          "icpMatch": {
                            "type": "boolean",
                            "description": "People rows: whether the person fits the organization's ideal customer profile."
                          },
                          "lists": {
                            "type": "array",
                            "description": "People rows: the other lists the person is in.",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "name": {
                            "type": "string",
                            "description": "Company rows."
                          },
                          "domain": {
                            "type": "string",
                            "description": "Company rows."
                          },
                          "industry": {
                            "type": "string",
                            "description": "Company rows."
                          },
                          "employeeCount": {
                            "type": "integer",
                            "description": "Company rows: the headcount on LinkedIn."
                          },
                          "revenue": {
                            "type": "number",
                            "description": "Company rows: revenue in US dollars."
                          },
                          "headquartersCountry": {
                            "type": "string",
                            "description": "Company rows."
                          },
                          "engagement": {
                            "type": "string",
                            "description": "How the row's person or company engaged with campaigns."
                          },
                          "source": {
                            "type": "string",
                            "description": "How the row came into the workspace, such as `csv_upload`."
                          },
                          "location": {
                            "type": "object",
                            "properties": {
                              "city": {
                                "type": "string"
                              },
                              "state": {
                                "type": "string"
                              },
                              "country": {
                                "type": "string"
                              }
                            }
                          },
                          "columnValues": {
                            "type": "object",
                            "additionalProperties": true,
                            "description": "The values of the list's own columns, by column id. `GET /v1/lists/{listId}` names the columns."
                          }
                        }
                      }
                    },
                    "pagination": {
                      "type": "object",
                      "required": [
                        "pageSize",
                        "total"
                      ],
                      "properties": {
                        "pageSize": {
                          "type": "integer"
                        },
                        "nextCursor": {
                          "type": "string",
                          "description": "Send as `cursor` for the next page. Absent on the last page."
                        },
                        "total": {
                          "type": "integer",
                          "description": "Everything that matches, across every page."
                        }
                      }
                    }
                  }
                },
                "example": {
                  "type": "people",
                  "data": [
                    {
                      "id": "6a1f0c2b9d4e8a7f3c5b2e22",
                      "firstName": "Ana",
                      "lastName": "Costa",
                      "linkedinUrl": "https://www.linkedin.com/in/ana-costa",
                      "jobTitle": "Head of Operations",
                      "companyName": "Northwind Freight",
                      "companyDomain": "northwind.example",
                      "emails": [
                        {
                          "email": "ana.costa@example.com",
                          "status": "valid",
                          "isPersonal": false
                        }
                      ],
                      "phones": [],
                      "primaryEmail": "ana.costa@example.com",
                      "lists": [
                        {
                          "id": "6a1f0c2b9d4e8a7f3c5b2e20",
                          "name": "Portugal freight ops"
                        }
                      ],
                      "source": "csv_upload",
                      "location": {
                        "city": "lisbon",
                        "country": "portugal"
                      },
                      "columnValues": {
                        "6a1f0c2b9d4e8a7f3c5b2e24": "Runs a 40-truck fleet"
                      }
                    }
                  ],
                  "pagination": {
                    "pageSize": 100,
                    "nextCursor": "MjoxMDA",
                    "total": 242
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "post": {
        "operationId": "postListsListIdRows",
        "tags": [
          "Lists"
        ],
        "summary": "Add rows to a list",
        "description": "Adds up to 500 people to a people list from what you know about them, each with at least one of `email`, `linkedinUrl`, `firstName` and `lastName`. Nothing is looked up: an email address is kept as sent, unchecked.\n\nEach row becomes a new person, even one already in the workspace: a row sent twice is added twice, and so is every row of a call sent again. A company list answers `422` `people_list_required`.\n\nFree. **Scope:** lists, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "listId",
            "in": "path",
            "required": true,
            "description": "The list's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "rows": {
                    "type": "array",
                    "description": "The people to add, at most 500. Each row becomes a new person, even one already in the workspace.",
                    "minItems": 1,
                    "maxItems": 500,
                    "items": {
                      "type": "object",
                      "description": "One person: at least one of `email`, `linkedinUrl`, `firstName` and `lastName`.",
                      "properties": {
                        "firstName": {
                          "type": "string",
                          "maxLength": 200
                        },
                        "lastName": {
                          "type": "string",
                          "maxLength": 200
                        },
                        "email": {
                          "type": "string",
                          "description": "Kept as the person's address to write to. It is not checked.",
                          "maxLength": 320
                        },
                        "phone": {
                          "type": "string",
                          "description": "In any dialable form. Without a leading `+` and country code, it is read as a US number.",
                          "maxLength": 50
                        },
                        "linkedinUrl": {
                          "type": "string",
                          "description": "The LinkedIn profile. A link that is not to LinkedIn is dropped.",
                          "maxLength": 500
                        },
                        "jobTitle": {
                          "type": "string",
                          "maxLength": 300
                        },
                        "companyName": {
                          "type": "string",
                          "description": "The employer, matched to a company already in the workspace when there is one.",
                          "maxLength": 300
                        },
                        "companyDomain": {
                          "type": "string",
                          "description": "The employer's domain, such as `northwind.example`.",
                          "maxLength": 300
                        }
                      }
                    },
                    "example": [
                      {
                        "firstName": "Ana",
                        "lastName": "Costa",
                        "email": "ana.costa@example.com",
                        "companyName": "Northwind Freight"
                      },
                      {
                        "linkedinUrl": "https://www.linkedin.com/in/rui-almeida",
                        "jobTitle": "Fleet Manager"
                      }
                    ]
                  }
                },
                "required": [
                  "rows"
                ]
              },
              "example": {
                "rows": [
                  {
                    "firstName": "Ana",
                    "lastName": "Costa",
                    "email": "ana.costa@example.com",
                    "companyName": "Northwind Freight"
                  },
                  {
                    "linkedinUrl": "https://www.linkedin.com/in/rui-almeida",
                    "jobTitle": "Fleet Manager"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The people added, one for each row sent.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "addedCount",
                    "personIds"
                  ],
                  "properties": {
                    "addedCount": {
                      "type": "integer"
                    },
                    "personIds": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "The new people's ids."
                    }
                  }
                },
                "example": {
                  "addedCount": 2,
                  "personIds": [
                    "6a1f0c2b9d4e8a7f3c5b2e22",
                    "6a1f0c2b9d4e8a7f3c5b2e23"
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/lists/{listId}/people": {
      "post": {
        "operationId": "postListsListIdPeople",
        "tags": [
          "Lists"
        ],
        "summary": "Add people to a list",
        "description": "Adds people already in the workspace to a list, by id: the `id` of their row in another list, or the `personIds` an upload answered with. Up to 5,000 a call. People already in the list are skipped, so sending a call again adds nobody twice.\n\nFree. **Scope:** lists, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "listId",
            "in": "path",
            "required": true,
            "description": "The list's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "personIds": {
                    "type": "array",
                    "description": "People's ids, at most 5,000: the `id` of their rows in another list, or the `personIds` an upload answered with.",
                    "minItems": 1,
                    "maxItems": 5000,
                    "items": {
                      "type": "string",
                      "minLength": 24,
                      "maxLength": 24,
                      "pattern": "^[0-9a-fA-F]+$"
                    },
                    "example": [
                      "6a1f0c2b9d4e8a7f3c5b2e22",
                      "6a1f0c2b9d4e8a7f3c5b2e23"
                    ]
                  }
                },
                "required": [
                  "personIds"
                ]
              },
              "example": {
                "personIds": [
                  "6a1f0c2b9d4e8a7f3c5b2e22",
                  "6a1f0c2b9d4e8a7f3c5b2e23"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "How many people were sent, and how many of them were not in the list before.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "submittedCount",
                    "addedCount"
                  ],
                  "properties": {
                    "submittedCount": {
                      "type": "integer"
                    },
                    "addedCount": {
                      "type": "integer",
                      "description": "People new to the list. Those already in it are skipped."
                    }
                  }
                },
                "example": {
                  "submittedCount": 2,
                  "addedCount": 1
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "delete": {
        "operationId": "deleteListsListIdPeople",
        "tags": [
          "Lists"
        ],
        "summary": "Remove people from a list",
        "description": "Takes people out of a list, by id, up to 5,000 a call. They stay in the workspace and in their other lists. An id that is not in the list is skipped.\n\nFree. **Scope:** lists, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "listId",
            "in": "path",
            "required": true,
            "description": "The list's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "personIds": {
                    "type": "array",
                    "description": "People's ids, at most 5,000: the `id` of their rows in another list, or the `personIds` an upload answered with.",
                    "minItems": 1,
                    "maxItems": 5000,
                    "items": {
                      "type": "string",
                      "minLength": 24,
                      "maxLength": 24,
                      "pattern": "^[0-9a-fA-F]+$"
                    },
                    "example": [
                      "6a1f0c2b9d4e8a7f3c5b2e22",
                      "6a1f0c2b9d4e8a7f3c5b2e23"
                    ]
                  }
                },
                "required": [
                  "personIds"
                ]
              },
              "example": {
                "personIds": [
                  "6a1f0c2b9d4e8a7f3c5b2e22"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "How many people were sent.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "submittedCount"
                  ],
                  "properties": {
                    "submittedCount": {
                      "type": "integer"
                    }
                  }
                },
                "example": {
                  "submittedCount": 2
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/lists/{listId}/companies": {
      "post": {
        "operationId": "postListsListIdCompanies",
        "tags": [
          "Lists"
        ],
        "summary": "Add companies to a list",
        "description": "Adds up to 100 companies to a company list, each a company that `POST /v1/companies/search` returned in the last 24 hours, sent back as it came. Only a company's `preferred_name`, `domains` and `linkedin_primary_slug` are read, so a call may send just those: 100 companies then fit the 100 KB a request body may hold.\n\nA company already on the list stays on it once, so sending a call again adds nothing twice. A company no search of the last 24 hours returned is skipped and listed in `skipped`; when none was returned, the call answers `422` `companies_not_from_search`. A people list answers `422` `company_list_required`.\n\nThe search charged for the companies, so adding them costs nothing more. These calls share the company search's rate limit.\n\nFree. **Scope:** lists, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "listId",
            "in": "path",
            "required": true,
            "description": "The list's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "companies": {
                    "type": "array",
                    "description": "The companies to add, at most 100, each returned by a company search of the last 24 hours.",
                    "minItems": 1,
                    "maxItems": 100,
                    "items": {
                      "type": "object",
                      "description": "One company, as a company search returned it in `data`, with a `preferred_name` or `domains`. Only `preferred_name`, `domains` and `linkedin_primary_slug` are read, so sending just those is enough.",
                      "properties": {
                        "preferred_name": {
                          "type": "string"
                        },
                        "domains": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "linkedin_primary_slug": {
                          "type": "string"
                        }
                      }
                    },
                    "example": [
                      {
                        "preferred_name": "Northwind Freight",
                        "domains": [
                          "northwind.example"
                        ],
                        "linkedin_primary_slug": "northwind-freight"
                      },
                      {
                        "preferred_name": "Tejo Logistics",
                        "domains": [
                          "tejo-logistics.example"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "companies"
                ]
              },
              "example": {
                "companies": [
                  {
                    "preferred_name": "Northwind Freight",
                    "domains": [
                      "northwind.example"
                    ],
                    "linkedin_primary_slug": "northwind-freight"
                  },
                  {
                    "preferred_name": "Tejo Logistics",
                    "domains": [
                      "tejo-logistics.example"
                    ]
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The companies now on the list, and the companies sent that were not added.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "companyIds",
                    "skipped"
                  ],
                  "properties": {
                    "companyIds": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "The ids of the companies the call put on the list: the `id` of their rows."
                    },
                    "skipped": {
                      "type": "array",
                      "description": "The companies sent that were not added, by their place in `companies`, counting from 0.",
                      "items": {
                        "type": "object",
                        "required": [
                          "index",
                          "reason"
                        ],
                        "properties": {
                          "index": {
                            "type": "integer"
                          },
                          "reason": {
                            "type": "string",
                            "enum": [
                              "not_from_search"
                            ],
                            "description": "`not_from_search`: no company search of the last 24 hours returned it."
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "companyIds": [
                    "6a1f0c2b9d4e8a7f3c5b2e30",
                    "6a1f0c2b9d4e8a7f3c5b2e31"
                  ],
                  "skipped": [
                    {
                      "index": 2,
                      "reason": "not_from_search"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/lists/{listId}/company-list": {
      "post": {
        "operationId": "postListsListIdCompanyList",
        "tags": [
          "Lists"
        ],
        "summary": "Make a company list from a people list",
        "description": "Makes a new company list, named `name`, of the companies the people on a people list work at. It answers `202` at once and fills the list in the background: read it with `GET /v1/lists/{listId}` until its `status` is `complete`. The people list is not changed.\n\nA company list answers `422` `people_list_required`, a people list with nobody on it `422` `list_empty`, and one still being filled `409` `list_processing`. A name another list of the organization has answers `409` `list_name_taken`.\n\nFree. **Scope:** lists, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "listId",
            "in": "path",
            "required": true,
            "description": "The list's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The new company list's name. A name another list of the organization has is refused.",
                    "minLength": 1,
                    "maxLength": 255,
                    "example": "Portugal freight ops, companies"
                  }
                },
                "required": [
                  "name"
                ]
              },
              "example": {
                "name": "Portugal freight ops, companies"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The new company list, being filled.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "type"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "people",
                        "company"
                      ],
                      "description": "What the rows are: `people` or `company`."
                    },
                    "peopleCount": {
                      "type": "integer",
                      "description": "The people of the people list read for their companies."
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e25",
                  "name": "Portugal freight ops, companies",
                  "type": "company",
                  "peopleCount": 242
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/folders": {
      "get": {
        "operationId": "getFolders",
        "tags": [
          "Folders"
        ],
        "summary": "List folders",
        "description": "The organization's folders for people lists, or with `type=company`, for company lists. Every folder of the kind is listed at once.\n\nFree. **Scope:** lists. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "The kind of list the folders hold: people (the default) or company.",
            "schema": {
              "type": "string",
              "enum": [
                "people",
                "company"
              ],
              "default": "people"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The organization's folders for one kind of list.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "folders"
                  ],
                  "properties": {
                    "folders": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "name",
                          "type"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "people",
                              "company"
                            ],
                            "description": "The kind of list the folder holds."
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "folders": [
                    {
                      "id": "6a1f0c2b9d4e8a7f3c5b2e21",
                      "name": "Iberia",
                      "type": "people"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "post": {
        "operationId": "postFolders",
        "tags": [
          "Folders"
        ],
        "summary": "Create a folder",
        "description": "Creates a folder for people lists (the default) or for company lists. No two folders for one kind of list share a name: a name in use answers `409` `folder_name_taken`. Move a list into it with `PATCH /v1/lists/{listId}`.\n\nFree. **Scope:** lists, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The folder's name. No two folders for one kind of list share a name.",
                    "minLength": 1,
                    "maxLength": 120,
                    "example": "Iberia"
                  },
                  "type": {
                    "type": "string",
                    "description": "The kind of list the folder holds: people (the default) or company.",
                    "enum": [
                      "people",
                      "company"
                    ],
                    "default": "people"
                  }
                },
                "required": [
                  "name"
                ]
              },
              "example": {
                "name": "Iberia"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new folder.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "type"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "people",
                        "company"
                      ],
                      "description": "The kind of list the folder holds."
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e21",
                  "name": "Iberia",
                  "type": "people"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/folders/{folderId}": {
      "patch": {
        "operationId": "patchFoldersFolderId",
        "tags": [
          "Folders"
        ],
        "summary": "Rename a folder",
        "description": "Renames a folder. A name another folder for the same kind of list has answers `409` `folder_name_taken`.\n\nFree. **Scope:** lists, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "folderId",
            "in": "path",
            "required": true,
            "description": "The folder's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The new name.",
                    "minLength": 1,
                    "maxLength": 120,
                    "example": "Iberia and France"
                  }
                },
                "required": [
                  "name"
                ]
              },
              "example": {
                "name": "Iberia and France"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The folder, with its new name.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "name"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e21",
                  "name": "Iberia and France"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "delete": {
        "operationId": "deleteFoldersFolderId",
        "tags": [
          "Folders"
        ],
        "summary": "Delete a folder",
        "description": "Deletes a folder. Its lists are kept, out of every folder.\n\nFree. **Scope:** lists, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "folderId",
            "in": "path",
            "required": true,
            "description": "The folder's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The folder is deleted.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/people/enrich": {
      "post": {
        "operationId": "postPeopleEnrich",
        "tags": [
          "Enrichment"
        ],
        "summary": "Enrich a person",
        "description": "Finds a person's work email, phone number or both, and saves the person, with what was found, as a contact in your workspace. Name the person one way: by `personId` (the `id` of their row from `GET /v1/lists/{listId}/rows`, or the id an earlier enrich or upload answered), by `linkedinUrl`, or by a name (`firstName`, `lastName` or both, or `fullName`) with `companyName` or `companyDomain`.\n\n`find` says what to look for: `email` (the default), `phone` or `email_and_phone`. `providers` says where: `package` (the default) searches our own data package; `waterfall` searches the package, then a fixed series of further providers until one finds it. A waterfall search can take over a minute, so allow two minutes for the answer.\n\nThe answer lists the person's work email addresses whose check showed `valid` or `catch-all`, and every phone number they now have with what checking it showed (`hq` is the company's main line). Personal email addresses are left out and never charged. `found` holds what this call found that the person did not have, with who found it (`foundBy`): those values are what the call is charged for.\n\nA `personId` your organization does not have answers `404` `person_not_found`. While another call is enriching the same person, a call answers `409` `enrichment_in_progress` and costs nothing: try again once it finishes. A person with too little to search with answers `422` `person_not_identifiable`.\n\n**Price:** per value found, by who found it: an email \\$0.02 from the package or \\$0.05 from the waterfall, a phone number \\$0.05 from the package or \\$0.10 from the waterfall. With `providers` `package`, every value costs the package price. Values the person already had are free, and a call that finds nothing costs nothing. Before the search runs, the most it can cost for what `find` asks is held from your balance, and what it does not use is released. **Scope:** enrichment, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Names this operation, so a retry with the same key and body gets the first success again, marked `Idempotent-Replayed`, instead of running or charging twice. A mailbox's `password` is not compared: the same mailbox sent again with another password is the same call, and gets the first answer. Kept 24 hours for your organization and this route. A refusal (`4xx`) frees the key at once, so a corrected retry runs. After a server error (`5xx`), which may still take effect, the key stays held for 5 minutes from the call's start, and a retry in that time answers `409` `idempotency_in_progress`; after that, a send or import that may already have gone out answers `409` `idempotency_outcome_unknown` instead of running again. 1 to 255 visible ASCII characters, such as a UUID.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7E]+$"
            },
            "example": "5f1c9d2e-8a4b-4e7c-9f30-6b2a1d8e4c75"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "personId": {
                    "type": "string",
                    "description": "The person's id: the `id` of their row from `GET /v1/lists/{listId}/rows`, or the id an earlier enrich or upload answered. Send it on its own.",
                    "minLength": 24,
                    "maxLength": 24,
                    "pattern": "^[0-9a-fA-F]+$"
                  },
                  "linkedinUrl": {
                    "type": "string",
                    "description": "The person's LinkedIn profile URL. Send it on its own.",
                    "maxLength": 500,
                    "pattern": "^(https?:\\/\\/)?([\\w-]+\\.)?linkedin\\.com\\/in\\/[^\\s/?#]+",
                    "example": "https://www.linkedin.com/in/ana-costa"
                  },
                  "firstName": {
                    "type": "string",
                    "description": "The person's first name, with `companyName` or `companyDomain`.",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "lastName": {
                    "type": "string",
                    "description": "The person's last name, with `companyName` or `companyDomain`.",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "fullName": {
                    "type": "string",
                    "description": "The person's full name, in place of `firstName` and `lastName`, with `companyName` or `companyDomain`.",
                    "minLength": 1,
                    "maxLength": 400
                  },
                  "companyName": {
                    "type": "string",
                    "description": "The name of the company the person works at.",
                    "minLength": 1,
                    "maxLength": 300
                  },
                  "companyDomain": {
                    "type": "string",
                    "description": "The website domain of the company the person works at, such as `northwind.example`.",
                    "minLength": 1,
                    "maxLength": 300
                  },
                  "find": {
                    "type": "string",
                    "description": "What to find: a work `email` (the default), a `phone` number, or both (`email_and_phone`).",
                    "enum": [
                      "email",
                      "phone",
                      "email_and_phone"
                    ],
                    "default": "email"
                  },
                  "providers": {
                    "type": "string",
                    "description": "Where to look: `package` (the default) searches our own data package; `waterfall` searches the package, then a fixed series of further providers. A value's price depends on who found it.",
                    "enum": [
                      "package",
                      "waterfall"
                    ],
                    "default": "package"
                  }
                }
              },
              "example": {
                "linkedinUrl": "https://www.linkedin.com/in/ana-costa",
                "find": "email_and_phone",
                "providers": "waterfall"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The person's email addresses and phone numbers after the call, and what it found.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "emails",
                    "phones",
                    "found"
                  ],
                  "properties": {
                    "personId": {
                      "type": "string",
                      "description": "The person's id in your workspace, as list rows and `personIds` name it. Send it as `personId` to enrich them again. Absent when the person could not be saved."
                    },
                    "emails": {
                      "type": "array",
                      "description": "Every work email address the person has whose check showed it can receive mail: `valid`, or `catch-all` (the domain accepts mail for any address, so this one could not be confirmed). Personal addresses are left out.",
                      "items": {
                        "type": "object",
                        "required": [
                          "email",
                          "status"
                        ],
                        "properties": {
                          "email": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "valid",
                              "catch-all"
                            ]
                          },
                          "atCurrentCompany": {
                            "type": "boolean",
                            "description": "Whether the address is at a company the person works at now, by their job history. `false` can also be a second domain of their employer. Absent when no current company is known for them."
                          }
                        }
                      }
                    },
                    "phones": {
                      "type": "array",
                      "description": "Every phone number the person has, with what checking it showed.",
                      "items": {
                        "type": "object",
                        "required": [
                          "phoneNumber"
                        ],
                        "properties": {
                          "phoneNumber": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "valid",
                              "hq",
                              "unverified"
                            ],
                            "description": "`hq` is the company's main line."
                          }
                        }
                      }
                    },
                    "primaryEmail": {
                      "type": "string",
                      "description": "The address to write to. Absent when the person has no address in `emails`."
                    },
                    "primaryPhone": {
                      "type": "string",
                      "description": "The number to call. Absent when the person has no phone number."
                    },
                    "found": {
                      "type": "object",
                      "description": "What this call found that the person did not have: the values it was charged for. Empty when it found nothing new.",
                      "properties": {
                        "email": {
                          "type": "object",
                          "description": "The work email address found. Absent when none was.",
                          "required": [
                            "email",
                            "foundBy"
                          ],
                          "properties": {
                            "email": {
                              "type": "string"
                            },
                            "foundBy": {
                              "type": "string",
                              "enum": [
                                "package",
                                "waterfall"
                              ],
                              "description": "Who found the value, which sets its price: `package` or `waterfall`."
                            }
                          }
                        },
                        "phone": {
                          "type": "object",
                          "description": "The phone number found. Absent when none was.",
                          "required": [
                            "phoneNumber",
                            "foundBy"
                          ],
                          "properties": {
                            "phoneNumber": {
                              "type": "string"
                            },
                            "foundBy": {
                              "type": "string",
                              "enum": [
                                "package",
                                "waterfall"
                              ],
                              "description": "Who found the value, which sets its price: `package` or `waterfall`."
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "personId": "6a1f0c2b9d4e8a7f3c5b2e22",
                  "emails": [
                    {
                      "email": "ana@northwind.example",
                      "status": "valid"
                    }
                  ],
                  "phones": [
                    {
                      "phoneNumber": "+14155550123",
                      "status": "valid"
                    }
                  ],
                  "primaryEmail": "ana@northwind.example",
                  "primaryPhone": "+14155550123",
                  "found": {
                    "email": {
                      "email": "ana@northwind.example",
                      "foundBy": "package"
                    },
                    "phone": {
                      "phoneNumber": "+14155550123",
                      "foundBy": "waterfall"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/people/enrich/batch": {
      "post": {
        "operationId": "postPeopleEnrichBatch",
        "tags": [
          "Enrichment"
        ],
        "summary": "Enrich people in a batch",
        "description": "Enriches 1 to 100 people in one job: finds each one's work email, phone number or both, and saves each person, with what was found, as a contact in your workspace. Name each person one way, as `POST /v1/people/enrich` takes a person. `find` and `providers` work as they do there, for every person in the batch.\n\nThe answer is the job, with `202`. Follow it with `GET /v1/jobs/{jobId}`: once it ends, `results` lists every person in the order you sent them, as `POST /v1/people/enrich` answers a person, or with an `error`: `person_not_found`, `person_not_identifiable`, `enrichment_in_progress`, `enrichment_failed`, or `enrichment_not_run` when the job ended before it reached them. A person named twice is enriched, and charged, once. Stop a running job with `POST /v1/jobs/{jobId}/cancel`.\n\nFor more than 100 people, add them to a list with `POST /v1/lists/{listId}/rows`, then enrich the list with `POST /v1/lists/{listId}/enrich`.\n\nTo cap what the job may cost, send `maxSpendUsd`, in US dollars. A job that could cost more, going by what it would hold, answers `422` `max_spend_exceeded` with the amount it could cost, and nothing is held or started.\n\n**Price:** per value found, by who found it: an email \\$0.02 from the package or \\$0.05 from the waterfall, a phone number \\$0.05 from the package or \\$0.10 from the waterfall. With `providers` `package`, every value costs the package price. Values a person already had are free. When the job starts, the most it can cost is held from your balance: for each person, \\$0.02 to find an email, \\$0.05 a phone number or \\$0.07 both with the package, or \\$0.05, \\$0.10 and \\$0.15 with the waterfall. When it ends it is charged for what it found, and the rest is released. Starts have their own limit, 10 a minute and 200 a day. **Scope:** enrichment, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Names this operation, so a retry with the same key and body gets the first success again, marked `Idempotent-Replayed`, instead of running or charging twice. A mailbox's `password` is not compared: the same mailbox sent again with another password is the same call, and gets the first answer. Kept 24 hours for your organization and this route. A refusal (`4xx`) frees the key at once, so a corrected retry runs. After a server error (`5xx`), which may still take effect, the key stays held for 5 minutes from the call's start, and a retry in that time answers `409` `idempotency_in_progress`; after that, a send or import that may already have gone out answers `409` `idempotency_outcome_unknown` instead of running again. 1 to 255 visible ASCII characters, such as a UUID.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7E]+$"
            },
            "example": "5f1c9d2e-8a4b-4e7c-9f30-6b2a1d8e4c75"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "people": {
                    "type": "array",
                    "description": "The people to enrich, 1 to 100, each named one way, as `POST /v1/people/enrich` takes a person.",
                    "minItems": 1,
                    "maxItems": 100,
                    "items": {
                      "type": "object",
                      "properties": {
                        "personId": {
                          "type": "string",
                          "description": "The person's id: the `id` of their row from `GET /v1/lists/{listId}/rows`, or the id an earlier enrich or upload answered. Send it on its own.",
                          "minLength": 24,
                          "maxLength": 24,
                          "pattern": "^[0-9a-fA-F]+$"
                        },
                        "linkedinUrl": {
                          "type": "string",
                          "description": "The person's LinkedIn profile URL. Send it on its own.",
                          "maxLength": 500,
                          "pattern": "^(https?:\\/\\/)?([\\w-]+\\.)?linkedin\\.com\\/in\\/[^\\s/?#]+",
                          "example": "https://www.linkedin.com/in/ana-costa"
                        },
                        "firstName": {
                          "type": "string",
                          "description": "The person's first name, with `companyName` or `companyDomain`.",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "lastName": {
                          "type": "string",
                          "description": "The person's last name, with `companyName` or `companyDomain`.",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "fullName": {
                          "type": "string",
                          "description": "The person's full name, in place of `firstName` and `lastName`, with `companyName` or `companyDomain`.",
                          "minLength": 1,
                          "maxLength": 400
                        },
                        "companyName": {
                          "type": "string",
                          "description": "The name of the company the person works at.",
                          "minLength": 1,
                          "maxLength": 300
                        },
                        "companyDomain": {
                          "type": "string",
                          "description": "The website domain of the company the person works at, such as `northwind.example`.",
                          "minLength": 1,
                          "maxLength": 300
                        }
                      }
                    }
                  },
                  "find": {
                    "type": "string",
                    "description": "What to find: a work `email` (the default), a `phone` number, or both (`email_and_phone`).",
                    "enum": [
                      "email",
                      "phone",
                      "email_and_phone"
                    ],
                    "default": "email"
                  },
                  "providers": {
                    "type": "string",
                    "description": "Where to look: `package` (the default) searches our own data package; `waterfall` searches the package, then a fixed series of further providers. A value's price depends on who found it.",
                    "enum": [
                      "package",
                      "waterfall"
                    ],
                    "default": "package"
                  },
                  "maxSpendUsd": {
                    "type": "number",
                    "description": "The most the job may cost, in US dollars. A job that could cost more is refused before anything is held or started.",
                    "minimum": 0.01,
                    "maximum": 1000000
                  }
                },
                "required": [
                  "people"
                ]
              },
              "example": {
                "people": [
                  {
                    "personId": "6a1f0c2b9d4e8a7f3c5b2e22"
                  },
                  {
                    "linkedinUrl": "https://www.linkedin.com/in/ana-costa"
                  },
                  {
                    "fullName": "Rui Matos",
                    "companyDomain": "northwind.example"
                  }
                ],
                "find": "email",
                "providers": "waterfall",
                "maxSpendUsd": 0.15
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The job, started. Read its progress and result with `GET /v1/jobs/{jobId}`.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "type",
                    "status",
                    "units",
                    "createdAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "email_verification",
                        "people_enrichment",
                        "list_enrichment",
                        "company_save"
                      ],
                      "description": "What the job does."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "running",
                        "succeeded",
                        "failed",
                        "cancelled"
                      ],
                      "description": "`running` until the job ends as `succeeded`, `failed` or `cancelled`."
                    },
                    "listId": {
                      "type": "string",
                      "description": "For a list enrichment, the list it runs over, and for a company save, the company list it saves to. What either adds is on the list's rows: read them with `GET /v1/lists/{listId}/rows`."
                    },
                    "find": {
                      "type": "string",
                      "enum": [
                        "email",
                        "phone",
                        "email_and_phone"
                      ],
                      "description": "For an enrichment, what it looks for."
                    },
                    "providers": {
                      "type": "string",
                      "enum": [
                        "package",
                        "waterfall"
                      ],
                      "description": "For an enrichment, where it looks."
                    },
                    "progress": {
                      "type": "object",
                      "description": "How far the job got. Absent until it reports progress. For a company save, `done` is the companies saved so far and `total` its `limit`.",
                      "properties": {
                        "done": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        }
                      }
                    },
                    "units": {
                      "type": "array",
                      "description": "What the job produced so far, by price item.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "item": {
                            "type": "string"
                          },
                          "units": {
                            "type": "integer"
                          }
                        }
                      }
                    },
                    "chargedUsd": {
                      "type": "string",
                      "description": "What the job was charged, in US dollars as an exact six-decimal string. Present once it ended."
                    },
                    "results": {
                      "type": "array",
                      "description": "For a people enrichment, once it ended: every person's result, in the order the request named them. Shown to keys that can read enrichment.",
                      "items": {
                        "type": "object",
                        "description": "The person as `POST /v1/people/enrich` answers them, with their place in the request, or, when they were not enriched, their place and why. Nothing is charged for a person with an `error`.",
                        "required": [
                          "index"
                        ],
                        "properties": {
                          "index": {
                            "type": "integer",
                            "description": "The person's place in the request's `people`, from 0."
                          },
                          "personId": {
                            "type": "string",
                            "description": "The person's id in your workspace, as list rows and `personIds` name it. Send it as `personId` to enrich them again. Absent when the person could not be saved."
                          },
                          "emails": {
                            "type": "array",
                            "description": "Every work email address the person has whose check showed it can receive mail: `valid`, or `catch-all` (the domain accepts mail for any address, so this one could not be confirmed). Personal addresses are left out.",
                            "items": {
                              "type": "object",
                              "required": [
                                "email",
                                "status"
                              ],
                              "properties": {
                                "email": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "valid",
                                    "catch-all"
                                  ]
                                },
                                "atCurrentCompany": {
                                  "type": "boolean",
                                  "description": "Whether the address is at a company the person works at now, by their job history. `false` can also be a second domain of their employer. Absent when no current company is known for them."
                                }
                              }
                            }
                          },
                          "phones": {
                            "type": "array",
                            "description": "Every phone number the person has, with what checking it showed.",
                            "items": {
                              "type": "object",
                              "required": [
                                "phoneNumber"
                              ],
                              "properties": {
                                "phoneNumber": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "valid",
                                    "hq",
                                    "unverified"
                                  ],
                                  "description": "`hq` is the company's main line."
                                }
                              }
                            }
                          },
                          "primaryEmail": {
                            "type": "string",
                            "description": "The address to write to. Absent when the person has no address in `emails`."
                          },
                          "primaryPhone": {
                            "type": "string",
                            "description": "The number to call. Absent when the person has no phone number."
                          },
                          "found": {
                            "type": "object",
                            "description": "What this call found that the person did not have: the values it was charged for. Empty when it found nothing new.",
                            "properties": {
                              "email": {
                                "type": "object",
                                "description": "The work email address found. Absent when none was.",
                                "required": [
                                  "email",
                                  "foundBy"
                                ],
                                "properties": {
                                  "email": {
                                    "type": "string"
                                  },
                                  "foundBy": {
                                    "type": "string",
                                    "enum": [
                                      "package",
                                      "waterfall"
                                    ],
                                    "description": "Who found the value, which sets its price: `package` or `waterfall`."
                                  }
                                }
                              },
                              "phone": {
                                "type": "object",
                                "description": "The phone number found. Absent when none was.",
                                "required": [
                                  "phoneNumber",
                                  "foundBy"
                                ],
                                "properties": {
                                  "phoneNumber": {
                                    "type": "string"
                                  },
                                  "foundBy": {
                                    "type": "string",
                                    "enum": [
                                      "package",
                                      "waterfall"
                                    ],
                                    "description": "Who found the value, which sets its price: `package` or `waterfall`."
                                  }
                                }
                              }
                            }
                          },
                          "error": {
                            "type": "object",
                            "description": "Why the person was not enriched: `person_not_found`, `person_not_identifiable`, `enrichment_in_progress` (another call was enriching them), `enrichment_failed`, or `enrichment_not_run` (the job ended before it reached them). Absent when they were enriched.",
                            "required": [
                              "code",
                              "message"
                            ],
                            "properties": {
                              "code": {
                                "type": "string",
                                "enum": [
                                  "person_not_found",
                                  "person_not_identifiable",
                                  "enrichment_in_progress",
                                  "enrichment_failed",
                                  "enrichment_not_run"
                                ]
                              },
                              "message": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "finishedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the job ended. Absent while it runs."
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e14",
                  "type": "people_enrichment",
                  "status": "running",
                  "find": "email",
                  "providers": "waterfall",
                  "units": [],
                  "createdAt": "2026-11-15T10:00:00.000Z"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/lists/{listId}/enrich": {
      "post": {
        "operationId": "postListsListIdEnrich",
        "tags": [
          "Enrichment"
        ],
        "summary": "Enrich a list's people",
        "description": "Enriches the people on one of your people lists in a job: finds the work email, phone number or both that each row lacks, and saves what was found on the rows. `find` and `providers` work as on `POST /v1/people/enrich`.\n\nA run takes up to `maxRows` rows (10,000 at most, and when it is left out) from `offset` (0 when left out) in the list's order. Enrich a longer list in runs, each with `offset` where the last one ended: 0, then 10,000, then 20,000.\n\nThe answer is the job, with `202`. Follow it with `GET /v1/jobs/{jobId}`, then read what was found with `GET /v1/lists/{listId}/rows`. A list with nothing to enrich answers a job that has already ended, at no cost. Another organization's list answers `404` `list_not_found`, and a company list `422` `people_list_required`. Stop a running job with `POST /v1/jobs/{jobId}/cancel`.\n\nTo cap what the job may cost, send `maxSpendUsd`, in US dollars. A job that could cost more, going by what it would hold, answers `422` `max_spend_exceeded` with the amount it could cost, and nothing is held or started.\n\n**Price:** per value found, by who found it: an email \\$0.02 from the package or \\$0.05 from the waterfall, a phone number \\$0.05 from the package or \\$0.10 from the waterfall. With `providers` `package`, every value costs the package price. Values a person already had are free. When the job starts, the most it can cost is held from your balance: for each row, \\$0.02 to find an email, \\$0.05 a phone number or \\$0.07 both with the package, or \\$0.05, \\$0.10 and \\$0.15 with the waterfall. When it ends it is charged for what it found, and the rest is released. Starts have their own limit, 10 a minute and 200 a day. **Scope:** enrichment, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "listId",
            "in": "path",
            "required": true,
            "description": "The people list whose rows to enrich.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Names this operation, so a retry with the same key and body gets the first success again, marked `Idempotent-Replayed`, instead of running or charging twice. A mailbox's `password` is not compared: the same mailbox sent again with another password is the same call, and gets the first answer. Kept 24 hours for your organization and this route. A refusal (`4xx`) frees the key at once, so a corrected retry runs. After a server error (`5xx`), which may still take effect, the key stays held for 5 minutes from the call's start, and a retry in that time answers `409` `idempotency_in_progress`; after that, a send or import that may already have gone out answers `409` `idempotency_outcome_unknown` instead of running again. 1 to 255 visible ASCII characters, such as a UUID.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7E]+$"
            },
            "example": "5f1c9d2e-8a4b-4e7c-9f30-6b2a1d8e4c75"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "find": {
                    "type": "string",
                    "description": "What to find: a work `email` (the default), a `phone` number, or both (`email_and_phone`).",
                    "enum": [
                      "email",
                      "phone",
                      "email_and_phone"
                    ],
                    "default": "email"
                  },
                  "providers": {
                    "type": "string",
                    "description": "Where to look: `package` (the default) searches our own data package; `waterfall` searches the package, then a fixed series of further providers. A value's price depends on who found it.",
                    "enum": [
                      "package",
                      "waterfall"
                    ],
                    "default": "package"
                  },
                  "maxRows": {
                    "type": "integer",
                    "description": "The most rows to enrich, from 1 to 10,000. Left out, the job runs over every row up to that many.",
                    "minimum": 1,
                    "maximum": 10000
                  },
                  "offset": {
                    "type": "integer",
                    "description": "How many of the list's rows, in its order, to skip before the run starts: 0 when left out. Enrich a long list in runs, each with `offset` where the last one ended.",
                    "minimum": 0
                  },
                  "maxSpendUsd": {
                    "type": "number",
                    "description": "The most the job may cost, in US dollars. A job that could cost more is refused before anything is held or started.",
                    "minimum": 0.01,
                    "maximum": 1000000
                  }
                }
              },
              "example": {
                "find": "email_and_phone",
                "providers": "package",
                "maxRows": 500,
                "offset": 0,
                "maxSpendUsd": 35
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The job, started. Read its progress and result with `GET /v1/jobs/{jobId}`. A list with nothing to enrich answers a job that already ended, at no cost.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "type",
                    "status",
                    "units",
                    "createdAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "email_verification",
                        "people_enrichment",
                        "list_enrichment",
                        "company_save"
                      ],
                      "description": "What the job does."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "running",
                        "succeeded",
                        "failed",
                        "cancelled"
                      ],
                      "description": "`running` until the job ends as `succeeded`, `failed` or `cancelled`."
                    },
                    "listId": {
                      "type": "string",
                      "description": "For a list enrichment, the list it runs over, and for a company save, the company list it saves to. What either adds is on the list's rows: read them with `GET /v1/lists/{listId}/rows`."
                    },
                    "find": {
                      "type": "string",
                      "enum": [
                        "email",
                        "phone",
                        "email_and_phone"
                      ],
                      "description": "For an enrichment, what it looks for."
                    },
                    "providers": {
                      "type": "string",
                      "enum": [
                        "package",
                        "waterfall"
                      ],
                      "description": "For an enrichment, where it looks."
                    },
                    "progress": {
                      "type": "object",
                      "description": "How far the job got. Absent until it reports progress. For a company save, `done` is the companies saved so far and `total` its `limit`.",
                      "properties": {
                        "done": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        }
                      }
                    },
                    "units": {
                      "type": "array",
                      "description": "What the job produced so far, by price item.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "item": {
                            "type": "string"
                          },
                          "units": {
                            "type": "integer"
                          }
                        }
                      }
                    },
                    "chargedUsd": {
                      "type": "string",
                      "description": "What the job was charged, in US dollars as an exact six-decimal string. Present once it ended."
                    },
                    "results": {
                      "type": "array",
                      "description": "For a people enrichment, once it ended: every person's result, in the order the request named them. Shown to keys that can read enrichment.",
                      "items": {
                        "type": "object",
                        "description": "The person as `POST /v1/people/enrich` answers them, with their place in the request, or, when they were not enriched, their place and why. Nothing is charged for a person with an `error`.",
                        "required": [
                          "index"
                        ],
                        "properties": {
                          "index": {
                            "type": "integer",
                            "description": "The person's place in the request's `people`, from 0."
                          },
                          "personId": {
                            "type": "string",
                            "description": "The person's id in your workspace, as list rows and `personIds` name it. Send it as `personId` to enrich them again. Absent when the person could not be saved."
                          },
                          "emails": {
                            "type": "array",
                            "description": "Every work email address the person has whose check showed it can receive mail: `valid`, or `catch-all` (the domain accepts mail for any address, so this one could not be confirmed). Personal addresses are left out.",
                            "items": {
                              "type": "object",
                              "required": [
                                "email",
                                "status"
                              ],
                              "properties": {
                                "email": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "valid",
                                    "catch-all"
                                  ]
                                },
                                "atCurrentCompany": {
                                  "type": "boolean",
                                  "description": "Whether the address is at a company the person works at now, by their job history. `false` can also be a second domain of their employer. Absent when no current company is known for them."
                                }
                              }
                            }
                          },
                          "phones": {
                            "type": "array",
                            "description": "Every phone number the person has, with what checking it showed.",
                            "items": {
                              "type": "object",
                              "required": [
                                "phoneNumber"
                              ],
                              "properties": {
                                "phoneNumber": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "valid",
                                    "hq",
                                    "unverified"
                                  ],
                                  "description": "`hq` is the company's main line."
                                }
                              }
                            }
                          },
                          "primaryEmail": {
                            "type": "string",
                            "description": "The address to write to. Absent when the person has no address in `emails`."
                          },
                          "primaryPhone": {
                            "type": "string",
                            "description": "The number to call. Absent when the person has no phone number."
                          },
                          "found": {
                            "type": "object",
                            "description": "What this call found that the person did not have: the values it was charged for. Empty when it found nothing new.",
                            "properties": {
                              "email": {
                                "type": "object",
                                "description": "The work email address found. Absent when none was.",
                                "required": [
                                  "email",
                                  "foundBy"
                                ],
                                "properties": {
                                  "email": {
                                    "type": "string"
                                  },
                                  "foundBy": {
                                    "type": "string",
                                    "enum": [
                                      "package",
                                      "waterfall"
                                    ],
                                    "description": "Who found the value, which sets its price: `package` or `waterfall`."
                                  }
                                }
                              },
                              "phone": {
                                "type": "object",
                                "description": "The phone number found. Absent when none was.",
                                "required": [
                                  "phoneNumber",
                                  "foundBy"
                                ],
                                "properties": {
                                  "phoneNumber": {
                                    "type": "string"
                                  },
                                  "foundBy": {
                                    "type": "string",
                                    "enum": [
                                      "package",
                                      "waterfall"
                                    ],
                                    "description": "Who found the value, which sets its price: `package` or `waterfall`."
                                  }
                                }
                              }
                            }
                          },
                          "error": {
                            "type": "object",
                            "description": "Why the person was not enriched: `person_not_found`, `person_not_identifiable`, `enrichment_in_progress` (another call was enriching them), `enrichment_failed`, or `enrichment_not_run` (the job ended before it reached them). Absent when they were enriched.",
                            "required": [
                              "code",
                              "message"
                            ],
                            "properties": {
                              "code": {
                                "type": "string",
                                "enum": [
                                  "person_not_found",
                                  "person_not_identifiable",
                                  "enrichment_in_progress",
                                  "enrichment_failed",
                                  "enrichment_not_run"
                                ]
                              },
                              "message": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "finishedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the job ended. Absent while it runs."
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e14",
                  "type": "list_enrichment",
                  "status": "running",
                  "listId": "6a1f0c2b9d4e8a7f3c5b2e20",
                  "find": "email_and_phone",
                  "providers": "package",
                  "units": [],
                  "createdAt": "2026-11-15T10:00:00.000Z"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/emails/verify": {
      "post": {
        "operationId": "postEmailsVerify",
        "tags": [
          "Enrichment"
        ],
        "summary": "Verify an email address",
        "description": "Checks whether an email address can receive mail, without writing to it. `status` is the verdict: `valid`; `invalid`, which also covers addresses never to be written to (spam traps, abuse and do-not-mail addresses); `risky`, when the domain accepts mail for every address, so this one cannot be confirmed; or `unknown`, when no verdict could be had.\n\nA check takes a few seconds and ends within about 25 seconds. One that gets no verdict in time answers an empty `500` and costs nothing: try again. Verifications have their own limit, 60 a minute and 5,000 a day.\n\n**Price:** \\$0.01 a verdict; `unknown` is free. The price is held from your balance before the check runs, and released when it gives no verdict or is refused. **Scope:** enrichment, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Names this operation, so a retry with the same key and body gets the first success again, marked `Idempotent-Replayed`, instead of running or charging twice. A mailbox's `password` is not compared: the same mailbox sent again with another password is the same call, and gets the first answer. Kept 24 hours for your organization and this route. A refusal (`4xx`) frees the key at once, so a corrected retry runs. After a server error (`5xx`), which may still take effect, the key stays held for 5 minutes from the call's start, and a retry in that time answers `409` `idempotency_in_progress`; after that, a send or import that may already have gone out answers `409` `idempotency_outcome_unknown` instead of running again. 1 to 255 visible ASCII characters, such as a UUID.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7E]+$"
            },
            "example": "5f1c9d2e-8a4b-4e7c-9f30-6b2a1d8e4c75"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "description": "The address to check, such as `ana.costa@fernway.co`. It is checked trimmed and in lower case.",
                    "maxLength": 320,
                    "example": "ana.costa@fernway.co"
                  }
                },
                "required": [
                  "email"
                ]
              },
              "example": {
                "email": "ana.costa@fernway.co"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The address and its verdict.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "email",
                    "status"
                  ],
                  "properties": {
                    "email": {
                      "type": "string",
                      "description": "The address checked, trimmed and in lower case."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "valid",
                        "invalid",
                        "risky",
                        "unknown"
                      ],
                      "description": "`valid`: it can receive mail. `invalid`: it cannot, or it must never be written to (a spam trap, an abuse or do-not-mail address). `risky`: its domain accepts mail for every address, so this one cannot be confirmed. `unknown`: no verdict could be had; it costs nothing."
                    }
                  }
                },
                "example": {
                  "email": "ana.costa@fernway.co",
                  "status": "valid"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/jobs/{jobId}": {
      "get": {
        "operationId": "getJobsJobId",
        "tags": [
          "Jobs"
        ],
        "summary": "Get a job",
        "description": "A long task a call started: whether it is still running, how far it got, what it produced and what it was charged. Any key of the organization that started it can read it. Its status is refreshed at most every 15 seconds, so poll no faster. Free, with its own limit, so polling never spends the account calls'.\n\nAn enrichment job names its `find` and `providers`. Once a people enrichment ends, `results` holds every person's result in the order the request named them, for keys that can read enrichment. A list enrichment names its `listId`: what it finds is saved on the list's rows, so read them with `GET /v1/lists/{listId}/rows`. A company save names the `listId` it saves to, and its `progress` counts the companies saved so far out of its `limit`.\n\nAn enrichment job is charged when it ends, for what it found by then, and a company save for the companies it saved, a save that failed included; never more than was held when it started. What was not used is released.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "description": "The job's id, as the call that started it answered.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The job.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "type",
                    "status",
                    "units",
                    "createdAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "email_verification",
                        "people_enrichment",
                        "list_enrichment",
                        "company_save"
                      ],
                      "description": "What the job does."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "running",
                        "succeeded",
                        "failed",
                        "cancelled"
                      ],
                      "description": "`running` until the job ends as `succeeded`, `failed` or `cancelled`."
                    },
                    "listId": {
                      "type": "string",
                      "description": "For a list enrichment, the list it runs over, and for a company save, the company list it saves to. What either adds is on the list's rows: read them with `GET /v1/lists/{listId}/rows`."
                    },
                    "find": {
                      "type": "string",
                      "enum": [
                        "email",
                        "phone",
                        "email_and_phone"
                      ],
                      "description": "For an enrichment, what it looks for."
                    },
                    "providers": {
                      "type": "string",
                      "enum": [
                        "package",
                        "waterfall"
                      ],
                      "description": "For an enrichment, where it looks."
                    },
                    "progress": {
                      "type": "object",
                      "description": "How far the job got. Absent until it reports progress. For a company save, `done` is the companies saved so far and `total` its `limit`.",
                      "properties": {
                        "done": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        }
                      }
                    },
                    "units": {
                      "type": "array",
                      "description": "What the job produced so far, by price item.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "item": {
                            "type": "string"
                          },
                          "units": {
                            "type": "integer"
                          }
                        }
                      }
                    },
                    "chargedUsd": {
                      "type": "string",
                      "description": "What the job was charged, in US dollars as an exact six-decimal string. Present once it ended."
                    },
                    "results": {
                      "type": "array",
                      "description": "For a people enrichment, once it ended: every person's result, in the order the request named them. Shown to keys that can read enrichment.",
                      "items": {
                        "type": "object",
                        "description": "The person as `POST /v1/people/enrich` answers them, with their place in the request, or, when they were not enriched, their place and why. Nothing is charged for a person with an `error`.",
                        "required": [
                          "index"
                        ],
                        "properties": {
                          "index": {
                            "type": "integer",
                            "description": "The person's place in the request's `people`, from 0."
                          },
                          "personId": {
                            "type": "string",
                            "description": "The person's id in your workspace, as list rows and `personIds` name it. Send it as `personId` to enrich them again. Absent when the person could not be saved."
                          },
                          "emails": {
                            "type": "array",
                            "description": "Every work email address the person has whose check showed it can receive mail: `valid`, or `catch-all` (the domain accepts mail for any address, so this one could not be confirmed). Personal addresses are left out.",
                            "items": {
                              "type": "object",
                              "required": [
                                "email",
                                "status"
                              ],
                              "properties": {
                                "email": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "valid",
                                    "catch-all"
                                  ]
                                },
                                "atCurrentCompany": {
                                  "type": "boolean",
                                  "description": "Whether the address is at a company the person works at now, by their job history. `false` can also be a second domain of their employer. Absent when no current company is known for them."
                                }
                              }
                            }
                          },
                          "phones": {
                            "type": "array",
                            "description": "Every phone number the person has, with what checking it showed.",
                            "items": {
                              "type": "object",
                              "required": [
                                "phoneNumber"
                              ],
                              "properties": {
                                "phoneNumber": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "valid",
                                    "hq",
                                    "unverified"
                                  ],
                                  "description": "`hq` is the company's main line."
                                }
                              }
                            }
                          },
                          "primaryEmail": {
                            "type": "string",
                            "description": "The address to write to. Absent when the person has no address in `emails`."
                          },
                          "primaryPhone": {
                            "type": "string",
                            "description": "The number to call. Absent when the person has no phone number."
                          },
                          "found": {
                            "type": "object",
                            "description": "What this call found that the person did not have: the values it was charged for. Empty when it found nothing new.",
                            "properties": {
                              "email": {
                                "type": "object",
                                "description": "The work email address found. Absent when none was.",
                                "required": [
                                  "email",
                                  "foundBy"
                                ],
                                "properties": {
                                  "email": {
                                    "type": "string"
                                  },
                                  "foundBy": {
                                    "type": "string",
                                    "enum": [
                                      "package",
                                      "waterfall"
                                    ],
                                    "description": "Who found the value, which sets its price: `package` or `waterfall`."
                                  }
                                }
                              },
                              "phone": {
                                "type": "object",
                                "description": "The phone number found. Absent when none was.",
                                "required": [
                                  "phoneNumber",
                                  "foundBy"
                                ],
                                "properties": {
                                  "phoneNumber": {
                                    "type": "string"
                                  },
                                  "foundBy": {
                                    "type": "string",
                                    "enum": [
                                      "package",
                                      "waterfall"
                                    ],
                                    "description": "Who found the value, which sets its price: `package` or `waterfall`."
                                  }
                                }
                              }
                            }
                          },
                          "error": {
                            "type": "object",
                            "description": "Why the person was not enriched: `person_not_found`, `person_not_identifiable`, `enrichment_in_progress` (another call was enriching them), `enrichment_failed`, or `enrichment_not_run` (the job ended before it reached them). Absent when they were enriched.",
                            "required": [
                              "code",
                              "message"
                            ],
                            "properties": {
                              "code": {
                                "type": "string",
                                "enum": [
                                  "person_not_found",
                                  "person_not_identifiable",
                                  "enrichment_in_progress",
                                  "enrichment_failed",
                                  "enrichment_not_run"
                                ]
                              },
                              "message": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "finishedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the job ended. Absent while it runs."
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e14",
                  "type": "people_enrichment",
                  "status": "succeeded",
                  "find": "email",
                  "providers": "waterfall",
                  "progress": {
                    "done": 2,
                    "total": 2
                  },
                  "units": [
                    {
                      "item": "email_found_waterfall",
                      "units": 1
                    }
                  ],
                  "chargedUsd": "0.050000",
                  "results": [
                    {
                      "index": 0,
                      "personId": "6a1f0c2b9d4e8a7f3c5b2e22",
                      "emails": [
                        {
                          "email": "ana@northwind.example",
                          "status": "valid"
                        }
                      ],
                      "phones": [],
                      "primaryEmail": "ana@northwind.example",
                      "found": {
                        "email": {
                          "email": "ana@northwind.example",
                          "foundBy": "waterfall"
                        }
                      }
                    },
                    {
                      "index": 1,
                      "error": {
                        "code": "person_not_found",
                        "message": "No person with this id belongs to this organization."
                      }
                    }
                  ],
                  "createdAt": "2026-11-15T10:00:00.000Z",
                  "finishedAt": "2026-11-15T10:01:30.000Z"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/jobs/{jobId}/cancel": {
      "post": {
        "operationId": "postJobsJobIdCancel",
        "tags": [
          "Jobs"
        ],
        "summary": "Cancel a job",
        "description": "Stops a running people enrichment or list enrichment. The job winds down, then reads `cancelled`; what it found before it stopped is kept and charged, and the rest of what was held is released. Asking again changes nothing.\n\nA job that already ended answers `409` `job_already_ended`, and one still starting `409` `job_starting`: try again in a few seconds. A company save cannot be stopped: it answers `409` `job_not_cancellable`. Another organization's job answers `404`.\n\nFree, with its own limit. **Scope:** a key that can write the job's product (enrichment, for an enrichment job).",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "description": "The job's id, as the call that started it answered.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "The job. It stops soon after, and then reads `cancelled`.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "type",
                    "status",
                    "units",
                    "createdAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "email_verification",
                        "people_enrichment",
                        "list_enrichment",
                        "company_save"
                      ],
                      "description": "What the job does."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "running",
                        "succeeded",
                        "failed",
                        "cancelled"
                      ],
                      "description": "`running` until the job ends as `succeeded`, `failed` or `cancelled`."
                    },
                    "listId": {
                      "type": "string",
                      "description": "For a list enrichment, the list it runs over, and for a company save, the company list it saves to. What either adds is on the list's rows: read them with `GET /v1/lists/{listId}/rows`."
                    },
                    "find": {
                      "type": "string",
                      "enum": [
                        "email",
                        "phone",
                        "email_and_phone"
                      ],
                      "description": "For an enrichment, what it looks for."
                    },
                    "providers": {
                      "type": "string",
                      "enum": [
                        "package",
                        "waterfall"
                      ],
                      "description": "For an enrichment, where it looks."
                    },
                    "progress": {
                      "type": "object",
                      "description": "How far the job got. Absent until it reports progress. For a company save, `done` is the companies saved so far and `total` its `limit`.",
                      "properties": {
                        "done": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        }
                      }
                    },
                    "units": {
                      "type": "array",
                      "description": "What the job produced so far, by price item.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "item": {
                            "type": "string"
                          },
                          "units": {
                            "type": "integer"
                          }
                        }
                      }
                    },
                    "chargedUsd": {
                      "type": "string",
                      "description": "What the job was charged, in US dollars as an exact six-decimal string. Present once it ended."
                    },
                    "results": {
                      "type": "array",
                      "description": "For a people enrichment, once it ended: every person's result, in the order the request named them. Shown to keys that can read enrichment.",
                      "items": {
                        "type": "object",
                        "description": "The person as `POST /v1/people/enrich` answers them, with their place in the request, or, when they were not enriched, their place and why. Nothing is charged for a person with an `error`.",
                        "required": [
                          "index"
                        ],
                        "properties": {
                          "index": {
                            "type": "integer",
                            "description": "The person's place in the request's `people`, from 0."
                          },
                          "personId": {
                            "type": "string",
                            "description": "The person's id in your workspace, as list rows and `personIds` name it. Send it as `personId` to enrich them again. Absent when the person could not be saved."
                          },
                          "emails": {
                            "type": "array",
                            "description": "Every work email address the person has whose check showed it can receive mail: `valid`, or `catch-all` (the domain accepts mail for any address, so this one could not be confirmed). Personal addresses are left out.",
                            "items": {
                              "type": "object",
                              "required": [
                                "email",
                                "status"
                              ],
                              "properties": {
                                "email": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "valid",
                                    "catch-all"
                                  ]
                                },
                                "atCurrentCompany": {
                                  "type": "boolean",
                                  "description": "Whether the address is at a company the person works at now, by their job history. `false` can also be a second domain of their employer. Absent when no current company is known for them."
                                }
                              }
                            }
                          },
                          "phones": {
                            "type": "array",
                            "description": "Every phone number the person has, with what checking it showed.",
                            "items": {
                              "type": "object",
                              "required": [
                                "phoneNumber"
                              ],
                              "properties": {
                                "phoneNumber": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "valid",
                                    "hq",
                                    "unverified"
                                  ],
                                  "description": "`hq` is the company's main line."
                                }
                              }
                            }
                          },
                          "primaryEmail": {
                            "type": "string",
                            "description": "The address to write to. Absent when the person has no address in `emails`."
                          },
                          "primaryPhone": {
                            "type": "string",
                            "description": "The number to call. Absent when the person has no phone number."
                          },
                          "found": {
                            "type": "object",
                            "description": "What this call found that the person did not have: the values it was charged for. Empty when it found nothing new.",
                            "properties": {
                              "email": {
                                "type": "object",
                                "description": "The work email address found. Absent when none was.",
                                "required": [
                                  "email",
                                  "foundBy"
                                ],
                                "properties": {
                                  "email": {
                                    "type": "string"
                                  },
                                  "foundBy": {
                                    "type": "string",
                                    "enum": [
                                      "package",
                                      "waterfall"
                                    ],
                                    "description": "Who found the value, which sets its price: `package` or `waterfall`."
                                  }
                                }
                              },
                              "phone": {
                                "type": "object",
                                "description": "The phone number found. Absent when none was.",
                                "required": [
                                  "phoneNumber",
                                  "foundBy"
                                ],
                                "properties": {
                                  "phoneNumber": {
                                    "type": "string"
                                  },
                                  "foundBy": {
                                    "type": "string",
                                    "enum": [
                                      "package",
                                      "waterfall"
                                    ],
                                    "description": "Who found the value, which sets its price: `package` or `waterfall`."
                                  }
                                }
                              }
                            }
                          },
                          "error": {
                            "type": "object",
                            "description": "Why the person was not enriched: `person_not_found`, `person_not_identifiable`, `enrichment_in_progress` (another call was enriching them), `enrichment_failed`, or `enrichment_not_run` (the job ended before it reached them). Absent when they were enriched.",
                            "required": [
                              "code",
                              "message"
                            ],
                            "properties": {
                              "code": {
                                "type": "string",
                                "enum": [
                                  "person_not_found",
                                  "person_not_identifiable",
                                  "enrichment_in_progress",
                                  "enrichment_failed",
                                  "enrichment_not_run"
                                ]
                              },
                              "message": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "finishedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the job ended. Absent while it runs."
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e14",
                  "type": "list_enrichment",
                  "status": "cancelled",
                  "listId": "6a1f0c2b9d4e8a7f3c5b2e20",
                  "find": "email",
                  "providers": "package",
                  "progress": {
                    "done": 120,
                    "total": 500
                  },
                  "units": [
                    {
                      "item": "email_found_package",
                      "units": 64
                    }
                  ],
                  "chargedUsd": "1.280000",
                  "createdAt": "2026-11-15T10:00:00.000Z",
                  "finishedAt": "2026-11-15T10:03:10.000Z"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/accounts": {
      "get": {
        "operationId": "getAccounts",
        "tags": [
          "Accounts"
        ],
        "summary": "List sending accounts",
        "description": "The organization's mailboxes and LinkedIn seats, each with its `channel`: whether campaigns may send from it (`isActive`) and whether its sign-in works (`isConnected`). A mailbox shows how many emails it sends a day, what is left of that today, and its warmup.\n\nAfter a LinkedIn sign-in link is used, call it with `channel=linkedin` until the new seat is listed with `isConnected` true.\n\nFree. **Scope:** connections. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "channel",
            "in": "query",
            "required": false,
            "description": "Only mailboxes (`email`) or only LinkedIn seats (`linkedin`). Both when left out.",
            "schema": {
              "type": "string",
              "enum": [
                "email",
                "linkedin"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The organization's mailboxes and LinkedIn seats.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "accounts"
                  ],
                  "properties": {
                    "accounts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "description": "A mailbox (`channel` `email`) or a LinkedIn seat (`channel` `linkedin`). A field without a value is absent.",
                        "required": [
                          "channel",
                          "id",
                          "isActive",
                          "isConnected"
                        ],
                        "properties": {
                          "channel": {
                            "type": "string",
                            "enum": [
                              "email",
                              "linkedin"
                            ]
                          },
                          "id": {
                            "type": "string",
                            "description": "A mailbox's email address, or a seat's id."
                          },
                          "name": {
                            "type": "string",
                            "description": "A mailbox's sender name, or the seat's LinkedIn profile name."
                          },
                          "isActive": {
                            "type": "boolean",
                            "description": "Campaigns may send from it."
                          },
                          "isConnected": {
                            "type": "boolean",
                            "description": "Its sign-in works."
                          },
                          "emailAddress": {
                            "type": "string",
                            "description": "Mailboxes."
                          },
                          "provider": {
                            "type": "string",
                            "description": "Mailboxes: `smtp`, `gmail` or `outlook`."
                          },
                          "dailyCapacity": {
                            "type": "integer",
                            "description": "Mailboxes: the most emails it sends a day."
                          },
                          "availableCapacity": {
                            "type": "integer",
                            "description": "Mailboxes: what is left of it today."
                          },
                          "needsReauthAt": {
                            "type": "string",
                            "format": "date-time",
                            "description": "Mailboxes: when its sign-in stopped working."
                          },
                          "needsReauthReason": {
                            "type": "string",
                            "description": "Mailboxes: why, such as `smtp_auth_rejected`."
                          },
                          "warmup": {
                            "type": "object",
                            "description": "Mailboxes: its warmup.",
                            "properties": {
                              "status": {
                                "type": "string",
                                "enum": [
                                  "new",
                                  "warming",
                                  "warmed",
                                  "paused",
                                  "issue"
                                ]
                              },
                              "startedAt": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "daysActive": {
                                "type": "integer"
                              },
                              "last7Days": {
                                "type": "object",
                                "description": "Warmup emails sent in the last 7 days, and where they landed.",
                                "properties": {
                                  "sent": {
                                    "type": "integer"
                                  },
                                  "inbox": {
                                    "type": "integer"
                                  },
                                  "spam": {
                                    "type": "integer"
                                  }
                                }
                              },
                              "dnsGrade": {
                                "type": "string",
                                "description": "The domain's mail setup, A to F."
                              }
                            }
                          },
                          "email": {
                            "type": "string",
                            "description": "Seats: the LinkedIn sign-in email."
                          },
                          "publicIdentifier": {
                            "type": "string",
                            "description": "Seats: the profile's address name, as in linkedin.com/in/..."
                          },
                          "type": {
                            "type": "string",
                            "description": "Seats: `classic`, `sales_navigator` or `recruiter`."
                          },
                          "status": {
                            "type": "string",
                            "description": "Seats, one at a time: `connected`, `reconnected` or `disconnected`."
                          },
                          "dailyLimits": {
                            "type": "object",
                            "properties": {
                              "invitations": {
                                "type": "integer"
                              },
                              "messages": {
                                "type": "integer"
                              }
                            },
                            "description": "Seats, one at a time: invitations and messages a day."
                          },
                          "dailyRemaining": {
                            "type": "object",
                            "properties": {
                              "invitations": {
                                "type": "integer"
                              },
                              "messages": {
                                "type": "integer"
                              }
                            },
                            "description": "Seats, one at a time: what is left today."
                          },
                          "weeklyLimits": {
                            "type": "object",
                            "properties": {
                              "invitations": {
                                "type": "integer"
                              },
                              "messages": {
                                "type": "integer"
                              }
                            },
                            "description": "Seats, one at a time: invitations and messages a week."
                          },
                          "weeklyRemaining": {
                            "type": "object",
                            "properties": {
                              "invitations": {
                                "type": "integer"
                              },
                              "messages": {
                                "type": "integer"
                              }
                            },
                            "description": "Seats, one at a time: what is left this week (from Monday, UTC)."
                          },
                          "signature": {
                            "type": "string",
                            "description": "One at a time: the signature `{Sender Signature}` inserts."
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "accounts": [
                    {
                      "channel": "email",
                      "id": "maya@fernway.co",
                      "emailAddress": "maya@fernway.co",
                      "name": "Maya Fern",
                      "provider": "smtp",
                      "isActive": true,
                      "isConnected": true,
                      "dailyCapacity": 15,
                      "availableCapacity": 12,
                      "warmup": {
                        "status": "warming",
                        "startedAt": "2026-11-02T09:00:00.000Z",
                        "daysActive": 12,
                        "last7Days": {
                          "sent": 84,
                          "inbox": 81,
                          "spam": 3
                        },
                        "dnsGrade": "A"
                      }
                    },
                    {
                      "channel": "linkedin",
                      "id": "sBzWb1QeTTqF0vUpHKa2xg",
                      "name": "Maya Fern",
                      "publicIdentifier": "maya-fern",
                      "type": "classic",
                      "isActive": true,
                      "isConnected": true
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/accounts/email": {
      "post": {
        "operationId": "postAccountsEmail",
        "tags": [
          "Accounts"
        ],
        "summary": "Connect a mailbox",
        "description": "Connects any mailbox with SMTP and IMAP: both sign-ins are checked before it is saved, and replies come back over IMAP. Connecting a mailbox the organization has signs it in again and keeps its settings.\n\nA sign-in the server refuses answers `422` `smtp_login_rejected`; a host that does not resolve, `smtp_host_not_found`; a domain whose mail Microsoft hosts, which takes no password sign-in, `microsoft_oauth_required`. Checking can take a minute for a slow server: allow two minutes.\n\n**Price:** \\$1 a mailbox for each 30 days it stays connected, charged from your balance once it connects and then every 30 days. Your balance must cover the first 30 days of each new account when you call, or the call answers `402` `insufficient_balance` and connects nothing. An account whose first 30 days your balance no longer covers once it connects (another call spent it first) is disconnected at the next fee run, usually within 15 minutes, instead of charged. A later fee your balance cannot cover is tried again each day; still unpaid after 3 days, the account is disconnected. The call itself is free. **Scope:** connections, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Names this operation, so a retry with the same key and body gets the first success again, marked `Idempotent-Replayed`, instead of running or charging twice. A mailbox's `password` is not compared: the same mailbox sent again with another password is the same call, and gets the first answer. Kept 24 hours for your organization and this route. A refusal (`4xx`) frees the key at once, so a corrected retry runs. After a server error (`5xx`), which may still take effect, the key stays held for 5 minutes from the call's start, and a retry in that time answers `409` `idempotency_in_progress`; after that, a send or import that may already have gone out answers `409` `idempotency_outcome_unknown` instead of running again. 1 to 255 visible ASCII characters, such as a UUID.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7E]+$"
            },
            "example": "5f1c9d2e-8a4b-4e7c-9f30-6b2a1d8e4c75"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "emailAddress": {
                    "type": "string",
                    "description": "The mailbox's address. It becomes the account's `id`, in lower case.",
                    "maxLength": 320
                  },
                  "name": {
                    "type": "string",
                    "description": "The sender name, for a new mailbox.",
                    "maxLength": 200
                  },
                  "smtpHost": {
                    "type": "string",
                    "description": "The outgoing (SMTP) server, such as `smtp.fernway.co`."
                  },
                  "smtpPort": {
                    "type": "number",
                    "description": "465 (the default) for TLS, or 587 for STARTTLS."
                  },
                  "smtpSecure": {
                    "type": "boolean",
                    "description": "True (the default) for TLS on port 465, false for STARTTLS on 587."
                  },
                  "imapHost": {
                    "type": "string",
                    "description": "The incoming (IMAP) server, such as `imap.fernway.co`."
                  },
                  "imapPort": {
                    "type": "number",
                    "description": "993 (the default)."
                  },
                  "imapSecure": {
                    "type": "boolean",
                    "description": "True (the default) for TLS."
                  },
                  "authUser": {
                    "type": "string",
                    "description": "The sign-in name, when it is not `emailAddress`.",
                    "maxLength": 320
                  },
                  "password": {
                    "type": "string",
                    "description": "The mailbox's password, or an app password where the provider asks for one. Checked by signing in, kept encrypted, never shown.",
                    "minLength": 1,
                    "maxLength": 1024
                  }
                },
                "required": [
                  "emailAddress",
                  "smtpHost",
                  "imapHost",
                  "password"
                ]
              },
              "example": {
                "emailAddress": "maya@fernway.co",
                "name": "Maya Fern",
                "smtpHost": "smtp.fernway.co",
                "smtpPort": 465,
                "imapHost": "imap.fernway.co",
                "imapPort": 993,
                "password": "app-password"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The mailbox, connected.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "A mailbox (`channel` `email`) or a LinkedIn seat (`channel` `linkedin`). A field without a value is absent.",
                  "required": [
                    "channel",
                    "id",
                    "isActive",
                    "isConnected"
                  ],
                  "properties": {
                    "channel": {
                      "type": "string",
                      "enum": [
                        "email",
                        "linkedin"
                      ]
                    },
                    "id": {
                      "type": "string",
                      "description": "A mailbox's email address, or a seat's id."
                    },
                    "name": {
                      "type": "string",
                      "description": "A mailbox's sender name, or the seat's LinkedIn profile name."
                    },
                    "isActive": {
                      "type": "boolean",
                      "description": "Campaigns may send from it."
                    },
                    "isConnected": {
                      "type": "boolean",
                      "description": "Its sign-in works."
                    },
                    "emailAddress": {
                      "type": "string",
                      "description": "Mailboxes."
                    },
                    "provider": {
                      "type": "string",
                      "description": "Mailboxes: `smtp`, `gmail` or `outlook`."
                    },
                    "dailyCapacity": {
                      "type": "integer",
                      "description": "Mailboxes: the most emails it sends a day."
                    },
                    "availableCapacity": {
                      "type": "integer",
                      "description": "Mailboxes: what is left of it today."
                    },
                    "needsReauthAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Mailboxes: when its sign-in stopped working."
                    },
                    "needsReauthReason": {
                      "type": "string",
                      "description": "Mailboxes: why, such as `smtp_auth_rejected`."
                    },
                    "warmup": {
                      "type": "object",
                      "description": "Mailboxes: its warmup.",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "new",
                            "warming",
                            "warmed",
                            "paused",
                            "issue"
                          ]
                        },
                        "startedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "daysActive": {
                          "type": "integer"
                        },
                        "last7Days": {
                          "type": "object",
                          "description": "Warmup emails sent in the last 7 days, and where they landed.",
                          "properties": {
                            "sent": {
                              "type": "integer"
                            },
                            "inbox": {
                              "type": "integer"
                            },
                            "spam": {
                              "type": "integer"
                            }
                          }
                        },
                        "dnsGrade": {
                          "type": "string",
                          "description": "The domain's mail setup, A to F."
                        }
                      }
                    },
                    "email": {
                      "type": "string",
                      "description": "Seats: the LinkedIn sign-in email."
                    },
                    "publicIdentifier": {
                      "type": "string",
                      "description": "Seats: the profile's address name, as in linkedin.com/in/..."
                    },
                    "type": {
                      "type": "string",
                      "description": "Seats: `classic`, `sales_navigator` or `recruiter`."
                    },
                    "status": {
                      "type": "string",
                      "description": "Seats, one at a time: `connected`, `reconnected` or `disconnected`."
                    },
                    "dailyLimits": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: invitations and messages a day."
                    },
                    "dailyRemaining": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: what is left today."
                    },
                    "weeklyLimits": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: invitations and messages a week."
                    },
                    "weeklyRemaining": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: what is left this week (from Monday, UTC)."
                    },
                    "signature": {
                      "type": "string",
                      "description": "One at a time: the signature `{Sender Signature}` inserts."
                    }
                  }
                },
                "example": {
                  "channel": "email",
                  "id": "maya@fernway.co",
                  "emailAddress": "maya@fernway.co",
                  "name": "Maya Fern",
                  "provider": "smtp",
                  "isActive": true,
                  "isConnected": true,
                  "dailyCapacity": 15,
                  "availableCapacity": 15,
                  "warmup": {
                    "status": "new"
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/accounts/email/bulk": {
      "post": {
        "operationId": "postAccountsEmailBulk",
        "tags": [
          "Accounts"
        ],
        "summary": "Connect mailboxes in bulk",
        "description": "Connects 1 to 250 mailboxes in the background, each as `POST /v1/accounts/email` takes one. It answers `202` at once with the mailboxes it left out before any sign-in (`skipped`, by their place in `mailboxes`). Follow it with `GET /v1/accounts/email/bulk/status`, then list the mailboxes with `GET /v1/accounts?channel=email`: one whose sign-in failed is not there.\n\nOne import runs at a time: another while it runs answers `409` `mailbox_import_in_progress`. Imports have their own limit, 5 a minute and 20 a day.\n\n**Price:** \\$1 a mailbox for each 30 days it stays connected, charged from your balance once it connects and then every 30 days. Your balance must cover the first 30 days of each new account when you call, or the call answers `402` `insufficient_balance` and connects nothing. An account whose first 30 days your balance no longer covers once it connects (another call spent it first) is disconnected at the next fee run, usually within 15 minutes, instead of charged. A later fee your balance cannot cover is tried again each day; still unpaid after 3 days, the account is disconnected. The call itself is free. **Scope:** connections, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Names this operation, so a retry with the same key and body gets the first success again, marked `Idempotent-Replayed`, instead of running or charging twice. A mailbox's `password` is not compared: the same mailbox sent again with another password is the same call, and gets the first answer. Kept 24 hours for your organization and this route. A refusal (`4xx`) frees the key at once, so a corrected retry runs. After a server error (`5xx`), which may still take effect, the key stays held for 5 minutes from the call's start, and a retry in that time answers `409` `idempotency_in_progress`; after that, a send or import that may already have gone out answers `409` `idempotency_outcome_unknown` instead of running again. 1 to 255 visible ASCII characters, such as a UUID.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7E]+$"
            },
            "example": "5f1c9d2e-8a4b-4e7c-9f30-6b2a1d8e4c75"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mailboxes": {
                    "type": "array",
                    "description": "1 to 250 mailboxes, each as `POST /v1/accounts/email` takes one.",
                    "minItems": 1,
                    "maxItems": 250,
                    "items": {
                      "type": "object",
                      "properties": {
                        "emailAddress": {
                          "type": "string",
                          "description": "The mailbox's address. It becomes the account's `id`, in lower case.",
                          "maxLength": 320
                        },
                        "name": {
                          "type": "string",
                          "description": "The sender name, for a new mailbox.",
                          "maxLength": 200
                        },
                        "smtpHost": {
                          "type": "string",
                          "description": "The outgoing (SMTP) server, such as `smtp.fernway.co`."
                        },
                        "smtpPort": {
                          "type": "number",
                          "description": "465 (the default) for TLS, or 587 for STARTTLS."
                        },
                        "smtpSecure": {
                          "type": "boolean",
                          "description": "True (the default) for TLS on port 465, false for STARTTLS on 587."
                        },
                        "imapHost": {
                          "type": "string",
                          "description": "The incoming (IMAP) server, such as `imap.fernway.co`."
                        },
                        "imapPort": {
                          "type": "number",
                          "description": "993 (the default)."
                        },
                        "imapSecure": {
                          "type": "boolean",
                          "description": "True (the default) for TLS."
                        },
                        "authUser": {
                          "type": "string",
                          "description": "The sign-in name, when it is not `emailAddress`.",
                          "maxLength": 320
                        },
                        "password": {
                          "type": "string",
                          "description": "The mailbox's password, or an app password where the provider asks for one. Checked by signing in, kept encrypted, never shown.",
                          "minLength": 1,
                          "maxLength": 1024
                        }
                      },
                      "required": [
                        "emailAddress",
                        "smtpHost",
                        "imapHost",
                        "password"
                      ]
                    }
                  }
                },
                "required": [
                  "mailboxes"
                ]
              },
              "example": {
                "mailboxes": [
                  {
                    "emailAddress": "maya@fernway.co",
                    "smtpHost": "smtp.fernway.co",
                    "imapHost": "imap.fernway.co",
                    "password": "app-password"
                  },
                  {
                    "emailAddress": "rui@fernway.co",
                    "smtpHost": "smtp.fernway.co",
                    "imapHost": "imap.fernway.co",
                    "password": "app-password"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The import, started: how many mailboxes it is connecting, and those it left out at once.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "totalRows",
                    "connectingRows",
                    "skipped"
                  ],
                  "properties": {
                    "totalRows": {
                      "type": "integer",
                      "description": "Mailboxes sent."
                    },
                    "connectingRows": {
                      "type": "integer",
                      "description": "Mailboxes being connected in the background."
                    },
                    "skipped": {
                      "type": "array",
                      "description": "Mailboxes left out before any sign-in, by their place in `mailboxes`.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "index": {
                            "type": "integer",
                            "description": "From 0."
                          },
                          "reason": {
                            "type": "string",
                            "description": "`duplicate_in_request`, `email_account_already_connected`, `microsoft_oauth_required` or `email_account_limit_reached`."
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "totalRows": 3,
                  "connectingRows": 2,
                  "skipped": [
                    {
                      "index": 2,
                      "reason": "duplicate_in_request"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/accounts/email/bulk/status": {
      "get": {
        "operationId": "getAccountsEmailBulkStatus",
        "tags": [
          "Accounts"
        ],
        "summary": "Get the mailbox import status",
        "description": "Whether a mailbox import is still connecting mailboxes, and when it started. It says so for the organization, not for one import.\n\nFree. **Scope:** connections. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Whether an import is still connecting mailboxes.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "isImporting"
                  ],
                  "properties": {
                    "isImporting": {
                      "type": "boolean"
                    },
                    "startedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the running import started."
                    }
                  }
                },
                "example": {
                  "isImporting": true,
                  "startedAt": "2026-11-15T09:30:00.000Z"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/accounts/email/{accountId}/pause": {
      "post": {
        "operationId": "postAccountsEmailAccountIdPause",
        "tags": [
          "Accounts"
        ],
        "summary": "Pause a mailbox",
        "description": "Stops campaigns sending from a mailbox: `isActive` becomes false. A mailbox the organization does not have answers `404` `account_not_found`.\n\nFree. **Scope:** connections, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "description": "The mailbox's address, its `id` (any case, `@` as is or as `%40`).",
            "schema": {
              "type": "string",
              "maxLength": 320
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The mailbox.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "A mailbox (`channel` `email`) or a LinkedIn seat (`channel` `linkedin`). A field without a value is absent.",
                  "required": [
                    "channel",
                    "id",
                    "isActive",
                    "isConnected"
                  ],
                  "properties": {
                    "channel": {
                      "type": "string",
                      "enum": [
                        "email",
                        "linkedin"
                      ]
                    },
                    "id": {
                      "type": "string",
                      "description": "A mailbox's email address, or a seat's id."
                    },
                    "name": {
                      "type": "string",
                      "description": "A mailbox's sender name, or the seat's LinkedIn profile name."
                    },
                    "isActive": {
                      "type": "boolean",
                      "description": "Campaigns may send from it."
                    },
                    "isConnected": {
                      "type": "boolean",
                      "description": "Its sign-in works."
                    },
                    "emailAddress": {
                      "type": "string",
                      "description": "Mailboxes."
                    },
                    "provider": {
                      "type": "string",
                      "description": "Mailboxes: `smtp`, `gmail` or `outlook`."
                    },
                    "dailyCapacity": {
                      "type": "integer",
                      "description": "Mailboxes: the most emails it sends a day."
                    },
                    "availableCapacity": {
                      "type": "integer",
                      "description": "Mailboxes: what is left of it today."
                    },
                    "needsReauthAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Mailboxes: when its sign-in stopped working."
                    },
                    "needsReauthReason": {
                      "type": "string",
                      "description": "Mailboxes: why, such as `smtp_auth_rejected`."
                    },
                    "warmup": {
                      "type": "object",
                      "description": "Mailboxes: its warmup.",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "new",
                            "warming",
                            "warmed",
                            "paused",
                            "issue"
                          ]
                        },
                        "startedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "daysActive": {
                          "type": "integer"
                        },
                        "last7Days": {
                          "type": "object",
                          "description": "Warmup emails sent in the last 7 days, and where they landed.",
                          "properties": {
                            "sent": {
                              "type": "integer"
                            },
                            "inbox": {
                              "type": "integer"
                            },
                            "spam": {
                              "type": "integer"
                            }
                          }
                        },
                        "dnsGrade": {
                          "type": "string",
                          "description": "The domain's mail setup, A to F."
                        }
                      }
                    },
                    "email": {
                      "type": "string",
                      "description": "Seats: the LinkedIn sign-in email."
                    },
                    "publicIdentifier": {
                      "type": "string",
                      "description": "Seats: the profile's address name, as in linkedin.com/in/..."
                    },
                    "type": {
                      "type": "string",
                      "description": "Seats: `classic`, `sales_navigator` or `recruiter`."
                    },
                    "status": {
                      "type": "string",
                      "description": "Seats, one at a time: `connected`, `reconnected` or `disconnected`."
                    },
                    "dailyLimits": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: invitations and messages a day."
                    },
                    "dailyRemaining": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: what is left today."
                    },
                    "weeklyLimits": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: invitations and messages a week."
                    },
                    "weeklyRemaining": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: what is left this week (from Monday, UTC)."
                    },
                    "signature": {
                      "type": "string",
                      "description": "One at a time: the signature `{Sender Signature}` inserts."
                    }
                  }
                },
                "example": {
                  "channel": "email",
                  "id": "maya@fernway.co",
                  "emailAddress": "maya@fernway.co",
                  "name": "Maya Fern",
                  "provider": "smtp",
                  "isActive": true,
                  "isConnected": true,
                  "dailyCapacity": 15,
                  "availableCapacity": 12,
                  "warmup": {
                    "status": "warming",
                    "startedAt": "2026-11-02T09:00:00.000Z",
                    "daysActive": 12,
                    "last7Days": {
                      "sent": 84,
                      "inbox": 81,
                      "spam": 3
                    },
                    "dnsGrade": "A"
                  },
                  "signature": "<p>Maya Fern, Fernway</p>"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/accounts/email/{accountId}/resume": {
      "post": {
        "operationId": "postAccountsEmailAccountIdResume",
        "tags": [
          "Accounts"
        ],
        "summary": "Resume a mailbox",
        "description": "Lets campaigns send from a paused mailbox again. A mailbox the organization does not have answers `404` `account_not_found`.\n\nFree. **Scope:** connections, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "description": "The mailbox's address, its `id` (any case, `@` as is or as `%40`).",
            "schema": {
              "type": "string",
              "maxLength": 320
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The mailbox.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "A mailbox (`channel` `email`) or a LinkedIn seat (`channel` `linkedin`). A field without a value is absent.",
                  "required": [
                    "channel",
                    "id",
                    "isActive",
                    "isConnected"
                  ],
                  "properties": {
                    "channel": {
                      "type": "string",
                      "enum": [
                        "email",
                        "linkedin"
                      ]
                    },
                    "id": {
                      "type": "string",
                      "description": "A mailbox's email address, or a seat's id."
                    },
                    "name": {
                      "type": "string",
                      "description": "A mailbox's sender name, or the seat's LinkedIn profile name."
                    },
                    "isActive": {
                      "type": "boolean",
                      "description": "Campaigns may send from it."
                    },
                    "isConnected": {
                      "type": "boolean",
                      "description": "Its sign-in works."
                    },
                    "emailAddress": {
                      "type": "string",
                      "description": "Mailboxes."
                    },
                    "provider": {
                      "type": "string",
                      "description": "Mailboxes: `smtp`, `gmail` or `outlook`."
                    },
                    "dailyCapacity": {
                      "type": "integer",
                      "description": "Mailboxes: the most emails it sends a day."
                    },
                    "availableCapacity": {
                      "type": "integer",
                      "description": "Mailboxes: what is left of it today."
                    },
                    "needsReauthAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Mailboxes: when its sign-in stopped working."
                    },
                    "needsReauthReason": {
                      "type": "string",
                      "description": "Mailboxes: why, such as `smtp_auth_rejected`."
                    },
                    "warmup": {
                      "type": "object",
                      "description": "Mailboxes: its warmup.",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "new",
                            "warming",
                            "warmed",
                            "paused",
                            "issue"
                          ]
                        },
                        "startedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "daysActive": {
                          "type": "integer"
                        },
                        "last7Days": {
                          "type": "object",
                          "description": "Warmup emails sent in the last 7 days, and where they landed.",
                          "properties": {
                            "sent": {
                              "type": "integer"
                            },
                            "inbox": {
                              "type": "integer"
                            },
                            "spam": {
                              "type": "integer"
                            }
                          }
                        },
                        "dnsGrade": {
                          "type": "string",
                          "description": "The domain's mail setup, A to F."
                        }
                      }
                    },
                    "email": {
                      "type": "string",
                      "description": "Seats: the LinkedIn sign-in email."
                    },
                    "publicIdentifier": {
                      "type": "string",
                      "description": "Seats: the profile's address name, as in linkedin.com/in/..."
                    },
                    "type": {
                      "type": "string",
                      "description": "Seats: `classic`, `sales_navigator` or `recruiter`."
                    },
                    "status": {
                      "type": "string",
                      "description": "Seats, one at a time: `connected`, `reconnected` or `disconnected`."
                    },
                    "dailyLimits": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: invitations and messages a day."
                    },
                    "dailyRemaining": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: what is left today."
                    },
                    "weeklyLimits": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: invitations and messages a week."
                    },
                    "weeklyRemaining": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: what is left this week (from Monday, UTC)."
                    },
                    "signature": {
                      "type": "string",
                      "description": "One at a time: the signature `{Sender Signature}` inserts."
                    }
                  }
                },
                "example": {
                  "channel": "email",
                  "id": "maya@fernway.co",
                  "emailAddress": "maya@fernway.co",
                  "name": "Maya Fern",
                  "provider": "smtp",
                  "isActive": true,
                  "isConnected": true,
                  "dailyCapacity": 15,
                  "availableCapacity": 12,
                  "warmup": {
                    "status": "warming",
                    "startedAt": "2026-11-02T09:00:00.000Z",
                    "daysActive": 12,
                    "last7Days": {
                      "sent": 84,
                      "inbox": 81,
                      "spam": 3
                    },
                    "dnsGrade": "A"
                  },
                  "signature": "<p>Maya Fern, Fernway</p>"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/accounts/email/{accountId}/warmup": {
      "post": {
        "operationId": "postAccountsEmailAccountIdWarmup",
        "tags": [
          "Accounts"
        ],
        "summary": "Start a mailbox's warmup",
        "description": "Starts warming a mailbox up, or starts a paused warmup again: it exchanges emails with other mailboxes so providers come to trust it. Follow it in the mailbox's `warmup`. Warmup sends under the mailbox's sender name: one without a name answers `409` `mailbox_name_required`. Included at no charge.\n\nFree. **Scope:** connections, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "description": "The mailbox's address, its `id` (any case, `@` as is or as `%40`).",
            "schema": {
              "type": "string",
              "maxLength": 320
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "appPassword": {
                    "type": "string",
                    "description": "A Google app password, for a Gmail mailbox whose warmup is being set up: send it when a start answers `warmup_app_password_required`. Used to sign in once, never kept.",
                    "minLength": 1,
                    "maxLength": 100
                  }
                }
              },
              "example": {
                "appPassword": "abcd efgh ijkl mnop"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The mailbox.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "A mailbox (`channel` `email`) or a LinkedIn seat (`channel` `linkedin`). A field without a value is absent.",
                  "required": [
                    "channel",
                    "id",
                    "isActive",
                    "isConnected"
                  ],
                  "properties": {
                    "channel": {
                      "type": "string",
                      "enum": [
                        "email",
                        "linkedin"
                      ]
                    },
                    "id": {
                      "type": "string",
                      "description": "A mailbox's email address, or a seat's id."
                    },
                    "name": {
                      "type": "string",
                      "description": "A mailbox's sender name, or the seat's LinkedIn profile name."
                    },
                    "isActive": {
                      "type": "boolean",
                      "description": "Campaigns may send from it."
                    },
                    "isConnected": {
                      "type": "boolean",
                      "description": "Its sign-in works."
                    },
                    "emailAddress": {
                      "type": "string",
                      "description": "Mailboxes."
                    },
                    "provider": {
                      "type": "string",
                      "description": "Mailboxes: `smtp`, `gmail` or `outlook`."
                    },
                    "dailyCapacity": {
                      "type": "integer",
                      "description": "Mailboxes: the most emails it sends a day."
                    },
                    "availableCapacity": {
                      "type": "integer",
                      "description": "Mailboxes: what is left of it today."
                    },
                    "needsReauthAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Mailboxes: when its sign-in stopped working."
                    },
                    "needsReauthReason": {
                      "type": "string",
                      "description": "Mailboxes: why, such as `smtp_auth_rejected`."
                    },
                    "warmup": {
                      "type": "object",
                      "description": "Mailboxes: its warmup.",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "new",
                            "warming",
                            "warmed",
                            "paused",
                            "issue"
                          ]
                        },
                        "startedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "daysActive": {
                          "type": "integer"
                        },
                        "last7Days": {
                          "type": "object",
                          "description": "Warmup emails sent in the last 7 days, and where they landed.",
                          "properties": {
                            "sent": {
                              "type": "integer"
                            },
                            "inbox": {
                              "type": "integer"
                            },
                            "spam": {
                              "type": "integer"
                            }
                          }
                        },
                        "dnsGrade": {
                          "type": "string",
                          "description": "The domain's mail setup, A to F."
                        }
                      }
                    },
                    "email": {
                      "type": "string",
                      "description": "Seats: the LinkedIn sign-in email."
                    },
                    "publicIdentifier": {
                      "type": "string",
                      "description": "Seats: the profile's address name, as in linkedin.com/in/..."
                    },
                    "type": {
                      "type": "string",
                      "description": "Seats: `classic`, `sales_navigator` or `recruiter`."
                    },
                    "status": {
                      "type": "string",
                      "description": "Seats, one at a time: `connected`, `reconnected` or `disconnected`."
                    },
                    "dailyLimits": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: invitations and messages a day."
                    },
                    "dailyRemaining": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: what is left today."
                    },
                    "weeklyLimits": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: invitations and messages a week."
                    },
                    "weeklyRemaining": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: what is left this week (from Monday, UTC)."
                    },
                    "signature": {
                      "type": "string",
                      "description": "One at a time: the signature `{Sender Signature}` inserts."
                    }
                  }
                },
                "example": {
                  "channel": "email",
                  "id": "maya@fernway.co",
                  "emailAddress": "maya@fernway.co",
                  "name": "Maya Fern",
                  "provider": "smtp",
                  "isActive": true,
                  "isConnected": true,
                  "dailyCapacity": 15,
                  "availableCapacity": 12,
                  "warmup": {
                    "status": "warming",
                    "startedAt": "2026-11-02T09:00:00.000Z",
                    "daysActive": 12,
                    "last7Days": {
                      "sent": 84,
                      "inbox": 81,
                      "spam": 3
                    },
                    "dnsGrade": "A"
                  },
                  "signature": "<p>Maya Fern, Fernway</p>"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/accounts/email/{accountId}/warmup/pause": {
      "post": {
        "operationId": "postAccountsEmailAccountIdWarmupPause",
        "tags": [
          "Accounts"
        ],
        "summary": "Pause a mailbox's warmup",
        "description": "Pauses a mailbox's warmup. A mailbox whose warmup never started answers `404` `warmup_not_found`.\n\nFree. **Scope:** connections, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "description": "The mailbox's address, its `id` (any case, `@` as is or as `%40`).",
            "schema": {
              "type": "string",
              "maxLength": 320
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The mailbox.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "A mailbox (`channel` `email`) or a LinkedIn seat (`channel` `linkedin`). A field without a value is absent.",
                  "required": [
                    "channel",
                    "id",
                    "isActive",
                    "isConnected"
                  ],
                  "properties": {
                    "channel": {
                      "type": "string",
                      "enum": [
                        "email",
                        "linkedin"
                      ]
                    },
                    "id": {
                      "type": "string",
                      "description": "A mailbox's email address, or a seat's id."
                    },
                    "name": {
                      "type": "string",
                      "description": "A mailbox's sender name, or the seat's LinkedIn profile name."
                    },
                    "isActive": {
                      "type": "boolean",
                      "description": "Campaigns may send from it."
                    },
                    "isConnected": {
                      "type": "boolean",
                      "description": "Its sign-in works."
                    },
                    "emailAddress": {
                      "type": "string",
                      "description": "Mailboxes."
                    },
                    "provider": {
                      "type": "string",
                      "description": "Mailboxes: `smtp`, `gmail` or `outlook`."
                    },
                    "dailyCapacity": {
                      "type": "integer",
                      "description": "Mailboxes: the most emails it sends a day."
                    },
                    "availableCapacity": {
                      "type": "integer",
                      "description": "Mailboxes: what is left of it today."
                    },
                    "needsReauthAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Mailboxes: when its sign-in stopped working."
                    },
                    "needsReauthReason": {
                      "type": "string",
                      "description": "Mailboxes: why, such as `smtp_auth_rejected`."
                    },
                    "warmup": {
                      "type": "object",
                      "description": "Mailboxes: its warmup.",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "new",
                            "warming",
                            "warmed",
                            "paused",
                            "issue"
                          ]
                        },
                        "startedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "daysActive": {
                          "type": "integer"
                        },
                        "last7Days": {
                          "type": "object",
                          "description": "Warmup emails sent in the last 7 days, and where they landed.",
                          "properties": {
                            "sent": {
                              "type": "integer"
                            },
                            "inbox": {
                              "type": "integer"
                            },
                            "spam": {
                              "type": "integer"
                            }
                          }
                        },
                        "dnsGrade": {
                          "type": "string",
                          "description": "The domain's mail setup, A to F."
                        }
                      }
                    },
                    "email": {
                      "type": "string",
                      "description": "Seats: the LinkedIn sign-in email."
                    },
                    "publicIdentifier": {
                      "type": "string",
                      "description": "Seats: the profile's address name, as in linkedin.com/in/..."
                    },
                    "type": {
                      "type": "string",
                      "description": "Seats: `classic`, `sales_navigator` or `recruiter`."
                    },
                    "status": {
                      "type": "string",
                      "description": "Seats, one at a time: `connected`, `reconnected` or `disconnected`."
                    },
                    "dailyLimits": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: invitations and messages a day."
                    },
                    "dailyRemaining": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: what is left today."
                    },
                    "weeklyLimits": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: invitations and messages a week."
                    },
                    "weeklyRemaining": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: what is left this week (from Monday, UTC)."
                    },
                    "signature": {
                      "type": "string",
                      "description": "One at a time: the signature `{Sender Signature}` inserts."
                    }
                  }
                },
                "example": {
                  "channel": "email",
                  "id": "maya@fernway.co",
                  "emailAddress": "maya@fernway.co",
                  "name": "Maya Fern",
                  "provider": "smtp",
                  "isActive": true,
                  "isConnected": true,
                  "dailyCapacity": 15,
                  "availableCapacity": 12,
                  "warmup": {
                    "status": "warming",
                    "startedAt": "2026-11-02T09:00:00.000Z",
                    "daysActive": 12,
                    "last7Days": {
                      "sent": 84,
                      "inbox": 81,
                      "spam": 3
                    },
                    "dnsGrade": "A"
                  },
                  "signature": "<p>Maya Fern, Fernway</p>"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/accounts/linkedin/connect-links": {
      "post": {
        "operationId": "postAccountsLinkedinConnectLinks",
        "tags": [
          "Accounts"
        ],
        "summary": "Create a LinkedIn sign-in link",
        "description": "Makes a hosted sign-in link for connecting a LinkedIn seat, valid for 24 hours. Send it to the seat's owner, who signs in to LinkedIn on that page: you never handle their password or session. Afterwards the page sends them to the organization's Connections page in the console. Then call `GET /v1/accounts?channel=linkedin` until the new seat is listed with `isConnected` true.\n\nKeep the link secret: whoever opens it can connect a seat to the organization. When every seat the organization may have is in use, it answers `403` `linkedin_account_limit_reached`.\n\n**Price:** \\$10 a seat for each 30 days it stays connected, charged from your balance once it connects and then every 30 days. Your balance must cover the first 30 days of each new account when you call, or the call answers `402` `insufficient_balance` and connects nothing. An account whose first 30 days your balance no longer covers once it connects (another call spent it first) is disconnected at the next fee run, usually within 15 minutes, instead of charged. A later fee your balance cannot cover is tried again each day; still unpaid after 3 days, the account is disconnected. The call itself is free. **Scope:** connections, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "201": {
            "description": "A sign-in link, valid for 24 hours.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "url"
                  ],
                  "properties": {
                    "url": {
                      "type": "string",
                      "description": "The hosted sign-in page."
                    }
                  }
                },
                "example": {
                  "url": "https://auth.example.com/signin/3f9c2a"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/accounts/linkedin/{accountId}/reconnect-links": {
      "post": {
        "operationId": "postAccountsLinkedinAccountIdReconnectLinks",
        "tags": [
          "Accounts"
        ],
        "summary": "Create a LinkedIn reconnect link",
        "description": "Makes a hosted sign-in link, valid for 24 hours, that signs a seat in again once LinkedIn ended its session (`isConnected` false). Afterwards the page sends the person to the organization's Connections page in the console. Then call `GET /v1/accounts/linkedin/{accountId}` until `isConnected` is true. Keep the link secret.\n\nSigning in again costs nothing while the seat's 30 days are paid for. A seat that was signed out when its fee fell due stopped being billed; once it connects again it starts a new 30 days, at \\$10.\n\nFree. **Scope:** connections, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "description": "The seat's `id`, from `GET /v1/accounts?channel=linkedin`.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          }
        ],
        "responses": {
          "201": {
            "description": "A sign-in link, valid for 24 hours.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "url"
                  ],
                  "properties": {
                    "url": {
                      "type": "string",
                      "description": "The hosted sign-in page."
                    }
                  }
                },
                "example": {
                  "url": "https://auth.example.com/signin/3f9c2a"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/accounts/{channel}/{accountId}": {
      "get": {
        "operationId": "getAccountsChannelAccountId",
        "tags": [
          "Accounts"
        ],
        "summary": "Get a sending account",
        "description": "One mailbox (`email`) or LinkedIn seat (`linkedin`), with its signature. A seat also shows its status and its daily and weekly limits with what is left of them. An account the organization does not have answers `404` `account_not_found`.\n\nFree. **Scope:** connections. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "channel",
            "in": "path",
            "required": true,
            "description": "`email` for a mailbox, `linkedin` for a LinkedIn seat.",
            "schema": {
              "type": "string",
              "enum": [
                "email",
                "linkedin"
              ]
            }
          },
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "description": "The account's `id` from `GET /v1/accounts`: a mailbox's address (any case, `@` as is or as `%40`) or a seat's id.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 320
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The account.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "A mailbox (`channel` `email`) or a LinkedIn seat (`channel` `linkedin`). A field without a value is absent.",
                  "required": [
                    "channel",
                    "id",
                    "isActive",
                    "isConnected"
                  ],
                  "properties": {
                    "channel": {
                      "type": "string",
                      "enum": [
                        "email",
                        "linkedin"
                      ]
                    },
                    "id": {
                      "type": "string",
                      "description": "A mailbox's email address, or a seat's id."
                    },
                    "name": {
                      "type": "string",
                      "description": "A mailbox's sender name, or the seat's LinkedIn profile name."
                    },
                    "isActive": {
                      "type": "boolean",
                      "description": "Campaigns may send from it."
                    },
                    "isConnected": {
                      "type": "boolean",
                      "description": "Its sign-in works."
                    },
                    "emailAddress": {
                      "type": "string",
                      "description": "Mailboxes."
                    },
                    "provider": {
                      "type": "string",
                      "description": "Mailboxes: `smtp`, `gmail` or `outlook`."
                    },
                    "dailyCapacity": {
                      "type": "integer",
                      "description": "Mailboxes: the most emails it sends a day."
                    },
                    "availableCapacity": {
                      "type": "integer",
                      "description": "Mailboxes: what is left of it today."
                    },
                    "needsReauthAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Mailboxes: when its sign-in stopped working."
                    },
                    "needsReauthReason": {
                      "type": "string",
                      "description": "Mailboxes: why, such as `smtp_auth_rejected`."
                    },
                    "warmup": {
                      "type": "object",
                      "description": "Mailboxes: its warmup.",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "new",
                            "warming",
                            "warmed",
                            "paused",
                            "issue"
                          ]
                        },
                        "startedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "daysActive": {
                          "type": "integer"
                        },
                        "last7Days": {
                          "type": "object",
                          "description": "Warmup emails sent in the last 7 days, and where they landed.",
                          "properties": {
                            "sent": {
                              "type": "integer"
                            },
                            "inbox": {
                              "type": "integer"
                            },
                            "spam": {
                              "type": "integer"
                            }
                          }
                        },
                        "dnsGrade": {
                          "type": "string",
                          "description": "The domain's mail setup, A to F."
                        }
                      }
                    },
                    "email": {
                      "type": "string",
                      "description": "Seats: the LinkedIn sign-in email."
                    },
                    "publicIdentifier": {
                      "type": "string",
                      "description": "Seats: the profile's address name, as in linkedin.com/in/..."
                    },
                    "type": {
                      "type": "string",
                      "description": "Seats: `classic`, `sales_navigator` or `recruiter`."
                    },
                    "status": {
                      "type": "string",
                      "description": "Seats, one at a time: `connected`, `reconnected` or `disconnected`."
                    },
                    "dailyLimits": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: invitations and messages a day."
                    },
                    "dailyRemaining": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: what is left today."
                    },
                    "weeklyLimits": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: invitations and messages a week."
                    },
                    "weeklyRemaining": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: what is left this week (from Monday, UTC)."
                    },
                    "signature": {
                      "type": "string",
                      "description": "One at a time: the signature `{Sender Signature}` inserts."
                    }
                  }
                },
                "example": {
                  "channel": "linkedin",
                  "id": "sBzWb1QeTTqF0vUpHKa2xg",
                  "name": "Maya Fern",
                  "publicIdentifier": "maya-fern",
                  "type": "classic",
                  "isActive": true,
                  "isConnected": true,
                  "status": "connected",
                  "dailyLimits": {
                    "invitations": 20,
                    "messages": 80
                  },
                  "dailyRemaining": {
                    "invitations": 18,
                    "messages": 80
                  },
                  "weeklyLimits": {
                    "invitations": 100,
                    "messages": 400
                  },
                  "weeklyRemaining": {
                    "invitations": 91,
                    "messages": 372
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "patch": {
        "operationId": "patchAccountsChannelAccountId",
        "tags": [
          "Accounts"
        ],
        "summary": "Update a sending account",
        "description": "Changes an account's settings and answers it. A mailbox takes `name`, `dailyCapacity` and `signature`; a seat takes `dailyLimits`, `weeklyLimits` and `signature`, held to what the seat allows (`422` `linkedin_daily_limits_exceeded`). A field the account's channel does not take answers `422` `validation_failed`.\n\nFree. **Scope:** connections, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "channel",
            "in": "path",
            "required": true,
            "description": "`email` for a mailbox, `linkedin` for a LinkedIn seat.",
            "schema": {
              "type": "string",
              "enum": [
                "email",
                "linkedin"
              ]
            }
          },
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "description": "The account's `id` from `GET /v1/accounts`: a mailbox's address (any case, `@` as is or as `%40`) or a seat's id.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 320
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Mailboxes: the sender name recipients see. A seat's name is its LinkedIn profile's.",
                    "maxLength": 200
                  },
                  "dailyCapacity": {
                    "type": "integer",
                    "description": "Mailboxes: the most emails it sends a day, 1 to 15. Start a mailbox under 3 months old at 5.",
                    "minimum": 1,
                    "maximum": 15
                  },
                  "dailyLimits": {
                    "type": "object",
                    "description": "Seats: `invitations` and `messages` a day, together. Free seats allow up to 20 and 80, premium seats up to 80 and 150.",
                    "properties": {
                      "invitations": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 10000
                      },
                      "messages": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 10000
                      }
                    },
                    "required": [
                      "invitations",
                      "messages"
                    ]
                  },
                  "weeklyLimits": {
                    "type": "object",
                    "description": "Seats: `invitations` and `messages` a week, together. Free seats allow up to 100 and 400, premium seats up to 200 and 800.",
                    "properties": {
                      "invitations": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 10000
                      },
                      "messages": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 10000
                      }
                    },
                    "required": [
                      "invitations",
                      "messages"
                    ]
                  },
                  "signature": {
                    "type": "string",
                    "description": "What `{Sender Signature}` inserts: HTML on a mailbox, up to 10,000 characters; plain text on a seat, up to 2,000. Empty removes it.",
                    "maxLength": 10000
                  }
                }
              },
              "example": {
                "name": "Maya Fern",
                "dailyCapacity": 10
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The account.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "A mailbox (`channel` `email`) or a LinkedIn seat (`channel` `linkedin`). A field without a value is absent.",
                  "required": [
                    "channel",
                    "id",
                    "isActive",
                    "isConnected"
                  ],
                  "properties": {
                    "channel": {
                      "type": "string",
                      "enum": [
                        "email",
                        "linkedin"
                      ]
                    },
                    "id": {
                      "type": "string",
                      "description": "A mailbox's email address, or a seat's id."
                    },
                    "name": {
                      "type": "string",
                      "description": "A mailbox's sender name, or the seat's LinkedIn profile name."
                    },
                    "isActive": {
                      "type": "boolean",
                      "description": "Campaigns may send from it."
                    },
                    "isConnected": {
                      "type": "boolean",
                      "description": "Its sign-in works."
                    },
                    "emailAddress": {
                      "type": "string",
                      "description": "Mailboxes."
                    },
                    "provider": {
                      "type": "string",
                      "description": "Mailboxes: `smtp`, `gmail` or `outlook`."
                    },
                    "dailyCapacity": {
                      "type": "integer",
                      "description": "Mailboxes: the most emails it sends a day."
                    },
                    "availableCapacity": {
                      "type": "integer",
                      "description": "Mailboxes: what is left of it today."
                    },
                    "needsReauthAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Mailboxes: when its sign-in stopped working."
                    },
                    "needsReauthReason": {
                      "type": "string",
                      "description": "Mailboxes: why, such as `smtp_auth_rejected`."
                    },
                    "warmup": {
                      "type": "object",
                      "description": "Mailboxes: its warmup.",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "new",
                            "warming",
                            "warmed",
                            "paused",
                            "issue"
                          ]
                        },
                        "startedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "daysActive": {
                          "type": "integer"
                        },
                        "last7Days": {
                          "type": "object",
                          "description": "Warmup emails sent in the last 7 days, and where they landed.",
                          "properties": {
                            "sent": {
                              "type": "integer"
                            },
                            "inbox": {
                              "type": "integer"
                            },
                            "spam": {
                              "type": "integer"
                            }
                          }
                        },
                        "dnsGrade": {
                          "type": "string",
                          "description": "The domain's mail setup, A to F."
                        }
                      }
                    },
                    "email": {
                      "type": "string",
                      "description": "Seats: the LinkedIn sign-in email."
                    },
                    "publicIdentifier": {
                      "type": "string",
                      "description": "Seats: the profile's address name, as in linkedin.com/in/..."
                    },
                    "type": {
                      "type": "string",
                      "description": "Seats: `classic`, `sales_navigator` or `recruiter`."
                    },
                    "status": {
                      "type": "string",
                      "description": "Seats, one at a time: `connected`, `reconnected` or `disconnected`."
                    },
                    "dailyLimits": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: invitations and messages a day."
                    },
                    "dailyRemaining": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: what is left today."
                    },
                    "weeklyLimits": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: invitations and messages a week."
                    },
                    "weeklyRemaining": {
                      "type": "object",
                      "properties": {
                        "invitations": {
                          "type": "integer"
                        },
                        "messages": {
                          "type": "integer"
                        }
                      },
                      "description": "Seats, one at a time: what is left this week (from Monday, UTC)."
                    },
                    "signature": {
                      "type": "string",
                      "description": "One at a time: the signature `{Sender Signature}` inserts."
                    }
                  }
                },
                "example": {
                  "channel": "linkedin",
                  "id": "sBzWb1QeTTqF0vUpHKa2xg",
                  "name": "Maya Fern",
                  "publicIdentifier": "maya-fern",
                  "type": "classic",
                  "isActive": true,
                  "isConnected": true,
                  "status": "connected",
                  "dailyLimits": {
                    "invitations": 20,
                    "messages": 80
                  },
                  "dailyRemaining": {
                    "invitations": 18,
                    "messages": 80
                  },
                  "weeklyLimits": {
                    "invitations": 100,
                    "messages": 400
                  },
                  "weeklyRemaining": {
                    "invitations": 91,
                    "messages": 372
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "delete": {
        "operationId": "deleteAccountsChannelAccountId",
        "tags": [
          "Accounts"
        ],
        "summary": "Disconnect a sending account",
        "description": "Disconnects a mailbox, with its synced emails and warmup, or a LinkedIn seat: campaigns stop sending from it. Disconnecting it again answers `404` `account_not_found`.\n\nIts 30-day fee stops: days already paid for are not refunded, and connecting it again before they run out costs nothing more.\n\nFree. **Scope:** connections, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "channel",
            "in": "path",
            "required": true,
            "description": "`email` for a mailbox, `linkedin` for a LinkedIn seat.",
            "schema": {
              "type": "string",
              "enum": [
                "email",
                "linkedin"
              ]
            }
          },
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "description": "The account's `id` from `GET /v1/accounts`: a mailbox's address (any case, `@` as is or as `%40`) or a seat's id.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 320
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The account is disconnected.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/campaigns": {
      "post": {
        "operationId": "postCampaigns",
        "tags": [
          "Campaigns"
        ],
        "summary": "Create a campaign",
        "description": "Creates a draft campaign that writes to the people on up to 10 of your people lists (`listIds`). A `manual` campaign (the default) is ready at once, with one empty step for each of its `channels` (`email` when left out): write them with `PATCH /v1/campaigns/{campaignId}/steps/{stepId}`. An `ai-generated` campaign has its steps written from `prompt` in the background: read it with `GET /v1/campaigns/{campaignId}` until `initializationStatus` is `completed` or `failed`. A `templateId` copies a saved template's steps, which decide the channels.\n\nNothing is sent until you launch it with `POST /v1/campaigns/{campaignId}/launch`. Messages go out from 9:00 to 17:00 in `timezone` (UTC when left out) on `emailDays` (Monday to Friday when left out). Open and click tracking are off unless you turn them on; with click tracking on, links go through your tracking domain once it is active (`GET /v1/tracking-domains`).\n\nA list, template, writing style or knowledge hub the organization does not have answers `404` with its own code, such as `list_not_found`. A company list answers `422` `people_list_required`. Lists with nobody the channels can reach (no work email for email steps, no LinkedIn profile for LinkedIn steps) answer `422` `list_incompatible_with_channels`.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The campaign's name.",
                    "minLength": 1,
                    "maxLength": 200,
                    "example": "Portugal freight ops"
                  },
                  "type": {
                    "type": "string",
                    "description": "`manual` (the default): you write every step. `ai-generated`: the steps are written from `prompt` in the background.",
                    "enum": [
                      "manual",
                      "ai-generated"
                    ]
                  },
                  "listIds": {
                    "type": "array",
                    "description": "1 to 10 of your people lists. Their people are enrolled once each, in the order the lists are given, when the campaign launches.",
                    "minItems": 1,
                    "maxItems": 10,
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "minLength": 24,
                      "maxLength": 24,
                      "pattern": "^[0-9a-fA-F]+$"
                    }
                  },
                  "channels": {
                    "type": "array",
                    "description": "One empty step is made for each channel, in order: `email`, `linkedin_connection` (an invitation), `linkedin_message` (to a connection) or `inmail`. `[\"email\"]` when left out. At most one `linkedin_connection`, before every `linkedin_message`. Not with `templateId`.",
                    "minItems": 1,
                    "maxItems": 10,
                    "items": {
                      "type": "string",
                      "enum": [
                        "email",
                        "linkedin_connection",
                        "linkedin_message",
                        "inmail"
                      ]
                    }
                  },
                  "templateId": {
                    "type": "string",
                    "description": "A campaign template whose steps are copied into the campaign; they decide its channels, so send no `channels` with it.",
                    "minLength": 24,
                    "maxLength": 24,
                    "pattern": "^[0-9a-fA-F]+$"
                  },
                  "prompt": {
                    "type": "string",
                    "description": "`ai-generated` only: what you offer and to whom, up to 5,000 characters. The steps are written from it.",
                    "maxLength": 5000
                  },
                  "writingStyleId": {
                    "type": "string",
                    "description": "`ai-generated` only: the writing style the steps follow. Your default style when left out.",
                    "minLength": 24,
                    "maxLength": 24,
                    "pattern": "^[0-9a-fA-F]+$"
                  },
                  "knowledgeHubId": {
                    "type": "string",
                    "description": "`ai-generated` only: the knowledge hub the steps draw on. Your default hub when left out.",
                    "minLength": 24,
                    "maxLength": 24,
                    "pattern": "^[0-9a-fA-F]+$"
                  },
                  "startDate": {
                    "type": "string",
                    "description": "When sending may start, as an ISO 8601 date-time. Now when left out."
                  },
                  "timezone": {
                    "type": "string",
                    "description": "The IANA time zone the sending days and hours (9:00 to 17:00) are read in, such as `Europe/Lisbon`: a region, not an abbreviation such as EST. UTC when a campaign is created without one."
                  },
                  "emailDays": {
                    "type": "array",
                    "description": "The days messages may go out, by English name with a capital first letter. Monday to Friday when left out.",
                    "minItems": 1,
                    "maxItems": 7,
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "Monday",
                        "Tuesday",
                        "Wednesday",
                        "Thursday",
                        "Friday",
                        "Saturday",
                        "Sunday"
                      ]
                    }
                  },
                  "excludeLists": {
                    "type": "array",
                    "description": "Up to 10 people lists whose people are never enrolled, matched by person, email address or LinkedIn profile. An id that is not one of your lists excludes nobody.",
                    "maxItems": 10,
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "minLength": 24,
                      "maxLength": 24,
                      "pattern": "^[0-9a-fA-F]+$"
                    }
                  },
                  "excludeCompanyLists": {
                    "type": "array",
                    "description": "Up to 20 company or people lists: nobody who works at one of their companies is enrolled. A list the organization does not have answers `422` `exclude_company_lists_invalid`.",
                    "maxItems": 20,
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "minLength": 24,
                      "maxLength": 24,
                      "pattern": "^[0-9a-fA-F]+$"
                    }
                  },
                  "excludeContacted": {
                    "type": "string",
                    "description": "Skips people your campaigns already wrote to: `none` (the default) skips nobody, `ever` skips everyone written to, and `last_1_month` to `last_1_year` skip those written to in that time.",
                    "enum": [
                      "none",
                      "ever",
                      "last_1_month",
                      "last_3_months",
                      "last_6_months",
                      "last_1_year"
                    ]
                  },
                  "excludeEngagedContacts": {
                    "type": "boolean",
                    "description": "Skips people who replied to one of your campaigns. False when left out."
                  },
                  "isDynamic": {
                    "type": "boolean",
                    "description": "Enrolls people added to the campaign's lists after launch, as they arrive. False when left out."
                  },
                  "addUnsubscribeLink": {
                    "type": "boolean",
                    "description": "Every email ends with a one-click unsubscribe link, and it cannot be turned off: only true is accepted, which turns it back on for a campaign that had it off. True when left out.",
                    "enum": [
                      true
                    ]
                  },
                  "openRateTrackingEnabledAt": {
                    "type": "string",
                    "description": "Turns open tracking on from this ISO 8601 date-time, or off with null. Off when left out."
                  },
                  "clickTrackingEnabledAt": {
                    "type": "string",
                    "description": "Turns click tracking on from this ISO 8601 date-time, or off with null. Off when left out. A step that waits for a click needs it on."
                  },
                  "sendOnlyToValidatedEmailsEnabledAt": {
                    "type": "string",
                    "description": "From this ISO 8601 date-time, enrolls only people whose email address checked `valid`; null also enrolls catch-all and unchecked addresses."
                  },
                  "dailyEmailLimit": {
                    "type": "integer",
                    "description": "The most emails the campaign sends a day, 1 to 10,000, or null for no limit.",
                    "minimum": 1,
                    "maximum": 10000
                  },
                  "dailyLinkedinConnectionLimit": {
                    "type": "integer",
                    "description": "The most LinkedIn invitations the campaign sends a day, 1 to 10,000, or null for no limit.",
                    "minimum": 1,
                    "maximum": 10000
                  },
                  "dailyLinkedinMessageLimit": {
                    "type": "integer",
                    "description": "The most LinkedIn messages and InMails the campaign sends a day, 1 to 10,000, or null for no limit.",
                    "minimum": 1,
                    "maximum": 10000
                  },
                  "ctaLink": {
                    "type": "string",
                    "description": "The link steps insert where they write `{CTA Link}`: an http or https URL, or null or empty for none.",
                    "maxLength": 2000
                  }
                },
                "required": [
                  "name",
                  "listIds"
                ]
              },
              "example": {
                "name": "Portugal freight ops",
                "listIds": [
                  "6a1f0c2b9d4e8a7f3c5b2e20"
                ],
                "channels": [
                  "email",
                  "linkedin_connection"
                ],
                "timezone": "Europe/Lisbon",
                "dailyEmailLimit": 40
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new campaign, a draft: `initializing` until it is launched.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "status"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e30",
                  "status": "initializing"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "get": {
        "operationId": "getCampaigns",
        "tags": [
          "Campaigns"
        ],
        "summary": "List campaigns",
        "description": "The organization's campaigns, with what each has done: people enrolled, messages sent by kind, and opens, clicks, replies and positive replies as a count and a percentage of messages sent. Narrow them with `status`, `type` or `search`.\n\nFor the next page, send the page's `pagination.nextCursor` as `cursor`. Later pages keep the first page's `pageSize`; only a missing `nextCursor` marks the end. Send the same `status`, `type` and `search` with it.\n\nFree. **Scope:** campaigns. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "description": "Items per page.",
            "schema": {
              "type": "integer",
              "default": 25,
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The `pagination.nextCursor` of the page before. Later pages keep the first page's size.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "description": "Only campaigns whose name contains this text, in any case.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Only campaigns of this type.",
            "schema": {
              "type": "string",
              "enum": [
                "manual",
                "ai-generated"
              ]
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Only campaigns in this state: `initializing` (a draft), `active`, `completed` (running, with nothing left to send), `stopped`, `paused_manual` or `initialization_failed`.",
            "schema": {
              "type": "string",
              "enum": [
                "initializing",
                "active",
                "completed",
                "stopped",
                "paused_manual",
                "initialization_failed"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of the organization's campaigns.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "initializing",
                              "active",
                              "completed",
                              "stopped",
                              "paused_manual",
                              "initialization_failed"
                            ]
                          },
                          "isCompleted": {
                            "type": "boolean",
                            "description": "A running campaign with nothing left to send to anyone. Its `status` stays `active`."
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "manual",
                              "ai-generated"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "startDate": {
                            "type": "string",
                            "format": "date-time",
                            "description": "Nothing is sent before it."
                          },
                          "leadsStatus": {
                            "type": "string",
                            "description": "How enrolling the people on its lists stands: `not_started`, `generating`, `completed` or `initialization_failed`."
                          },
                          "channels": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "isDynamic": {
                            "type": "boolean",
                            "description": "People added to its lists later are enrolled as they arrive."
                          },
                          "lists": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "recipients": {
                            "type": "integer",
                            "description": "People enrolled."
                          },
                          "messagesSent": {
                            "type": "integer"
                          },
                          "completedActions": {
                            "type": "object",
                            "properties": {
                              "emails": {
                                "type": "integer"
                              },
                              "linkedinMessages": {
                                "type": "integer"
                              },
                              "linkedinInvites": {
                                "type": "integer"
                              },
                              "inmails": {
                                "type": "integer"
                              },
                              "profileVisits": {
                                "type": "integer"
                              },
                              "postsLiked": {
                                "type": "integer"
                              }
                            }
                          },
                          "opened": {
                            "type": "object",
                            "properties": {
                              "count": {
                                "type": "integer"
                              },
                              "rate": {
                                "type": "number",
                                "description": "A percentage of the messages sent, 0 to 100."
                              }
                            }
                          },
                          "clicked": {
                            "type": "object",
                            "properties": {
                              "count": {
                                "type": "integer"
                              },
                              "rate": {
                                "type": "number",
                                "description": "A percentage of the messages sent, 0 to 100."
                              }
                            }
                          },
                          "replied": {
                            "type": "object",
                            "properties": {
                              "count": {
                                "type": "integer"
                              },
                              "rate": {
                                "type": "number",
                                "description": "A percentage of the messages sent, 0 to 100."
                              }
                            }
                          },
                          "positiveReplied": {
                            "type": "object",
                            "properties": {
                              "count": {
                                "type": "integer"
                              },
                              "rate": {
                                "type": "number",
                                "description": "A percentage of the messages sent, 0 to 100."
                              }
                            }
                          }
                        }
                      }
                    },
                    "pagination": {
                      "type": "object",
                      "required": [
                        "pageSize",
                        "total"
                      ],
                      "properties": {
                        "pageSize": {
                          "type": "integer"
                        },
                        "nextCursor": {
                          "type": "string",
                          "description": "Send as `cursor` for the next page. Absent on the last page."
                        },
                        "total": {
                          "type": "integer",
                          "description": "Everything that matches, across every page."
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "id": "6a1f0c2b9d4e8a7f3c5b2e30",
                      "name": "Portugal freight ops",
                      "status": "active",
                      "isCompleted": false,
                      "type": "manual",
                      "createdAt": "2026-11-14T10:05:00.000Z",
                      "startDate": "2026-11-17T09:00:00.000Z",
                      "leadsStatus": "completed",
                      "channels": [
                        "email",
                        "linkedin_connection"
                      ],
                      "isDynamic": false,
                      "lists": [
                        {
                          "id": "6a1f0c2b9d4e8a7f3c5b2e20",
                          "name": "Portugal freight ops"
                        }
                      ],
                      "recipients": 42,
                      "messagesSent": 60,
                      "completedActions": {
                        "emails": 42,
                        "linkedinMessages": 0,
                        "linkedinInvites": 18,
                        "inmails": 0,
                        "profileVisits": 0,
                        "postsLiked": 0
                      },
                      "opened": {
                        "count": 21,
                        "rate": 35
                      },
                      "clicked": {
                        "count": 3,
                        "rate": 5
                      },
                      "replied": {
                        "count": 6,
                        "rate": 10
                      },
                      "positiveReplied": {
                        "count": 2,
                        "rate": 3.33
                      }
                    }
                  ],
                  "pagination": {
                    "pageSize": 25,
                    "total": 1
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/campaigns/{campaignId}": {
      "get": {
        "operationId": "getCampaignsCampaignId",
        "tags": [
          "Campaigns"
        ],
        "summary": "Get a campaign",
        "description": "One campaign: its type and status, how writing an `ai-generated` campaign stands (`initializationStatus`), its lists, and its settings under the names `POST /v1/campaigns` takes them: its start, sending days and time zone, who it leaves out, open and click tracking, the unsubscribe link, daily limits and link. A setting without a value is absent.\n\nAnother organization's campaign, or a deleted one, answers `404` `campaign_not_found`.\n\nFree. **Scope:** campaigns. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "description": "The campaign's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The campaign, with its settings under the names `POST /v1/campaigns` takes them. A field without a value is absent.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "manual",
                        "ai-generated"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "initializing",
                        "active",
                        "stopped",
                        "paused_manual",
                        "initialization_failed"
                      ]
                    },
                    "initializationStatus": {
                      "type": "string",
                      "description": "How writing an `ai-generated` campaign stands: `pending`, `analyzing_prompt`, `building_knowledge`, `generating_topics`, then `completed` or `failed`. A `manual` campaign is `completed` from the start."
                    },
                    "listIds": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "startDate": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Nothing is sent before it."
                    },
                    "timezone": {
                      "type": "string",
                      "description": "The IANA time zone its sending days and hours (9:00 to 17:00) are read in."
                    },
                    "emailDays": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "Monday",
                          "Tuesday",
                          "Wednesday",
                          "Thursday",
                          "Friday",
                          "Saturday",
                          "Sunday"
                        ]
                      },
                      "description": "The days messages may go out."
                    },
                    "excludeLists": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "People lists whose people are never enrolled."
                    },
                    "excludeCompanyLists": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Lists whose companies' people are never enrolled."
                    },
                    "excludeContacted": {
                      "type": "string",
                      "enum": [
                        "none",
                        "ever",
                        "last_1_month",
                        "last_3_months",
                        "last_6_months",
                        "last_1_year"
                      ],
                      "description": "The people your campaigns already wrote to that are skipped: `none`, `ever`, or those written to in the time named."
                    },
                    "excludeEngagedContacts": {
                      "type": "boolean",
                      "description": "People who replied to one of your campaigns are skipped."
                    },
                    "isDynamic": {
                      "type": "boolean",
                      "description": "People added to its lists after launch are enrolled as they arrive."
                    },
                    "addUnsubscribeLink": {
                      "type": "boolean",
                      "description": "Every email ends with a one-click unsubscribe link."
                    },
                    "openRateTrackingEnabledAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Since when opens are tracked. Absent while open tracking is off."
                    },
                    "clickTrackingEnabledAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Since when links are tracked. Absent while click tracking is off."
                    },
                    "dailyEmailLimit": {
                      "type": "integer"
                    },
                    "dailyLinkedinConnectionLimit": {
                      "type": "integer"
                    },
                    "dailyLinkedinMessageLimit": {
                      "type": "integer"
                    },
                    "ctaLink": {
                      "type": "string",
                      "description": "The link steps insert where they write `{CTA Link}`. Absent when there is none."
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e30",
                  "name": "Portugal freight ops",
                  "type": "manual",
                  "status": "initializing",
                  "initializationStatus": "completed",
                  "listIds": [
                    "6a1f0c2b9d4e8a7f3c5b2e20"
                  ],
                  "startDate": "2026-11-17T09:00:00.000Z",
                  "timezone": "Europe/Lisbon",
                  "emailDays": [
                    "Monday",
                    "Tuesday",
                    "Wednesday",
                    "Thursday",
                    "Friday"
                  ],
                  "excludeLists": [],
                  "excludeCompanyLists": [],
                  "excludeContacted": "last_3_months",
                  "excludeEngagedContacts": true,
                  "isDynamic": false,
                  "addUnsubscribeLink": true,
                  "openRateTrackingEnabledAt": "2026-11-15T09:00:00.000Z",
                  "dailyEmailLimit": 40,
                  "ctaLink": "https://fernway.co/meet"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "patch": {
        "operationId": "patchCampaignsCampaignId",
        "tags": [
          "Campaigns"
        ],
        "summary": "Update a campaign",
        "description": "Changes a campaign's settings: its name, start, sending days and time zone, lists and exclusions, tracking, daily limits and link. Send at least one; it answers the campaign as `GET /v1/campaigns/{campaignId}` does.\n\nNew `listIds` replace the campaign's lists but enroll nobody in a running campaign: add a list with `POST /v1/campaigns/{campaignId}/lists` for that. A company list among them answers `422` `people_list_required`. While an `ai-generated` campaign's steps are still being written, new `listIds` answer `409` `campaign_initializing`. Click tracking cannot be turned off while a step waits for a click (`409` `click_tracking_required_by_condition`).\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "description": "The campaign's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "minProperties": 1,
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "A new name.",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "listIds": {
                    "type": "array",
                    "description": "The campaign's lists, replacing the ones it has, 1 to 10. A running campaign does not enroll a new list's people: add a list with `POST /v1/campaigns/{campaignId}/lists` for that.",
                    "minItems": 1,
                    "maxItems": 10,
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "minLength": 24,
                      "maxLength": 24,
                      "pattern": "^[0-9a-fA-F]+$"
                    }
                  },
                  "startDate": {
                    "type": "string",
                    "description": "When sending may start, as an ISO 8601 date-time. Now when left out."
                  },
                  "timezone": {
                    "type": "string",
                    "description": "The IANA time zone the sending days and hours (9:00 to 17:00) are read in, such as `Europe/Lisbon`: a region, not an abbreviation such as EST. UTC when a campaign is created without one."
                  },
                  "emailDays": {
                    "type": "array",
                    "description": "The days messages may go out, by English name with a capital first letter. Monday to Friday when left out.",
                    "minItems": 1,
                    "maxItems": 7,
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "enum": [
                        "Monday",
                        "Tuesday",
                        "Wednesday",
                        "Thursday",
                        "Friday",
                        "Saturday",
                        "Sunday"
                      ]
                    }
                  },
                  "excludeLists": {
                    "type": "array",
                    "description": "Up to 10 people lists whose people are never enrolled, matched by person, email address or LinkedIn profile. An id that is not one of your lists excludes nobody.",
                    "maxItems": 10,
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "minLength": 24,
                      "maxLength": 24,
                      "pattern": "^[0-9a-fA-F]+$"
                    }
                  },
                  "excludeCompanyLists": {
                    "type": "array",
                    "description": "Up to 20 company or people lists: nobody who works at one of their companies is enrolled. A list the organization does not have answers `422` `exclude_company_lists_invalid`.",
                    "maxItems": 20,
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "minLength": 24,
                      "maxLength": 24,
                      "pattern": "^[0-9a-fA-F]+$"
                    }
                  },
                  "excludeContacted": {
                    "type": "string",
                    "description": "Skips people your campaigns already wrote to: `none` (the default) skips nobody, `ever` skips everyone written to, and `last_1_month` to `last_1_year` skip those written to in that time.",
                    "enum": [
                      "none",
                      "ever",
                      "last_1_month",
                      "last_3_months",
                      "last_6_months",
                      "last_1_year"
                    ]
                  },
                  "excludeEngagedContacts": {
                    "type": "boolean",
                    "description": "Skips people who replied to one of your campaigns. False when left out."
                  },
                  "isDynamic": {
                    "type": "boolean",
                    "description": "Enrolls people added to the campaign's lists after launch, as they arrive. False when left out."
                  },
                  "addUnsubscribeLink": {
                    "type": "boolean",
                    "description": "Every email ends with a one-click unsubscribe link, and it cannot be turned off: only true is accepted, which turns it back on for a campaign that had it off. True when left out.",
                    "enum": [
                      true
                    ]
                  },
                  "openRateTrackingEnabledAt": {
                    "type": "string",
                    "description": "Turns open tracking on from this ISO 8601 date-time, or off with null. Off when left out."
                  },
                  "clickTrackingEnabledAt": {
                    "type": "string",
                    "description": "Turns click tracking on from this ISO 8601 date-time, or off with null. Off when left out. A step that waits for a click needs it on."
                  },
                  "sendOnlyToValidatedEmailsEnabledAt": {
                    "type": "string",
                    "description": "From this ISO 8601 date-time, enrolls only people whose email address checked `valid`; null also enrolls catch-all and unchecked addresses."
                  },
                  "dailyEmailLimit": {
                    "type": "integer",
                    "description": "The most emails the campaign sends a day, 1 to 10,000, or null for no limit.",
                    "minimum": 1,
                    "maximum": 10000
                  },
                  "dailyLinkedinConnectionLimit": {
                    "type": "integer",
                    "description": "The most LinkedIn invitations the campaign sends a day, 1 to 10,000, or null for no limit.",
                    "minimum": 1,
                    "maximum": 10000
                  },
                  "dailyLinkedinMessageLimit": {
                    "type": "integer",
                    "description": "The most LinkedIn messages and InMails the campaign sends a day, 1 to 10,000, or null for no limit.",
                    "minimum": 1,
                    "maximum": 10000
                  },
                  "ctaLink": {
                    "type": "string",
                    "description": "The link steps insert where they write `{CTA Link}`: an http or https URL, or null or empty for none.",
                    "maxLength": 2000
                  }
                }
              },
              "example": {
                "name": "Portugal freight ops, directors",
                "dailyEmailLimit": 25,
                "clickTrackingEnabledAt": "2026-11-15T09:00:00.000Z"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The campaign, with its settings under the names `POST /v1/campaigns` takes them. A field without a value is absent.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "manual",
                        "ai-generated"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "initializing",
                        "active",
                        "stopped",
                        "paused_manual",
                        "initialization_failed"
                      ]
                    },
                    "initializationStatus": {
                      "type": "string",
                      "description": "How writing an `ai-generated` campaign stands: `pending`, `analyzing_prompt`, `building_knowledge`, `generating_topics`, then `completed` or `failed`. A `manual` campaign is `completed` from the start."
                    },
                    "listIds": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "startDate": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Nothing is sent before it."
                    },
                    "timezone": {
                      "type": "string",
                      "description": "The IANA time zone its sending days and hours (9:00 to 17:00) are read in."
                    },
                    "emailDays": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "Monday",
                          "Tuesday",
                          "Wednesday",
                          "Thursday",
                          "Friday",
                          "Saturday",
                          "Sunday"
                        ]
                      },
                      "description": "The days messages may go out."
                    },
                    "excludeLists": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "People lists whose people are never enrolled."
                    },
                    "excludeCompanyLists": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Lists whose companies' people are never enrolled."
                    },
                    "excludeContacted": {
                      "type": "string",
                      "enum": [
                        "none",
                        "ever",
                        "last_1_month",
                        "last_3_months",
                        "last_6_months",
                        "last_1_year"
                      ],
                      "description": "The people your campaigns already wrote to that are skipped: `none`, `ever`, or those written to in the time named."
                    },
                    "excludeEngagedContacts": {
                      "type": "boolean",
                      "description": "People who replied to one of your campaigns are skipped."
                    },
                    "isDynamic": {
                      "type": "boolean",
                      "description": "People added to its lists after launch are enrolled as they arrive."
                    },
                    "addUnsubscribeLink": {
                      "type": "boolean",
                      "description": "Every email ends with a one-click unsubscribe link."
                    },
                    "openRateTrackingEnabledAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Since when opens are tracked. Absent while open tracking is off."
                    },
                    "clickTrackingEnabledAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Since when links are tracked. Absent while click tracking is off."
                    },
                    "dailyEmailLimit": {
                      "type": "integer"
                    },
                    "dailyLinkedinConnectionLimit": {
                      "type": "integer"
                    },
                    "dailyLinkedinMessageLimit": {
                      "type": "integer"
                    },
                    "ctaLink": {
                      "type": "string",
                      "description": "The link steps insert where they write `{CTA Link}`. Absent when there is none."
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e30",
                  "name": "Portugal freight ops",
                  "type": "manual",
                  "status": "initializing",
                  "initializationStatus": "completed",
                  "listIds": [
                    "6a1f0c2b9d4e8a7f3c5b2e20"
                  ],
                  "startDate": "2026-11-17T09:00:00.000Z",
                  "timezone": "Europe/Lisbon",
                  "emailDays": [
                    "Monday",
                    "Tuesday",
                    "Wednesday",
                    "Thursday",
                    "Friday"
                  ],
                  "excludeLists": [],
                  "excludeCompanyLists": [],
                  "excludeContacted": "last_3_months",
                  "excludeEngagedContacts": true,
                  "isDynamic": false,
                  "addUnsubscribeLink": true,
                  "openRateTrackingEnabledAt": "2026-11-15T09:00:00.000Z",
                  "dailyEmailLimit": 40,
                  "ctaLink": "https://fernway.co/meet"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "delete": {
        "operationId": "deleteCampaignsCampaignId",
        "tags": [
          "Campaigns"
        ],
        "summary": "Delete a campaign",
        "description": "Deletes a campaign: nothing more is sent from it. Its people and lists are kept. Deleting it again answers `404` `campaign_not_found`.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "description": "The campaign's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The campaign is deleted.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/campaigns/{campaignId}/duplicate": {
      "post": {
        "operationId": "postCampaignsCampaignIdDuplicate",
        "tags": [
          "Campaigns"
        ],
        "summary": "Duplicate a campaign",
        "description": "Copies a campaign, with its settings and steps, into a new draft named `Copy of` and the original's name. Nobody is enrolled in the copy until you launch it.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "description": "The campaign's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "The copy, a new draft.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "name"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e3b",
                  "name": "Copy of Portugal freight ops"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/campaigns/{campaignId}/launch": {
      "post": {
        "operationId": "postCampaignsCampaignIdLaunch",
        "tags": [
          "Campaigns"
        ],
        "summary": "Launch a campaign",
        "description": "Starts sending a draft campaign, or a paused one again with the messages it had queued. This is the only route that makes a campaign send.\n\nIt first runs the checks `GET /v1/campaigns/{campaignId}/readiness` reports and refuses with the first that fails, as `422` and its code, such as `campaign_has_no_steps` or `no_active_email_accounts`. Enrolling the people on the campaign's lists then runs in the background, so it answers `202`: follow it with `GET /v1/campaigns/{campaignId}`. Launching a running campaign changes nothing. Launching a paused campaign may first write its older AI messages again, which can take a minute: allow two minutes.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "description": "The campaign's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Names this operation, so a retry with the same key and body gets the first success again, marked `Idempotent-Replayed`, instead of running or charging twice. A mailbox's `password` is not compared: the same mailbox sent again with another password is the same call, and gets the first answer. Kept 24 hours for your organization and this route. A refusal (`4xx`) frees the key at once, so a corrected retry runs. After a server error (`5xx`), which may still take effect, the key stays held for 5 minutes from the call's start, and a retry in that time answers `409` `idempotency_in_progress`; after that, a send or import that may already have gone out answers `409` `idempotency_outcome_unknown` instead of running again. 1 to 255 visible ASCII characters, such as a UUID.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7E]+$"
            },
            "example": "5f1c9d2e-8a4b-4e7c-9f30-6b2a1d8e4c75"
          }
        ],
        "responses": {
          "202": {
            "description": "The campaign is running; its people are being enrolled.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "status"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e30",
                  "status": "active"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/campaigns/{campaignId}/pause": {
      "post": {
        "operationId": "postCampaignsCampaignIdPause",
        "tags": [
          "Campaigns"
        ],
        "summary": "Pause a campaign",
        "description": "Stops a campaign from sending: its status becomes `stopped`, and its queued messages wait. Launch it again with `POST /v1/campaigns/{campaignId}/launch` to send them. While a launch or pause of the same campaign is running, it answers `409` `campaign_busy`.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "description": "The campaign's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The campaign, stopped.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "status"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e30",
                  "status": "stopped"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/campaigns/{campaignId}/readiness": {
      "get": {
        "operationId": "getCampaignsCampaignIdReadiness",
        "tags": [
          "Campaigns"
        ],
        "summary": "Check a campaign is ready to launch",
        "description": "Runs the launch checks without launching: whether `POST /v1/campaigns/{campaignId}/launch` would start the campaign now and, if not, `reason`, the code launching would answer with. `people` counts the people on the campaign's lists: those with a work email, those without one (an email-only campaign skips them) and those with a LinkedIn profile. Nothing changes.\n\nFree. **Scope:** campaigns. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "description": "The campaign's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Whether the campaign can launch now, and who it would reach.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ready",
                    "people"
                  ],
                  "properties": {
                    "ready": {
                      "type": "boolean"
                    },
                    "reason": {
                      "type": "string",
                      "description": "When it cannot launch: the code launching would answer with, such as `campaign_has_no_steps`."
                    },
                    "people": {
                      "type": "object",
                      "description": "The people on the campaign's lists.",
                      "properties": {
                        "total": {
                          "type": "integer"
                        },
                        "withEmail": {
                          "type": "integer",
                          "description": "With a work email address."
                        },
                        "withoutEmail": {
                          "type": "integer",
                          "description": "Without one: an email-only campaign skips them."
                        },
                        "withLinkedin": {
                          "type": "integer",
                          "description": "With a LinkedIn profile."
                        }
                      }
                    }
                  }
                },
                "example": {
                  "ready": false,
                  "reason": "no_active_email_accounts",
                  "people": {
                    "total": 42,
                    "withEmail": 30,
                    "withoutEmail": 12,
                    "withLinkedin": 40
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/campaigns/{campaignId}/stats": {
      "get": {
        "operationId": "getCampaignsCampaignIdStats",
        "tags": [
          "Campaigns"
        ],
        "summary": "Get a campaign's stats",
        "description": "Messages sent, the people who opened and clicked, and replies, since `since` (12 months ago when left out). Opens and clicks are counted only while tracking is on.\n\nFree. **Scope:** campaigns. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "description": "The campaign's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "description": "Count from this ISO 8601 date-time. 12 months ago when left out.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The campaign's counts since `since`.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "totalSent": {
                      "type": "integer",
                      "description": "Messages sent."
                    },
                    "totalOpened": {
                      "type": "integer",
                      "description": "People who opened an email. Needs open tracking."
                    },
                    "totalClicked": {
                      "type": "integer",
                      "description": "People who clicked a link. Needs click tracking."
                    },
                    "totalReplied": {
                      "type": "integer",
                      "description": "Replies."
                    }
                  }
                },
                "example": {
                  "totalSent": 60,
                  "totalOpened": 21,
                  "totalClicked": 3,
                  "totalReplied": 6
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/campaigns/{campaignId}/ab-results": {
      "get": {
        "operationId": "getCampaignsCampaignIdAbResults",
        "tags": [
          "Campaigns"
        ],
        "summary": "Get a campaign's A/B results",
        "description": "For each A/B split step: its variants and their weights, and how each variant did, in all and since the weights last changed: leads, invitations sent and accepted, replies, positive replies, meetings, bounces and unsubscribes, with their rates, and replies by day in `timezone`. `since` and `to` count only the leads that reached a split between them.\n\nFree. **Scope:** campaigns. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "description": "The campaign's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "description": "Count only the leads that reached a split at or after this ISO 8601 date-time.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Count only the leads that reached a split at or before this ISO 8601 date-time, not before `since`.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "timezone",
            "in": "query",
            "required": false,
            "description": "The IANA time zone whose days `replySeries` counts by, such as `Europe/Lisbon`. UTC by default.",
            "schema": {
              "type": "string",
              "default": "UTC",
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One entry for each A/B split step of the campaign.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "splits"
                  ],
                  "properties": {
                    "splits": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "splitStepId": {
                            "type": "string"
                          },
                          "arms": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "key": {
                                  "type": "string"
                                },
                                "label": {
                                  "type": "string"
                                },
                                "weight": {
                                  "type": "integer"
                                }
                              }
                            }
                          },
                          "weightsChangedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "waiting": {
                            "type": "integer",
                            "description": "Leads that reached the split and wait for their variant's first step."
                          },
                          "allTime": {
                            "type": "object",
                            "properties": {
                              "entered": {
                                "type": "integer"
                              },
                              "replied": {
                                "type": "integer"
                              },
                              "isSmallSample": {
                                "type": "boolean",
                                "description": "Too few leads yet to tell the variants apart."
                              },
                              "arms": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "key": {
                                      "type": "string",
                                      "enum": [
                                        "a",
                                        "b"
                                      ]
                                    },
                                    "entered": {
                                      "type": "integer"
                                    },
                                    "reached": {
                                      "type": "integer"
                                    },
                                    "invitesSent": {
                                      "type": "integer"
                                    },
                                    "invitesAccepted": {
                                      "type": "integer"
                                    },
                                    "replied": {
                                      "type": "integer"
                                    },
                                    "positiveReplies": {
                                      "type": "integer"
                                    },
                                    "meetingsBooked": {
                                      "type": "integer"
                                    },
                                    "bounced": {
                                      "type": "integer"
                                    },
                                    "unsubscribed": {
                                      "type": "integer"
                                    },
                                    "share": {
                                      "type": "number",
                                      "description": "Its part of the split's leads, 0 to 1."
                                    },
                                    "acceptanceRate": {
                                      "type": "number",
                                      "description": "0 to 1."
                                    },
                                    "replyRate": {
                                      "type": "number",
                                      "description": "0 to 1."
                                    },
                                    "positiveReplyRate": {
                                      "type": "number",
                                      "description": "0 to 1."
                                    },
                                    "meetingRate": {
                                      "type": "number",
                                      "description": "0 to 1."
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "sinceChange": {
                            "type": "object",
                            "properties": {
                              "entered": {
                                "type": "integer"
                              },
                              "replied": {
                                "type": "integer"
                              },
                              "isSmallSample": {
                                "type": "boolean",
                                "description": "Too few leads yet to tell the variants apart."
                              },
                              "arms": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "key": {
                                      "type": "string",
                                      "enum": [
                                        "a",
                                        "b"
                                      ]
                                    },
                                    "entered": {
                                      "type": "integer"
                                    },
                                    "reached": {
                                      "type": "integer"
                                    },
                                    "invitesSent": {
                                      "type": "integer"
                                    },
                                    "invitesAccepted": {
                                      "type": "integer"
                                    },
                                    "replied": {
                                      "type": "integer"
                                    },
                                    "positiveReplies": {
                                      "type": "integer"
                                    },
                                    "meetingsBooked": {
                                      "type": "integer"
                                    },
                                    "bounced": {
                                      "type": "integer"
                                    },
                                    "unsubscribed": {
                                      "type": "integer"
                                    },
                                    "share": {
                                      "type": "number",
                                      "description": "Its part of the split's leads, 0 to 1."
                                    },
                                    "acceptanceRate": {
                                      "type": "number",
                                      "description": "0 to 1."
                                    },
                                    "replyRate": {
                                      "type": "number",
                                      "description": "0 to 1."
                                    },
                                    "positiveReplyRate": {
                                      "type": "number",
                                      "description": "0 to 1."
                                    },
                                    "meetingRate": {
                                      "type": "number",
                                      "description": "0 to 1."
                                    }
                                  }
                                }
                              }
                            },
                            "description": "The same, since the weights last changed."
                          },
                          "replySeries": {
                            "type": "array",
                            "description": "Replies by day, in `timezone`.",
                            "items": {
                              "type": "object",
                              "properties": {
                                "date": {
                                  "type": "string"
                                },
                                "isoDate": {
                                  "type": "string"
                                },
                                "a": {
                                  "type": "integer"
                                },
                                "b": {
                                  "type": "integer"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "splits": [
                    {
                      "splitStepId": "6a1f0c2b9d4e8a7f3c5b2e32",
                      "arms": [
                        {
                          "key": "a",
                          "label": "Short",
                          "weight": 50
                        },
                        {
                          "key": "b",
                          "label": "Long",
                          "weight": 50
                        }
                      ],
                      "waiting": 2,
                      "allTime": {
                        "entered": 40,
                        "replied": 5,
                        "isSmallSample": true,
                        "arms": [
                          {
                            "key": "a",
                            "entered": 20,
                            "reached": 19,
                            "replied": 3,
                            "replyRate": 0.16
                          },
                          {
                            "key": "b",
                            "entered": 20,
                            "reached": 20,
                            "replied": 2,
                            "replyRate": 0.1
                          }
                        ]
                      },
                      "replySeries": [
                        {
                          "date": "Nov 14",
                          "isoDate": "2026-11-14",
                          "a": 1,
                          "b": 0
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/campaigns/{campaignId}/variables": {
      "get": {
        "operationId": "getCampaignsCampaignIdVariables",
        "tags": [
          "Campaigns"
        ],
        "summary": "List a campaign's variables",
        "description": "The tokens a step's subject and body can use, filled in for each lead when its message is written: first the standard ones, such as `{Contact First Name}`, `{Contact Company}` and `{Sender Signature}`, then a `{Column: <name>}` token for each column of the campaign's lists. These are the names to write, exactly as listed. Other text in braces is not one of these variables and may be changed or removed when the message is written, so preview a step with `POST /v1/campaigns/{campaignId}/steps/{stepId}/preview` before you launch.\n\nThe sender tokens take the name and signature of the mailbox or LinkedIn seat the message goes out from, so give every mailbox its sender `name` and `signature` with `PATCH /v1/accounts/email/{accountId}` before you launch. `{CTA Link}` is the campaign's `ctaLink`.\n\nFree. **Scope:** campaigns. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "description": "The campaign's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The tokens the campaign's steps can use: the standard ones first, then the columns of its lists.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "variables"
                  ],
                  "properties": {
                    "variables": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "token",
                          "name",
                          "type"
                        ],
                        "properties": {
                          "token": {
                            "type": "string",
                            "description": "Write it in a step's subject or body exactly as it is here, braces and capitals included, such as `{Contact First Name}`."
                          },
                          "name": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string",
                            "description": "The value's kind: `string`, `number`, `date`, `boolean`, `url` or `enum`."
                          },
                          "listId": {
                            "type": "string",
                            "description": "For a list's own column: the list."
                          },
                          "listName": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "variables": [
                    {
                      "token": "{Contact First Name}",
                      "name": "Contact First Name",
                      "type": "string"
                    },
                    {
                      "token": "{Contact Company}",
                      "name": "Contact Company",
                      "type": "string"
                    },
                    {
                      "token": "{Sender Signature}",
                      "name": "Sender Signature",
                      "type": "string"
                    },
                    {
                      "token": "{CTA Link}",
                      "name": "CTA Link",
                      "type": "url"
                    },
                    {
                      "token": "{Column: Fit notes}",
                      "name": "Fit notes",
                      "type": "string",
                      "listId": "6a1f0c2b9d4e8a7f3c5b2e20",
                      "listName": "Portugal freight ops"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/campaigns/{campaignId}/lists": {
      "post": {
        "operationId": "postCampaignsCampaignIdLists",
        "tags": [
          "Campaigns"
        ],
        "summary": "Add a list to a campaign",
        "description": "Adds one of your people lists to a campaign, which holds up to 10 (`422` `campaign_list_cap_reached`). A company list answers `422` `people_list_required`. In a running campaign, the list's people are enrolled in the background (`enrollmentStarted`); in a draft, they are enrolled at launch. A list the campaign has already answers with `alreadyPresent`.\n\nIt has its own limit too, 500 a day.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "description": "The campaign's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "listId": {
                    "type": "string",
                    "description": "One of your people lists.",
                    "minLength": 24,
                    "maxLength": 24,
                    "pattern": "^[0-9a-fA-F]+$",
                    "example": "6a1f0c2b9d4e8a7f3c5b2e20"
                  }
                },
                "required": [
                  "listId"
                ]
              },
              "example": {
                "listId": "6a1f0c2b9d4e8a7f3c5b2e20"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The campaign's lists, and whether enrolling the new list's people started.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "listIds",
                    "alreadyPresent",
                    "enrollmentStarted"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The campaign."
                    },
                    "listIds": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "alreadyPresent": {
                      "type": "boolean",
                      "description": "The campaign had the list already."
                    },
                    "enrollmentStarted": {
                      "type": "boolean",
                      "description": "The campaign is running, so the list's people are being enrolled."
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e30",
                  "listIds": [
                    "6a1f0c2b9d4e8a7f3c5b2e20"
                  ],
                  "alreadyPresent": false,
                  "enrollmentStarted": true
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/campaigns/{campaignId}/people": {
      "post": {
        "operationId": "postCampaignsCampaignIdPeople",
        "tags": [
          "Campaigns"
        ],
        "summary": "Add people to a campaign",
        "description": "Enrolls 1 to 60 people in a running campaign, by id, without adding them to one of its lists, and starts their sequence. Each comes back with an `outcome`: `added` (with its new `leadId`), `already_in_campaign`, `missing_valid_email` (the campaign sends email and they have no valid work email), `missing_linkedin`, `person_not_found`, `unsubscribed` (they opted out of email from your team, so they are never enrolled) or `enrollment_failed`. Sending a call again enrolls nobody twice.\n\nNo email address is looked up here: find missing ones first with `POST /v1/people/enrich`. A draft or paused campaign answers `409` `campaign_not_active`: add a list to it instead.\n\nIt has its own limit too, 10 a minute and 500 a day.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "description": "The campaign's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "personIds": {
                    "type": "array",
                    "description": "1 to 60 people, each once: the `id` of their rows in a list, or the ids an upload or enrichment answered with.",
                    "minItems": 1,
                    "maxItems": 60,
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "minLength": 24,
                      "maxLength": 24,
                      "pattern": "^[0-9a-fA-F]+$"
                    },
                    "example": [
                      "6a1f0c2b9d4e8a7f3c5b2e22",
                      "6a1f0c2b9d4e8a7f3c5b2e23"
                    ]
                  }
                },
                "required": [
                  "personIds"
                ]
              },
              "example": {
                "personIds": [
                  "6a1f0c2b9d4e8a7f3c5b2e22",
                  "6a1f0c2b9d4e8a7f3c5b2e23"
                ]
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "What happened to each person sent.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "addedCount",
                    "activationStarted",
                    "people"
                  ],
                  "properties": {
                    "addedCount": {
                      "type": "integer"
                    },
                    "activationStarted": {
                      "type": "boolean",
                      "description": "The sequence started for the people added."
                    },
                    "people": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "personId",
                          "outcome"
                        ],
                        "properties": {
                          "personId": {
                            "type": "string"
                          },
                          "outcome": {
                            "type": "string",
                            "enum": [
                              "added",
                              "already_in_campaign",
                              "missing_valid_email",
                              "missing_linkedin",
                              "person_not_found",
                              "unsubscribed",
                              "enrollment_failed"
                            ]
                          },
                          "leadId": {
                            "type": "string",
                            "description": "The new lead, for a person added."
                          },
                          "name": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "addedCount": 1,
                  "activationStarted": true,
                  "people": [
                    {
                      "personId": "6a1f0c2b9d4e8a7f3c5b2e22",
                      "outcome": "added",
                      "leadId": "6a1f0c2b9d4e8a7f3c5b2e33",
                      "name": "Ana Costa"
                    },
                    {
                      "personId": "6a1f0c2b9d4e8a7f3c5b2e23",
                      "outcome": "missing_valid_email",
                      "name": "Rui Matos"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/campaigns/{campaignId}/leads": {
      "get": {
        "operationId": "getCampaignsCampaignIdLeads",
        "tags": [
          "Campaigns"
        ],
        "summary": "List a campaign's leads",
        "description": "The people enrolled in a campaign, as leads: where each is in the sequence, what they did (opened, clicked, replied, accepted an invitation), the A/B variants they were given and the account that first wrote to them. `search` matches a name or a company.\n\nFor the next page, send the page's `pagination.nextCursor` as `cursor`. Later pages keep the first page's `pageSize`; only a missing `nextCursor` marks the end. Send the same `search` with it.\n\nFree. **Scope:** campaigns. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "description": "The campaign's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "description": "Items per page.",
            "schema": {
              "type": "integer",
              "default": 25,
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The `pagination.nextCursor` of the page before. Later pages keep the first page's size.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "description": "Only leads whose name or company contains this text, in any case.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of the campaign's leads.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "The lead's id, as the lead routes take it."
                          },
                          "personId": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "email": {
                            "type": "string"
                          },
                          "linkedinUrl": {
                            "type": "string"
                          },
                          "companyName": {
                            "type": "string"
                          },
                          "companyUrl": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "description": "`active`, `initializing`, `queued`, `paused`, `paused_mailbox_disconnected`, `activation_failed`, `stopped` or `completed`."
                          },
                          "outcome": {
                            "type": "string"
                          },
                          "sentSteps": {
                            "type": "integer"
                          },
                          "totalSteps": {
                            "type": "integer"
                          },
                          "openCount": {
                            "type": "integer"
                          },
                          "clickCount": {
                            "type": "integer"
                          },
                          "hasOpened": {
                            "type": "boolean"
                          },
                          "hasClicked": {
                            "type": "boolean"
                          },
                          "hasReplied": {
                            "type": "boolean"
                          },
                          "hasConnected": {
                            "type": "boolean",
                            "description": "Accepted a LinkedIn invitation."
                          },
                          "repliedInOtherCampaignAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "repliedInOtherCampaignId": {
                            "type": "string"
                          },
                          "firstMessageReceivedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "firstSentBy": {
                            "type": "object",
                            "description": "The account that first wrote to the lead.",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "email": {
                                "type": "string",
                                "description": "The mailbox, when the first message was an email."
                              },
                              "channel": {
                                "type": "string",
                                "enum": [
                                  "email",
                                  "linkedin"
                                ]
                              }
                            }
                          },
                          "arms": {
                            "type": "array",
                            "description": "The variant each A/B split on the lead's path gave it.",
                            "items": {
                              "type": "object",
                              "properties": {
                                "splitStepId": {
                                  "type": "string"
                                },
                                "branchKey": {
                                  "type": "string",
                                  "enum": [
                                    "a",
                                    "b"
                                  ]
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "pagination": {
                      "type": "object",
                      "required": [
                        "pageSize",
                        "total"
                      ],
                      "properties": {
                        "pageSize": {
                          "type": "integer"
                        },
                        "nextCursor": {
                          "type": "string",
                          "description": "Send as `cursor` for the next page. Absent on the last page."
                        },
                        "total": {
                          "type": "integer",
                          "description": "Everything that matches, across every page."
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "id": "6a1f0c2b9d4e8a7f3c5b2e33",
                      "personId": "6a1f0c2b9d4e8a7f3c5b2e22",
                      "name": "Ana Costa",
                      "email": "ana.costa@example.com",
                      "companyName": "Northwind Freight",
                      "status": "active",
                      "sentSteps": 1,
                      "totalSteps": 3,
                      "openCount": 2,
                      "clickCount": 0,
                      "hasOpened": true,
                      "hasClicked": false,
                      "hasReplied": false,
                      "hasConnected": false,
                      "firstSentBy": {
                        "name": "Maya Fern",
                        "email": "maya@fernway.co",
                        "channel": "email"
                      },
                      "arms": []
                    }
                  ],
                  "pagination": {
                    "pageSize": 25,
                    "total": 1
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/campaigns/{campaignId}/leads/{leadId}/stop": {
      "post": {
        "operationId": "postCampaignsCampaignIdLeadsLeadIdStop",
        "tags": [
          "Campaigns"
        ],
        "summary": "Stop a lead",
        "description": "Stops one lead's sequence in a campaign: nothing more is sent to them from it. Stopping a stopped lead changes nothing. A lead the campaign does not have answers `404` `lead_not_found`.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "description": "The campaign's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          },
          {
            "name": "leadId",
            "in": "path",
            "required": true,
            "description": "The lead's `id` from `GET /v1/campaigns/{campaignId}/leads`, not its `personId`.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The lead is stopped.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/campaigns/{campaignId}/leads/{leadId}/resume": {
      "post": {
        "operationId": "postCampaignsCampaignIdLeadsLeadIdResume",
        "tags": [
          "Campaigns"
        ],
        "summary": "Resume a lead",
        "description": "Starts a stopped lead's sequence again from where it stopped and queues its next message at once (`nextSend`). A lead who unsubscribed, by an email's unsubscribe link or by asking in a reply, answers `409` `lead_unsubscribed`: nothing is sent and the lead stays stopped.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "description": "The campaign's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          },
          {
            "name": "leadId",
            "in": "path",
            "required": true,
            "description": "The lead's `id` from `GET /v1/campaigns/{campaignId}/leads`, not its `personId`.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The lead, and its next message when one is queued.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "nextSend": {
                      "type": "object",
                      "description": "Absent when nothing is left to send, or the next step waits on a condition.",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string"
                        },
                        "channel": {
                          "type": "string"
                        },
                        "scheduledAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e33",
                  "nextSend": {
                    "id": "6a1f0c2b9d4e8a7f3c5b2e34",
                    "status": "scheduled",
                    "channel": "email",
                    "scheduledAt": "2026-11-17T09:12:00.000Z"
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/people/{personId}/stop-campaigns": {
      "post": {
        "operationId": "postPeoplePersonIdStopCampaigns",
        "tags": [
          "Campaigns"
        ],
        "summary": "Stop a person in campaigns",
        "description": "Stops one person's sequence in up to 50 campaigns, such as when they reply elsewhere. A campaign the organization does not have answers `404` `campaign_not_found`, and one the person is in none of answers `404` `person_not_in_campaign`; either way nothing is stopped.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "personId",
            "in": "path",
            "required": true,
            "description": "The person's id: a lead's `personId`, not its `id`.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "campaignIds": {
                    "type": "array",
                    "description": "1 to 50 campaigns to stop the person in, each once.",
                    "minItems": 1,
                    "maxItems": 50,
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "minLength": 24,
                      "maxLength": 24,
                      "pattern": "^[0-9a-fA-F]+$"
                    },
                    "example": [
                      "6a1f0c2b9d4e8a7f3c5b2e30"
                    ]
                  }
                },
                "required": [
                  "campaignIds"
                ]
              },
              "example": {
                "campaignIds": [
                  "6a1f0c2b9d4e8a7f3c5b2e30"
                ]
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "The person's sequences are stopped.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/campaigns/{campaignId}/steps": {
      "get": {
        "operationId": "getCampaignsCampaignIdSteps",
        "tags": [
          "Campaigns"
        ],
        "summary": "List a campaign's steps",
        "description": "The campaign's steps in the order they run, with their lanes: a step under a condition names it as `parentStepId`, with its lane as `branchKey`.\n\nFree. **Scope:** campaigns. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "description": "The campaign's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The campaign's steps, in the order they run.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "steps"
                  ],
                  "properties": {
                    "steps": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "channel": {
                            "type": "string",
                            "enum": [
                              "email",
                              "linkedin_connection",
                              "linkedin_message",
                              "linkedin_visit",
                              "linkedin_like",
                              "inmail",
                              "condition"
                            ]
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "manual",
                              "ai_generated",
                              "ai_reply"
                            ]
                          },
                          "sequenceNumber": {
                            "type": "integer",
                            "description": "Its place, from 0, in the main sequence or its lane."
                          },
                          "daysBetween": {
                            "type": "integer",
                            "description": "Days after the step before. On a condition, its window."
                          },
                          "title": {
                            "type": "string"
                          },
                          "topic": {
                            "type": "string"
                          },
                          "subject": {
                            "type": "string"
                          },
                          "body": {
                            "type": "string",
                            "description": "On a `linkedin_connection` step, the invitation note."
                          },
                          "cc": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "parentStepId": {
                            "type": "string",
                            "description": "The condition whose lane holds the step."
                          },
                          "branchKey": {
                            "type": "string",
                            "enum": [
                              "yes",
                              "no",
                              "a",
                              "b"
                            ]
                          },
                          "conditionType": {
                            "type": "string",
                            "enum": [
                              "invite_accepted",
                              "clicked_link",
                              "ab_split"
                            ]
                          },
                          "splitArms": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "key": {
                                  "type": "string",
                                  "enum": [
                                    "a",
                                    "b"
                                  ]
                                },
                                "label": {
                                  "type": "string"
                                },
                                "weight": {
                                  "type": "integer"
                                }
                              }
                            },
                            "description": "An A/B split's variants."
                          },
                          "splitWeightsChangedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "steps": [
                    {
                      "id": "6a1f0c2b9d4e8a7f3c5b2e31",
                      "channel": "email",
                      "type": "manual",
                      "sequenceNumber": 0,
                      "daysBetween": 0,
                      "title": "Freight ops intro",
                      "subject": "Your Lisbon fleet",
                      "body": "<p>Hi {Contact First Name},</p><p>Saw Northwind runs 40 trucks out of Lisbon.</p>",
                      "cc": []
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "post": {
        "operationId": "postCampaignsCampaignIdSteps",
        "tags": [
          "Campaigns"
        ],
        "summary": "Add a step to a campaign",
        "description": "Adds a step: a message on one channel, a LinkedIn visit or like, or a condition that branches the sequence. Place it with `sequenceNumber`, in the main sequence or, with `parentStepId` and `branchKey`, in a condition's lane. Once leads move through a branched sequence its shape is fixed: `409` `sequence_structure_locked`. An `ai_generated` step has its topic and title written before the answer.\n\nIt answers once the writing is done, which can take a minute: allow two minutes.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "description": "The campaign's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "channel": {
                    "type": "string",
                    "description": "`email`, `linkedin_connection` (an invitation), `linkedin_message` (to a connection), `linkedin_visit` (a profile visit), `linkedin_like` (a like on a recent post), `inmail`, or `condition`: a branch that waits for `conditionType` and sends each lead down its `yes` or `no` lane, or for an `ab_split`, down variant `a` or `b` at once. A `linkedin_connection` step cannot follow a `linkedin_message` step.",
                    "enum": [
                      "email",
                      "linkedin_connection",
                      "linkedin_message",
                      "linkedin_visit",
                      "linkedin_like",
                      "inmail",
                      "condition"
                    ]
                  },
                  "type": {
                    "type": "string",
                    "description": "`manual` (the default) sends `subject` and `body` as written; `ai_generated` writes each message for each lead from a topic it writes itself; `ai_reply` drafts a reply from `topic` that waits for your approval. A condition is always `manual`.",
                    "enum": [
                      "manual",
                      "ai_generated",
                      "ai_reply"
                    ]
                  },
                  "sequenceNumber": {
                    "type": "integer",
                    "description": "The step's place, from 0, in the main sequence or in the lane `parentStepId` and `branchKey` name. Send the length of the sequence or lane to add at its end; a taken place answers `409` `step_position_taken`.",
                    "minimum": 0,
                    "maximum": 50
                  },
                  "daysBetween": {
                    "type": "integer",
                    "description": "Days to wait after the step before (or after the start, for the first step), 0 to 90. On a condition, how long it waits for its signal, 1 to 30 days; an `ab_split` waits for nothing: send 0.",
                    "minimum": 0,
                    "maximum": 90
                  },
                  "subject": {
                    "type": "string",
                    "description": "A `manual` step's subject line, up to 500 characters. Not on visits, likes and conditions.",
                    "maxLength": 500
                  },
                  "body": {
                    "type": "string",
                    "description": "A `manual` step's message, up to 20,000 characters; the tokens `GET /v1/campaigns/{campaignId}/variables` lists, such as `{Contact First Name}`, are filled in for each lead. On a `linkedin_connection` step, the invitation note, up to 200 characters. Not on visits, likes and conditions."
                  },
                  "topic": {
                    "type": "string",
                    "description": "What the step should say, up to 500 characters. Needed by `ai_reply`; `ai_generated` writes its own.",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "cc": {
                    "type": "array",
                    "description": "Up to 10 addresses copied on every email of the step.",
                    "maxItems": 10,
                    "items": {
                      "type": "string",
                      "maxLength": 320
                    }
                  },
                  "parentStepId": {
                    "type": "string",
                    "description": "The condition whose lane the step goes in, with `branchKey`. Left out, the step goes in the main sequence.",
                    "minLength": 24,
                    "maxLength": 24,
                    "pattern": "^[0-9a-fA-F]+$"
                  },
                  "branchKey": {
                    "type": "string",
                    "description": "The lane of `parentStepId`: `yes` or `no` under a condition, `a` or `b` under an A/B split.",
                    "enum": [
                      "yes",
                      "no",
                      "a",
                      "b",
                      null
                    ]
                  },
                  "conditionType": {
                    "type": "string",
                    "description": "Conditions only: `invite_accepted` waits for the invitation of the nearest `linkedin_connection` step before it, `clicked_link` for a click in the nearest email before it, and `ab_split` splits leads between variants `a` and `b` by `splitArms`. Conditions can be added only before the campaign starts.",
                    "enum": [
                      "invite_accepted",
                      "clicked_link",
                      "ab_split"
                    ]
                  },
                  "splitArms": {
                    "type": "array",
                    "description": "`ab_split` only: both variants, `a` then `b`, each `{ key, label?, weight }`. 50 each when left out.",
                    "minItems": 2,
                    "maxItems": 2,
                    "items": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string",
                          "description": "The variant: `a` or `b`.",
                          "enum": [
                            "a",
                            "b"
                          ]
                        },
                        "label": {
                          "type": "string",
                          "description": "A name for the variant, up to 40 characters.",
                          "maxLength": 40
                        },
                        "weight": {
                          "type": "integer",
                          "description": "The whole percent of leads sent down this variant.",
                          "minimum": 0,
                          "maximum": 100
                        }
                      },
                      "required": [
                        "key",
                        "weight"
                      ]
                    }
                  }
                },
                "required": [
                  "channel",
                  "sequenceNumber",
                  "daysBetween"
                ]
              },
              "example": {
                "channel": "email",
                "sequenceNumber": 1,
                "daysBetween": 3,
                "subject": "Re: your Lisbon fleet",
                "body": "<p>Hi {Contact First Name}, worth a short call this week?</p>"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new step.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "channel": {
                      "type": "string",
                      "enum": [
                        "email",
                        "linkedin_connection",
                        "linkedin_message",
                        "linkedin_visit",
                        "linkedin_like",
                        "inmail",
                        "condition"
                      ]
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "manual",
                        "ai_generated",
                        "ai_reply"
                      ]
                    },
                    "sequenceNumber": {
                      "type": "integer",
                      "description": "Its place, from 0, in the main sequence or its lane."
                    },
                    "daysBetween": {
                      "type": "integer",
                      "description": "Days after the step before. On a condition, its window."
                    },
                    "title": {
                      "type": "string"
                    },
                    "topic": {
                      "type": "string"
                    },
                    "subject": {
                      "type": "string"
                    },
                    "body": {
                      "type": "string",
                      "description": "On a `linkedin_connection` step, the invitation note."
                    },
                    "cc": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "parentStepId": {
                      "type": "string",
                      "description": "The condition whose lane holds the step."
                    },
                    "branchKey": {
                      "type": "string",
                      "enum": [
                        "yes",
                        "no",
                        "a",
                        "b"
                      ]
                    },
                    "conditionType": {
                      "type": "string",
                      "enum": [
                        "invite_accepted",
                        "clicked_link",
                        "ab_split"
                      ]
                    },
                    "splitArms": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "enum": [
                              "a",
                              "b"
                            ]
                          },
                          "label": {
                            "type": "string"
                          },
                          "weight": {
                            "type": "integer"
                          }
                        }
                      },
                      "description": "An A/B split's variants."
                    },
                    "splitWeightsChangedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e31",
                  "channel": "email",
                  "type": "manual",
                  "sequenceNumber": 0,
                  "daysBetween": 0,
                  "title": "Freight ops intro",
                  "subject": "Your Lisbon fleet",
                  "body": "<p>Hi {Contact First Name},</p><p>Saw Northwind runs 40 trucks out of Lisbon.</p>",
                  "cc": []
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/campaigns/{campaignId}/steps/regenerate": {
      "post": {
        "operationId": "postCampaignsCampaignIdStepsRegenerate",
        "tags": [
          "Campaigns"
        ],
        "summary": "Rewrite a campaign's AI steps",
        "description": "Writes the topic of every `ai_generated` step of the campaign again, from its knowledge hub. Messages already queued keep what they say.\n\nIt has its own limit too, 10 a minute and 100 a day.\n\nIt answers once the writing is done, which can take a minute: allow two minutes.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "description": "The campaign's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "How many of the campaign's steps were written again.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "totalStepCount",
                    "regeneratedStepCount"
                  ],
                  "properties": {
                    "totalStepCount": {
                      "type": "integer"
                    },
                    "regeneratedStepCount": {
                      "type": "integer"
                    }
                  }
                },
                "example": {
                  "totalStepCount": 4,
                  "regeneratedStepCount": 3
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/campaigns/{campaignId}/steps/{stepId}": {
      "patch": {
        "operationId": "patchCampaignsCampaignIdStepsStepId",
        "tags": [
          "Campaigns"
        ],
        "summary": "Update a step",
        "description": "Changes a step: a `manual` step's `subject` and `body` (sent together: they replace its whole message), an AI step's `topic`, the days it waits, or an A/B split's weights, at any time. A condition takes only `daysBetween`, its window of 1 to 30 days.\n\nIt answers the step's id; read the step with `GET /v1/campaigns/{campaignId}/steps`. A new topic has the step's title written again before the answer.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "description": "The campaign's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          },
          {
            "name": "stepId",
            "in": "path",
            "required": true,
            "description": "The step's id, from `GET /v1/campaigns/{campaignId}/steps`.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subject": {
                    "type": "string",
                    "description": "A `manual` step's new subject line, sent with `body`: the two replace the step's whole message.",
                    "maxLength": 500
                  },
                  "body": {
                    "type": "string",
                    "description": "A `manual` step's new message, sent with `subject`. On a `linkedin_connection` step, the invitation note, up to 200 characters.",
                    "maxLength": 50000
                  },
                  "topic": {
                    "type": "string",
                    "description": "What an AI step should say. Its title is written again from it.",
                    "maxLength": 1000
                  },
                  "daysBetween": {
                    "type": "integer",
                    "description": "Days to wait after the step before, 0 to 365. On a condition, its window, 1 to 30, and the only field it takes.",
                    "minimum": 0,
                    "maximum": 365
                  },
                  "splitArms": {
                    "type": "array",
                    "description": "An A/B split's variants, its only field: both, `a` then `b`, with weights adding up to 100. Leads not yet written to follow the new weights.",
                    "minItems": 2,
                    "maxItems": 2,
                    "items": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string",
                          "description": "The variant: `a` or `b`.",
                          "enum": [
                            "a",
                            "b"
                          ]
                        },
                        "label": {
                          "type": "string",
                          "description": "A name for the variant, up to 40 characters.",
                          "maxLength": 40
                        },
                        "weight": {
                          "type": "integer",
                          "description": "The whole percent of leads sent down this variant.",
                          "minimum": 0,
                          "maximum": 100
                        }
                      },
                      "required": [
                        "key",
                        "weight"
                      ]
                    }
                  }
                }
              },
              "example": {
                "subject": "Your Lisbon fleet",
                "body": "<p>Hi {Contact First Name},</p><p>Saw Northwind runs 40 trucks out of Lisbon.</p>"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The step's id. Read the step with `GET /v1/campaigns/{campaignId}/steps`.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e31"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "delete": {
        "operationId": "deleteCampaignsCampaignIdStepsStepId",
        "tags": [
          "Campaigns"
        ],
        "summary": "Delete a step",
        "description": "Deletes a step from a campaign. A step the campaign does not have answers `404` `step_not_found`.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "description": "The campaign's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          },
          {
            "name": "stepId",
            "in": "path",
            "required": true,
            "description": "The step's id, from `GET /v1/campaigns/{campaignId}/steps`.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The step is deleted.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/campaigns/{campaignId}/steps/{stepId}/preview": {
      "post": {
        "operationId": "postCampaignsCampaignIdStepsStepIdPreview",
        "tags": [
          "Campaigns"
        ],
        "summary": "Preview a step",
        "description": "Writes a step for the first person on the campaign's lists, as they would get it, and answers it with that person. Nothing is saved or sent. A campaign with nobody to write for answers `422` `step_preview_unavailable`.\n\nIt has its own limit too, 20 a minute and 300 a day.\n\nIt answers once the writing is done, which can take a minute: allow two minutes.\n\nFree. **Scope:** campaigns. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "description": "The campaign's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          },
          {
            "name": "stepId",
            "in": "path",
            "required": true,
            "description": "The step's id, from `GET /v1/campaigns/{campaignId}/steps`.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The step as one person would get it. Nothing is saved or sent.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "stepId"
                  ],
                  "properties": {
                    "stepId": {
                      "type": "string"
                    },
                    "subject": {
                      "type": "string"
                    },
                    "body": {
                      "type": "string"
                    },
                    "channel": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "person": {
                      "type": "object",
                      "description": "The person it was written for.",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "email": {
                          "type": "string"
                        },
                        "jobTitle": {
                          "type": "string"
                        },
                        "companyName": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "example": {
                  "stepId": "6a1f0c2b9d4e8a7f3c5b2e31",
                  "subject": "Your Lisbon fleet",
                  "body": "<p>Hi Ana,</p><p>Saw Northwind runs 40 trucks out of Lisbon.</p>",
                  "channel": "email",
                  "type": "manual",
                  "person": {
                    "id": "6a1f0c2b9d4e8a7f3c5b2e22",
                    "name": "Ana Costa",
                    "jobTitle": "Head of Operations",
                    "companyName": "Northwind Freight"
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/campaigns/{campaignId}/steps/{stepId}/copy-variant": {
      "post": {
        "operationId": "postCampaignsCampaignIdStepsStepIdCopyVariant",
        "tags": [
          "Campaigns"
        ],
        "summary": "Copy an A/B variant",
        "description": "Replaces the steps of one variant of an A/B split with copies of the other's, so you can change one thing and compare. `stepId` is the split. A step that is not a split answers `422` `step_not_a_split`.\n\nIt has its own limit too, 20 a minute and 300 a day.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "description": "The campaign's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          },
          {
            "name": "stepId",
            "in": "path",
            "required": true,
            "description": "The step's id, from `GET /v1/campaigns/{campaignId}/steps`.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fromBranchKey": {
                    "type": "string",
                    "description": "The variant to copy: `a` or `b`.",
                    "enum": [
                      "a",
                      "b"
                    ]
                  },
                  "toBranchKey": {
                    "type": "string",
                    "description": "The other variant, whose steps the copies replace.",
                    "enum": [
                      "a",
                      "b"
                    ]
                  }
                },
                "required": [
                  "fromBranchKey",
                  "toBranchKey"
                ]
              },
              "example": {
                "fromBranchKey": "a",
                "toBranchKey": "b"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The split, and how many steps were copied.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "stepId",
                    "copiedStepCount"
                  ],
                  "properties": {
                    "stepId": {
                      "type": "string",
                      "description": "The A/B split step."
                    },
                    "copiedStepCount": {
                      "type": "integer"
                    }
                  }
                },
                "example": {
                  "stepId": "6a1f0c2b9d4e8a7f3c5b2e32",
                  "copiedStepCount": 2
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/campaigns/{campaignId}/steps/{stepId}/test-email": {
      "post": {
        "operationId": "postCampaignsCampaignIdStepsStepIdTestEmail",
        "tags": [
          "Campaigns"
        ],
        "summary": "Send a step as a test email",
        "description": "Writes an email step for one person on the campaign's lists (`personId`, or the first one) and sends it to `toEmail` from one of your mailboxes. It is a real email: every call sends one. A step on another channel answers `422` `step_not_an_email`, and a mailbox that is not active and connected `422` `email_account_not_available`.\n\nIt has its own limit too, 10 a minute and 100 a day.\n\nIt answers once the writing is done, which can take a minute: allow two minutes.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "description": "The campaign's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          },
          {
            "name": "stepId",
            "in": "path",
            "required": true,
            "description": "The step's id, from `GET /v1/campaigns/{campaignId}/steps`.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Names this operation, so a retry with the same key and body gets the first success again, marked `Idempotent-Replayed`, instead of running or charging twice. A mailbox's `password` is not compared: the same mailbox sent again with another password is the same call, and gets the first answer. Kept 24 hours for your organization and this route. A refusal (`4xx`) frees the key at once, so a corrected retry runs. After a server error (`5xx`), which may still take effect, the key stays held for 5 minutes from the call's start, and a retry in that time answers `409` `idempotency_in_progress`; after that, a send or import that may already have gone out answers `409` `idempotency_outcome_unknown` instead of running again. 1 to 255 visible ASCII characters, such as a UUID.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7E]+$"
            },
            "example": "5f1c9d2e-8a4b-4e7c-9f30-6b2a1d8e4c75"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "toEmail": {
                    "type": "string",
                    "description": "Where the test goes: any address.",
                    "example": "maya@fernway.co"
                  },
                  "fromEmail": {
                    "type": "string",
                    "description": "The mailbox to send from: one of your active, connected mailboxes. Left out, the first active one the step can send from."
                  },
                  "personId": {
                    "type": "string",
                    "description": "The person the step is written for: someone on one of the campaign's lists. Left out, the first person of its first list.",
                    "minLength": 24,
                    "maxLength": 24,
                    "pattern": "^[0-9a-fA-F]+$"
                  }
                },
                "required": [
                  "toEmail"
                ]
              },
              "example": {
                "toEmail": "maya@fernway.co",
                "personId": "6a1f0c2b9d4e8a7f3c5b2e22"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The test email, sent.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "toEmail",
                    "fromEmail",
                    "subject"
                  ],
                  "properties": {
                    "toEmail": {
                      "type": "string"
                    },
                    "fromEmail": {
                      "type": "string",
                      "description": "The mailbox it was sent from."
                    },
                    "subject": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "toEmail": "maya@fernway.co",
                  "fromEmail": "maya@fernway.co",
                  "subject": "Your Lisbon fleet"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/campaigns/{campaignId}/queue": {
      "get": {
        "operationId": "getCampaignsCampaignIdQueue",
        "tags": [
          "Campaigns"
        ],
        "summary": "List a campaign's queue",
        "description": "A campaign's messages in one state: `approval_required` (written by AI and waiting for your approval), `scheduled` (going out at `scheduledAt`), `sent`, `skipped`, `stopped` (declined) or `overwritten` (replaced by an edit).\n\nFor the next page, send the page's `pagination.nextCursor` as `cursor`. Later pages keep the first page's `pageSize`; only a missing `nextCursor` marks the end. Send the same `status` and `channel` with it.\n\nFree. **Scope:** campaigns. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "description": "The campaign's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": true,
            "description": "The messages to list: `approval_required` (written by AI, waiting for your approval), `scheduled` (going out at `scheduledAt`), `sent`, `skipped`, `stopped` (declined) or `overwritten` (replaced by an edit).",
            "schema": {
              "type": "string",
              "enum": [
                "approval_required",
                "scheduled",
                "sent",
                "skipped",
                "stopped",
                "overwritten"
              ]
            }
          },
          {
            "name": "channel",
            "in": "query",
            "required": false,
            "description": "Only the messages of this channel.",
            "schema": {
              "type": "string",
              "enum": [
                "email",
                "linkedin_connection",
                "linkedin_message",
                "linkedin_visit",
                "linkedin_like",
                "inmail"
              ]
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "description": "Items per page.",
            "schema": {
              "type": "integer",
              "default": 25,
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The `pagination.nextCursor` of the page before. Later pages keep the first page's size.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of the campaign's messages in one state.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "campaignId": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "approval_required",
                              "scheduled",
                              "sent",
                              "skipped",
                              "stopped",
                              "overwritten"
                            ]
                          },
                          "channel": {
                            "type": "string",
                            "enum": [
                              "email",
                              "linkedin_connection",
                              "linkedin_message",
                              "linkedin_visit",
                              "linkedin_like",
                              "inmail"
                            ]
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "manual",
                              "ai_generated",
                              "ai_reply"
                            ]
                          },
                          "subject": {
                            "type": "string"
                          },
                          "body": {
                            "type": "string"
                          },
                          "scheduledAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "sentAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "outcome": {
                            "type": "string"
                          },
                          "fromEmail": {
                            "type": "string",
                            "description": "The mailbox it goes out from, for an email."
                          },
                          "cc": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "bcc": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "person": {
                            "type": "object",
                            "description": "Who it goes to.",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "email": {
                                "type": "string"
                              },
                              "linkedinUrl": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    },
                    "pagination": {
                      "type": "object",
                      "required": [
                        "pageSize",
                        "total"
                      ],
                      "properties": {
                        "pageSize": {
                          "type": "integer"
                        },
                        "nextCursor": {
                          "type": "string",
                          "description": "Send as `cursor` for the next page. Absent on the last page."
                        },
                        "total": {
                          "type": "integer",
                          "description": "Everything that matches, across every page."
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "id": "6a1f0c2b9d4e8a7f3c5b2e34",
                      "campaignId": "6a1f0c2b9d4e8a7f3c5b2e30",
                      "status": "approval_required",
                      "channel": "email",
                      "type": "ai_generated",
                      "subject": "Your Lisbon fleet",
                      "body": "<p>Hi Ana,</p>",
                      "scheduledAt": "2026-11-17T09:12:00.000Z",
                      "fromEmail": "maya@fernway.co",
                      "cc": [],
                      "bcc": [],
                      "person": {
                        "id": "6a1f0c2b9d4e8a7f3c5b2e22",
                        "name": "Ana Costa",
                        "email": "ana.costa@example.com"
                      }
                    }
                  ],
                  "pagination": {
                    "pageSize": 25,
                    "total": 1
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/sends/approve": {
      "post": {
        "operationId": "postSendsApprove",
        "tags": [
          "Campaigns"
        ],
        "summary": "Approve queued messages",
        "description": "Approves up to 100 messages waiting for approval: they become `scheduled` and go out at their time. Ids the organization does not have come back in `notFound`, and messages not waiting for approval in `ignored`.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sendIds": {
                    "type": "array",
                    "description": "1 to 100 queued messages, each once, by the `id` the queue lists.",
                    "minItems": 1,
                    "maxItems": 100,
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "minLength": 24,
                      "maxLength": 24,
                      "pattern": "^[0-9a-fA-F]+$"
                    },
                    "example": [
                      "6a1f0c2b9d4e8a7f3c5b2e34"
                    ]
                  }
                },
                "required": [
                  "sendIds"
                ]
              },
              "example": {
                "sendIds": [
                  "6a1f0c2b9d4e8a7f3c5b2e34"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Which messages were approved, and which were not.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "approved",
                    "ignored",
                    "notFound"
                  ],
                  "properties": {
                    "approved": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "ignored": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Messages in a state this cannot move."
                    },
                    "notFound": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Ids the organization does not have."
                    }
                  }
                },
                "example": {
                  "approved": [
                    "6a1f0c2b9d4e8a7f3c5b2e34"
                  ],
                  "ignored": [],
                  "notFound": []
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/sends/decline": {
      "post": {
        "operationId": "postSendsDecline",
        "tags": [
          "Campaigns"
        ],
        "summary": "Decline queued messages",
        "description": "Declines up to 100 messages waiting for approval or scheduled: they become `stopped`, and their people's sequences in the campaign end. Ids the organization does not have come back in `notFound`, and messages that already went out in `ignored`.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sendIds": {
                    "type": "array",
                    "description": "1 to 100 queued messages, each once, by the `id` the queue lists.",
                    "minItems": 1,
                    "maxItems": 100,
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "minLength": 24,
                      "maxLength": 24,
                      "pattern": "^[0-9a-fA-F]+$"
                    },
                    "example": [
                      "6a1f0c2b9d4e8a7f3c5b2e34"
                    ]
                  }
                },
                "required": [
                  "sendIds"
                ]
              },
              "example": {
                "sendIds": [
                  "6a1f0c2b9d4e8a7f3c5b2e34"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Which messages were declined, and which were not.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "declined",
                    "ignored",
                    "notFound"
                  ],
                  "properties": {
                    "declined": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "ignored": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Messages in a state this cannot move."
                    },
                    "notFound": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Ids the organization does not have."
                    }
                  }
                },
                "example": {
                  "declined": [
                    "6a1f0c2b9d4e8a7f3c5b2e34"
                  ],
                  "ignored": [],
                  "notFound": []
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/sends/{sendId}": {
      "patch": {
        "operationId": "patchSendsSendId",
        "tags": [
          "Campaigns"
        ],
        "summary": "Edit a queued message",
        "description": "Changes a message still waiting to go out: its subject, its body or when it is sent. The edit makes a new message: the answer's `id` is the new one's, and the message you named becomes `overwritten`. A message that already went out, or was skipped or declined, answers `409` `send_not_editable`.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "sendId",
            "in": "path",
            "required": true,
            "description": "The queued message's `id`, from `GET /v1/campaigns/{campaignId}/queue`.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subject": {
                    "type": "string",
                    "description": "A new subject line, up to 500 characters.",
                    "maxLength": 500
                  },
                  "body": {
                    "type": "string",
                    "description": "A new message, up to 20,000 characters, sent as written: tokens such as `{Contact First Name}` are filled in when a step's message is written, not in an edit.",
                    "maxLength": 20000
                  },
                  "scheduledAt": {
                    "type": "string",
                    "description": "When to send it instead, as an ISO 8601 date-time in UTC."
                  }
                }
              },
              "example": {
                "subject": "Your Lisbon fleet, briefly",
                "scheduledAt": "2026-11-17T10:00:00.000Z"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The new message that replaces the one named.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "replacedSendId"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The new message."
                    },
                    "replacedSendId": {
                      "type": "string",
                      "description": "The message named, now `overwritten`."
                    },
                    "status": {
                      "type": "string"
                    },
                    "subject": {
                      "type": "string"
                    },
                    "scheduledAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e35",
                  "replacedSendId": "6a1f0c2b9d4e8a7f3c5b2e34",
                  "status": "approval_required",
                  "subject": "Your Lisbon fleet, briefly",
                  "scheduledAt": "2026-11-17T10:00:00.000Z"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/sends/{sendId}/skip": {
      "post": {
        "operationId": "postSendsSendIdSkip",
        "tags": [
          "Campaigns"
        ],
        "summary": "Skip a queued message",
        "description": "Skips one queued message, waiting for approval or scheduled: it is not sent, and its person moves on to their next step. Skipping a skipped message changes nothing and answers it again, `skipped`. Any other message, such as one that went out, was declined (`stopped`) or was replaced by an edit (`overwritten`), answers `409` `send_not_skippable`.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "sendId",
            "in": "path",
            "required": true,
            "description": "The queued message's `id`, from `GET /v1/campaigns/{campaignId}/queue`.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The message, skipped.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "status"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e34",
                  "status": "skipped"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/campaign-templates": {
      "get": {
        "operationId": "getCampaignTemplates",
        "tags": [
          "Campaigns"
        ],
        "summary": "List campaign templates",
        "description": "The organization's campaign templates, up to 100, each with its steps and schedule.\n\nFree. **Scope:** campaigns. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "The organization's campaign templates.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "templates"
                  ],
                  "properties": {
                    "templates": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "manual",
                              "ai-generated"
                            ]
                          },
                          "timezone": {
                            "type": "string"
                          },
                          "emailDays": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "emailStartHour": {
                            "type": "string",
                            "description": "`HH:MM` in `timezone`."
                          },
                          "emailEndHour": {
                            "type": "string",
                            "description": "`HH:MM` in `timezone`."
                          },
                          "listIds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "generalTopic": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "steps": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "sequenceNumber": {
                                  "type": "integer"
                                },
                                "channel": {
                                  "type": "string"
                                },
                                "daysBetween": {
                                  "type": "integer"
                                },
                                "topic": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "body": {
                                  "type": "string"
                                },
                                "parentStepId": {
                                  "type": "string"
                                },
                                "branchKey": {
                                  "type": "string"
                                },
                                "conditionType": {
                                  "type": "string"
                                },
                                "splitArms": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "key": {
                                        "type": "string",
                                        "enum": [
                                          "a",
                                          "b"
                                        ]
                                      },
                                      "label": {
                                        "type": "string"
                                      },
                                      "weight": {
                                        "type": "integer"
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "templates": [
                    {
                      "id": "6a1f0c2b9d4e8a7f3c5b2e36",
                      "name": "Freight intro",
                      "type": "manual",
                      "timezone": "Europe/Lisbon",
                      "emailDays": [
                        "Monday",
                        "Tuesday",
                        "Wednesday",
                        "Thursday",
                        "Friday"
                      ],
                      "emailStartHour": "09:00",
                      "emailEndHour": "17:00",
                      "listIds": [
                        "6a1f0c2b9d4e8a7f3c5b2e20"
                      ],
                      "createdAt": "2026-11-14T10:05:00.000Z",
                      "steps": [
                        {
                          "id": "6a1f0c2b9d4e8a7f3c5b2e31",
                          "sequenceNumber": 0,
                          "channel": "email",
                          "daysBetween": 0,
                          "subject": "Your Lisbon fleet"
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "post": {
        "operationId": "postCampaignTemplates",
        "tags": [
          "Campaigns"
        ],
        "summary": "Save a campaign as a template",
        "description": "Keeps a campaign's steps and schedule as a template. Start a campaign from it with `templateId` on `POST /v1/campaigns`.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The template's name.",
                    "minLength": 1,
                    "maxLength": 200,
                    "example": "Freight intro"
                  },
                  "campaignId": {
                    "type": "string",
                    "description": "The campaign whose steps and schedule (sending days, hours, time zone and lists) the template keeps.",
                    "minLength": 24,
                    "maxLength": 24,
                    "pattern": "^[0-9a-fA-F]+$",
                    "example": "6a1f0c2b9d4e8a7f3c5b2e30"
                  }
                },
                "required": [
                  "name",
                  "campaignId"
                ]
              },
              "example": {
                "name": "Freight intro",
                "campaignId": "6a1f0c2b9d4e8a7f3c5b2e30"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new template.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e36"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/campaign-templates/{templateId}": {
      "delete": {
        "operationId": "deleteCampaignTemplatesTemplateId",
        "tags": [
          "Campaigns"
        ],
        "summary": "Delete a campaign template",
        "description": "Deletes a template. Campaigns made from it keep their steps. Another organization's template answers `404` `template_not_found`.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "templateId",
            "in": "path",
            "required": true,
            "description": "The template's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The template is deleted.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/knowledge-hubs": {
      "get": {
        "operationId": "getKnowledgeHubs",
        "tags": [
          "Campaigns"
        ],
        "summary": "List knowledge hubs",
        "description": "The organization's knowledge hubs, the default first: what AI steps are written from, built from your websites and notes.\n\nFree. **Scope:** campaigns. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "The organization's knowledge hubs, the default first.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "knowledgeHubs"
                  ],
                  "properties": {
                    "knowledgeHubs": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "companyName": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "description": "`processing` while it is built, then `complete`, or `draft` when building failed."
                          },
                          "isDefault": {
                            "type": "boolean",
                            "description": "The hub campaigns use when they name none."
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "knowledgeHubs": [
                    {
                      "id": "6a1f0c2b9d4e8a7f3c5b2e37",
                      "name": "Fernway",
                      "companyName": "Fernway",
                      "status": "complete",
                      "isDefault": true,
                      "createdAt": "2026-11-14T10:05:00.000Z"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "post": {
        "operationId": "postKnowledgeHubs",
        "tags": [
          "Campaigns"
        ],
        "summary": "Create a knowledge hub",
        "description": "Builds a knowledge hub from up to 20 websites and 50 notes, in the background: it answers `202` with the hub `processing`. Read it with `GET /v1/knowledge-hubs/{hubId}` until its `status` is `complete`, or `draft` if building failed, then read its pages. The organization has one hub, its default: a second answers `409` `knowledge_hub_already_exists`.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The hub's name. Left out, one is taken from what is read.",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "websites": {
                    "type": "array",
                    "description": "1 to 20 sites, read in the background into one set of pages. A site that cannot be read is no error: its `lastCrawledAt` stays absent.",
                    "minItems": 1,
                    "maxItems": 20,
                    "items": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": "string",
                          "description": "The site to read, with or without the scheme, such as `fernway.co` or `https://fernway.co/pricing`.",
                          "minLength": 4,
                          "maxLength": 2048
                        },
                        "includeSubPages": {
                          "type": "boolean",
                          "description": "Also read the site's pages below this address, up to 100. False when left out."
                        },
                        "isCompetitor": {
                          "type": "boolean",
                          "description": "A competitor's site: it feeds the competitor pages, not your own. False when left out."
                        }
                      },
                      "required": [
                        "url"
                      ]
                    }
                  },
                  "notes": {
                    "type": "array",
                    "description": "Up to 50 notes the pages are also written from.",
                    "maxItems": 50,
                    "items": {
                      "type": "object",
                      "properties": {
                        "text": {
                          "type": "string",
                          "description": "What you know, in your own words, up to 60,000 characters.",
                          "minLength": 1,
                          "maxLength": 60000
                        },
                        "filename": {
                          "type": "string",
                          "description": "The label pages cite the note by, up to 255 characters. Give each note its own: of notes that share one, only the first is read.",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "isCompetitor": {
                          "type": "boolean",
                          "description": "About a competitor, not your own company. False when left out."
                        }
                      },
                      "required": [
                        "text"
                      ]
                    }
                  }
                },
                "required": [
                  "websites"
                ]
              },
              "example": {
                "websites": [
                  {
                    "url": "https://fernway.co",
                    "includeSubPages": true
                  }
                ],
                "notes": [
                  {
                    "text": "We win on onboarding speed.",
                    "filename": "Positioning"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The knowledge hub, `processing` while its sites are read.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "companyName": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "description": "`processing` while it is built, then `complete`, or `draft` when building failed."
                    },
                    "isDefault": {
                      "type": "boolean",
                      "description": "The hub campaigns use when they name none."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "websites": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "url": {
                            "type": "string"
                          },
                          "includeSubPages": {
                            "type": "boolean"
                          },
                          "isCompetitor": {
                            "type": "boolean"
                          },
                          "parentUrl": {
                            "type": "string"
                          },
                          "lastCrawledAt": {
                            "type": "string",
                            "format": "date-time",
                            "description": "Absent until the site was read."
                          }
                        }
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "text": {
                            "type": "string"
                          },
                          "filename": {
                            "type": "string"
                          },
                          "isCompetitor": {
                            "type": "boolean"
                          },
                          "hasAttachment": {
                            "type": "boolean"
                          }
                        }
                      }
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e37",
                  "name": "Fernway",
                  "companyName": "Fernway",
                  "status": "processing",
                  "isDefault": true,
                  "websites": [
                    {
                      "url": "https://fernway.co",
                      "includeSubPages": true,
                      "isCompetitor": false
                    }
                  ],
                  "notes": [
                    {
                      "id": "6a1f0c2b9d4e8a7f3c5b2e39",
                      "text": "We win on onboarding speed.",
                      "filename": "Positioning",
                      "isCompetitor": false,
                      "hasAttachment": false
                    }
                  ],
                  "createdAt": "2026-11-14T10:05:00.000Z",
                  "updatedAt": "2026-11-14T10:05:00.000Z"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/knowledge-hubs/default": {
      "post": {
        "operationId": "postKnowledgeHubsDefault",
        "tags": [
          "Campaigns"
        ],
        "summary": "Set the default knowledge hub",
        "description": "Makes a hub the one campaigns use when they name none.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "hubId": {
                    "type": "string",
                    "description": "The hub campaigns use when they name none.",
                    "minLength": 24,
                    "maxLength": 24,
                    "pattern": "^[0-9a-fA-F]+$",
                    "example": "6a1f0c2b9d4e8a7f3c5b2e37"
                  }
                },
                "required": [
                  "hubId"
                ]
              },
              "example": {
                "hubId": "6a1f0c2b9d4e8a7f3c5b2e37"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The new default hub.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "isDefault"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "isDefault": {
                      "type": "boolean"
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e37",
                  "isDefault": true
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/knowledge-hubs/{hubId}": {
      "get": {
        "operationId": "getKnowledgeHubsHubId",
        "tags": [
          "Campaigns"
        ],
        "summary": "Get a knowledge hub",
        "description": "One knowledge hub: its status, its websites, with when each was last read, and its notes. Another organization's hub answers `404` `knowledge_hub_not_found`.\n\nFree. **Scope:** campaigns. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "hubId",
            "in": "path",
            "required": true,
            "description": "The knowledge hub's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The knowledge hub.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "companyName": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "description": "`processing` while it is built, then `complete`, or `draft` when building failed."
                    },
                    "isDefault": {
                      "type": "boolean",
                      "description": "The hub campaigns use when they name none."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "websites": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "url": {
                            "type": "string"
                          },
                          "includeSubPages": {
                            "type": "boolean"
                          },
                          "isCompetitor": {
                            "type": "boolean"
                          },
                          "parentUrl": {
                            "type": "string"
                          },
                          "lastCrawledAt": {
                            "type": "string",
                            "format": "date-time",
                            "description": "Absent until the site was read."
                          }
                        }
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "text": {
                            "type": "string"
                          },
                          "filename": {
                            "type": "string"
                          },
                          "isCompetitor": {
                            "type": "boolean"
                          },
                          "hasAttachment": {
                            "type": "boolean"
                          }
                        }
                      }
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e37",
                  "name": "Fernway",
                  "companyName": "Fernway",
                  "status": "complete",
                  "isDefault": true,
                  "websites": [
                    {
                      "url": "https://fernway.co",
                      "includeSubPages": true,
                      "isCompetitor": false
                    }
                  ],
                  "notes": [
                    {
                      "id": "6a1f0c2b9d4e8a7f3c5b2e39",
                      "text": "We win on onboarding speed.",
                      "filename": "Positioning",
                      "isCompetitor": false,
                      "hasAttachment": false
                    }
                  ],
                  "createdAt": "2026-11-14T10:05:00.000Z",
                  "updatedAt": "2026-11-14T10:05:00.000Z"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "patch": {
        "operationId": "patchKnowledgeHubsHubId",
        "tags": [
          "Campaigns"
        ],
        "summary": "Update a knowledge hub",
        "description": "Renames a hub, or adds websites and notes to it and reads them in the background: it answers `202` with the hub as it was, and its pages follow. A website or note the hub has is replaced by what you send; nothing is removed. A hub still being built answers `409` `knowledge_hub_not_ready`.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "hubId",
            "in": "path",
            "required": true,
            "description": "The knowledge hub's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "A new name.",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "websites": {
                    "type": "array",
                    "description": "1 to 20 sites to add, or to read again when the hub has them. A site the hub has is replaced by what you send, so `includeSubPages` and `isCompetitor` left out become false. Nothing is removed.",
                    "minItems": 1,
                    "maxItems": 20,
                    "items": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": "string",
                          "description": "The site to read, with or without the scheme, such as `fernway.co` or `https://fernway.co/pricing`.",
                          "minLength": 4,
                          "maxLength": 2048
                        },
                        "includeSubPages": {
                          "type": "boolean",
                          "description": "Also read the site's pages below this address, up to 100. False when left out."
                        },
                        "isCompetitor": {
                          "type": "boolean",
                          "description": "A competitor's site: it feeds the competitor pages, not your own. False when left out."
                        }
                      },
                      "required": [
                        "url"
                      ]
                    }
                  },
                  "notes": {
                    "type": "array",
                    "description": "1 to 50 notes to add or replace, by `filename`. Nothing is removed.",
                    "minItems": 1,
                    "maxItems": 50,
                    "items": {
                      "type": "object",
                      "properties": {
                        "text": {
                          "type": "string",
                          "description": "What you know, in your own words, up to 60,000 characters.",
                          "minLength": 1,
                          "maxLength": 60000
                        },
                        "filename": {
                          "type": "string",
                          "description": "The note's label, and how it is matched: a note with exactly this label is replaced, any other label adds a note.",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "isCompetitor": {
                          "type": "boolean",
                          "description": "About a competitor, not your own company. False when left out."
                        }
                      },
                      "required": [
                        "text",
                        "filename"
                      ]
                    }
                  }
                }
              },
              "example": {
                "websites": [
                  {
                    "url": "https://fernway.co/pricing"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The knowledge hub, `processing` while its sites are read.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "companyName": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "description": "`processing` while it is built, then `complete`, or `draft` when building failed."
                    },
                    "isDefault": {
                      "type": "boolean",
                      "description": "The hub campaigns use when they name none."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "websites": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "url": {
                            "type": "string"
                          },
                          "includeSubPages": {
                            "type": "boolean"
                          },
                          "isCompetitor": {
                            "type": "boolean"
                          },
                          "parentUrl": {
                            "type": "string"
                          },
                          "lastCrawledAt": {
                            "type": "string",
                            "format": "date-time",
                            "description": "Absent until the site was read."
                          }
                        }
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "text": {
                            "type": "string"
                          },
                          "filename": {
                            "type": "string"
                          },
                          "isCompetitor": {
                            "type": "boolean"
                          },
                          "hasAttachment": {
                            "type": "boolean"
                          }
                        }
                      }
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e37",
                  "name": "Fernway",
                  "companyName": "Fernway",
                  "status": "processing",
                  "isDefault": true,
                  "websites": [
                    {
                      "url": "https://fernway.co",
                      "includeSubPages": true,
                      "isCompetitor": false
                    }
                  ],
                  "notes": [
                    {
                      "id": "6a1f0c2b9d4e8a7f3c5b2e39",
                      "text": "We win on onboarding speed.",
                      "filename": "Positioning",
                      "isCompetitor": false,
                      "hasAttachment": false
                    }
                  ],
                  "createdAt": "2026-11-14T10:05:00.000Z",
                  "updatedAt": "2026-11-14T10:05:00.000Z"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "delete": {
        "operationId": "deleteKnowledgeHubsHubId",
        "tags": [
          "Campaigns"
        ],
        "summary": "Delete a knowledge hub",
        "description": "Deletes a hub and its pages. The default hub cannot be deleted (`409` `knowledge_hub_default_undeletable`): make another the default first.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "hubId",
            "in": "path",
            "required": true,
            "description": "The knowledge hub's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The hub is deleted.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/knowledge-hubs/{hubId}/refresh": {
      "post": {
        "operationId": "postKnowledgeHubsHubIdRefresh",
        "tags": [
          "Campaigns"
        ],
        "summary": "Read a hub's website again",
        "description": "Reads one of a hub's websites again, in the background, and writes the pages that draw on it again. A site the hub does not have answers `404` `knowledge_hub_website_not_found`.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "hubId",
            "in": "path",
            "required": true,
            "description": "The knowledge hub's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "One of the hub's sites, as its `websites` list it.",
                    "minLength": 4,
                    "maxLength": 2048,
                    "example": "https://fernway.co"
                  }
                },
                "required": [
                  "url"
                ]
              },
              "example": {
                "url": "https://fernway.co"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The hub, `processing` while the site is read again.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "status"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e37",
                  "status": "processing"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/knowledge-hubs/{hubId}/pages": {
      "get": {
        "operationId": "getKnowledgeHubsHubIdPages",
        "tags": [
          "Campaigns"
        ],
        "summary": "List a hub's pages",
        "description": "A hub's pages, with their content in Markdown: written from its sources (`generated`), changed since (`edited`), or added by hand (`user`).\n\nFree. **Scope:** campaigns. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "hubId",
            "in": "path",
            "required": true,
            "description": "The knowledge hub's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The hub's pages, with their content.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "pages"
                  ],
                  "properties": {
                    "pages": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "content": {
                            "type": "string",
                            "description": "Markdown."
                          },
                          "category": {
                            "type": "string",
                            "enum": [
                              "overview",
                              "products",
                              "pricing",
                              "icp-use-cases",
                              "differentiators",
                              "competitors",
                              "faq",
                              "source-digest",
                              "custom"
                            ]
                          },
                          "origin": {
                            "type": "string",
                            "description": "`generated` from the hub's sources, `edited` after that, or `user` when written by hand."
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "pages": [
                    {
                      "id": "6a1f0c2b9d4e8a7f3c5b2e38",
                      "title": "Pricing",
                      "content": "## Plans\n\nTeams pay per seat, billed monthly.",
                      "category": "pricing",
                      "origin": "generated",
                      "createdAt": "2026-11-14T10:09:00.000Z",
                      "updatedAt": "2026-11-14T10:09:00.000Z"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "post": {
        "operationId": "postKnowledgeHubsHubIdPages",
        "tags": [
          "Campaigns"
        ],
        "summary": "Add a page to a hub",
        "description": "Adds a page you wrote to a hub. Campaigns can draw on it once it is answered.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "hubId",
            "in": "path",
            "required": true,
            "description": "The knowledge hub's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "description": "The page's title.",
                    "minLength": 1,
                    "maxLength": 200,
                    "example": "Objections"
                  },
                  "content": {
                    "type": "string",
                    "description": "The page in Markdown, up to 60,000 characters.",
                    "minLength": 1,
                    "maxLength": 60000,
                    "example": "## Price\n\nWe cost less than one hire."
                  },
                  "category": {
                    "type": "string",
                    "description": "What the page is about. `custom` when left out.",
                    "enum": [
                      "overview",
                      "products",
                      "pricing",
                      "icp-use-cases",
                      "differentiators",
                      "competitors",
                      "faq",
                      "source-digest",
                      "custom"
                    ]
                  }
                },
                "required": [
                  "title",
                  "content"
                ]
              },
              "example": {
                "title": "Objections",
                "content": "## Price\n\nWe cost less than one hire.",
                "category": "custom"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new page, ready for campaigns to use.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "content": {
                      "type": "string",
                      "description": "Markdown."
                    },
                    "category": {
                      "type": "string",
                      "enum": [
                        "overview",
                        "products",
                        "pricing",
                        "icp-use-cases",
                        "differentiators",
                        "competitors",
                        "faq",
                        "source-digest",
                        "custom"
                      ]
                    },
                    "origin": {
                      "type": "string",
                      "description": "`generated` from the hub's sources, `edited` after that, or `user` when written by hand."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e38",
                  "title": "Pricing",
                  "content": "## Plans\n\nTeams pay per seat, billed monthly.",
                  "category": "custom",
                  "origin": "user",
                  "createdAt": "2026-11-14T10:09:00.000Z",
                  "updatedAt": "2026-11-14T10:09:00.000Z"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/knowledge-hubs/{hubId}/pages/{pageId}": {
      "patch": {
        "operationId": "patchKnowledgeHubsHubIdPagesPageId",
        "tags": [
          "Campaigns"
        ],
        "summary": "Update a hub's page",
        "description": "Changes a page's title or content. A written page becomes `edited`, and is still written again when its sources change.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "hubId",
            "in": "path",
            "required": true,
            "description": "The knowledge hub's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          },
          {
            "name": "pageId",
            "in": "path",
            "required": true,
            "description": "The page's id, from `GET /v1/knowledge-hubs/{hubId}/pages`.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "description": "A new title.",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "content": {
                    "type": "string",
                    "description": "New Markdown, up to 60,000 characters.",
                    "minLength": 1,
                    "maxLength": 60000
                  }
                }
              },
              "example": {
                "content": "## Price\n\nWe cost less than one hire, billed monthly."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The page.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "content": {
                      "type": "string",
                      "description": "Markdown."
                    },
                    "category": {
                      "type": "string",
                      "enum": [
                        "overview",
                        "products",
                        "pricing",
                        "icp-use-cases",
                        "differentiators",
                        "competitors",
                        "faq",
                        "source-digest",
                        "custom"
                      ]
                    },
                    "origin": {
                      "type": "string",
                      "description": "`generated` from the hub's sources, `edited` after that, or `user` when written by hand."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e38",
                  "title": "Pricing",
                  "content": "## Plans\n\nTeams pay per seat, billed monthly.",
                  "category": "pricing",
                  "origin": "generated",
                  "createdAt": "2026-11-14T10:09:00.000Z",
                  "updatedAt": "2026-11-14T10:09:00.000Z"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "delete": {
        "operationId": "deleteKnowledgeHubsHubIdPagesPageId",
        "tags": [
          "Campaigns"
        ],
        "summary": "Delete a hub's page",
        "description": "Deletes a page from a hub.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "hubId",
            "in": "path",
            "required": true,
            "description": "The knowledge hub's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          },
          {
            "name": "pageId",
            "in": "path",
            "required": true,
            "description": "The page's id, from `GET /v1/knowledge-hubs/{hubId}/pages`.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The page is deleted.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/knowledge-hubs/{hubId}/pages/{pageId}/regenerate": {
      "post": {
        "operationId": "postKnowledgeHubsHubIdPagesPageIdRegenerate",
        "tags": [
          "Campaigns"
        ],
        "summary": "Rewrite a hub's page",
        "description": "Writes a page again from the hub's sources, and answers it. A page written by hand has no sources: `409` `knowledge_page_not_regenerable`.\n\nIt answers once the writing is done, which can take a minute: allow two minutes.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "hubId",
            "in": "path",
            "required": true,
            "description": "The knowledge hub's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          },
          {
            "name": "pageId",
            "in": "path",
            "required": true,
            "description": "The page's id, from `GET /v1/knowledge-hubs/{hubId}/pages`.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The page.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "content": {
                      "type": "string",
                      "description": "Markdown."
                    },
                    "category": {
                      "type": "string",
                      "enum": [
                        "overview",
                        "products",
                        "pricing",
                        "icp-use-cases",
                        "differentiators",
                        "competitors",
                        "faq",
                        "source-digest",
                        "custom"
                      ]
                    },
                    "origin": {
                      "type": "string",
                      "description": "`generated` from the hub's sources, `edited` after that, or `user` when written by hand."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e38",
                  "title": "Pricing",
                  "content": "## Plans\n\nTeams pay per seat, billed monthly.",
                  "category": "pricing",
                  "origin": "generated",
                  "createdAt": "2026-11-14T10:09:00.000Z",
                  "updatedAt": "2026-11-14T10:09:00.000Z"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/writing-styles": {
      "get": {
        "operationId": "getWritingStyles",
        "tags": [
          "Campaigns"
        ],
        "summary": "List writing styles",
        "description": "The organization's writing styles, the default first: `writingStyleId` on `POST /v1/campaigns` picks the one an `ai-generated` campaign follows.\n\nFree. **Scope:** campaigns. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "The organization's writing styles, the default first.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "writingStyles"
                  ],
                  "properties": {
                    "writingStyles": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "isDefault": {
                            "type": "boolean"
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "writingStyles": [
                    {
                      "id": "6a1f0c2b9d4e8a7f3c5b2e3a",
                      "name": "Default writing style",
                      "isDefault": true
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/tracking-domains": {
      "get": {
        "operationId": "getTrackingDomains",
        "tags": [
          "Campaigns"
        ],
        "summary": "List tracking domains",
        "description": "Your organization's tracking domain: a hostname of your own, such as `go.fernway.co`, that the tracked links in your campaign emails go through instead of a shared link address, so the people you write to see your domain when they hover a link. An organization has at most one, and a deleted domain is not listed. With `activeOnly=true`, it is listed only while it is active.\n\nIts `status` is `pending_dns` while it waits for its CNAME record or its certificate and `verifying` while the hostname is set up, and it can pass through both more than once before it is `active`, the only state campaigns use it in. It is `failed` when it has not become active after about a day of checks, or when its setup was lost: check it again to start over.\n\nTracking domain calls have a limit of their own, 30 a minute and 1,000 a day.\n\nFree. **Scope:** campaigns. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "activeOnly",
            "in": "query",
            "required": false,
            "description": "Only an active tracking domain, the only kind campaigns use. False when left out, which also lists a domain that is not active yet or that failed.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The organization's tracking domain, in a list: it has at most one.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "trackingDomains"
                  ],
                  "properties": {
                    "trackingDomains": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "hostname",
                          "status",
                          "dnsTarget"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "hostname": {
                            "type": "string",
                            "description": "The hostname the tracked links go through, such as `go.fernway.co`."
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "pending_dns",
                              "verifying",
                              "active",
                              "failed"
                            ],
                            "description": "`pending_dns` while it waits for its CNAME record or its certificate, `verifying` while the hostname is set up: it can pass through both more than once. Then `active`, the only state campaigns use it in. `failed` when it has not become active after about a day of checks, or when its setup was lost."
                          },
                          "dnsTarget": {
                            "type": "string",
                            "description": "The value of the one CNAME record to add, the record whose name is `hostname`."
                          },
                          "verifiedAt": {
                            "type": "string",
                            "format": "date-time",
                            "description": "When it last became active. Absent until it first does."
                          },
                          "lastCheckedAt": {
                            "type": "string",
                            "format": "date-time",
                            "description": "When it was last checked. Absent before the first check."
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "trackingDomains": [
                    {
                      "id": "6a1f0c2b9d4e8a7f3c5b2e3c",
                      "hostname": "go.fernway.co",
                      "status": "active",
                      "dnsTarget": "d1x2y3z4abcdef.cloudfront.net",
                      "createdAt": "2026-11-17T09:00:00.000Z",
                      "verifiedAt": "2026-11-17T09:10:00.000Z",
                      "lastCheckedAt": "2026-11-17T09:10:00.000Z"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "post": {
        "operationId": "postTrackingDomains",
        "tags": [
          "Campaigns"
        ],
        "summary": "Add a tracking domain",
        "description": "Adds `hostname` as your organization's tracking domain and answers it with its `dnsTarget`, `pending_dns` when it is new. Then add one CNAME record at your DNS provider: its name is the hostname and its value is `dnsTarget`. The domain is checked every 5 minutes for about a day, or at once with `POST /v1/tracking-domains/{trackingDomainId}/verify`; once the record is found, the hostname is set up and its certificate issued, and it becomes `active`, usually within half an hour. Follow its `status` with `GET /v1/tracking-domains`.\n\nOnce it is active, every campaign with click tracking on (`clickTrackingEnabledAt`) sends its tracked links through it: a link in its emails goes to your hostname, where a short redirect page sends the person on to the address you wrote. A campaign with click tracking off sends links as written. The open tracking image, the unsubscribe link, test emails and messages sent outside a campaign never use it.\n\nThe hostname must be a subdomain of at least three labels, such as `go.fernway.co`: `fernway.co` answers `422` `invalid_tracking_hostname`. An organization has one tracking domain at a time (`409` `tracking_domain_limit_reached`): delete it to add another. A hostname another organization holds answers `409` `tracking_hostname_already_claimed`. Adding a hostname you deleted after it became active brings that same domain back, with the id it had, checked at once, so it can answer `active` straight away.\n\nTracking domain calls have a limit of their own, 30 a minute and 1,000 a day. Adding, checking and deleting one also share a tighter one, 10 a minute and 200 a day.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "hostname": {
                    "type": "string",
                    "description": "A subdomain of a domain you own, such as `go.fernway.co`, without `https://` or a path: the hostname the tracked links of your campaign emails will go through. It needs at least three labels, so `fernway.co` is refused. It is lower-cased.",
                    "minLength": 4,
                    "maxLength": 253,
                    "example": "go.fernway.co"
                  }
                },
                "required": [
                  "hostname"
                ]
              },
              "example": {
                "hostname": "go.fernway.co"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The tracking domain: `pending_dns` when it is new. A hostname you deleted and add again comes back with the id it had, in the state its check finds it in.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "hostname",
                    "status",
                    "dnsTarget"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "hostname": {
                      "type": "string",
                      "description": "The hostname the tracked links go through, such as `go.fernway.co`."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending_dns",
                        "verifying",
                        "active",
                        "failed"
                      ],
                      "description": "`pending_dns` while it waits for its CNAME record or its certificate, `verifying` while the hostname is set up: it can pass through both more than once. Then `active`, the only state campaigns use it in. `failed` when it has not become active after about a day of checks, or when its setup was lost."
                    },
                    "dnsTarget": {
                      "type": "string",
                      "description": "The value of the one CNAME record to add, the record whose name is `hostname`."
                    },
                    "verifiedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When it last became active. Absent until it first does."
                    },
                    "lastCheckedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When it was last checked. Absent before the first check."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e3c",
                  "hostname": "go.fernway.co",
                  "status": "pending_dns",
                  "dnsTarget": "d1x2y3z4abcdef.cloudfront.net",
                  "createdAt": "2026-11-17T09:00:00.000Z"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/tracking-domains/{trackingDomainId}": {
      "delete": {
        "operationId": "deleteTrackingDomainsTrackingDomainId",
        "tags": [
          "Campaigns"
        ],
        "summary": "Delete a tracking domain",
        "description": "Deletes your tracking domain: campaign emails send their tracked links through the shared link address again. Links in emails already sent keep working only while the hostname's CNAME record stays in place, so keep the record. A domain that was ever `active` stays held by your organization, so no other organization can take its hostname, and adding the same hostname again brings it back; one that never became active is deleted outright and its hostname is free.\n\nDeleting it again answers `404` `tracking_domain_not_found`. While the domain is still being switched off, it answers `409` `tracking_domain_removal_pending`: it is not deleted yet, so send the delete again in a minute or two.\n\nTracking domain calls have a limit of their own, 30 a minute and 1,000 a day. Adding, checking and deleting one also share a tighter one, 10 a minute and 200 a day.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "trackingDomainId",
            "in": "path",
            "required": true,
            "description": "The tracking domain's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The tracking domain is deleted.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/tracking-domains/{trackingDomainId}/verify": {
      "post": {
        "operationId": "postTrackingDomainsTrackingDomainIdVerify",
        "tags": [
          "Campaigns"
        ],
        "summary": "Check a tracking domain now",
        "description": "Checks the tracking domain now instead of at its next check, which runs every 5 minutes on its own, and answers the domain as the check left it: `pending_dns` or `verifying` while it is not live yet, `active` once it is. A `failed` domain gets another day of checks. An `active` domain is answered as it is, without a new check. To follow the status, read `GET /v1/tracking-domains` rather than calling this in a loop.\n\nTracking domain calls have a limit of their own, 30 a minute and 1,000 a day. Adding, checking and deleting one also share a tighter one, 10 a minute and 200 a day.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "trackingDomainId",
            "in": "path",
            "required": true,
            "description": "The tracking domain's id.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The tracking domain, as the check left it.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "hostname",
                    "status",
                    "dnsTarget"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "hostname": {
                      "type": "string",
                      "description": "The hostname the tracked links go through, such as `go.fernway.co`."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending_dns",
                        "verifying",
                        "active",
                        "failed"
                      ],
                      "description": "`pending_dns` while it waits for its CNAME record or its certificate, `verifying` while the hostname is set up: it can pass through both more than once. Then `active`, the only state campaigns use it in. `failed` when it has not become active after about a day of checks, or when its setup was lost."
                    },
                    "dnsTarget": {
                      "type": "string",
                      "description": "The value of the one CNAME record to add, the record whose name is `hostname`."
                    },
                    "verifiedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When it last became active. Absent until it first does."
                    },
                    "lastCheckedAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When it was last checked. Absent before the first check."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e3c",
                  "hostname": "go.fernway.co",
                  "status": "active",
                  "dnsTarget": "d1x2y3z4abcdef.cloudfront.net",
                  "createdAt": "2026-11-17T09:00:00.000Z",
                  "verifiedAt": "2026-11-17T09:10:00.000Z",
                  "lastCheckedAt": "2026-11-17T09:10:00.000Z"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/exclusions": {
      "get": {
        "operationId": "getExclusions",
        "tags": [
          "Campaigns"
        ],
        "summary": "List exclusions",
        "description": "Your organization's exclusions, oldest first: the people lists and company lists whose people campaigns skip. When a campaign enrolls people from its lists (at launch, when a list is added to it, and, with `isDynamic`, as people join its lists), it skips everyone on an excluded people list and everyone whose company is on an excluded company list: the company their record is linked to, not a company name alone. Exclusions are checked only then: they do not stop people a campaign already enrolled, and they do not cover people added with `POST /v1/campaigns/{campaignId}/people`.\n\n`matchedPeopleCount` counts every check that skipped a person, so it grows faster than the people skipped: a campaign with `isDynamic` checks its lists again every 30 minutes.\n\nExclusion calls have a limit of their own, 30 a minute and 2,000 a day.\n\nFree. **Scope:** campaigns. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "The organization's exclusions, oldest first.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "exclusions"
                  ],
                  "properties": {
                    "exclusions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "listId",
                          "listType"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "listId": {
                            "type": "string",
                            "description": "The excluded list."
                          },
                          "listName": {
                            "type": "string",
                            "description": "The list's name as it is now. A deleted list keeps the name it had."
                          },
                          "listType": {
                            "type": "string",
                            "enum": [
                              "people",
                              "company"
                            ],
                            "description": "`people`: the list's people are skipped. `company`: everyone whose record is linked to one of the list's companies is skipped."
                          },
                          "matchedPeopleCount": {
                            "type": "integer",
                            "description": "How many checks have skipped a person because of it, in all. The same person counts once for each check, and a campaign with `isDynamic` checks its lists every 30 minutes."
                          },
                          "matchedCompanyCount": {
                            "type": "integer",
                            "description": "For a company list, how many of its companies have had a person skipped. 0 for a people list."
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "description": "When the list was excluded."
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "exclusions": [
                    {
                      "id": "6a1f0c2b9d4e8a7f3c5b2e3d",
                      "listId": "6a1f0c2b9d4e8a7f3c5b2e24",
                      "listName": "Competitors",
                      "listType": "company",
                      "matchedPeopleCount": 7,
                      "matchedCompanyCount": 3,
                      "createdAt": "2026-11-17T09:00:00.000Z"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "post": {
        "operationId": "postExclusions",
        "tags": [
          "Campaigns"
        ],
        "summary": "Exclude a list from campaigns",
        "description": "Excludes one of your people or company lists from every campaign of your organization: from their next enrollment on, campaigns enrolling people from their lists skip the list's people or, for a company list, everyone whose record is linked to one of its companies. People or companies added to the list later are skipped too, and deleting the list does not delete its exclusion: its people stay skipped. It does not stop people a campaign already enrolled, and it does not cover people added with `POST /v1/campaigns/{campaignId}/people`.\n\nA list the organization does not have answers `404` `list_not_found`; a list kept automatically, such as the list of people who unsubscribed, `422` `list_not_excludable`; a list it already excludes, `409` `list_already_excluded`.\n\nExclusion calls have a limit of their own, 30 a minute and 2,000 a day.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "listId": {
                    "type": "string",
                    "description": "The people list or company list to exclude: one your organization made.",
                    "minLength": 24,
                    "maxLength": 24,
                    "pattern": "^[0-9a-fA-F]+$",
                    "example": "6a1f0c2b9d4e8a7f3c5b2e24"
                  }
                },
                "required": [
                  "listId"
                ]
              },
              "example": {
                "listId": "6a1f0c2b9d4e8a7f3c5b2e24"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new exclusion: campaigns skip the list's people from their next enrollment on.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "listId",
                    "listType"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "listId": {
                      "type": "string",
                      "description": "The excluded list."
                    },
                    "listName": {
                      "type": "string",
                      "description": "The list's name as it is now. A deleted list keeps the name it had."
                    },
                    "listType": {
                      "type": "string",
                      "enum": [
                        "people",
                        "company"
                      ],
                      "description": "`people`: the list's people are skipped. `company`: everyone whose record is linked to one of the list's companies is skipped."
                    },
                    "matchedPeopleCount": {
                      "type": "integer",
                      "description": "How many checks have skipped a person because of it, in all. The same person counts once for each check, and a campaign with `isDynamic` checks its lists every 30 minutes."
                    },
                    "matchedCompanyCount": {
                      "type": "integer",
                      "description": "For a company list, how many of its companies have had a person skipped. 0 for a people list."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the list was excluded."
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e3d",
                  "listId": "6a1f0c2b9d4e8a7f3c5b2e24",
                  "listName": "Competitors",
                  "listType": "company",
                  "matchedPeopleCount": 0,
                  "matchedCompanyCount": 0,
                  "createdAt": "2026-11-17T09:00:00.000Z"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/exclusions/{exclusionId}": {
      "delete": {
        "operationId": "deleteExclusionsExclusionId",
        "tags": [
          "Campaigns"
        ],
        "summary": "Delete an exclusion",
        "description": "Stops excluding a list: campaigns no longer skip its people from their next enrollment on. The list is kept. The people the exclusion kept out are not enrolled by this call, but the next enrollment takes them: a running campaign with `isDynamic` enrolls them from its lists within 30 minutes, and any campaign when their list is added to it or it is launched. An exclusion the organization does not have answers `404` `exclusion_not_found`.\n\nExclusion calls have a limit of their own, 30 a minute and 2,000 a day.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "exclusionId",
            "in": "path",
            "required": true,
            "description": "The exclusion's id, not its list's.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The exclusion is deleted.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/conversations": {
      "get": {
        "operationId": "getConversations",
        "tags": [
          "Inbox"
        ],
        "summary": "List conversations",
        "description": "The organization's conversations on one channel, newest first: email threads of its mailboxes (`channel=email`), or LinkedIn chats of its seats (`channel=linkedin`). Narrow them by `folder`, `campaignId`, dates and `search`; an email list by `mailbox` and `repliesOnly`, a LinkedIn list by `accountId`.\n\nFor the next page, send the page's `pagination.nextCursor` as `cursor`, with the same filters. Later pages keep the first page's `pageSize`; only a missing `nextCursor` marks the end.\n\nFree. **Scope:** campaigns. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "channel",
            "in": "query",
            "required": true,
            "description": "`email` or `linkedin`.",
            "schema": {
              "type": "string",
              "enum": [
                "email",
                "linkedin"
              ]
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "description": "Conversations per page.",
            "schema": {
              "type": "integer",
              "default": 25,
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The `pagination.nextCursor` of the page before. Later pages keep the first page's size.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          {
            "name": "folder",
            "in": "query",
            "required": false,
            "description": "Email: `inbox` (the default), `sent`, `unread`, `favorite`, `archived`, `spam` or `trash`. LinkedIn: `inbox` (the default, every chat) or `unread`.",
            "schema": {
              "type": "string",
              "enum": [
                "inbox",
                "sent",
                "unread",
                "favorite",
                "archived",
                "spam",
                "trash"
              ]
            }
          },
          {
            "name": "campaignId",
            "in": "query",
            "required": false,
            "description": "Only the conversations of one campaign.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "description": "Only conversations with a message at or after this ISO 8601 date-time.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Only conversations with a message at or before this ISO 8601 date-time, not before `since`.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "description": "Email: matches names, addresses, the subject and the text. LinkedIn: matches the other person's name.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          {
            "name": "mailbox",
            "in": "query",
            "required": false,
            "description": "Email only: one mailbox, or up to 20 separated by commas.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 6420
            }
          },
          {
            "name": "repliesOnly",
            "in": "query",
            "required": false,
            "description": "Email only: true keeps the conversations where the other side wrote back.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "accountId",
            "in": "query",
            "required": false,
            "description": "LinkedIn only: one seat, by its `id`.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of conversations, newest first.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "description": "An email thread or a LinkedIn chat. A field without a value is absent.",
                        "required": [
                          "id",
                          "channel"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "The conversation's id, for the same `channel`."
                          },
                          "channel": {
                            "type": "string",
                            "enum": [
                              "email",
                              "linkedin"
                            ]
                          },
                          "mailbox": {
                            "type": "string",
                            "description": "Email: the mailbox the thread is in."
                          },
                          "subject": {
                            "type": "string",
                            "description": "Email."
                          },
                          "participants": {
                            "type": "array",
                            "description": "Email: the senders' addresses. LinkedIn: the other side, as `{ name, linkedinUrl }`.",
                            "items": {}
                          },
                          "messageCount": {
                            "type": "integer",
                            "description": "Email."
                          },
                          "unreadCount": {
                            "type": "integer"
                          },
                          "labels": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "interested",
                                "not_interested"
                              ]
                            },
                            "description": "Email: the labels its emails carry."
                          },
                          "accountId": {
                            "type": "string",
                            "description": "LinkedIn: the seat the chat is on."
                          },
                          "campaignId": {
                            "type": "string",
                            "description": "LinkedIn: the campaign that started the chat."
                          },
                          "lastMessage": {
                            "type": "object",
                            "properties": {
                              "messageId": {
                                "type": "string",
                                "description": "Email."
                              },
                              "direction": {
                                "type": "string",
                                "enum": [
                                  "sent",
                                  "received"
                                ],
                                "description": "Email."
                              },
                              "from": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string"
                                  },
                                  "address": {
                                    "type": "string"
                                  }
                                },
                                "description": "Email."
                              },
                              "text": {
                                "type": "string",
                                "description": "Up to 200 characters, without the quoted history."
                              },
                              "subject": {
                                "type": "string",
                                "description": "LinkedIn: an InMail's subject."
                              },
                              "sentAt": {
                                "type": "string",
                                "format": "date-time"
                              }
                            }
                          }
                        }
                      }
                    },
                    "pagination": {
                      "type": "object",
                      "required": [
                        "pageSize",
                        "total"
                      ],
                      "properties": {
                        "pageSize": {
                          "type": "integer"
                        },
                        "nextCursor": {
                          "type": "string",
                          "description": "Send as `cursor` for the next page. Absent on the last page."
                        },
                        "total": {
                          "type": "integer",
                          "description": "Everything that matches, across every page."
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "id": "c210cDptYXlhQGZlcm53YXkuY286MTg5YzQ",
                      "channel": "email",
                      "mailbox": "maya@fernway.co",
                      "subject": "Your Lisbon fleet",
                      "participants": [
                        "maya@fernway.co",
                        "ana.costa@example.com"
                      ],
                      "messageCount": 2,
                      "unreadCount": 1,
                      "labels": [
                        "interested"
                      ],
                      "lastMessage": {
                        "messageId": "18f3c2a9b7d41e02",
                        "direction": "received",
                        "from": {
                          "name": "Ana Costa",
                          "address": "ana.costa@example.com"
                        },
                        "text": "Happy to talk on Thursday.",
                        "sentAt": "2026-11-14T15:20:00.000Z"
                      }
                    }
                  ],
                  "pagination": {
                    "pageSize": 25,
                    "total": 1
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "patch": {
        "operationId": "patchConversations",
        "tags": [
          "Inbox"
        ],
        "summary": "Update conversations in bulk",
        "description": "Makes one change to 1 to 50 email conversations, at the mail provider too: read or unread, starred or not, or moved to Archived, Spam or Trash, or back to the inbox. Each comes back with a `status`: `updated`, `not_found`, `too_large`, `needs_reconnect` (its mailbox must be connected again) or `failed`. A LinkedIn chat is changed one at a time.\n\nBulk changes have their own limit, 20 a minute and 300 a day.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "conversationIds": {
                    "type": "array",
                    "description": "1 to 50 email conversations, each once, by `id`.",
                    "minItems": 1,
                    "maxItems": 50,
                    "uniqueItems": true,
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 2048
                    }
                  },
                  "isRead": {
                    "type": "boolean",
                    "description": "Marks every message read, or with false unread."
                  },
                  "isFavorite": {
                    "type": "boolean",
                    "description": "Stars the conversation, or with false takes the star off."
                  },
                  "isArchived": {
                    "type": "boolean",
                    "description": "Moves it to Archived, or with false back to the inbox."
                  },
                  "isSpam": {
                    "type": "boolean",
                    "description": "Moves it to Spam, or with false back to the inbox."
                  },
                  "isDeleted": {
                    "type": "boolean",
                    "description": "Moves it to Trash, or with false back to the inbox."
                  }
                },
                "required": [
                  "conversationIds"
                ]
              },
              "example": {
                "conversationIds": [
                  "c210cDptYXlhQGZlcm53YXkuY286MTg5YzQ"
                ],
                "isArchived": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "What happened to each conversation, in the order sent.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "results"
                  ],
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "updated",
                              "not_found",
                              "too_large",
                              "needs_reconnect",
                              "failed"
                            ]
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "results": [
                    {
                      "id": "c210cDptYXlhQGZlcm53YXkuY286MTg5YzQ",
                      "status": "updated"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/conversations/counts": {
      "get": {
        "operationId": "getConversationsCounts",
        "tags": [
          "Inbox"
        ],
        "summary": "Count email conversations",
        "description": "How many email conversations each folder holds: `unread` counts those with an email not yet read. On LinkedIn, the unread count is the `total` of `GET /v1/conversations?channel=linkedin&folder=unread&pageSize=1`.\n\nFree. **Scope:** campaigns. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "folders",
            "in": "query",
            "required": false,
            "description": "The folders to count, separated by commas: `inbox`, `sent`, `unread`, `favorite`, `archived`, `spam`, `trash`. All of them when left out.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "example": "inbox,unread"
          },
          {
            "name": "mailbox",
            "in": "query",
            "required": false,
            "description": "Only these mailboxes: one address, or up to 20 separated by commas.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 6420
            }
          }
        ],
        "responses": {
          "200": {
            "description": "How many email conversations each folder asked for holds.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "counts"
                  ],
                  "properties": {
                    "counts": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "integer"
                      },
                      "description": "By folder."
                    }
                  }
                },
                "example": {
                  "counts": {
                    "inbox": 120,
                    "unread": 7,
                    "spam": 2
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/conversations/{conversationId}": {
      "get": {
        "operationId": "getConversationsConversationId",
        "tags": [
          "Inbox"
        ],
        "summary": "Get a conversation",
        "description": "One conversation with every message, oldest first. Email: each message's sender, recipients, subject, HTML body, labels and attachment names, and its `messageId`, which a reply's `inReplyToMessageId` takes. LinkedIn: each message's text, sender and time. Send the conversation's `channel`. A conversation the organization does not have answers `404` `conversation_not_found`.\n\nFree. **Scope:** campaigns. Read-only keys may call it.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "conversationId",
            "in": "path",
            "required": true,
            "description": "The conversation's `id`, from `GET /v1/conversations`.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          },
          {
            "name": "channel",
            "in": "query",
            "required": true,
            "description": "`email` or `linkedin`.",
            "schema": {
              "type": "string",
              "enum": [
                "email",
                "linkedin"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The conversation with its messages, oldest first.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "channel",
                    "messages"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "channel": {
                      "type": "string",
                      "enum": [
                        "email",
                        "linkedin"
                      ]
                    },
                    "mailbox": {
                      "type": "string",
                      "description": "Email."
                    },
                    "subject": {
                      "type": "string",
                      "description": "Email."
                    },
                    "participants": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Email: the senders' addresses."
                    },
                    "labels": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "interested",
                          "not_interested"
                        ]
                      }
                    },
                    "messages": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "messageId": {
                            "type": "string",
                            "description": "Email: what `inReplyToMessageId` takes."
                          },
                          "direction": {
                            "type": "string",
                            "enum": [
                              "sent",
                              "received"
                            ]
                          },
                          "from": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "address": {
                                "type": "string"
                              }
                            },
                            "description": "Email."
                          },
                          "to": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "address": {
                                  "type": "string"
                                }
                              }
                            },
                            "description": "Email."
                          },
                          "cc": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "address": {
                                  "type": "string"
                                }
                              }
                            },
                            "description": "Email."
                          },
                          "bcc": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "address": {
                                  "type": "string"
                                }
                              }
                            },
                            "description": "Email."
                          },
                          "subject": {
                            "type": "string",
                            "description": "Email."
                          },
                          "body": {
                            "type": "string",
                            "description": "Email: HTML."
                          },
                          "isRead": {
                            "type": "boolean",
                            "description": "Email."
                          },
                          "labels": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "interested",
                                "not_interested"
                              ]
                            },
                            "description": "Email."
                          },
                          "attachments": {
                            "type": "array",
                            "description": "Email: the attachments' names.",
                            "items": {
                              "type": "object",
                              "properties": {
                                "filename": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "text": {
                            "type": "string",
                            "description": "LinkedIn. Absent for a message that is only an attachment."
                          },
                          "sender": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "linkedinUrl": {
                                "type": "string"
                              }
                            },
                            "description": "LinkedIn."
                          },
                          "sentAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "id": "u7Hc2yQ9Rq-1mZb0Lx4k3A",
                  "channel": "linkedin",
                  "messages": [
                    {
                      "text": "Thanks for connecting, Ana.",
                      "sentAt": "2026-11-13T09:02:00.000Z",
                      "direction": "sent",
                      "sender": {
                        "name": "Maya Fern",
                        "linkedinUrl": "https://www.linkedin.com/in/maya-fern"
                      }
                    },
                    {
                      "text": "Likewise. What do you do?",
                      "sentAt": "2026-11-13T11:40:00.000Z",
                      "direction": "received",
                      "sender": {
                        "name": "Ana Costa",
                        "linkedinUrl": "https://www.linkedin.com/in/ana-costa"
                      }
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "patch": {
        "operationId": "patchConversationsConversationId",
        "tags": [
          "Inbox"
        ],
        "summary": "Update a conversation",
        "description": "Changes one conversation, at the mail provider too: marks it read or unread, stars it, moves it to Archived, Spam or Trash or back to the inbox (one move a call), or labels its newest email received `interested` or `not_interested`. A LinkedIn chat can only be marked read. It answers the changes made.\n\nChanges have their own limit, 30 a minute and 1,000 a day.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "conversationId",
            "in": "path",
            "required": true,
            "description": "The conversation's `id`, from `GET /v1/conversations`.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "channel": {
                    "type": "string",
                    "description": "`email` or `linkedin`.",
                    "enum": [
                      "email",
                      "linkedin"
                    ]
                  },
                  "isRead": {
                    "type": "boolean",
                    "description": "Marks every message read, or with false unread (email only: a LinkedIn chat can only be marked read)."
                  },
                  "isFavorite": {
                    "type": "boolean",
                    "description": "Email only. Stars the conversation, or with false takes the star off."
                  },
                  "isArchived": {
                    "type": "boolean",
                    "description": "Email only. Moves it to Archived, or with false back to the inbox."
                  },
                  "isSpam": {
                    "type": "boolean",
                    "description": "Email only. Moves it to Spam, or with false back to the inbox."
                  },
                  "isDeleted": {
                    "type": "boolean",
                    "description": "Email only. Moves it to Trash, or with false back to the inbox."
                  },
                  "label": {
                    "type": "string",
                    "description": "Email only: `interested` or `not_interested` on the newest email received, or null to take both off.",
                    "enum": [
                      "interested",
                      "not_interested",
                      null
                    ]
                  }
                },
                "required": [
                  "channel"
                ]
              },
              "example": {
                "channel": "email",
                "isRead": true,
                "label": "interested"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The conversation and the changes made.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "channel"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "channel": {
                      "type": "string"
                    },
                    "isRead": {
                      "type": "boolean"
                    },
                    "isFavorite": {
                      "type": "boolean"
                    },
                    "isArchived": {
                      "type": "boolean"
                    },
                    "isSpam": {
                      "type": "boolean"
                    },
                    "isDeleted": {
                      "type": "boolean"
                    },
                    "label": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "interested",
                        "not_interested",
                        null
                      ],
                      "description": "Null when the labels were taken off."
                    }
                  }
                },
                "example": {
                  "id": "c210cDptYXlhQGZlcm53YXkuY286MTg5YzQ",
                  "channel": "email",
                  "isRead": true,
                  "label": "interested"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/conversations/{conversationId}/reply": {
      "post": {
        "operationId": "postConversationsConversationIdReply",
        "tags": [
          "Inbox"
        ],
        "summary": "Reply in a conversation",
        "description": "Replies in a conversation from the mailbox or seat it is on. Email: to the sender of the message answered (`inReplyToMessageId`, or the newest), in its thread and under its subject, with any `cc` and `bcc`. LinkedIn: a message in the chat. A recipient who unsubscribed answers `422` `recipient_unsubscribed`, and a mailbox whose sign-in lapsed `422` `mailbox_needs_reconnect`.\n\nA send cannot be taken back. Replies, new messages and invitations share one limit, 20 a minute and 600 a day, and each mailbox and seat keeps its own daily allowances. A send waits for the mail provider or LinkedIn: allow two minutes.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "conversationId",
            "in": "path",
            "required": true,
            "description": "The conversation's `id`, from `GET /v1/conversations`.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Names this operation, so a retry with the same key and body gets the first success again, marked `Idempotent-Replayed`, instead of running or charging twice. A mailbox's `password` is not compared: the same mailbox sent again with another password is the same call, and gets the first answer. Kept 24 hours for your organization and this route. A refusal (`4xx`) frees the key at once, so a corrected retry runs. After a server error (`5xx`), which may still take effect, the key stays held for 5 minutes from the call's start, and a retry in that time answers `409` `idempotency_in_progress`; after that, a send or import that may already have gone out answers `409` `idempotency_outcome_unknown` instead of running again. 1 to 255 visible ASCII characters, such as a UUID.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7E]+$"
            },
            "example": "5f1c9d2e-8a4b-4e7c-9f30-6b2a1d8e4c75"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "channel": {
                    "type": "string",
                    "description": "`email` or `linkedin`.",
                    "enum": [
                      "email",
                      "linkedin"
                    ]
                  },
                  "content": {
                    "type": "string",
                    "description": "The reply. Email: HTML, up to 100,000 characters (wrap paragraphs in `<p>`). LinkedIn: plain text, up to 8,000 characters.",
                    "maxLength": 100000,
                    "pattern": "\\S"
                  },
                  "cc": {
                    "type": "array",
                    "description": "Email only: up to 50 addresses to copy.",
                    "maxItems": 50,
                    "items": {
                      "type": "string",
                      "maxLength": 320
                    }
                  },
                  "bcc": {
                    "type": "array",
                    "description": "Email only: up to 50 addresses to blind-copy.",
                    "maxItems": 50,
                    "items": {
                      "type": "string",
                      "maxLength": 320
                    }
                  },
                  "inReplyToMessageId": {
                    "type": "string",
                    "description": "Email only: the `messageId` of the message to answer. The newest when left out.",
                    "minLength": 1,
                    "maxLength": 1000
                  }
                },
                "required": [
                  "channel",
                  "content"
                ]
              },
              "example": {
                "channel": "email",
                "content": "<p>Thursday at 10:00 works. Talk then.</p>"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The message, sent, or scheduled.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "channel",
                    "status"
                  ],
                  "properties": {
                    "channel": {
                      "type": "string",
                      "enum": [
                        "email",
                        "linkedin"
                      ]
                    },
                    "conversationId": {
                      "type": "string",
                      "description": "The conversation it is in, when known."
                    },
                    "messageId": {
                      "type": "string",
                      "description": "Email: the message's id, once sent."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "sent",
                        "scheduled"
                      ]
                    }
                  }
                },
                "example": {
                  "channel": "email",
                  "conversationId": "c210cDptYXlhQGZlcm53YXkuY286MTg5YzQ",
                  "messageId": "18f3c2a9b7d41e09",
                  "status": "sent"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/messages": {
      "post": {
        "operationId": "postMessages",
        "tags": [
          "Inbox"
        ],
        "summary": "Send a message",
        "description": "Starts a conversation. Email: from one of your mailboxes (`from`) to `to`, with a `subject`, now or at `scheduledAt`. LinkedIn: from one of your seats (`accountId`) to the person at `linkedinUrl`, as a message to a connection, or with `inMail` as an InMail, which spends one of the seat's InMail credits. A seat without InMail answers `422` `linkedin_inmail_not_available`.\n\nA send cannot be taken back. Replies, new messages and invitations share one limit, 20 a minute and 600 a day, and each mailbox and seat keeps its own daily allowances. A send waits for the mail provider or LinkedIn: allow two minutes.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Names this operation, so a retry with the same key and body gets the first success again, marked `Idempotent-Replayed`, instead of running or charging twice. A mailbox's `password` is not compared: the same mailbox sent again with another password is the same call, and gets the first answer. Kept 24 hours for your organization and this route. A refusal (`4xx`) frees the key at once, so a corrected retry runs. After a server error (`5xx`), which may still take effect, the key stays held for 5 minutes from the call's start, and a retry in that time answers `409` `idempotency_in_progress`; after that, a send or import that may already have gone out answers `409` `idempotency_outcome_unknown` instead of running again. 1 to 255 visible ASCII characters, such as a UUID.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7E]+$"
            },
            "example": "5f1c9d2e-8a4b-4e7c-9f30-6b2a1d8e4c75"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "channel": {
                    "type": "string",
                    "description": "`email` or `linkedin`.",
                    "enum": [
                      "email",
                      "linkedin"
                    ]
                  },
                  "content": {
                    "type": "string",
                    "description": "The message. Email: HTML, up to 100,000 characters (wrap paragraphs in `<p>`). LinkedIn: plain text, up to 8,000 characters.",
                    "maxLength": 100000,
                    "pattern": "\\S"
                  },
                  "from": {
                    "type": "string",
                    "description": "Email only, and needed: the mailbox to send from, as `GET /v1/accounts?channel=email` lists it.",
                    "maxLength": 320
                  },
                  "to": {
                    "type": "array",
                    "description": "Email only, and needed: 1 to 50 recipients.",
                    "minItems": 1,
                    "maxItems": 50,
                    "items": {
                      "type": "string",
                      "maxLength": 320
                    }
                  },
                  "cc": {
                    "type": "array",
                    "description": "Email only: up to 50 addresses to copy.",
                    "maxItems": 50,
                    "items": {
                      "type": "string",
                      "maxLength": 320
                    }
                  },
                  "bcc": {
                    "type": "array",
                    "description": "Email only: up to 50 addresses to blind-copy.",
                    "maxItems": 50,
                    "items": {
                      "type": "string",
                      "maxLength": 320
                    }
                  },
                  "subject": {
                    "type": "string",
                    "description": "Email: needed, up to 998 characters. LinkedIn: an InMail's subject, up to 200 characters, only with `inMail`.",
                    "maxLength": 998,
                    "pattern": "\\S"
                  },
                  "scheduledAt": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Email only: when to send it, as an ISO 8601 date-time. Now when left out."
                  },
                  "accountId": {
                    "type": "string",
                    "description": "LinkedIn only, and needed: the seat to send from, by its `id`.",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "linkedinUrl": {
                    "type": "string",
                    "description": "LinkedIn only, and needed: the profile of the person to write to.",
                    "maxLength": 500,
                    "pattern": "^(https?:\\/\\/)?([\\w-]+\\.)?linkedin\\.com\\/in\\/[^\\s/?#]+"
                  },
                  "inMail": {
                    "type": "boolean",
                    "description": "LinkedIn only: true sends an InMail, which reaches someone the seat is not connected to and spends one of the seat's InMail credits. It needs a Premium, Sales Navigator or Recruiter seat."
                  }
                },
                "required": [
                  "channel",
                  "content"
                ]
              },
              "example": {
                "channel": "email",
                "from": "maya@fernway.co",
                "to": [
                  "ana.costa@example.com"
                ],
                "subject": "Your Lisbon fleet",
                "content": "<p>Hi Ana, saw Northwind runs 40 trucks out of Lisbon.</p>"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The message, sent, or scheduled.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "channel",
                    "status"
                  ],
                  "properties": {
                    "channel": {
                      "type": "string",
                      "enum": [
                        "email",
                        "linkedin"
                      ]
                    },
                    "conversationId": {
                      "type": "string",
                      "description": "The conversation it is in, when known."
                    },
                    "messageId": {
                      "type": "string",
                      "description": "Email: the message's id, once sent."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "sent",
                        "scheduled"
                      ]
                    }
                  }
                },
                "example": {
                  "channel": "email",
                  "conversationId": "c210cDptYXlhQGZlcm53YXkuY286MTg5YzQ",
                  "messageId": "18f3c2a9b7d41e09",
                  "status": "sent"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/linkedin/invitations": {
      "post": {
        "operationId": "postLinkedinInvitations",
        "tags": [
          "Inbox"
        ],
        "summary": "Send a LinkedIn invitation",
        "description": "Invites someone to connect, from one of your seats, with an optional note of up to 200 characters. LinkedIn refuses a second invitation to someone the seat invited recently (`409` `linkedin_invitation_already_sent`), and one past the seat's allowance (`422` `linkedin_invitation_limit_reached`). Someone the seat is already connected to answers `409` `linkedin_already_connected`: nothing is sent and none of the allowance is used.\n\nA send cannot be taken back. Replies, new messages and invitations share one limit, 20 a minute and 600 a day, and each mailbox and seat keeps its own daily allowances. A send waits for the mail provider or LinkedIn: allow two minutes.\n\nFree. **Scope:** campaigns, with a key that can write.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Names this operation, so a retry with the same key and body gets the first success again, marked `Idempotent-Replayed`, instead of running or charging twice. A mailbox's `password` is not compared: the same mailbox sent again with another password is the same call, and gets the first answer. Kept 24 hours for your organization and this route. A refusal (`4xx`) frees the key at once, so a corrected retry runs. After a server error (`5xx`), which may still take effect, the key stays held for 5 minutes from the call's start, and a retry in that time answers `409` `idempotency_in_progress`; after that, a send or import that may already have gone out answers `409` `idempotency_outcome_unknown` instead of running again. 1 to 255 visible ASCII characters, such as a UUID.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7E]+$"
            },
            "example": "5f1c9d2e-8a4b-4e7c-9f30-6b2a1d8e4c75"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "accountId": {
                    "type": "string",
                    "description": "The seat to send from, by its `id`.",
                    "minLength": 1,
                    "maxLength": 100,
                    "example": "sBzWb1QeTTqF0vUpHKa2xg"
                  },
                  "linkedinUrl": {
                    "type": "string",
                    "description": "The profile of the person to invite.",
                    "maxLength": 500,
                    "pattern": "^(https?:\\/\\/)?([\\w-]+\\.)?linkedin\\.com\\/in\\/[^\\s/?#]+",
                    "example": "https://www.linkedin.com/in/ana-costa"
                  },
                  "note": {
                    "type": "string",
                    "description": "A note sent with the invitation, up to 200 characters. Left out or empty, it goes without one.",
                    "maxLength": 200
                  }
                },
                "required": [
                  "accountId",
                  "linkedinUrl"
                ]
              },
              "example": {
                "accountId": "sBzWb1QeTTqF0vUpHKa2xg",
                "linkedinUrl": "https://www.linkedin.com/in/ana-costa",
                "note": "Hi Ana, we both work on freight in Lisbon."
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The invitation, sent.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/IdempotentReplayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "accountId"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The invitation's id."
                    },
                    "accountId": {
                      "type": "string",
                      "description": "The seat it was sent from."
                    },
                    "publicIdentifier": {
                      "type": "string"
                    },
                    "linkedinUrl": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "id": "7263504611092541440",
                  "accountId": "sBzWb1QeTTqF0vUpHKa2xg",
                  "publicIdentifier": "ana-costa",
                  "linkedinUrl": "https://www.linkedin.com/in/ana-costa"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/me": {
      "get": {
        "operationId": "getMe",
        "tags": [
          "Account"
        ],
        "summary": "Get the calling key",
        "description": "Which key is calling and for which organization: the key's scope, and what it spent today against its daily cap. Free, for any key.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "The calling key and its organization.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "key",
                    "org"
                  ],
                  "properties": {
                    "key": {
                      "type": "object",
                      "required": [
                        "id",
                        "name",
                        "prefix",
                        "lastFour",
                        "scope",
                        "createdAt",
                        "dailySpend"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "The key's id."
                        },
                        "name": {
                          "type": "string",
                          "description": "The name the key was given in the console."
                        },
                        "prefix": {
                          "type": "string",
                          "description": "`ob_live_` and the key's first four random characters."
                        },
                        "lastFour": {
                          "type": "string",
                          "description": "The key's last four characters."
                        },
                        "scope": {
                          "type": "object",
                          "description": "What the key may call.",
                          "required": [
                            "kind"
                          ],
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "full",
                                "read_only",
                                "products"
                              ],
                              "description": "`full`: every call. `read_only`: every call that changes nothing, searches included. `products`: the calls of the products listed."
                            },
                            "products": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "search",
                                  "enrichment",
                                  "lists",
                                  "campaigns",
                                  "connections"
                                ]
                              },
                              "description": "The products a `products` key may call."
                            }
                          }
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "expiresAt": {
                          "type": "string",
                          "format": "date-time",
                          "description": "When the key stops working. Absent for a key that does not expire."
                        },
                        "dailySpend": {
                          "type": "object",
                          "description": "What the calling key spent today (UTC) against its daily cap.",
                          "required": [
                            "spentUsd",
                            "resetsAt"
                          ],
                          "properties": {
                            "spentUsd": {
                              "type": "string",
                              "description": "Spent today, in US dollars."
                            },
                            "capUsd": {
                              "type": "string",
                              "description": "The key's daily cap, in US dollars. Absent when the key has none."
                            },
                            "remainingUsd": {
                              "type": "string",
                              "description": "What is left of the cap today. Absent when the key has none."
                            },
                            "resetsAt": {
                              "type": "string",
                              "format": "date-time",
                              "description": "When today ends: midnight UTC."
                            }
                          }
                        }
                      }
                    },
                    "org": {
                      "type": "object",
                      "description": "The organization the key belongs to.",
                      "required": [
                        "id",
                        "name",
                        "slug"
                      ],
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "slug": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "example": {
                  "key": {
                    "id": "6a1f0c2b9d4e8a7f3c5b2e11",
                    "name": "Agent key",
                    "prefix": "ob_live_7Kx2",
                    "lastFour": "34hx",
                    "scope": {
                      "kind": "full"
                    },
                    "createdAt": "2026-11-02T09:30:00.000Z",
                    "dailySpend": {
                      "spentUsd": "0.018000",
                      "capUsd": "5.000000",
                      "remainingUsd": "4.982000",
                      "resetsAt": "2026-11-15T00:00:00.000Z"
                    }
                  },
                  "org": {
                    "id": "6a1f0c2b9d4e8a7f3c5b2e12",
                    "name": "Acme",
                    "slug": "acme"
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/me/revoke": {
      "post": {
        "operationId": "postMeRevoke",
        "tags": [
          "Account"
        ],
        "summary": "Revoke the calling key",
        "description": "Revokes the key that makes this call. This call succeeds; the key's next call is refused with `api_key_revoked`. Use it when a key may have leaked. Free, with its own limit, so a leaked key flooding other calls cannot block its own revoke.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "204": {
            "description": "The key is revoked.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/limits": {
      "get": {
        "operationId": "getLimits",
        "tags": [
          "Account"
        ],
        "summary": "List rate limits",
        "description": "Every rate limit the organization's calls share, with what is left of it in the current window, and the calling key's spend today against its daily cap. Free, with its own limit, so reading the limits never spends them.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Every rate limit, with what is left of it, and the calling key's spend today.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "rateLimits",
                    "keyDailySpend"
                  ],
                  "properties": {
                    "rateLimits": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "group",
                          "limit",
                          "windowSeconds",
                          "remaining",
                          "resetsAt"
                        ],
                        "properties": {
                          "group": {
                            "type": "string",
                            "description": "The routes that share the limit, such as `people_search`."
                          },
                          "limit": {
                            "type": "integer",
                            "description": "The calls allowed per window, for the whole organization."
                          },
                          "windowSeconds": {
                            "type": "integer",
                            "description": "The window: 60 for a minute, 86400 for a day."
                          },
                          "remaining": {
                            "type": "integer",
                            "description": "The calls left in the current window."
                          },
                          "resetsAt": {
                            "type": "string",
                            "format": "date-time",
                            "description": "When the current window ends."
                          }
                        }
                      }
                    },
                    "keyDailySpend": {
                      "type": "object",
                      "description": "What the calling key spent today (UTC) against its daily cap.",
                      "required": [
                        "spentUsd",
                        "resetsAt"
                      ],
                      "properties": {
                        "spentUsd": {
                          "type": "string",
                          "description": "Spent today, in US dollars."
                        },
                        "capUsd": {
                          "type": "string",
                          "description": "The key's daily cap, in US dollars. Absent when the key has none."
                        },
                        "remainingUsd": {
                          "type": "string",
                          "description": "What is left of the cap today. Absent when the key has none."
                        },
                        "resetsAt": {
                          "type": "string",
                          "format": "date-time",
                          "description": "When today ends: midnight UTC."
                        }
                      }
                    }
                  }
                },
                "example": {
                  "rateLimits": [
                    {
                      "group": "people_search",
                      "limit": 20,
                      "windowSeconds": 60,
                      "remaining": 19,
                      "resetsAt": "2026-11-14T10:03:00.000Z"
                    },
                    {
                      "group": "people_search",
                      "limit": 1000,
                      "windowSeconds": 86400,
                      "remaining": 997,
                      "resetsAt": "2026-11-15T00:00:00.000Z"
                    }
                  ],
                  "keyDailySpend": {
                    "spentUsd": "0.018000",
                    "capUsd": "5.000000",
                    "remainingUsd": "4.982000",
                    "resetsAt": "2026-11-15T00:00:00.000Z"
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/wallet": {
      "get": {
        "operationId": "getWallet",
        "tags": [
          "Billing"
        ],
        "summary": "Get the balance",
        "description": "The organization's balance, what is set aside for calls in progress, what new calls can use, and whether auto-recharge is on, with the calling key's spend today. Free, for any key.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "The organization's balance and the calling key's spend today.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "balanceUsd",
                    "heldUsd",
                    "availableUsd",
                    "autoRecharge",
                    "keyDailySpend"
                  ],
                  "properties": {
                    "balanceUsd": {
                      "type": "string",
                      "description": "The balance, in US dollars."
                    },
                    "heldUsd": {
                      "type": "string",
                      "description": "What is set aside for calls in progress."
                    },
                    "availableUsd": {
                      "type": "string",
                      "description": "What new calls can use: the balance less what is held."
                    },
                    "autoRecharge": {
                      "type": "object",
                      "required": [
                        "isEnabled"
                      ],
                      "properties": {
                        "isEnabled": {
                          "type": "boolean",
                          "description": "Whether the balance tops itself up from the saved card when it runs low."
                        }
                      }
                    },
                    "keyDailySpend": {
                      "type": "object",
                      "description": "What the calling key spent today (UTC) against its daily cap.",
                      "required": [
                        "spentUsd",
                        "resetsAt"
                      ],
                      "properties": {
                        "spentUsd": {
                          "type": "string",
                          "description": "Spent today, in US dollars."
                        },
                        "capUsd": {
                          "type": "string",
                          "description": "The key's daily cap, in US dollars. Absent when the key has none."
                        },
                        "remainingUsd": {
                          "type": "string",
                          "description": "What is left of the cap today. Absent when the key has none."
                        },
                        "resetsAt": {
                          "type": "string",
                          "format": "date-time",
                          "description": "When today ends: midnight UTC."
                        }
                      }
                    }
                  }
                },
                "example": {
                  "balanceUsd": "9.993700",
                  "heldUsd": "0.025000",
                  "availableUsd": "9.968700",
                  "autoRecharge": {
                    "isEnabled": false
                  },
                  "keyDailySpend": {
                    "spentUsd": "0.018000",
                    "capUsd": "5.000000",
                    "remainingUsd": "4.982000",
                    "resetsAt": "2026-11-15T00:00:00.000Z"
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/wallet/top-ups": {
      "post": {
        "operationId": "postWalletTopUps",
        "tags": [
          "Billing"
        ],
        "summary": "Add funds with a machine payment",
        "description": "Adds funds to the organization's balance by card, with no person and no checkout page, through the Machine Payments Protocol (MPP) and a Stripe Shared Payment Token. Send `amountUsd` with your API key. The first answer is `402` with a `WWW-Authenticate: Payment` challenge. Have your payment client pay it, then send the same request again with the payment credential in the `Payment-Authorization` header: your API key stays in `Authorization`. The answer is then `201` with the top-up and a `Payment-Receipt` header, and `X-Balance-Usd` shows the new balance.\n\nA retry with the same credential answers the same top-up and charges nothing more. A credential that is refused, such as one whose card was declined or whose challenge expired, answers `402` with the reason and a new challenge. The amount is $10 to $5,000 in whole cents, and a new organization can add at most $5,000 in its first 7 days. Any live key may call it, a read-only one too. It has its own limit: 10 a minute and 200 a day.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "amountUsd": {
                    "type": "number",
                    "description": "How much to add to the balance, in US dollars: 10 to 5000, in whole cents. Send the same amount with the payment as the challenge was asked for.",
                    "minimum": 10,
                    "maximum": 5000
                  }
                },
                "required": [
                  "amountUsd"
                ]
              },
              "example": {
                "amountUsd": 25
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The payment was charged and the balance credited.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "amountUsd",
                    "balanceUsd"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The top-up's id."
                    },
                    "amountUsd": {
                      "type": "string",
                      "description": "What was charged and added to the balance."
                    },
                    "balanceUsd": {
                      "type": "string",
                      "description": "The balance after the top-up."
                    }
                  }
                },
                "example": {
                  "id": "6a1f0c2b9d4e8a7f3c5b2e50",
                  "amountUsd": "25.000000",
                  "balanceUsd": "34.998200"
                }
              }
            }
          },
          "402": {
            "description": "Pay first: the `WWW-Authenticate: Payment` header holds the challenge for the amount sent. Pay it and send the same request again with the credential in `Payment-Authorization`. Also the answer to a refused credential, with the reason in `detail`.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "challengeId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        },
        "x-payment-info": {
          "intent": "charge",
          "method": "stripe",
          "currency": "usd",
          "amount": null,
          "description": "outbound.dev balance"
        }
      }
    },
    "/v1/wallet/transactions": {
      "get": {
        "operationId": "getWalletTransactions",
        "tags": [
          "Billing"
        ],
        "summary": "List ledger entries",
        "description": "Every change to the balance, newest first: top-ups, charges, refunds and adjustments, each with the balance after it. A charge names the key, route and request it paid for; a sending account's 30-day fee names the account and the 30 days it pays for (`accountFee`). Needs a key with full access. Free.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Only entries of this type.",
            "schema": {
              "type": "string",
              "enum": [
                "top_up",
                "charge",
                "refund",
                "refund_reversal",
                "adjustment",
                "dispute",
                "free_credit"
              ]
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The `nextCursor` of the page before.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "description": "Entries per page.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of the organization's ledger, newest first.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "sequence",
                          "createdAt",
                          "type",
                          "amountUsd",
                          "balanceAfterUsd",
                          "actor"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "sequence": {
                            "type": "integer",
                            "description": "The entry's place in the ledger: 1, 2, 3 with no gaps."
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "top_up",
                              "charge",
                              "refund",
                              "refund_reversal",
                              "adjustment",
                              "dispute",
                              "free_credit"
                            ]
                          },
                          "amountUsd": {
                            "type": "string",
                            "description": "Signed: money in is positive, a charge is negative."
                          },
                          "balanceAfterUsd": {
                            "type": "string",
                            "description": "The balance after this entry."
                          },
                          "actor": {
                            "type": "object",
                            "description": "Who made the change: a person in the console, a key, or the system.",
                            "required": [
                              "kind"
                            ],
                            "properties": {
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "user",
                                  "api_key",
                                  "system"
                                ]
                              },
                              "apiKeyId": {
                                "type": "string",
                                "description": "The key that made the call, for a charge."
                              },
                              "apiKeyName": {
                                "type": "string",
                                "description": "That key's name."
                              }
                            }
                          },
                          "product": {
                            "type": "string",
                            "enum": [
                              "search",
                              "enrichment",
                              "lists",
                              "campaigns",
                              "connections"
                            ],
                            "description": "For a charge: the product called."
                          },
                          "endpoint": {
                            "type": "string",
                            "description": "For a charge: the route called. For a sending account's 30-day fee, the price item: `email_inbox` or `linkedin_account`."
                          },
                          "units": {
                            "type": "integer",
                            "description": "For a charge: what it was billed for, such as records returned."
                          },
                          "requestId": {
                            "type": "string",
                            "description": "For a charge: the request it paid for."
                          },
                          "accountFee": {
                            "type": "object",
                            "description": "For a sending account's 30-day fee: the account it is for and the 30 days it pays for.",
                            "required": [
                              "accountId",
                              "periodStartsAt",
                              "periodEndsAt"
                            ],
                            "properties": {
                              "accountId": {
                                "type": "string",
                                "description": "A mailbox's email address, or a LinkedIn seat's id, as `GET /v1/accounts` gives it."
                              },
                              "accountName": {
                                "type": "string",
                                "description": "A mailbox's sender name, or the seat's LinkedIn profile name, when it had one at the charge."
                              },
                              "periodStartsAt": {
                                "type": "string",
                                "format": "date-time",
                                "description": "The first moment the fee pays for."
                              },
                              "periodEndsAt": {
                                "type": "string",
                                "format": "date-time",
                                "description": "When the 30 days end, and the next fee falls due."
                              }
                            }
                          }
                        }
                      }
                    },
                    "pagination": {
                      "type": "object",
                      "required": [
                        "pageSize"
                      ],
                      "properties": {
                        "pageSize": {
                          "type": "integer"
                        },
                        "nextCursor": {
                          "type": "string",
                          "description": "Send as `cursor` for the next page. Absent on the last page."
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "id": "6a1f0c2b9d4e8a7f3c5b2e13",
                      "sequence": 42,
                      "createdAt": "2026-11-14T10:02:11.000Z",
                      "type": "charge",
                      "amountUsd": "-0.005000",
                      "balanceAfterUsd": "9.993700",
                      "actor": {
                        "kind": "api_key",
                        "apiKeyId": "6a1f0c2b9d4e8a7f3c5b2e11",
                        "apiKeyName": "Agent key"
                      },
                      "product": "search",
                      "endpoint": "/v1/people/search",
                      "units": 5,
                      "requestId": "req_6a1f0c2b9d4e8a7f3c5b2e10"
                    },
                    {
                      "id": "6a1f0c2b9d4e8a7f3c5b2e14",
                      "sequence": 41,
                      "createdAt": "2026-11-14T09:45:02.000Z",
                      "type": "charge",
                      "amountUsd": "-1.000000",
                      "balanceAfterUsd": "9.998700",
                      "actor": {
                        "kind": "system"
                      },
                      "product": "connections",
                      "endpoint": "email_inbox",
                      "units": 1,
                      "accountFee": {
                        "accountId": "maya@fernway.co",
                        "accountName": "Maya Fern",
                        "periodStartsAt": "2026-11-14T09:45:02.000Z",
                        "periodEndsAt": "2026-12-14T09:45:02.000Z"
                      }
                    }
                  ],
                  "pagination": {
                    "pageSize": 50,
                    "nextCursor": "41"
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/prices": {
      "get": {
        "operationId": "getPrices",
        "tags": [
          "Billing"
        ],
        "summary": "List prices",
        "description": "The price of every billable item, in US dollars, and the version of the list. Free, for any key.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "The price list in force.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "version",
                    "currency",
                    "prices"
                  ],
                  "properties": {
                    "version": {
                      "type": "string",
                      "description": "The list's version. A call pays the prices in force when it started."
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "usd"
                      ]
                    },
                    "prices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "item",
                          "unit",
                          "chargedWhen",
                          "unitPriceUsd"
                        ],
                        "properties": {
                          "item": {
                            "type": "string",
                            "description": "What is charged for, as ledger entries and jobs name it."
                          },
                          "unit": {
                            "type": "string",
                            "description": "The unit the price is per."
                          },
                          "chargedWhen": {
                            "type": "string",
                            "description": "When a call is charged for one unit."
                          },
                          "unitPriceUsd": {
                            "type": "string",
                            "description": "The price of one unit, in US dollars."
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "version": "2026-11-26",
                  "currency": "usd",
                  "prices": [
                    {
                      "item": "search_record",
                      "unit": "record",
                      "chargedWhen": "A search returns the record",
                      "unitPriceUsd": "0.001000"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/usage": {
      "get": {
        "operationId": "getUsage",
        "tags": [
          "Usage and requests"
        ],
        "summary": "Get usage",
        "description": "Calls, billed units, misses, errors and spend for each UTC day of the range, by product, and for each route. A key with full access reads the whole organization's usage, or one key's with `apiKeyId`; any other key reads only its own. Free.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "The first UTC day, as `YYYY-MM-DD`. Without `from` and `to`, the last 30 days, today included.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            "example": "2026-11-01"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "The last UTC day, as `YYYY-MM-DD`. A range covers at most 90 days.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            "example": "2026-11-14"
          },
          {
            "name": "apiKeyId",
            "in": "query",
            "required": false,
            "description": "Only this key's usage. A key without full access reads only its own.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Calls and spend for each UTC day in the range, and for each route.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "days",
                    "endpoints"
                  ],
                  "properties": {
                    "days": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "day": {
                            "type": "string",
                            "description": "The UTC day, as `YYYY-MM-DD`."
                          },
                          "calls": {
                            "type": "integer"
                          },
                          "billedUnits": {
                            "type": "integer",
                            "description": "What the calls were billed for, such as records returned."
                          },
                          "misses": {
                            "type": "integer",
                            "description": "Calls that found nothing and cost nothing."
                          },
                          "errors4xx": {
                            "type": "integer"
                          },
                          "errors5xx": {
                            "type": "integer"
                          },
                          "costUsd": {
                            "type": "string",
                            "description": "What the calls cost, in US dollars."
                          },
                          "rateLimited": {
                            "type": "integer",
                            "description": "Calls answered 429, also counted in `errors4xx`."
                          },
                          "byProduct": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "product": {
                                  "type": "string",
                                  "enum": [
                                    "search",
                                    "enrichment",
                                    "lists",
                                    "campaigns",
                                    "connections",
                                    "account"
                                  ]
                                },
                                "calls": {
                                  "type": "integer"
                                },
                                "costUsd": {
                                  "type": "string",
                                  "description": "US dollars as an exact six-decimal string."
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "endpoints": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "endpoint": {
                            "type": "string",
                            "description": "The route, such as `/v1/people/search`."
                          },
                          "product": {
                            "type": "string",
                            "enum": [
                              "search",
                              "enrichment",
                              "lists",
                              "campaigns",
                              "connections",
                              "account"
                            ]
                          },
                          "calls": {
                            "type": "integer"
                          },
                          "billedUnits": {
                            "type": "integer",
                            "description": "What the calls were billed for, such as records returned."
                          },
                          "misses": {
                            "type": "integer",
                            "description": "Calls that found nothing and cost nothing."
                          },
                          "errors4xx": {
                            "type": "integer"
                          },
                          "errors5xx": {
                            "type": "integer"
                          },
                          "costUsd": {
                            "type": "string",
                            "description": "What the calls cost, in US dollars."
                          },
                          "p95LatencyMs": {
                            "type": "integer",
                            "description": "The 95th percentile answer time. Absent with no calls."
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "days": [
                    {
                      "day": "2026-11-14",
                      "calls": 12,
                      "billedUnits": 18,
                      "misses": 1,
                      "errors4xx": 1,
                      "errors5xx": 0,
                      "rateLimited": 0,
                      "costUsd": "0.018000",
                      "byProduct": [
                        {
                          "product": "search",
                          "calls": 9,
                          "costUsd": "0.018000"
                        },
                        {
                          "product": "account",
                          "calls": 3,
                          "costUsd": "0.000000"
                        }
                      ]
                    }
                  ],
                  "endpoints": [
                    {
                      "endpoint": "/v1/people/search",
                      "product": "search",
                      "calls": 4,
                      "billedUnits": 10,
                      "misses": 1,
                      "errors4xx": 1,
                      "errors5xx": 0,
                      "costUsd": "0.010000",
                      "p95LatencyMs": 5300
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/requests": {
      "get": {
        "operationId": "getRequests",
        "tags": [
          "Usage and requests"
        ],
        "summary": "List requests",
        "description": "Every request of the last 30 days, newest first, with its status, time and cost. Filter by status class, route, key or time, or find one request by its id. A key without full access sees only its own requests. Free.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "statusClass",
            "in": "query",
            "required": false,
            "description": "Only requests answered with a status in this class.",
            "schema": {
              "type": "string",
              "enum": [
                "2xx",
                "4xx",
                "5xx"
              ]
            }
          },
          {
            "name": "endpoint",
            "in": "query",
            "required": false,
            "description": "Only requests to this route, as the requests name it.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "example": "/v1/people/search"
          },
          {
            "name": "apiKeyId",
            "in": "query",
            "required": false,
            "description": "Only this key's requests. A key without full access reads only its own.",
            "schema": {
              "type": "string",
              "minLength": 24,
              "maxLength": 24,
              "pattern": "^[0-9a-fA-F]+$"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Only requests made at or after this time, in ISO 8601.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Only requests made before this time, in ISO 8601.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "A request id, matched exactly.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The `nextCursor` of the page before.",
            "schema": {
              "type": "string",
              "maxLength": 200,
              "pattern": "^[A-Za-z0-9_-]+$"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "description": "Requests per page.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of requests, newest first.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "The request's id, as its X-Request-Id header gave it."
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "method": {
                            "type": "string"
                          },
                          "endpoint": {
                            "type": "string",
                            "description": "The route called, such as `/v1/people/search`."
                          },
                          "product": {
                            "type": "string",
                            "enum": [
                              "search",
                              "enrichment",
                              "lists",
                              "campaigns",
                              "connections",
                              "account"
                            ]
                          },
                          "statusCode": {
                            "type": "integer"
                          },
                          "latencyMs": {
                            "type": "integer"
                          },
                          "units": {
                            "type": "integer",
                            "description": "What the call was billed for: 0 on a miss. Absent for a call that bills nothing."
                          },
                          "costUsd": {
                            "type": "string",
                            "description": "What the call cost, in US dollars."
                          },
                          "apiKey": {
                            "type": "object",
                            "description": "The key that made the call. Its name and masked form are absent when the key no longer exists.",
                            "required": [
                              "id"
                            ],
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "prefix": {
                                "type": "string"
                              },
                              "lastFour": {
                                "type": "string"
                              }
                            }
                          },
                          "isReplay": {
                            "type": "boolean",
                            "description": "Whether the answer was an earlier request's, replayed."
                          },
                          "isMiss": {
                            "type": "boolean",
                            "description": "The call succeeded but found nothing, so it cost nothing."
                          },
                          "isHeld": {
                            "type": "boolean",
                            "description": "Money is still set aside for it: the call is running or its charge is not final yet."
                          }
                        }
                      }
                    },
                    "pagination": {
                      "type": "object",
                      "required": [
                        "pageSize"
                      ],
                      "properties": {
                        "pageSize": {
                          "type": "integer"
                        },
                        "nextCursor": {
                          "type": "string",
                          "description": "Send as `cursor` for the next page. Absent on the last page."
                        }
                      }
                    }
                  }
                },
                "example": {
                  "data": [
                    {
                      "id": "req_6a1f0c2b9d4e8a7f3c5b2e10",
                      "createdAt": "2026-11-14T10:02:11.000Z",
                      "method": "POST",
                      "endpoint": "/v1/people/search",
                      "product": "search",
                      "statusCode": 200,
                      "latencyMs": 5302,
                      "units": 5,
                      "costUsd": "0.005000",
                      "apiKey": {
                        "id": "6a1f0c2b9d4e8a7f3c5b2e11",
                        "name": "Agent key",
                        "prefix": "ob_live_7Kx2",
                        "lastFour": "34hx"
                      },
                      "isReplay": false,
                      "isMiss": false,
                      "isHeld": false
                    }
                  ],
                  "pagination": {
                    "pageSize": 50,
                    "nextCursor": "eyJ0IjoiMjAyNi0xMS0xNFQxMDowMjoxMS4wMDBaIn0"
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/v1/requests/{requestId}": {
      "get": {
        "operationId": "getRequestsRequestId",
        "tags": [
          "Usage and requests"
        ],
        "summary": "Get a request",
        "description": "One request of the last 30 days: its status, time and cost, the address it came from and, for a charged call, the balance after its charge. Request and response bodies are never kept. A key without full access reads only its own requests; another key's request answers 404. Free.",
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "requestId",
            "in": "path",
            "required": true,
            "description": "The request's id, as its X-Request-Id header and the requests list give it.",
            "schema": {
              "type": "string",
              "maxLength": 100,
              "pattern": "^[A-Za-z0-9_-]+$"
            },
            "example": "req_6a1f0c2b9d4e8a7f3c5b2e10"
          }
        ],
        "responses": {
          "200": {
            "description": "The request. Its request and response bodies are never kept.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "X-Charged-Usd": {
                "$ref": "#/components/headers/ChargedUsd"
              },
              "X-Balance-Usd": {
                "$ref": "#/components/headers/BalanceUsd"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimitLimit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimitRemaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The request's id, as its X-Request-Id header gave it."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "method": {
                      "type": "string"
                    },
                    "endpoint": {
                      "type": "string",
                      "description": "The route called, such as `/v1/people/search`."
                    },
                    "product": {
                      "type": "string",
                      "enum": [
                        "search",
                        "enrichment",
                        "lists",
                        "campaigns",
                        "connections",
                        "account"
                      ]
                    },
                    "statusCode": {
                      "type": "integer"
                    },
                    "latencyMs": {
                      "type": "integer"
                    },
                    "units": {
                      "type": "integer",
                      "description": "What the call was billed for: 0 on a miss. Absent for a call that bills nothing."
                    },
                    "costUsd": {
                      "type": "string",
                      "description": "What the call cost, in US dollars."
                    },
                    "apiKey": {
                      "type": "object",
                      "description": "The key that made the call. Its name and masked form are absent when the key no longer exists.",
                      "required": [
                        "id"
                      ],
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "prefix": {
                          "type": "string"
                        },
                        "lastFour": {
                          "type": "string"
                        }
                      }
                    },
                    "isReplay": {
                      "type": "boolean",
                      "description": "Whether the answer was an earlier request's, replayed."
                    },
                    "isMiss": {
                      "type": "boolean",
                      "description": "The call succeeded but found nothing, so it cost nothing."
                    },
                    "isHeld": {
                      "type": "boolean",
                      "description": "Money is still set aside for it: the call is running or its charge is not final yet."
                    },
                    "ip": {
                      "type": "string",
                      "description": "The address the call came from."
                    },
                    "idempotencyKey": {
                      "type": "string",
                      "description": "The idempotency key the call carried, if any."
                    },
                    "balanceAfterUsd": {
                      "type": "string",
                      "description": "The balance after the call's charge, for a charged call."
                    }
                  }
                },
                "example": {
                  "id": "req_6a1f0c2b9d4e8a7f3c5b2e10",
                  "createdAt": "2026-11-14T10:02:11.000Z",
                  "method": "POST",
                  "endpoint": "/v1/people/search",
                  "product": "search",
                  "statusCode": 200,
                  "latencyMs": 5302,
                  "units": 5,
                  "costUsd": "0.005000",
                  "apiKey": {
                    "id": "6a1f0c2b9d4e8a7f3c5b2e11",
                    "name": "Agent key",
                    "prefix": "ob_live_7Kx2",
                    "lastFour": "34hx"
                  },
                  "isReplay": false,
                  "isMiss": false,
                  "isHeld": false,
                  "ip": "203.0.113.24",
                  "balanceAfterUsd": "9.993700"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "4XX": {
            "$ref": "#/components/responses/Error"
          },
          "5XX": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    }
  }
}
