{
  "openapi": "3.0.3",
  "info": {
    "title": "Hunter API",
    "version": "2.0.0",
    "description": "Find and verify professional email addresses and manage Hunter resources.\nHunter's own MCP servers forward the calling AI client's User-Agent in a reserved `X-MCP-USER-AGENT` request header. It is read only for usage attribution and to record which AI clients an account has connected from, and never changes a response. Per-request attribution resolves it to a fixed list of known clients; the first call from each new client also stores the User-Agent as sent, so a client Hunter does not yet recognise can be identified. There is nothing for an integration to send here.\nHunter's MCP servers also identify themselves with `X-SOURCE: hunter-mcp` or `X-SOURCE: hunter-chatgpt`. These reserved markers attribute server-side actions to the MCP channel, separately from ordinary API and product usage. They do not replace API authentication. Ordinary API clients do not need to send these markers.\nHunter's MCP servers also send the name of the MCP tool behind each call in a reserved `X-MCP-TOOL` request header. It is read only for usage attribution, resolves to a fixed list of known tool names, and never changes a response. Ordinary API clients do not need to send it.\nHunter's `hunter-mcp` server also sends the server URL that the AI client connected to in a reserved `X-MCP-SURFACE` request header, as `directory` or `full`. It is read only for usage attribution, any other value is ignored, and it never changes a response. Ordinary API clients do not need to send it.",
    "contact": {
      "name": "Hunter Support",
      "url": "https://help.hunter.io"
    }
  },
  "servers": [
    {
      "url": "https://api.hunter.io/v2",
      "description": "Production"
    }
  ],
  "security": [
    {
      "apiKeyQuery": []
    },
    {
      "apiKeyHeader": []
    },
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/discover": {
      "post": {
        "operationId": "discoverCompanies",
        "summary": "Discover companies",
        "description": "Find companies matching a structured filter set. This operation is free. A filter whose every supplied value cannot be applied returns a 400 `invalid_filter_values` error naming the filter. Filters that your plan does not include are ignored without this error. A natural-language `query` returns a 400 `query_failed` error when a filter it translates to cannot be applied, or when content screening refuses the query. A `query` from an account whose AI features were revoked returns a 403 `ai_access_revoked` error; structured filters keep working.",
        "tags": [
          "Discover"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ApiKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/discover_request"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/discover_request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Matching companies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/discover_response"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/domain-search": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "domain",
          "in": "query",
          "description": "Domain name to search.",
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "company",
          "in": "query",
          "description": "Company name to search when the domain is unknown.",
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "type",
          "in": "query",
          "schema": {
            "type": "string",
            "enum": [
              "personal",
              "generic"
            ]
          }
        },
        {
          "$ref": "#/components/parameters/Limit"
        },
        {
          "$ref": "#/components/parameters/Offset"
        },
        {
          "name": "department",
          "in": "query",
          "description": "Comma-separated department values from Hunter's live position taxonomy (not a frozen enum). `~` matches people with no department. Unknown values are ignored; a list with no remaining valid values returns 400 (`invalid_department`).\n",
          "schema": {
            "type": "string",
            "example": "sales,marketing"
          }
        },
        {
          "name": "source_type",
          "in": "query",
          "deprecated": true,
          "description": "Deprecated, use `provenance`. \"generated\" is the old name for \"inferred\".",
          "schema": {
            "type": "string",
            "enum": [
              "found",
              "generated"
            ]
          }
        },
        {
          "name": "provenance",
          "in": "query",
          "description": "Keep only addresses with this provenance: found, inferred. Replaces `source_type`; when both are sent they must agree, otherwise the request returns 400 (`invalid_provenance`).",
          "schema": {
            "type": "string",
            "enum": [
              "found",
              "inferred"
            ]
          }
        },
        {
          "name": "job_titles",
          "in": "query",
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "seniority",
          "in": "query",
          "description": "Comma-separated seniority values from Hunter's live position taxonomy (not a frozen enum). Unknown values are ignored; a list with no remaining valid values returns 400 (`invalid_seniority`).\n",
          "schema": {
            "type": "string",
            "example": "senior,executive"
          }
        },
        {
          "name": "decision_maker",
          "in": "query",
          "schema": {
            "$ref": "#/components/schemas/strict_boolean_filter"
          }
        },
        {
          "name": "required_field",
          "in": "query",
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "verification_status",
          "in": "query",
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "aggregations",
          "in": "query",
          "schema": {
            "type": "boolean"
          }
        },
        {
          "name": "saved_leads",
          "in": "query",
          "schema": {
            "type": "boolean"
          }
        }
      ],
      "get": {
        "operationId": "searchDomain",
        "summary": "Find email addresses by domain",
        "tags": [
          "Finder"
        ],
        "responses": {
          "200": {
            "description": "Email addresses and public sources for the domain.",
            "headers": {
              "X-Credits-Used": {
                "$ref": "#/components/headers/CreditsUsed"
              },
              "X-Credits-Unit": {
                "$ref": "#/components/headers/CreditsUnit"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/domain_search_response"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/FreeCreditRestricted"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "searchDomainWithPost",
        "summary": "Find email addresses by domain using request-body parameters",
        "description": "Use POST for nested location filters. The body can be JSON or URL-encoded form data.",
        "tags": [
          "Finder"
        ],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/domain_search_request"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/domain_search_request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Email addresses and public sources for the domain.",
            "headers": {
              "X-Credits-Used": {
                "$ref": "#/components/headers/CreditsUsed"
              },
              "X-Credits-Unit": {
                "$ref": "#/components/headers/CreditsUnit"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/domain_search_response"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/FreeCreditRestricted"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/domain-search/found": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "domain",
          "in": "query",
          "description": "Domain name to search. At least one of `domain` or `company` is required.",
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "company",
          "in": "query",
          "description": "Company name to search when the domain is unknown. At least one of `domain` or `company` is required.",
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "type",
          "in": "query",
          "schema": {
            "type": "string",
            "enum": [
              "personal",
              "generic"
            ]
          }
        },
        {
          "$ref": "#/components/parameters/Limit"
        },
        {
          "$ref": "#/components/parameters/Offset"
        },
        {
          "name": "department",
          "in": "query",
          "description": "Comma-separated department values from Hunter's live position taxonomy (not a frozen enum). `~` matches people with no department. Unknown values are ignored; a list with no remaining valid values returns 400 (`invalid_department`).\n",
          "schema": {
            "type": "string",
            "example": "sales,marketing"
          }
        },
        {
          "name": "source_type",
          "in": "query",
          "description": "Accepted and ignored. This endpoint returns found addresses only.",
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "provenance",
          "in": "query",
          "description": "Accepted and ignored. This endpoint returns found addresses only.",
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "job_titles",
          "in": "query",
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "seniority",
          "in": "query",
          "description": "Comma-separated seniority values from Hunter's live position taxonomy (not a frozen enum). Unknown values are ignored; a list with no remaining valid values returns 400 (`invalid_seniority`).\n",
          "schema": {
            "type": "string",
            "example": "senior,executive"
          }
        },
        {
          "name": "decision_maker",
          "in": "query",
          "schema": {
            "$ref": "#/components/schemas/strict_boolean_filter"
          }
        },
        {
          "name": "required_field",
          "in": "query",
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "verification_status",
          "in": "query",
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "aggregations",
          "in": "query",
          "schema": {
            "type": "boolean"
          }
        },
        {
          "name": "saved_leads",
          "in": "query",
          "schema": {
            "type": "boolean"
          }
        }
      ],
      "get": {
        "operationId": "searchDomainFound",
        "summary": "Find found email addresses by domain",
        "description": "Found-only variant of Domain Search. It returns only addresses seen on a public web page, never inferred ones, and `data.pattern` is always null. It ignores `source_type` and `provenance`. On `/domain-search`, `provenance=found` gives the same addresses. At least one of `domain` or `company` is required, otherwise the request returns 400.",
        "tags": [
          "Finder"
        ],
        "responses": {
          "200": {
            "description": "Found email addresses and public sources for the domain.",
            "headers": {
              "X-Credits-Used": {
                "$ref": "#/components/headers/CreditsUsed"
              },
              "X-Credits-Unit": {
                "$ref": "#/components/headers/CreditsUnit"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/domain_search_found_response"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/FreeCreditRestricted"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "searchDomainFoundWithPost",
        "summary": "Find found email addresses by domain using request-body parameters",
        "description": "Found-only variant of Domain Search using request-body parameters. The body can be JSON or URL-encoded form data. `source_type` and `provenance` are ignored. At least one of `domain` or `company` is required, otherwise the request returns 400.",
        "tags": [
          "Finder"
        ],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/domain_search_found_request"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/domain_search_found_request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Found email addresses and public sources for the domain.",
            "headers": {
              "X-Credits-Used": {
                "$ref": "#/components/headers/CreditsUsed"
              },
              "X-Credits-Unit": {
                "$ref": "#/components/headers/CreditsUnit"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/domain_search_found_response"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/FreeCreditRestricted"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/email-finder": {
      "get": {
        "operationId": "findEmail",
        "summary": "Find a professional email address",
        "description": "Supply a LinkedIn handle, or supply a domain/company plus either a full name or first and last name. A found email address is also saved automatically to your leads. This is enabled by default and can be disabled for your account. The saved lead keeps the verification status this response reports. It leaves out a phone number that is on a data broker deletion list, such as California's DROP.",
        "tags": [
          "Finder"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ApiKey"
          },
          {
            "name": "domain",
            "in": "query",
            "description": "Domain name of the company. A URL or a leading \"@\" is accepted and reduced to the domain name, so \"https://www.example.com/about\" and \"@example.com\" search example.com.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "company",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "first_name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "last_name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "full_name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "linkedin_handle",
            "in": "query",
            "description": "Handle of the LinkedIn profile (the part of the profile URL after \"linkedin.com/in/\"), or the whole URL. It can contain any character LinkedIn puts in a profile URL, such as accents, emoji, or punctuation. It is rejected with \"invalid_linkedin_handle\" only when it is \".\" or \"..\", contains whitespace, a control character, \"/\", \"?\", \"#\", or a backslash, or has a malformed percent-escape or one that does not decode to UTF-8. The profile is looked up first; when the handle is invalid or not found and a name with a domain or company is also supplied, the name is searched instead.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "max_duration",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 3,
              "maximum": 20,
              "default": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The best matching email and supporting sources.",
            "headers": {
              "X-Credits-Used": {
                "$ref": "#/components/headers/CreditsUsed"
              },
              "X-Credits-Unit": {
                "$ref": "#/components/headers/CreditsUnit"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/email_finder_response"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/FreeCreditRestricted"
          },
          "404": {
            "description": "No available profile matches the supplied identifier. Email ID and LinkedIn handle lookups also return this response when the matching email is claimed for removal, even if its profile is still stored.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error_response"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "description": "An error occurred. If removal-claim checks are unavailable, the request fails without returning an unchecked email address.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error_response"
                }
              }
            }
          }
        }
      }
    },
    "/email-verifier": {
      "get": {
        "operationId": "verifyEmail",
        "summary": "Verify an email address",
        "description": "Check the deliverability of an email address. A `valid` or `accept_all` email address is also saved automatically to your leads, and a lead you already have gets the new verification result. This is enabled by default and can be disabled for your account. The saved lead leaves out a phone number that is on a data broker deletion list, such as California's DROP.",
        "tags": [
          "Verifier"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ApiKey"
          },
          {
            "name": "email",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domain_metadata",
            "in": "query",
            "description": "Include metadata about the email domain when set to any non-empty value. An empty value or omission disables it.",
            "schema": {
              "type": "string",
              "example": "1"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deliverability status and verification checks.",
            "headers": {
              "X-Credits-Used": {
                "$ref": "#/components/headers/CreditsUsed"
              },
              "X-Credits-Unit": {
                "$ref": "#/components/headers/CreditsUnit"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/email_verifier_response"
                }
              }
            }
          },
          "202": {
            "description": "Verification is still in progress and can be polled again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/pending_envelope"
                }
              }
            }
          },
          "222": {
            "description": "Verification failed for reasons outside Hunter's control and can be retried later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error_response"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/FreeCreditRestricted"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "451": {
            "description": "The claimed email address cannot be processed for privacy reasons.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error_response"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/email-count": {
      "get": {
        "operationId": "countDomainEmails",
        "summary": "Count email addresses for a domain",
        "description": "Return aggregate counts without revealing individual email addresses. This operation is free.",
        "tags": [
          "Finder"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ApiKey"
          },
          {
            "name": "domain",
            "in": "query",
            "description": "Domain name to count.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "company",
            "in": "query",
            "description": "Company name to count when the domain is unknown.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "personal",
                "generic"
              ]
            }
          },
          {
            "name": "include_job_titles",
            "in": "query",
            "description": "Include job-title counts when set to any non-empty value. An empty value or omission disables it.",
            "schema": {
              "type": "string",
              "example": "1"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Aggregate email counts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/email_count_response"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/people/find": {
      "get": {
        "operationId": "enrichPerson",
        "summary": "Enrich a person",
        "tags": [
          "Enrichment"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ApiKey"
          },
          {
            "name": "email",
            "in": "query",
            "description": "Email address to enrich.",
            "schema": {
              "type": "string",
              "format": "email"
            }
          },
          {
            "name": "linkedin_handle",
            "in": "query",
            "description": "LinkedIn profile handle to enrich.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/ClearbitFormat"
          }
        ],
        "responses": {
          "200": {
            "description": "Enriched person data.",
            "headers": {
              "X-Credits-Used": {
                "$ref": "#/components/headers/CreditsUsed"
              },
              "X-Credits-Unit": {
                "$ref": "#/components/headers/CreditsUnit"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/person_enrichment_response"
                    },
                    {
                      "$ref": "#/components/schemas/person"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/FreeCreditRestricted"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "451": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/companies/find": {
      "get": {
        "operationId": "enrichCompany",
        "summary": "Enrich a company",
        "tags": [
          "Enrichment"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ApiKey"
          },
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/ClearbitFormat"
          }
        ],
        "responses": {
          "200": {
            "description": "Enriched company data.",
            "headers": {
              "X-Credits-Used": {
                "$ref": "#/components/headers/CreditsUsed"
              },
              "X-Credits-Unit": {
                "$ref": "#/components/headers/CreditsUnit"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/company_enrichment_response"
                    },
                    {
                      "$ref": "#/components/schemas/company"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/FreeCreditRestricted"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/combined/find": {
      "get": {
        "operationId": "enrichPersonAndCompany",
        "summary": "Enrich a person and company",
        "tags": [
          "Enrichment"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ApiKey"
          },
          {
            "name": "email",
            "in": "query",
            "description": "Email address to enrich.",
            "schema": {
              "type": "string",
              "format": "email"
            }
          },
          {
            "name": "linkedin_handle",
            "in": "query",
            "description": "LinkedIn profile handle to enrich.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/ClearbitFormat"
          }
        ],
        "responses": {
          "200": {
            "description": "Enriched person and company data.",
            "headers": {
              "X-Credits-Used": {
                "$ref": "#/components/headers/CreditsUsed"
              },
              "X-Credits-Unit": {
                "$ref": "#/components/headers/CreditsUnit"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/combined_enrichment_response"
                    },
                    {
                      "$ref": "#/components/schemas/combined_clearbit_response"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/FreeCreditRestricted"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "451": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/account": {
      "get": {
        "operationId": "getAccount",
        "summary": "Get account details and usage",
        "description": "When `data.requests.credits` is present, the team has a single credits pool: plan with `credits.remaining`. A search costs 1 credit and a verification 0.5 credit. `searches` and `verifications` are then approximate views of the same pool (rounded down, with request-pack usage counted per type), not separate quotas: each of them then carries `derived_from: credits` and its `credit_cost`. Without `credits`, `searches` and `verifications` are separate quotas.",
        "tags": [
          "Account"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ApiKey"
          }
        ],
        "responses": {
          "200": {
            "description": "Account, plan, team, and quota details.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/account_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "updateAccount",
        "summary": "Update account details",
        "tags": [
          "Account"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ApiKey"
          }
        ],
        "responses": {
          "204": {
            "description": "Account updated, no content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/account-stats": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "getAccountStats",
        "summary": "Get account profile summary",
        "tags": [
          "Account"
        ],
        "responses": {
          "200": {
            "description": "Account profile summary with identity, plan, and most used source.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/usage": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "getUsage",
        "summary": "Get credit usage summary",
        "description": "When `data.requests.credits` is present, the team has a single credits pool: plan with `credits.remaining`. A search costs 1 credit and a verification 0.5 credit. `searches` and `verifications` are then approximate views of the same pool (rounded down, with request-pack usage counted per type), not separate quotas: each of them then carries `derived_from: credits` and its `credit_cost`. Without `credits`, `searches` and `verifications` are separate quotas.",
        "tags": [
          "Usage"
        ],
        "responses": {
          "200": {
            "description": "Get credit usage summary.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/usage/history": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "getUsageHistory",
        "summary": "Get credit usage history",
        "tags": [
          "Usage"
        ],
        "responses": {
          "200": {
            "description": "Get credit usage history. Each item's `credits` is the display amount the request cost, converted with the credit base that was current when the request was recorded, so amounts stay comparable when the team's base changes. Requests on a team with separate search and verification quotas report requests, not credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/team/members": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "listTeamMembers",
        "summary": "List team members",
        "tags": [
          "Team"
        ],
        "responses": {
          "200": {
            "description": "List team members.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/connected-apps": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "listConnectedApps",
        "summary": "List connected apps",
        "tags": [
          "Connected Apps"
        ],
        "responses": {
          "200": {
            "description": "List connected apps.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/connected-apps/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "getConnectedApp",
        "summary": "Get a connected app",
        "tags": [
          "Connected Apps"
        ],
        "responses": {
          "200": {
            "description": "Get a connected app. Each `attribute_mappings` entry also carries `direction` and `conflict_policy` when two-way CRM sync is available for the connection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/connected-apps/{id}/push": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "pushToConnectedApp",
        "summary": "Push data to a connected app",
        "tags": [
          "Connected Apps"
        ],
        "responses": {
          "202": {
            "description": "Accepted for background processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/email-accounts": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "listEmailAccounts",
        "summary": "List email accounts",
        "tags": [
          "Email Accounts"
        ],
        "responses": {
          "200": {
            "description": "List email accounts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/email-accounts/capacities": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "getEmailAccountCapacities",
        "summary": "Get email account sending capacities",
        "tags": [
          "Email Accounts"
        ],
        "responses": {
          "200": {
            "description": "Get email account sending capacities.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/email-accounts/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "getEmailAccount",
        "summary": "Get an email account",
        "description": "The account's `signature` is returned HTML-sanitized (HUN-22571).",
        "tags": [
          "Email Accounts"
        ],
        "responses": {
          "200": {
            "description": "Get an email account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/email_account_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "updateEmailAccount",
        "summary": "Update an email account",
        "tags": [
          "Email Accounts"
        ],
        "responses": {
          "200": {
            "description": "Update an email account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/email_account_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "replaceEmailAccount",
        "summary": "Replace an email account",
        "tags": [
          "Email Accounts"
        ],
        "responses": {
          "200": {
            "description": "Replace an email account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/email_account_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/email-accounts/{id}/health-report": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "getEmailAccountHealthReport",
        "summary": "Get an email account health report",
        "tags": [
          "Email Accounts"
        ],
        "responses": {
          "200": {
            "description": "Get an email account health report.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/email-accounts/{id}/usage": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "getEmailAccountUsage",
        "summary": "Get an email account usage report",
        "tags": [
          "Email Accounts"
        ],
        "responses": {
          "200": {
            "description": "Get an email account usage report.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/email-accounts/{id}/warmup-report": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "getEmailAccountWarmupReport",
        "summary": "Get an email account warmup report",
        "tags": [
          "Email Accounts"
        ],
        "responses": {
          "200": {
            "description": "Get an email account warmup report.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/email-accounts/{id}/sequences": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "listEmailAccountSequences",
        "summary": "List sequences using an email account",
        "tags": [
          "Email Accounts"
        ],
        "responses": {
          "200": {
            "description": "List sequences using an email account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/campaigns": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "listCampaigns",
        "summary": "List campaigns",
        "description": "Each campaign carries `editable`. It is true when the API key's user owns the campaign or is a team admin or owner, and only then can that user add recipients to it.\n\nEach campaign also carries `pause_reason` and `paused_at`, as on `GET /v2/sequences` (HUN-25429). Both are null unless the campaign is paused.",
        "tags": [
          "Campaigns"
        ],
        "responses": {
          "200": {
            "description": "List campaigns.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/campaigns/{id}/recipients": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "listCampaignRecipients",
        "summary": "List campaign recipients",
        "description": "When a recipient has asked Hunter to delete their address, with a claim or a California DROP request, their `email` is null (HUN-23599).",
        "tags": [
          "Campaigns"
        ],
        "responses": {
          "200": {
            "description": "List campaign recipients.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "addCampaignRecipients",
        "summary": "Add campaign recipients",
        "tags": [
          "Campaigns"
        ],
        "responses": {
          "201": {
            "description": "Add campaign recipients. `data.skipped_recipients` lists the addresses that this request did not add, from both `emails` and `lead_ids`, each with its `reason`. It is `null` when no address was skipped.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "delete": {
        "operationId": "removeCampaignRecipients",
        "summary": "Remove campaign recipients",
        "tags": [
          "Campaigns"
        ],
        "responses": {
          "201": {
            "description": "Remove campaign recipients. On a draft campaign, the recipients are removed and listed in `data.recipients_removed`. On a started campaign, the recipients stay in the campaign and no more emails are sent to them: they are listed in `data.recipients_canceled`, with the count of canceled pending emails in `data.messages_canceled`. A recipient not contacted yet gets the canceled status, also when their emails are not created yet. A recipient already contacted keeps their status (sent, opened or clicked) and gets no new follow-up. `data.skipped_recipients` lists the addresses that this request did not change, each with its `reason`: `not_in_sequence`, or `no_pending_messages` when sending to the recipient already stopped (for example, they replied, or they were canceled before). It is `null` when no address was skipped.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/campaigns/{id}/start": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "startCampaign",
        "summary": "Start a campaign",
        "tags": [
          "Campaigns"
        ],
        "responses": {
          "200": {
            "description": "Start a campaign.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/campaigns/{id}/follow-ups": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "createCampaignFollowUp",
        "summary": "Add a campaign follow-up step",
        "tags": [
          "Campaigns"
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/follow_up_create_request"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/follow_up_create_request"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Add a campaign follow-up step.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/campaigns/{id}/follow-ups/{follow_up_id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "follow_up_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "getCampaignFollowUp",
        "summary": "Get a campaign follow-up step",
        "tags": [
          "Campaigns"
        ],
        "responses": {
          "200": {
            "description": "Get a campaign follow-up step.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/sequences": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "listSequences",
        "summary": "List sequences",
        "description": "Each sequence carries `editable`. It is true when the API key's user owns the sequence or is a team admin or owner, and only then can that user add recipients to it.\n\nFor a paused sequence, `pause_reason` says why it was paused and `paused_at` when (HUN-25429). `manual`: a user of the account paused it, in Hunter or through the API. `system`: Hunter paused it, for a sending account problem or because the sequence was archived. `downgrade`: a plan downgrade removed one of its sending accounts. `entitlement_removal`: the plan no longer includes this feature. Both are null when the sequence is not paused; `paused_at` is also null for a sequence paused before the field existed.",
        "tags": [
          "Sequences"
        ],
        "responses": {
          "200": {
            "description": "List sequences.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "createSequence",
        "summary": "Create a sequence",
        "description": "Sender IDs must be available for outreach to the sequence owner. On the Free plan, extra or SMTP accounts retained only for a paid Inbox Protection period cannot be selected as senders. Submitting one returns 422 with error ID unknown_email_account_ids.\nEnabling `ai_assistant_enabled` requires a plan that includes the AI writing assistant. A request that turns it on without that entitlement is rejected with `ai_assistant_requires_upgrade` (422).\n`unsubscribe_sentence` sets the HTML unsubscribe sentence. It must contain `{{link}}` and `{{/link}}` exactly once, with the link text between them, in 200 characters or fewer. `unsubscribe_sentence_plain_text` sets the plain-text version, which has no link. Both must be plain text. Null, an empty string, or only spaces resets a sentence to the owner's default. An invalid sentence returns `validation_failed` (422). Both sentences stay editable after the sequence starts.",
        "tags": [
          "Sequences"
        ],
        "responses": {
          "201": {
            "description": "Create a sequence.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/sequences/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "getSequence",
        "summary": "Get a sequence",
        "description": "The `ab_testing` object reports the A/B test state: `enabled`, the split in `variant_a_percentage` and `variant_b_percentage`, and `winner_variant` with `winner_selected_at`. When `enabled` is false, the other fields are null.\n`settings.unsubscribe_sentence` and `settings.unsubscribe_sentence_plain_text` are the sequence's own unsubscribe sentences (HTML and plain text). Each is null when the sequence uses the owner's default sentence.\n\nFor a paused sequence, `pause_reason` says why it was paused and `paused_at` when (HUN-25429). `manual`: a user of the account paused it, in Hunter or through the API. `system`: Hunter paused it, for a sending account problem or because the sequence was archived. `downgrade`: a plan downgrade removed one of its sending accounts. `entitlement_removal`: the plan no longer includes this feature. Both are null when the sequence is not paused; `paused_at` is also null for a sequence paused before the field existed.",
        "tags": [
          "Sequences"
        ],
        "responses": {
          "200": {
            "description": "Get a sequence.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "updateSequence",
        "summary": "Update a sequence",
        "description": "Sender IDs must be available for outreach to the sequence owner. On the Free plan, extra or SMTP accounts retained only for a paid Inbox Protection period cannot be selected as senders. Submitting one returns 422 with error ID unknown_email_account_ids.\nEnabling `ai_assistant_enabled` requires a plan that includes the AI writing assistant. A request that turns it on without that entitlement is rejected with `ai_assistant_requires_upgrade` (422), and one from an account whose AI features were revoked with `ai_access_revoked` (403).\n`unsubscribe_sentence` sets the HTML unsubscribe sentence. It must contain `{{link}}` and `{{/link}}` exactly once, with the link text between them, in 200 characters or fewer. `unsubscribe_sentence_plain_text` sets the plain-text version, which has no link. Both must be plain text. Null, an empty string, or only spaces resets a sentence to the owner's default. An invalid sentence returns `validation_failed` (422). Both sentences stay editable after the sequence starts.",
        "tags": [
          "Sequences"
        ],
        "responses": {
          "200": {
            "description": "Update a sequence.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "replaceSequence",
        "summary": "Replace a sequence",
        "description": "Sender IDs must be available for outreach to the sequence owner. On the Free plan, extra or SMTP accounts retained only for a paid Inbox Protection period cannot be selected as senders. Submitting one returns 422 with error ID unknown_email_account_ids.\nEnabling `ai_assistant_enabled` requires a plan that includes the AI writing assistant. A request that turns it on without that entitlement is rejected with `ai_assistant_requires_upgrade` (422), and one from an account whose AI features were revoked with `ai_access_revoked` (403).\n`unsubscribe_sentence` sets the HTML unsubscribe sentence. It must contain `{{link}}` and `{{/link}}` exactly once, with the link text between them, in 200 characters or fewer. `unsubscribe_sentence_plain_text` sets the plain-text version, which has no link. Both must be plain text. Null, an empty string, or only spaces resets a sentence to the owner's default. An invalid sentence returns `validation_failed` (422). Both sentences stay editable after the sequence starts.",
        "tags": [
          "Sequences"
        ],
        "responses": {
          "200": {
            "description": "Replace a sequence.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "delete": {
        "operationId": "deleteSequence",
        "summary": "Delete a sequence",
        "description": "Removes a draft sequence from the sequence list immediately. Pending mail is canceled and recipients are deleted in the background. Repeating the request after the sequence is already deleted returns 204.",
        "tags": [
          "Sequences"
        ],
        "responses": {
          "204": {
            "description": "The sequence is deleted, or was already deleted."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/sequences/{id}/follow-ups": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "listSequenceFollowUps",
        "summary": "List sequence follow-up steps",
        "tags": [
          "Sequences"
        ],
        "responses": {
          "200": {
            "description": "List sequence follow-up steps.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "createSequenceFollowUp",
        "summary": "Add a sequence follow-up step",
        "tags": [
          "Sequences"
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/follow_up_create_request"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/follow_up_create_request"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Add a sequence follow-up step.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/sequences/{id}/follow-ups/{follow_up_id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "follow_up_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "getSequenceFollowUp",
        "summary": "Get a sequence follow-up step",
        "tags": [
          "Sequences"
        ],
        "responses": {
          "200": {
            "description": "Get a sequence follow-up step.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "updateSequenceFollowUp",
        "summary": "Update a sequence follow-up step",
        "description": "A `body` in plain text or HTML keeps its line breaks and paragraphs. It is stored as the editor's HTML (`<div>` and `<br>`), also when `message_format` is `text`, so a read after the write can differ from the submitted body.\n",
        "tags": [
          "Sequences"
        ],
        "responses": {
          "200": {
            "description": "Update a sequence follow-up step.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "replaceSequenceFollowUp",
        "summary": "Replace a sequence follow-up step",
        "description": "A `body` in plain text or HTML keeps its line breaks and paragraphs. It is stored as the editor's HTML (`<div>` and `<br>`), also when `message_format` is `text`, so a read after the write can differ from the submitted body.\n",
        "tags": [
          "Sequences"
        ],
        "responses": {
          "200": {
            "description": "Replace a sequence follow-up step.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "delete": {
        "operationId": "deleteSequenceFollowUp",
        "summary": "Delete a sequence follow-up step",
        "tags": [
          "Sequences"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/sequences/{id}/stats": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "getSequenceStats",
        "summary": "Get sequence performance stats",
        "tags": [
          "Sequences"
        ],
        "responses": {
          "200": {
            "description": "Get sequence performance stats.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/sequences/{id}/recipients": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "listSequenceRecipients",
        "summary": "List sequence recipients",
        "description": "When a recipient has asked Hunter to delete their address, with a claim or a California DROP request, their `email` is null (HUN-23599).",
        "tags": [
          "Sequences"
        ],
        "responses": {
          "200": {
            "description": "List sequence recipients.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "addSequenceRecipients",
        "summary": "Add sequence recipients",
        "tags": [
          "Sequences"
        ],
        "responses": {
          "201": {
            "description": "Add sequence recipients. `data.skipped_recipients` lists the addresses that this request did not add, from both `emails` and `lead_ids`, each with its `reason`. It is `null` when no address was skipped.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "delete": {
        "operationId": "removeSequenceRecipients",
        "summary": "Remove sequence recipients",
        "tags": [
          "Sequences"
        ],
        "responses": {
          "201": {
            "description": "Remove sequence recipients. On a draft sequence, the recipients are removed and listed in `data.recipients_removed`. On a started sequence, the recipients stay in the sequence and no more emails are sent to them: they are listed in `data.recipients_canceled`, with the count of canceled pending emails in `data.messages_canceled`. A recipient not contacted yet gets the canceled status, also when their emails are not created yet. A recipient already contacted keeps their status (sent, opened or clicked) and gets no new follow-up. `data.skipped_recipients` lists the addresses that this request did not change, each with its `reason`: `not_in_sequence`, or `no_pending_messages` when sending to the recipient already stopped (for example, they replied, or they were canceled before). It is `null` when no address was skipped.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/sequences/{id}/start": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "startSequence",
        "summary": "Start a sequence",
        "tags": [
          "Sequences"
        ],
        "responses": {
          "200": {
            "description": "Start a sequence.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/sequences/{sequence_id}/pause": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "sequence_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "pauseSequence",
        "summary": "Pause a sequence",
        "tags": [
          "Sequences"
        ],
        "responses": {
          "200": {
            "description": "Pause a sequence.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "delete": {
        "operationId": "resumeSequence",
        "summary": "Resume a paused sequence",
        "tags": [
          "Sequences"
        ],
        "responses": {
          "200": {
            "description": "Resume a paused sequence.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/sequences/{sequence_id}/archive": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "sequence_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "archiveSequence",
        "summary": "Archive a sequence",
        "tags": [
          "Sequences"
        ],
        "responses": {
          "200": {
            "description": "Archive a sequence.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/sequences/{sequence_id}/test": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "sequence_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "testSequence",
        "summary": "Send a test email for every step of a sequence",
        "description": "Queues one test message per follow-up of the sequence, in step order, to the supplied address. When A/B testing is enabled on a step, both variants are sent. Subjects are prefixed with [TEST]. Returns 422 when the sequence has no step, a step is missing its subject or body, the sequence has no email account, the account cannot send, or the recipient cannot be contacted. At most 30 test emails can be queued per 10 minutes.",
        "tags": [
          "Sequences"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/sequence_test_request"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/sequence_test_request"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "One test message queued per follow-up of the sequence.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/discover/people": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "discoverPeople",
        "summary": "Discover people matching filters",
        "tags": [
          "Discover"
        ],
        "responses": {
          "200": {
            "description": "Discover people matching filters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "discoverPeopleWithPost",
        "summary": "Discover people using request-body filters",
        "tags": [
          "Discover"
        ],
        "responses": {
          "200": {
            "description": "Discover people using request-body filters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/domain-count": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "countDomains",
        "summary": "Count domains matching discovery filters",
        "tags": [
          "Finder"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Count domains matching discovery filters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/domain-finder": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "company",
          "in": "query",
          "description": "Company name to resolve to a domain.",
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "limit",
          "in": "query",
          "description": "Maximum suggestions to return.",
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "perfect_match",
          "in": "query",
          "description": "Only return an exact company-name match.",
          "schema": {
            "type": "boolean"
          }
        }
      ],
      "get": {
        "operationId": "findDomain",
        "summary": "Find the domain for a company",
        "description": "This lookup is nonbillable and stays available during a free-credit restriction. Existing search-quota limits still apply.",
        "tags": [
          "Finder"
        ],
        "responses": {
          "200": {
            "description": "Find the domain for a company.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "findDomainWithPost",
        "summary": "Find the domain for a company via POST",
        "description": "This lookup is nonbillable and stays available during a free-credit restriction. Existing search-quota limits still apply.",
        "tags": [
          "Finder"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/domain_finder_request"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/domain_finder_request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Find the domain for a company via POST.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/multi-domain-search": {
      "post": {
        "operationId": "multiDomainSearch",
        "summary": "Multi-domain search",
        "description": "Search professional email addresses across many companies at once using a structured filter set. Returns masked rows — no email address or phone number; use the reveal endpoint to unmask. This masked survey operation is free. At least one filter is required. Filters may be sent in the request body (JSON or form-encoded) or as query-string parameters; the body is therefore optional.",
        "tags": [
          "Multi-Domain Search"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ApiKey"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/multi_domain_search_request"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/multi_domain_search_request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Masked rows matching the filters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/multi_domain_search_response"
                }
              }
            }
          },
          "400": {
            "description": "A filter is invalid. For an enum filter (`type`, `seniority`, `department`, `verification_status`, `required_field`), any unknown value rejects the whole request; `details` names the rejected values (at most 10, each cut to 50 characters) and lists the accepted ones.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/multi-domain-search/reveal": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "post": {
        "operationId": "revealMultiDomainSearch",
        "summary": "Reveal emails from a multi-domain search",
        "tags": [
          "Finder"
        ],
        "responses": {
          "200": {
            "description": "Reveal emails from a multi-domain search. Emails claimed for removal have a not_found outcome and are omitted from the revealed data, including emails previously revealed to the team. No credits are charged for these emails. Each revealed row includes `twitter`, the person's Twitter handle or null.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/FreeCreditRestricted"
          },
          "default": {
            "description": "An error occurred. If removal-claim checks are unavailable, the request fails without returning unchecked email addresses or charging credits for them.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error_response"
                }
              }
            }
          }
        }
      }
    },
    "/domains-suggestion": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "query",
          "in": "query",
          "description": "Company name to suggest domains for.",
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "limit",
          "in": "query",
          "description": "Maximum suggestions to return.",
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "operationId": "suggestDomains",
        "summary": "Suggest domains for a company name",
        "tags": [
          "Finder"
        ],
        "responses": {
          "200": {
            "description": "Suggest domains for a company name.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/email-finder/found": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "domain",
          "in": "query",
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "company",
          "in": "query",
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "first_name",
          "in": "query",
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "last_name",
          "in": "query",
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "full_name",
          "in": "query",
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "linkedin_handle",
          "in": "query",
          "description": "Handle of the LinkedIn profile (the part of the profile URL after \"linkedin.com/in/\"), or the whole URL. It can contain any character LinkedIn puts in a profile URL, such as accents, emoji, or punctuation. It is rejected with \"invalid_linkedin_handle\" only when it is \".\" or \"..\", contains whitespace, a control character, \"/\", \"?\", \"#\", or a backslash, or has a malformed percent-escape or one that does not decode to UTF-8. The profile is looked up first; when the handle is invalid or not found and a name with a domain or company is also supplied, the name is searched instead.",
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "max_duration",
          "in": "query",
          "schema": {
            "type": "integer",
            "minimum": 3,
            "maximum": 20,
            "default": 10
          }
        }
      ],
      "get": {
        "operationId": "findEmailFound",
        "summary": "Get a previously found email address",
        "description": "Found-only variant of email finder. Supply a LinkedIn handle, or supply a domain/company plus either a full name or first and last name.",
        "tags": [
          "Finder"
        ],
        "responses": {
          "200": {
            "description": "The best matching found email and supporting sources.",
            "headers": {
              "X-Credits-Used": {
                "$ref": "#/components/headers/CreditsUsed"
              },
              "X-Credits-Unit": {
                "$ref": "#/components/headers/CreditsUnit"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/email_finder_response"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/FreeCreditRestricted"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "findEmailFoundWithPost",
        "summary": "Get a previously found email address via POST",
        "description": "Found-only variant of email finder using request-body parameters.",
        "tags": [
          "Finder"
        ],
        "responses": {
          "200": {
            "description": "The best matching found email and supporting sources.",
            "headers": {
              "X-Credits-Used": {
                "$ref": "#/components/headers/CreditsUsed"
              },
              "X-Credits-Unit": {
                "$ref": "#/components/headers/CreditsUnit"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/email_finder_response"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/FreeCreditRestricted"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/email-insight": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "email",
          "in": "query",
          "description": "Email address to inspect.",
          "schema": {
            "type": "string",
            "format": "email"
          }
        }
      ],
      "get": {
        "operationId": "getEmailInsight",
        "summary": "Get deliverability insight for an email address",
        "tags": [
          "Verifier"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Get deliverability insight for an email address.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/leads": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "listLeads",
        "summary": "List leads",
        "description": "Each lead carries `department` since HUN-23171. It was already a filter on this endpoint, but was never emitted, so a caller could filter on a field it could not read back.\n\nWhen the person behind a lead has asked Hunter to delete their address, with a claim or a California DROP request, the lead is returned without it: `email`, `confidence_score`, `verification.date` and `verification.status` are null (HUN-23599).\n\nA manually claimed phone number, or one covered by DROP, is returned as `phone_number: null`. The phone is also withheld when screening is unavailable; the lead and its other contact details remain.\n\nFilter by sequence with `sequence_ids[]`. The former name `campaign_ids[]` is still accepted as an alias; when both are sent, `sequence_ids[]` is used (HUN-20893).\n\nEach lead has `lead_tags`, its tags as `{id, name, color}`, oldest tag first; an empty array when it has none (HUN-25342). The key is not `tags` because a custom attribute can own that slug.\n\n`meta.count` is the number of leads that match the filters, after the `people_per_company` cap when it is sent. `meta.total` is the number of all the leads in the team, whatever the filters (HUN-25423).",
        "tags": [
          "Leads"
        ],
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "description": "Free-text search over first_name, last_name, company, website and email. Every word must match one of these fields, so a query with more words can return fewer leads. An email address returns only the lead with that exact email. Use `sort=relevance` to get the best matches first (HUN-23628).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "The order of the leads. `newest` returns the most recently created leads first, `oldest` the oldest first. `relevance` returns the best matches first for a `query` or `position` search, and the newest first otherwise; leads with the same relevance come newest first. Any other value returns 400 (HUN-23628).",
            "schema": {
              "type": "string",
              "enum": [
                "newest",
                "oldest",
                "relevance"
              ],
              "default": "newest"
            }
          },
          {
            "name": "decision_maker",
            "in": "query",
            "description": "Only returns the leads whose email address belongs to a decision maker. `true` is the only value; any other value returns 400 (HUN-25033).",
            "schema": {
              "type": "string",
              "enum": [
                "true"
              ]
            }
          },
          {
            "name": "seniority_level",
            "in": "query",
            "description": "Only returns the leads at these seniority levels. Send several with Rails-style bracket encoding (`seniority_level[]=vp&seniority_level[]=director`) or a repeated key (`seniority_level=vp&seniority_level=director`), or one as a plain value. `*` returns the leads with any level, `~` the leads with no level. Any other value returns 400 (HUN-25033).",
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "owner",
                    "partner",
                    "cxo",
                    "vp",
                    "director",
                    "manager",
                    "senior",
                    "entry",
                    "training",
                    "*",
                    "~"
                  ]
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "owner",
                      "partner",
                      "cxo",
                      "vp",
                      "director",
                      "manager",
                      "senior",
                      "entry",
                      "training",
                      "*",
                      "~"
                    ]
                  }
                }
              ]
            }
          },
          {
            "name": "email_type",
            "in": "query",
            "description": "Only returns the leads whose email address has these types: `personal` for the address of a person, `generic` for a shared address. Send several with Rails-style bracket encoding (`email_type[]=personal&email_type[]=generic`) or a repeated key (`email_type=personal&email_type=generic`), or one as a plain value. `*` returns the leads with any type, `~` the leads with no known type. Any other value returns 400 (HUN-25033).",
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "generic",
                    "personal",
                    "*",
                    "~"
                  ]
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "generic",
                      "personal",
                      "*",
                      "~"
                    ]
                  }
                }
              ]
            }
          },
          {
            "name": "position_keywords",
            "in": "query",
            "description": "Only returns the leads whose job title matches any of these keywords, as the job title filter of the Leads page does. With `position`, a lead that matches either is returned. Send several with Rails-style bracket encoding (`position_keywords[]=engineer&position_keywords[]=sales`) or a repeated key (`position_keywords=engineer&position_keywords=sales`). At most 100 distinct values and 64 words in all; a value that contains `|` returns 400. Synonyms count toward the same 64 words: past them, a keyword matches only as typed. With `position=~`, it returns 400 (HUN-25033).",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "company",
            "in": "query",
            "description": "Filters the leads by company. A plain value matches the company names that contain it. The array form (`company[]=Acme&company[]=Globex`, or the repeated key `company=Acme&company=Globex`) returns the leads at any of the companies, up to 100 distinct values. In the array form, a value that starts with `!`, `~` next to another value, or a value over 100 characters returns 400 (HUN-25033).",
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          {
            "name": "people_per_company",
            "in": "query",
            "description": "Returns at most this many leads per company. Leads without a company domain are never capped. With this parameter, `meta.count` is the number of leads left after the cap. It works on at most 10,000 matching leads: a search that matches more returns 400. It is echoed in `meta.params`. Any other value, including the array form, returns 400 (HUN-25033).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List leads.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "createLead",
        "summary": "Create a lead",
        "description": "A manually claimed phone number, or one covered by DROP, is returned as `phone_number: null`. The phone is also withheld when screening is unavailable; the lead and its other contact details remain.\n\nCreates a lead, or adds an existing lead to the requested lists. When an `email` matches a lead already on your team, the request is additive: it adds only the missing list memberships and returns 201 rather than an email duplicate error. When the matched lead belongs to a teammate, the request still adds it to your lists, and the teammate's lead itself is only updated if you have permission to edit it. A request without an `email` is never matched by email — it does not reuse an existing email-less lead — though a lead with an identical name, company, and list is still rejected as a duplicate.\n\nAccepts `department` since HUN-23171, normalized to its canonical key so a localized display label (\"Sales\") is stored as `sales`. Lead attributes are not modelled field-by-field in this contract yet — the response uses the generic resource envelope — so this note is where the accepted set is recorded.\n\nWhen another request is creating leads for the team, returns 409 with `lead_creation_in_progress` and `Retry-After: 1`. Retry the request after one second.\n\nHunter records the channel that created each new lead: the API, the browser extension, or an MCP client. A request cannot set or change this value, and the response does not include it. `source` stays free text (HUN-22753).",
        "tags": [
          "Leads"
        ],
        "responses": {
          "201": {
            "description": "Create a lead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "description": "Lead creation is busy for this team; retry after one second.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+$",
                  "example": "1"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error_response"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "upsertLeads",
        "summary": "Upsert a lead",
        "description": "A manually claimed phone number, or one covered by DROP, is returned as `phone_number: null`. The phone is also withheld when screening is unavailable; the lead and its other contact details remain.\n\nAccepts `department`, normalized to its canonical key so a localized display label (\"Sales\") is stored as `sales`. This operation keeps its own allowlist, separate from the one `createLead` uses, so the two can differ — it does not currently accept `company_type`, `lead_country_code`, `lead_city` or `lead_state`.\n\nWhen creating a new lead while another request is creating leads for the team, returns 409 with `lead_creation_in_progress` and `Retry-After: 1`. Retry the request after one second. Existing leads can still be updated.\n\nA lead this operation creates records the channel that created it, as on `createLead`. An update does not change that value (HUN-22753).",
        "tags": [
          "Leads"
        ],
        "responses": {
          "200": {
            "description": "Upsert a lead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "201": {
            "description": "Upsert a lead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "409": {
            "description": "Lead creation is busy for this team; retry after one second.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+$",
                  "example": "1"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error_response"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/leads/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "getLead",
        "summary": "Get a lead",
        "description": "Returns `department` since HUN-23171. It was filterable on the collection endpoint and settable by enrichment before that, but never emitted, so a caller could filter on a field it could not read back.\n\nWhen the person behind a lead has asked Hunter to delete their address, with a claim or a California DROP request, the lead is returned without it: `email`, `confidence_score`, `verification.date` and `verification.status` are null (HUN-23599).\n\nA manually claimed phone number, or one covered by DROP, is returned as `phone_number: null`. The phone is also withheld when screening is unavailable; the lead and its other contact details remain.\n\nFor the Hunter browser extension only, the lead also has a `browser_extension` object: `sequences` (the sequences the lead is a recipient of, each `{id, name}`) and `tags` (each `{id, name, color}`).\n\nThe lead has `lead_tags`, its tags as `{id, name, color}`, oldest tag first; an empty array when it has none (HUN-25342).",
        "tags": [
          "Leads"
        ],
        "responses": {
          "200": {
            "description": "Get a lead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "updateLead",
        "summary": "Update a lead",
        "description": "Accepts `department` since HUN-23171. The value is normalized to its canonical key, so a localized display label (\"Sales\") is stored as `sales`. Lead attributes are not modelled field-by-field in this contract yet — the response uses the generic resource envelope — so this note is where the accepted set is recorded.",
        "tags": [
          "Leads"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "replaceLead",
        "summary": "Replace a lead",
        "description": "Accepts `department` since HUN-23171. The value is normalized to its canonical key, so a localized display label (\"Sales\") is stored as `sales`. Lead attributes are not modelled field-by-field in this contract yet — the response uses the generic resource envelope — so this note is where the accepted set is recorded.",
        "tags": [
          "Leads"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "delete": {
        "operationId": "deleteLead",
        "summary": "Delete a lead",
        "tags": [
          "Leads"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/leads/exist": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "email",
          "in": "query",
          "description": "Email address to look up.",
          "schema": {
            "type": "string",
            "format": "email"
          }
        }
      ],
      "get": {
        "operationId": "checkLeadExists",
        "summary": "Check whether a lead exists",
        "tags": [
          "Leads"
        ],
        "responses": {
          "200": {
            "description": "Check whether a lead exists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/leads/bulk": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "put": {
        "operationId": "bulkUpsertLeads",
        "summary": "Upsert leads in bulk",
        "description": "Create or update up to 100 leads in one call. Each lead is matched on `email` and written in its own transaction, so one invalid lead does not cancel the others. The team's lead limit is checked for each new lead using the current committed lead count. If an item would exceed that limit, earlier successful items remain saved and that item returns a `leads_limit_reached` error. If another request is creating leads for the team, the new lead's item returns `status: failed` with error `lead_creation_in_progress` and code 409. Retry only those failed items after one second; other items still run normally. The response is always 200: read `status` and `errors` of each result to know what happened to each lead. The call is free and consumes no request.\nEach lead this operation creates records the channel that created it, as on `createLead`. An update does not change that value (HUN-22753).\nWhen the person behind a lead has asked Hunter to delete their address, with a claim or a California DROP request, the lead is returned without it: `email`, `confidence_score`, `verification.date` and `verification.status` are null (HUN-23599).\n\nA manually claimed phone number, or one covered by DROP, is returned as `phone_number: null`. The phone is also withheld when screening is unavailable; the lead and its other contact details remain.\n",
        "tags": [
          "Leads"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/leads_bulk_upsert_request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "One result per submitted lead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/leads_bulk_upsert_response"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/leads/bulk/exist": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "emails",
          "in": "query",
          "description": "Email addresses to look up in bulk. Send Rails-style bracket encoding (emails[]=a@example.com&emails[]=b@example.com): the comma-joined and repeated-key forms parse as a scalar and fail validation.",
          "schema": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "email"
            }
          }
        }
      ],
      "get": {
        "operationId": "checkLeadsBulkExist",
        "summary": "Check whether leads exist in bulk",
        "tags": [
          "Leads"
        ],
        "responses": {
          "200": {
            "description": "Check whether leads exist in bulk.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/leads/bulk/move": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "post": {
        "operationId": "moveLeadsBulk",
        "summary": "Move leads to another list in bulk",
        "tags": [
          "Leads"
        ],
        "responses": {
          "202": {
            "description": "Accepted for background processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/leads/bulk/delete": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "post": {
        "operationId": "deleteLeadsBulk",
        "summary": "Delete leads in bulk",
        "tags": [
          "Leads"
        ],
        "responses": {
          "200": {
            "description": "Delete leads in bulk.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "202": {
            "description": "Accepted for background processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/leads/{id}/tags": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "tagLead",
        "summary": "Tag a lead",
        "tags": [
          "Leads"
        ],
        "responses": {
          "201": {
            "description": "Tag a lead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/leads/{id}/tags/{tag_id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "tag_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "delete": {
        "operationId": "untagLead",
        "summary": "Remove a tag from a lead",
        "tags": [
          "Leads"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/leads/{id}/enrich": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "enrichLead",
        "summary": "Enrich a lead",
        "description": "A manually claimed phone number, or one covered by DROP, is returned as `phone_number: null`. The phone is also withheld when screening is unavailable; the lead and its other contact details remain.",
        "tags": [
          "Leads"
        ],
        "responses": {
          "200": {
            "description": "Enrich a lead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/leads_custom_attributes": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "listLeadCustomAttributes",
        "summary": "List lead custom attributes",
        "tags": [
          "Leads"
        ],
        "responses": {
          "200": {
            "description": "List lead custom attributes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "createLeadCustomAttribute",
        "summary": "Create a lead custom attribute",
        "tags": [
          "Leads"
        ],
        "responses": {
          "201": {
            "description": "Create a lead custom attribute.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/leads_custom_attributes/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "getLeadCustomAttribute",
        "summary": "Get a lead custom attribute",
        "tags": [
          "Leads"
        ],
        "responses": {
          "200": {
            "description": "Get a lead custom attribute.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "updateLeadCustomAttribute",
        "summary": "Update a lead custom attribute",
        "tags": [
          "Leads"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "replaceLeadCustomAttribute",
        "summary": "Replace a lead custom attribute",
        "tags": [
          "Leads"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "delete": {
        "operationId": "deleteLeadCustomAttribute",
        "summary": "Delete a lead custom attribute",
        "tags": [
          "Leads"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/companies": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "listCompanies",
        "summary": "List saved companies",
        "tags": [
          "Companies"
        ],
        "responses": {
          "200": {
            "description": "List saved companies. `domain` is null when the company's domain no longer exists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "createCompany",
        "summary": "Save a company",
        "tags": [
          "Companies"
        ],
        "responses": {
          "201": {
            "description": "Save a company. `domain` is null when the company's domain no longer exists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/companies/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "getCompany",
        "summary": "Get a saved company",
        "tags": [
          "Companies"
        ],
        "responses": {
          "200": {
            "description": "Get a saved company. `domain` is null when the company's domain no longer exists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "delete": {
        "operationId": "deleteCompany",
        "summary": "Delete a saved company",
        "tags": [
          "Companies"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/companies/bulk/move": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "post": {
        "operationId": "moveCompaniesBulk",
        "summary": "Move companies to another list in bulk",
        "tags": [
          "Companies"
        ],
        "responses": {
          "202": {
            "description": "Accepted for background processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/companies/bulk/copy": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "post": {
        "operationId": "copyCompaniesBulk",
        "summary": "Copy companies to another list in bulk",
        "tags": [
          "Companies"
        ],
        "responses": {
          "202": {
            "description": "Accepted for background processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/companies/bulk/delete": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "post": {
        "operationId": "deleteCompaniesBulk",
        "summary": "Delete companies in bulk",
        "tags": [
          "Companies"
        ],
        "responses": {
          "200": {
            "description": "Delete companies in bulk.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "202": {
            "description": "Accepted for background processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/companies/bulk/tag": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "post": {
        "operationId": "tagCompaniesBulk",
        "summary": "Tag companies in bulk",
        "tags": [
          "Companies"
        ],
        "responses": {
          "202": {
            "description": "Accepted for background processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/companies/{id}/tags": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "tagSavedCompany",
        "summary": "Tag a saved company",
        "tags": [
          "Companies"
        ],
        "responses": {
          "201": {
            "description": "Tag a saved company.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/companies/{id}/tags/{tag_id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "tag_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "delete": {
        "operationId": "untagSavedCompany",
        "summary": "Remove a tag from a saved company",
        "tags": [
          "Companies"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/leads_lists": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "listLeadLists",
        "summary": "List lead lists",
        "description": "Each list includes `leads_list_folder_id`: the ID of the folder that holds the list, or null when the list is unfiled (HUN-24761).",
        "tags": [
          "Lists"
        ],
        "responses": {
          "200": {
            "description": "List lead lists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "createLeadList",
        "summary": "Create a lead list",
        "description": "An optional `leads_list_folder_id` creates the list inside that folder. A folder of another team returns a 422. The response includes `leads_list_folder_id` (HUN-24761).\nCreates a static list, or a dynamic list when `type` is `dynamic`. A dynamic list saves `filters` in the vocabulary of GET /v2/leads and holds every lead that matches them. Its `leads_count` in the response is already the number of matching leads (HUN-24762).",
        "tags": [
          "Lists"
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/leads_list_create_request"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/leads_list_create_request"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Create a lead list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/leads_lists/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "getLeadList",
        "summary": "Get a lead list",
        "description": "When the person behind a lead has asked Hunter to delete their address, with a claim or a California DROP request, the lead is returned without it: `email`, `confidence_score`, `verification.date` and `verification.status` are null (HUN-23599).\nThe list includes `leads_list_folder_id`, or null when the list is unfiled (HUN-24761).",
        "tags": [
          "Lists"
        ],
        "responses": {
          "200": {
            "description": "Get a lead list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "updateLeadList",
        "summary": "Update a lead list",
        "description": "`name` and `leads_list_folder_id` are both optional. A folder ID moves the list into that folder, and a blank `leads_list_folder_id` removes it from its folder. A folder of another team returns a 422 (HUN-24761).\nFor a dynamic list, `filters` replaces the saved filters (HUN-24762).",
        "tags": [
          "Lists"
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/leads_list_request"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/leads_list_request"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "replaceLeadList",
        "summary": "Replace a lead list",
        "description": "`name` and `leads_list_folder_id` are both optional. A folder ID moves the list into that folder, and a blank `leads_list_folder_id` removes it from its folder. A folder of another team returns a 422 (HUN-24761).\nFor a dynamic list, `filters` replaces the saved filters (HUN-24762).",
        "tags": [
          "Lists"
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/leads_list_request"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/leads_list_request"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "delete": {
        "operationId": "deleteLeadList",
        "summary": "Delete a lead list",
        "tags": [
          "Lists"
        ],
        "responses": {
          "202": {
            "description": "Accepted for background processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/leads_lists/folders": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "listLeadListFolders",
        "summary": "List lead list folders",
        "tags": [
          "Lists"
        ],
        "responses": {
          "200": {
            "description": "List lead list folders.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "createLeadListFolder",
        "summary": "Create a lead list folder",
        "description": "When `color` is omitted the folder gets a random color from the palette's vivid swatches.",
        "tags": [
          "Lists"
        ],
        "responses": {
          "201": {
            "description": "Create a lead list folder.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/leads_lists/folders/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "getLeadListFolder",
        "summary": "Get a lead list folder",
        "tags": [
          "Lists"
        ],
        "responses": {
          "200": {
            "description": "Get a lead list folder.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "updateLeadListFolder",
        "summary": "Update a lead list folder",
        "tags": [
          "Lists"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "replaceLeadListFolder",
        "summary": "Replace a lead list folder",
        "tags": [
          "Lists"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "delete": {
        "operationId": "deleteLeadListFolder",
        "summary": "Delete a lead list folder",
        "tags": [
          "Lists"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/leads_lists/{id}/favorite": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "favoriteLeadList",
        "summary": "Favorite a lead list",
        "tags": [
          "Lists"
        ],
        "responses": {
          "201": {
            "description": "Favorite a lead list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "delete": {
        "operationId": "unfavoriteLeadList",
        "summary": "Unfavorite a lead list",
        "tags": [
          "Lists"
        ],
        "responses": {
          "200": {
            "description": "Unfavorite a lead list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/leads_lists/{id}/merge": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "mergeLeadLists",
        "summary": "Merge lead lists",
        "tags": [
          "Lists"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/leads-lists": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "listLeadListsHyphen",
        "summary": "List lead lists (hyphen alias)",
        "description": "Each list includes `leads_list_folder_id`: the ID of the folder that holds the list, or null when the list is unfiled (HUN-24761).",
        "tags": [
          "Lists"
        ],
        "responses": {
          "200": {
            "description": "List lead lists (hyphen alias).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "createLeadListHyphen",
        "summary": "Create a lead list (hyphen alias)",
        "description": "An optional `leads_list_folder_id` creates the list inside that folder. A folder of another team returns a 422. The response includes `leads_list_folder_id` (HUN-24761).\nCreates a static list, or a dynamic list when `type` is `dynamic`. A dynamic list saves `filters` in the vocabulary of GET /v2/leads and holds every lead that matches them. Its `leads_count` in the response is already the number of matching leads (HUN-24762).",
        "tags": [
          "Lists"
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/leads_list_create_request"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/leads_list_create_request"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Create a lead list (hyphen alias).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/leads-lists/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "getLeadListHyphen",
        "summary": "Get a lead list (hyphen alias)",
        "description": "When the person behind a lead has asked Hunter to delete their address, with a claim or a California DROP request, the lead is returned without it: `email`, `confidence_score`, `verification.date` and `verification.status` are null (HUN-23599).\nThe list includes `leads_list_folder_id`, or null when the list is unfiled (HUN-24761).",
        "tags": [
          "Lists"
        ],
        "responses": {
          "200": {
            "description": "Get a lead list (hyphen alias).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "updateLeadListHyphen",
        "summary": "Update a lead list (hyphen alias)",
        "description": "`name` and `leads_list_folder_id` are both optional. A folder ID moves the list into that folder, and a blank `leads_list_folder_id` removes it from its folder. A folder of another team returns a 422 (HUN-24761).\nFor a dynamic list, `filters` replaces the saved filters (HUN-24762).",
        "tags": [
          "Lists"
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/leads_list_request"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/leads_list_request"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "replaceLeadListHyphen",
        "summary": "Replace a lead list (hyphen alias)",
        "description": "`name` and `leads_list_folder_id` are both optional. A folder ID moves the list into that folder, and a blank `leads_list_folder_id` removes it from its folder. A folder of another team returns a 422 (HUN-24761).\nFor a dynamic list, `filters` replaces the saved filters (HUN-24762).",
        "tags": [
          "Lists"
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/leads_list_request"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/leads_list_request"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "delete": {
        "operationId": "deleteLeadListHyphen",
        "summary": "Delete a lead list (hyphen alias)",
        "tags": [
          "Lists"
        ],
        "responses": {
          "202": {
            "description": "Accepted for background processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/leads-lists/folders": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "listLeadListFoldersHyphen",
        "summary": "List lead list folders (hyphen alias)",
        "tags": [
          "Lists"
        ],
        "responses": {
          "200": {
            "description": "List lead list folders (hyphen alias).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "createLeadListFolderHyphen",
        "summary": "Create a lead list folder (hyphen alias)",
        "description": "When `color` is omitted the folder gets a random color from the palette's vivid swatches.",
        "tags": [
          "Lists"
        ],
        "responses": {
          "201": {
            "description": "Create a lead list folder (hyphen alias).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/leads-lists/folders/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "getLeadListFolderHyphen",
        "summary": "Get a lead list folder (hyphen alias)",
        "tags": [
          "Lists"
        ],
        "responses": {
          "200": {
            "description": "Get a lead list folder (hyphen alias).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "updateLeadListFolderHyphen",
        "summary": "Update a lead list folder (hyphen alias)",
        "tags": [
          "Lists"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "replaceLeadListFolderHyphen",
        "summary": "Replace a lead list folder (hyphen alias)",
        "tags": [
          "Lists"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "delete": {
        "operationId": "deleteLeadListFolderHyphen",
        "summary": "Delete a lead list folder (hyphen alias)",
        "tags": [
          "Lists"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/leads-lists/{id}/favorite": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "favoriteLeadListHyphen",
        "summary": "Favorite a lead list (hyphen alias)",
        "tags": [
          "Lists"
        ],
        "responses": {
          "201": {
            "description": "Favorite a lead list (hyphen alias).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "delete": {
        "operationId": "unfavoriteLeadListHyphen",
        "summary": "Unfavorite a lead list (hyphen alias)",
        "tags": [
          "Lists"
        ],
        "responses": {
          "200": {
            "description": "Unfavorite a lead list (hyphen alias).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/leads-lists/{id}/merge": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "mergeLeadListsHyphen",
        "summary": "Merge lead lists (hyphen alias)",
        "tags": [
          "Lists"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/leads-imports": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "post": {
        "operationId": "createLeadsImport",
        "summary": "Create a leads import from CSV data",
        "description": "Creates a draft leads import and returns its id, the guessed column matching, and a configuration_url. This call does not import anything: a person must open that URL in a browser and complete the mapping step before any lead is created. It is intended for clients that can hand off to a browser session, not for unattended automation. csv_data must be sent in the request body; it is rejected in the query string, where it would reach access logs verbatim.",
        "tags": [
          "Leads"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/leads_import_request"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/leads_import_request"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Create a leads import from CSV data.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/company-lists": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "listCompanyLists",
        "summary": "List company lists",
        "tags": [
          "Lists"
        ],
        "responses": {
          "200": {
            "description": "List company lists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "createCompanyList",
        "summary": "Create a company list",
        "tags": [
          "Lists"
        ],
        "responses": {
          "201": {
            "description": "Create a company list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/company-lists/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "getCompanyList",
        "summary": "Get a company list",
        "tags": [
          "Lists"
        ],
        "responses": {
          "200": {
            "description": "Get a company list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "updateCompanyList",
        "summary": "Update a company list",
        "tags": [
          "Lists"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "replaceCompanyList",
        "summary": "Replace a company list",
        "tags": [
          "Lists"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "delete": {
        "operationId": "deleteCompanyList",
        "summary": "Delete a company list",
        "tags": [
          "Lists"
        ],
        "responses": {
          "202": {
            "description": "Accepted for background processing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/company-lists/folders": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "listCompanyListFolders",
        "summary": "List company list folders",
        "tags": [
          "Lists"
        ],
        "responses": {
          "200": {
            "description": "List company list folders.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "createCompanyListFolder",
        "summary": "Create a company list folder",
        "description": "When `color` is omitted the folder gets a random color from the palette's vivid swatches.",
        "tags": [
          "Lists"
        ],
        "responses": {
          "201": {
            "description": "Create a company list folder.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/company-lists/folders/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "getCompanyListFolder",
        "summary": "Get a company list folder",
        "tags": [
          "Lists"
        ],
        "responses": {
          "200": {
            "description": "Get a company list folder.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "updateCompanyListFolder",
        "summary": "Update a company list folder",
        "tags": [
          "Lists"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "replaceCompanyListFolder",
        "summary": "Replace a company list folder",
        "tags": [
          "Lists"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "delete": {
        "operationId": "deleteCompanyListFolder",
        "summary": "Delete a company list folder",
        "tags": [
          "Lists"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/company-lists/{id}/favorite": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "post": {
        "operationId": "favoriteCompanyList",
        "summary": "Favorite a company list",
        "tags": [
          "Lists"
        ],
        "responses": {
          "201": {
            "description": "Favorite a company list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "delete": {
        "operationId": "unfavoriteCompanyList",
        "summary": "Unfavorite a company list",
        "tags": [
          "Lists"
        ],
        "responses": {
          "200": {
            "description": "Unfavorite a company list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/company-lists/{id}/companies": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "listCompanyListCompanies",
        "summary": "List the companies in a company list",
        "description": "Lists the companies in a static company list, most recently added first. A dynamic list has no stored companies (they come from its filters), so it returns a 400 error with the id `dynamic_company_list`.",
        "tags": [
          "Lists"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "$ref": "#/components/parameters/Offset"
          }
        ],
        "responses": {
          "200": {
            "description": "The companies in the list, with `meta.results` (the total), `limit` and `offset`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "addCompanyListCompany",
        "summary": "Add a company to a company list",
        "tags": [
          "Lists"
        ],
        "responses": {
          "200": {
            "description": "The company was already in the list. Nothing changed, and `already_in_list` is true.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "201": {
            "description": "Add a company to a company list. `already_in_list` is false.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/company-lists/{id}/companies/{company_id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "company_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "delete": {
        "operationId": "removeCompanyListCompany",
        "summary": "Remove a company from a company list",
        "tags": [
          "Lists"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/lookalikes": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "company_list_id",
          "in": "query",
          "description": "Identifier of the static company list to find lookalikes for. Provide exactly one of company_list_id or domain.",
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "domain",
          "in": "query",
          "description": "Domain name of one company to find lookalikes for (e.g. stripe.com). A URL is accepted and cleaned to its domain. Provide exactly one of company_list_id or domain. An unknown domain returns an empty list.",
          "schema": {
            "type": "string",
            "example": "stripe.com"
          }
        },
        {
          "name": "country",
          "in": "query",
          "description": "Bias the ranking toward a given country (ISO 3166-1 alpha-2 code, e.g. us). This is a ranking signal, not a hard filter: companies from other countries may still appear.",
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "size",
          "in": "query",
          "description": "Only return companies in the given size range (e.g. 51-200). To send several ranges, use Rails-style bracket encoding (size[]=51-200&size[]=11-50); a repeated plain key (size=51-200&size=11-50) keeps only the last value. Companies without a known size are excluded.",
          "schema": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          }
        },
        {
          "name": "industry",
          "in": "query",
          "description": "Only return companies in the given industry (matched by name, case-insensitive). To send several industries, use Rails-style bracket encoding (industry[]=SaaS&industry[]=Fintech); a repeated plain key keeps only the last value. Companies without a known industry are excluded.",
          "schema": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          }
        },
        {
          "name": "limit",
          "in": "query",
          "description": "Maximum number of lookalikes to return. Because the size and industry filters are applied after ranking, a narrow filter can return fewer.",
          "schema": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 20
          }
        }
      ],
      "get": {
        "operationId": "listLookalikes",
        "summary": "Find lookalike companies from a company list or a domain",
        "description": "Finds companies that look like the ones in one of your company lists, or like one company given by its domain. The seed companies are excluded, and we return the most similar companies ranked by a similarity score. This endpoint is not paginated: it returns a single ranked page of the top limit results, so the offset parameter is not supported and returns 400 if supplied. This call is free.",
        "tags": [
          "Lists"
        ],
        "responses": {
          "200": {
            "description": "Lookalike companies ranked by similarity.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/lookalikes_response"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "422": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/signals": {
      "get": {
        "operationId": "listSignals",
        "summary": "List signal events",
        "description": "Return single signal events, newest first, from the last 30 days: the events the dashboard and the Signals page show. With `source=leads`, the events are on companies and contacts in the team's lists: funding rounds, technology changes, new contacts and executives, job posts, hiring and headcount changes, and contacts who changed location or position. With `source=monitored`, the events come from the feeds of the team's Monitored Signals: one signal with `signal_id`, or else the 1,000 most recently created active company follows and the 25 most recently created active funding and job openings signals. Events carry no email address and no person name: `next_call` names the call that finds people at the company, and a contact event gives the team's lead ID. This operation is free and does not mark any event as seen. Pagination is by cursor. Keep `meta.next_since` and send it as `since` on the next poll, then remove duplicate events by `id`.",
        "tags": [
          "Signals"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ApiKey"
          },
          {
            "name": "source",
            "in": "query",
            "required": true,
            "description": "The feed to read.",
            "schema": {
              "type": "string",
              "enum": [
                "leads",
                "monitored"
              ]
            }
          },
          {
            "name": "signal_id",
            "in": "query",
            "description": "With `source=monitored` only. The Monitored Signal to read, active or paused. Without it, the response merges the team's active signals.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "since",
            "in": "query",
            "description": "ISO 8601 date-time, not in the future. Return only events that occurred after it. A value older than 30 days reads as 30 days ago.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "types",
            "in": "query",
            "description": "Event types to return. Default: all. Repeat the parameter (types=funding_round&types=new_contact) or use Rails-style bracket encoding (types[]=funding_round&types[]=new_contact).",
            "style": "form",
            "explode": true,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/signal_event_type"
                },
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/signal_event_type"
                  }
                }
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of events in the page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "The `meta.next_cursor` of the previous page. It is valid only with the same `source`, `signal_id`, `since`, and `types`. This operation does not accept `offset`.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of signal events.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/signals_response"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "description": "A feed timed out (`signals_unavailable`). Retry after the delay in `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "string",
                  "example": "30"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error_response"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/monitored-signals": {
      "get": {
        "operationId": "listMonitoredSignals",
        "summary": "List Monitored Signals",
        "description": "Return the team's Monitored Signals that `GET /signals?source=monitored` can read: funding signals, job openings signals, and company follows, newest first. Read the events of one signal with `GET /signals?source=monitored&signal_id=<id>`. This operation is free.",
        "tags": [
          "Signals"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ApiKey"
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of signals in the page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "$ref": "#/components/parameters/Offset"
          }
        ],
        "responses": {
          "200": {
            "description": "One page of Monitored Signals.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/monitored_signals_response"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/briefing": {
      "get": {
        "operationId": "getBriefing",
        "summary": "Get the briefing",
        "description": "Return what needs attention in the team's Hunter account, in one call: the number of lead signal and Monitored Signal events after `since`, the number of opportunities of this week, and the plan and credits. Each item gives a `status` and the `next_call` that returns its details. An item that could not be read is `unavailable` and the call still succeeds. An item that the plan does not include is `no_access`. This operation is free and does not mark anything as seen. When every count is exact, keep `meta.next_since` and send it as `since` on the next call, or keep each signals item's `next_since` and send it as `leads_since` or `monitored_since`. When a count is not exact, read its `next_call` to the last page and keep that call's `meta.next_since` instead.",
        "tags": [
          "Briefing"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ApiKey"
          },
          {
            "name": "since",
            "in": "query",
            "description": "ISO 8601 date-time, not in the future. Count only the events that occurred after it. Default: 7 days ago. A value older than 30 days reads as 30 days ago.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "leads_since",
            "in": "query",
            "description": "Like `since`, for the lead signals item only. It overrides `since` for that item.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "monitored_since",
            "in": "query",
            "description": "Like `since`, for the Monitored Signals item only. It overrides `since` for that item.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The briefing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/briefing_response"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "description": "More than 60 calls in a minute (`too_many_requests`), as for the other API rate limits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error_response"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/opportunities": {
      "get": {
        "operationId": "listOpportunities",
        "summary": "List this week's opportunities",
        "description": "Return the team's opportunities of the current week: groups of people or companies that look like the ones the team saved, which the dashboard shows as \"New leads for you\". Each opportunity's `next_call` names the call that returns its people or companies. People the team saved as leads since the opportunity was generated are not counted. For about a day after the weekly refresh, the list can hold opportunities from both the previous and the new batch. This operation is free and does not mark any opportunity as seen. A team that turned off optional AI features gets a 403 `optional_ai_features_off` error, and an account whose AI features were revoked gets a 403 `ai_access_revoked` error.",
        "tags": [
          "Opportunities"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ApiKey"
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of opportunities in the page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "$ref": "#/components/parameters/Offset"
          }
        ],
        "responses": {
          "200": {
            "description": "One page of opportunities, best first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/opportunities_response"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "description": "The opportunities could not be read (`opportunities_unavailable`). Retry after the delay in `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "string",
                  "example": "30"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error_response"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/opportunities/{id}/results": {
      "get": {
        "operationId": "listOpportunityResults",
        "summary": "List the people or companies of an opportunity",
        "description": "Return the people or the companies of one opportunity, in the order of their similarity. People are masked, as in Multi Domain Search, and exclude the ones the team saved as leads. Send their `reveal_handle` to `POST /v2/multi-domain-search/reveal` to get their email addresses for credits. A handle is valid until the team's billing period ends. Contacts that Hunter does not serve are left out, so `meta.results` can be lower than the opportunity's `results_count`. People that the team saves as leads leave the results, so a client that saves people while it pages must read again from `offset=0`. This operation is free and does not mark the opportunity as seen.",
        "tags": [
          "Opportunities"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ApiKey"
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The `id` of an opportunity from `GET /v2/opportunities`.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results in the page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "$ref": "#/components/parameters/Offset"
          }
        ],
        "responses": {
          "200": {
            "description": "One page of the opportunity's people or companies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/opportunity_results_response"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "404": {
            "$ref": "#/components/responses/Error"
          },
          "503": {
            "description": "The opportunities could not be read, or Hunter could not check which contacts it may serve (`opportunities_unavailable`). Retry after the delay in `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "string",
                  "example": "30"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/error_response"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/tags": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "listTags",
        "summary": "List lead tags",
        "tags": [
          "Tags"
        ],
        "responses": {
          "200": {
            "description": "List lead tags.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "createTag",
        "summary": "Create a lead tag",
        "tags": [
          "Tags"
        ],
        "responses": {
          "201": {
            "description": "Create a lead tag.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/tags/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "getTag",
        "summary": "Get a lead tag",
        "tags": [
          "Tags"
        ],
        "responses": {
          "200": {
            "description": "Get a lead tag.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "updateTag",
        "summary": "Update a lead tag",
        "tags": [
          "Tags"
        ],
        "responses": {
          "200": {
            "description": "Update a lead tag.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "replaceTag",
        "summary": "Replace a lead tag",
        "tags": [
          "Tags"
        ],
        "responses": {
          "200": {
            "description": "Replace a lead tag.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "delete": {
        "operationId": "deleteTag",
        "summary": "Delete a lead tag",
        "tags": [
          "Tags"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/company-tags": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "listCompanyTags",
        "summary": "List company tags",
        "tags": [
          "Tags"
        ],
        "responses": {
          "200": {
            "description": "List company tags.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "createCompanyTag",
        "summary": "Create a company tag",
        "tags": [
          "Tags"
        ],
        "responses": {
          "201": {
            "description": "Create a company tag.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/company-tags/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "getCompanyTag",
        "summary": "Get a company tag",
        "tags": [
          "Tags"
        ],
        "responses": {
          "200": {
            "description": "Get a company tag.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "updateCompanyTag",
        "summary": "Update a company tag",
        "tags": [
          "Tags"
        ],
        "responses": {
          "200": {
            "description": "Update a company tag.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "replaceCompanyTag",
        "summary": "Replace a company tag",
        "tags": [
          "Tags"
        ],
        "responses": {
          "200": {
            "description": "Replace a company tag.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "delete": {
        "operationId": "deleteCompanyTag",
        "summary": "Delete a company tag",
        "tags": [
          "Tags"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/feedback": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "post": {
        "operationId": "createFeedback",
        "summary": "Submit product feedback",
        "tags": [
          "Feedback"
        ],
        "responses": {
          "201": {
            "description": "Submit product feedback.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/discover/views": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "listDiscoverViews",
        "summary": "List saved discover views",
        "tags": [
          "Views"
        ],
        "responses": {
          "200": {
            "description": "List saved discover views.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "createDiscoverView",
        "summary": "Create a saved discover view",
        "tags": [
          "Views"
        ],
        "responses": {
          "201": {
            "description": "Create a saved discover view.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/discover/views/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "getDiscoverView",
        "summary": "Get a saved discover view",
        "tags": [
          "Views"
        ],
        "responses": {
          "200": {
            "description": "Get a saved discover view.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "delete": {
        "operationId": "deleteDiscoverView",
        "summary": "Delete a saved discover view",
        "tags": [
          "Views"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/message-templates": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "listMessageTemplates",
        "summary": "List message templates",
        "tags": [
          "Templates"
        ],
        "responses": {
          "200": {
            "description": "List message templates.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "createMessageTemplate",
        "summary": "Create a message template",
        "description": "A `body` in plain text or HTML keeps its line breaks and paragraphs. It is stored as the editor's HTML (`<div>` and `<br>`), also when `message_format` is `text`, so a read after the write can differ from the submitted body.\n",
        "tags": [
          "Templates"
        ],
        "responses": {
          "201": {
            "description": "Create a message template.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/message-templates/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "getMessageTemplate",
        "summary": "Get a message template",
        "tags": [
          "Templates"
        ],
        "responses": {
          "200": {
            "description": "Get a message template.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "updateMessageTemplate",
        "summary": "Update a message template",
        "description": "A `body` in plain text or HTML keeps its line breaks and paragraphs. It is stored as the editor's HTML (`<div>` and `<br>`), also when `message_format` is `text`, so a read after the write can differ from the submitted body.\n",
        "tags": [
          "Templates"
        ],
        "responses": {
          "200": {
            "description": "Update a message template.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "replaceMessageTemplate",
        "summary": "Replace a message template",
        "description": "A `body` in plain text or HTML keeps its line breaks and paragraphs. It is stored as the editor's HTML (`<div>` and `<br>`), also when `message_format` is `text`, so a read after the write can differ from the submitted body.\n",
        "tags": [
          "Templates"
        ],
        "responses": {
          "200": {
            "description": "Replace a message template.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "delete": {
        "operationId": "deleteMessageTemplate",
        "summary": "Delete a message template",
        "tags": [
          "Templates"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/messages": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "listMessages",
        "summary": "List messages",
        "description": "Each message embeds the lead at its contact address. When that person has asked Hunter to delete their address, with a claim or a California DROP request, the address is left out: an outgoing message's `to` is null, and so are the lead's `email`, `confidence_score`, `verification.date` and `verification.status` (HUN-23599). The `message.*` webhooks leave it out the same way.",
        "tags": [
          "Messages"
        ],
        "responses": {
          "200": {
            "description": "List outgoing messages and incoming replies.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "createMessage",
        "summary": "Send a one-off message",
        "description": "The sender must be available for outreach to the authenticated user. On the Free plan, extra or SMTP accounts retained only for Inbox Protection cannot send one-off messages. Selecting one returns 422 with error ID email_account_not_found.",
        "tags": [
          "Messages"
        ],
        "responses": {
          "201": {
            "description": "Send a one-off message.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/webhooks": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "listWebhooks",
        "summary": "List webhooks",
        "tags": [
          "Webhooks"
        ],
        "responses": {
          "200": {
            "description": "List webhooks.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "createWebhook",
        "summary": "Create a webhook",
        "tags": [
          "Webhooks"
        ],
        "responses": {
          "201": {
            "description": "Create a webhook.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "delete": {
        "operationId": "deleteWebhooksCollection",
        "summary": "Delete webhooks by identifier (legacy)",
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "description": "Webhook identifier. The legacy collection delete takes it as a query or body param.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/webhooks/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "getWebhook",
        "summary": "Get a webhook",
        "tags": [
          "Webhooks"
        ],
        "responses": {
          "200": {
            "description": "Get a webhook.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "patch": {
        "operationId": "updateWebhook",
        "summary": "Update a webhook",
        "tags": [
          "Webhooks"
        ],
        "responses": {
          "200": {
            "description": "Update a webhook.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "replaceWebhook",
        "summary": "Replace a webhook",
        "tags": [
          "Webhooks"
        ],
        "responses": {
          "200": {
            "description": "Replace a webhook.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "delete": {
        "operationId": "deleteWebhook",
        "summary": "Delete a webhook",
        "tags": [
          "Webhooks"
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/api-keys": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        }
      ],
      "get": {
        "operationId": "listApiKeys",
        "summary": "List API keys",
        "tags": [
          "API Keys"
        ],
        "security": [
          {
            "apiKeyQuery": []
          },
          {
            "apiKeyHeader": []
          }
        ],
        "responses": {
          "200": {
            "description": "List API keys.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "post": {
        "operationId": "createApiKey",
        "summary": "Create an API key",
        "tags": [
          "API Keys"
        ],
        "security": [
          {
            "apiKeyQuery": []
          },
          {
            "apiKeyHeader": []
          }
        ],
        "responses": {
          "201": {
            "description": "Create an API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/api-keys/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApiKey"
        },
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "patch": {
        "operationId": "updateApiKey",
        "summary": "Update an API key",
        "tags": [
          "API Keys"
        ],
        "security": [
          {
            "apiKeyQuery": []
          },
          {
            "apiKeyHeader": []
          }
        ],
        "responses": {
          "200": {
            "description": "Update an API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "put": {
        "operationId": "replaceApiKey",
        "summary": "Replace an API key",
        "tags": [
          "API Keys"
        ],
        "security": [
          {
            "apiKeyQuery": []
          },
          {
            "apiKeyHeader": []
          }
        ],
        "responses": {
          "200": {
            "description": "Replace an API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/generic_resource_response"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      },
      "delete": {
        "operationId": "deleteApiKey",
        "summary": "Delete an API key",
        "tags": [
          "API Keys"
        ],
        "security": [
          {
            "apiKeyQuery": []
          },
          {
            "apiKeyHeader": []
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiKeyQuery": {
        "type": "apiKey",
        "in": "query",
        "name": "api_key"
      },
      "apiKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY"
      },
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "parameters": {
      "ApiKey": {
        "name": "api_key",
        "in": "query",
        "description": "Hunter API key. Prefer the X-API-KEY header outside browser links. Hunter deletes the keys of free accounts that have gone unused for a long time; the owner can create a new one on the API keys page.",
        "schema": {
          "type": "string"
        }
      },
      "Limit": {
        "name": "limit",
        "in": "query",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100,
          "default": 10
        }
      },
      "Offset": {
        "name": "offset",
        "in": "query",
        "schema": {
          "type": "integer",
          "minimum": 0,
          "default": 0
        }
      },
      "ClearbitFormat": {
        "name": "clearbit_format",
        "in": "query",
        "description": "When set to any non-empty value, return the Clearbit-compatible response shape.",
        "schema": {
          "type": "string",
          "example": "true"
        }
      }
    },
    "headers": {
      "CreditsUsed": {
        "description": "The amount that this request used, in the units of the `requests` object of the account information response. It depends on the endpoint and on the filters of the request. It is 0 when the request was free, for example a repeat of the same search in the same billing period.",
        "schema": {
          "type": "string",
          "pattern": "^[0-9]+(\\.[0-9]+)?$",
          "example": "0.5"
        }
      },
      "CreditsUnit": {
        "description": "The unit of `X-Credits-Used`. It is `credit` when the team has a single credits pool. Else it is `search` or `verification`: the quota that the request used.",
        "schema": {
          "type": "string",
          "enum": [
            "credit",
            "search",
            "verification"
          ]
        }
      }
    },
    "responses": {
      "Error": {
        "description": "The request could not be completed. A 429 with the error id `restricted_account` means the account is blocked, suspended or delinquent; further requests with the same API key are then rejected before reaching the API for up to 10 minutes, while the account and usage endpoints stay available. When the account must still pass its verification, the `details` of that error give the email address of the account and tell the user to log in to Hunter to verify it. A 403 with an error id of the form `no_<feature>_access`, for example `no_discover_access` or `no_lookalikes_access`, means that the plan does not include that feature. The API key is valid in this case. A 403 with the error id `free_credit_restricted` means that an entirely unpaid team's owner uses a disposable email provider. The owner must change and verify their email address to restore free-credit access. The existing API key, balances and usage remain unchanged. Exact requests already metered in the current request period remain available without another charge.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/error_response"
            }
          }
        }
      },
      "FreeCreditRestricted": {
        "description": "Free-credit work is refused when the disposable-domain policy is enabled and an entirely unpaid team's owner uses a disposable email provider. This applies to every member of the team. The owner must sign in to Hunter, change their email address to a provider that does not offer disposable addresses, and verify it. Members must ask their owner to do this. After verification, requests can use the same API key; balances, usage and billing periods are preserved. No credits are charged for a refused request. Exact requests already metered in the current request period remain available without another charge. Nonbillable in-app masked Domain Search remains available, and Multi-Domain Search reveal refuses only batches with a positive estimated cost.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/error_response"
            },
            "examples": {
              "teamMember": {
                "value": {
                  "errors": [
                    {
                      "id": "free_credit_restricted",
                      "code": 403,
                      "details": "To use free credits, ask your team owner to change and verify an email address from a provider that does not offer disposable addresses."
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "schemas": {
      "discover_organization_filter": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "domain": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "name": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "exclude": {
            "type": "object",
            "additionalProperties": false,
            "description": "Companies to leave out of the results, by domain or by name, up to 100 domains and 25 names. Every name must match a company, or the request returns a 400 `invalid_filter_values` error.",
            "properties": {
              "domain": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "name": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "discover_similar_to_filter": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "domain": {
            "type": "string"
          },
          "organization": {
            "type": "string"
          }
        }
      },
      "discover_location_filter_item": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "continent": {
            "type": "string"
          },
          "business_region": {
            "type": "string"
          },
          "country": {
            "type": "string",
            "minLength": 2,
            "maxLength": 2
          },
          "state": {
            "type": "string"
          },
          "county": {
            "type": "string",
            "description": "US county name, such as \"Cuyahoga County\". Requires country \"US\" and its state."
          },
          "city": {
            "type": "string"
          }
        }
      },
      "discover_location_filter_collection": {
        "oneOf": [
          {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/discover_location_filter_item"
            }
          },
          {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/discover_location_filter_item"
            }
          }
        ]
      },
      "discover_location_filter": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "include": {
            "$ref": "#/components/schemas/discover_location_filter_collection"
          },
          "exclude": {
            "$ref": "#/components/schemas/discover_location_filter_collection"
          }
        }
      },
      "discover_string_collection_filter": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "include": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "exclude": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "discover_year_founded_filter": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "include": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1000,
              "maximum": 9999
            }
          },
          "exclude": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1000,
              "maximum": 9999
            }
          },
          "from": {
            "type": "integer",
            "minimum": 1000,
            "maximum": 9999
          },
          "to": {
            "type": "integer",
            "minimum": 1000,
            "maximum": 9999
          }
        }
      },
      "discover_match_filter": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "match": {
            "type": "string",
            "enum": [
              "all",
              "any"
            ],
            "default": "all"
          },
          "include": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "exclude": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "discover_funding_filter": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "received": {
            "type": "boolean"
          },
          "series": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "pre_seed",
                "seed",
                "pre_series_a",
                "series_a",
                "pre_series_b",
                "series_b",
                "pre_series_c",
                "series_c+",
                "other"
              ]
            }
          },
          "amount": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "from",
              "to"
            ],
            "properties": {
              "from": {
                "type": "integer",
                "minimum": 0
              },
              "to": {
                "type": "integer",
                "minimum": 0
              }
            }
          },
          "date": {
            "type": "object",
            "description": "Inclusive calendar-date range in YYYY-MM-DD format. Either bound may be omitted to leave that side of the range open. Applied dates, including those resolved from a natural-language query, are returned in meta.filters.funding.date and can be reused for pagination.",
            "additionalProperties": false,
            "properties": {
              "from": {
                "type": "string",
                "format": "date"
              },
              "to": {
                "type": "string",
                "format": "date"
              }
            }
          }
        }
      },
      "discover_toggle_boolean": {
        "description": "Boolean accepted by Discover job-opening toggles. Only true/false and 1/0 (case-insensitive strings). Aliases such as on/yes/y/off/no are rejected with 400, matching Api::Discover::Validations#boolean_literal?.\n",
        "anyOf": [
          {
            "type": "boolean"
          },
          {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          {
            "type": "string",
            "pattern": "^(?:[Tt][Rr][Uu][Ee]|[Ff][Aa][Ll][Ss][Ee]|1|0)$"
          }
        ]
      },
      "discover_job_openings_filter": {
        "type": "object",
        "additionalProperties": false,
        "description": "Filter companies by LinkedIn job openings. Department values come from the jobs-index vocabulary (not a frozen enum). Unknown departments return 400.\n",
        "properties": {
          "hiring": {
            "allOf": [
              {
                "$ref": "#/components/schemas/discover_toggle_boolean"
              }
            ],
            "description": "When true, only companies currently hiring."
          },
          "include_closed_roles": {
            "allOf": [
              {
                "$ref": "#/components/schemas/discover_toggle_boolean"
              }
            ],
            "description": "When true, include closed roles in the openings match."
          },
          "department": {
            "type": "array",
            "maxItems": 100,
            "items": {
              "type": "string"
            }
          },
          "job_title": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "include": {
                "type": "array",
                "maxItems": 100,
                "items": {
                  "type": "string"
                }
              },
              "exclude": {
                "type": "array",
                "maxItems": 100,
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "posted_date": {
            "type": "string",
            "enum": [
              "last7d",
              "last30d",
              "last90d"
            ]
          },
          "open_roles": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "from": {
                "type": "integer",
                "minimum": 1
              },
              "to": {
                "type": "integer",
                "minimum": 1
              }
            }
          }
        }
      },
      "discover_request": {
        "type": "object",
        "description": "Use headquarters_location to include or exclude company locations. Country is required for state or city filters. States must be regions supported by Hunter's company location data. State codes are case-insensitive and surrounding whitespace is ignored. US states normalize to bare codes (CA); other regions normalize to country-prefixed ISO 3166-2 codes (FR-IDF). A bare code is accepted with its country (IDF with FR). The United Kingdom supports GB-ENG, GB-SCT, GB-WLS, and GB-NIR. Counties such as GB-WAR and GB-HRT return a validation error; use a city or choose a supported region. State is required for US cities and optional for other countries. US counties take the county name with country US and its state, such as Cuyahoga County with US and OH.",
        "additionalProperties": false,
        "properties": {
          "api_key": {
            "type": "string"
          },
          "query": {
            "type": "string",
            "maxLength": 2000
          },
          "organization": {
            "$ref": "#/components/schemas/discover_organization_filter"
          },
          "similar_to": {
            "$ref": "#/components/schemas/discover_similar_to_filter"
          },
          "headquarters_location": {
            "$ref": "#/components/schemas/discover_location_filter"
          },
          "industry": {
            "allOf": [
              {
                "$ref": "#/components/schemas/discover_string_collection_filter"
              }
            ],
            "description": "Industry names to include or exclude."
          },
          "headcount": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "1-10",
                "11-50",
                "51-200",
                "201-500",
                "501-1000",
                "1001-5000",
                "5001-10000",
                "10001+"
              ]
            }
          },
          "company_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/discover_string_collection_filter"
              }
            ],
            "description": "Hunter company types to include or exclude."
          },
          "year_founded": {
            "$ref": "#/components/schemas/discover_year_founded_filter"
          },
          "keywords": {
            "$ref": "#/components/schemas/discover_match_filter"
          },
          "technology": {
            "allOf": [
              {
                "$ref": "#/components/schemas/discover_match_filter"
              }
            ],
            "description": "Technology slugs to include or exclude."
          },
          "funding": {
            "$ref": "#/components/schemas/discover_funding_filter"
          },
          "job_openings": {
            "$ref": "#/components/schemas/discover_job_openings_filter"
          },
          "company_lists": {
            "type": "object",
            "additionalProperties": false,
            "description": "Company lists whose companies to leave out of the results. Takes the ids of your team's static company lists, up to 100. An id that is not one of them returns a 400 `invalid_filter_values` error.",
            "properties": {
              "exclude": {
                "type": "array",
                "maxItems": 100,
                "items": {
                  "type": "integer"
                }
              }
            }
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 100,
            "description": "Number of companies to return. Every plan can request up to 100 companies."
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000,
            "default": 0,
            "description": "Number of companies to skip. Only plans with Discover paging can set an offset above 0."
          }
        }
      },
      "standard_error_response": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "errors"
        ],
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "code",
                "details"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "code": {
                  "type": "integer"
                },
                "details": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "legacy_error_response": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "error"
        ],
        "properties": {
          "error": {}
        }
      },
      "error_response": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/standard_error_response"
          },
          {
            "$ref": "#/components/schemas/legacy_error_response"
          }
        ]
      },
      "nullable_string": {
        "type": "string",
        "nullable": true
      },
      "nullable_integer": {
        "type": "integer",
        "nullable": true
      },
      "discover_email_counts": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "personal",
          "generic",
          "total"
        ],
        "properties": {
          "personal": {
            "$ref": "#/components/schemas/nullable_integer"
          },
          "generic": {
            "$ref": "#/components/schemas/nullable_integer"
          },
          "total": {
            "$ref": "#/components/schemas/nullable_integer"
          }
        }
      },
      "discover_company": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "domain",
          "organization",
          "emails_count"
        ],
        "properties": {
          "domain": {
            "type": "string"
          },
          "organization": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "emails_count": {
            "$ref": "#/components/schemas/discover_email_counts"
          },
          "description": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "industry": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "technologies": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "state": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "state_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/nullable_string"
              }
            ],
            "description": "Name of the region in `state`, for example \"Île-de-France\" for \"FR-IDF\"."
          },
          "city": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "headcount": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "company_type": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "year_founded": {
            "$ref": "#/components/schemas/nullable_integer"
          },
          "keywords": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "already_saved": {
            "type": "boolean"
          },
          "socials": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "twitter",
              "facebook",
              "instagram",
              "youtube"
            ],
            "properties": {
              "twitter": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "facebook": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "instagram": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "youtube": {
                "$ref": "#/components/schemas/nullable_string"
              }
            }
          },
          "technology_details": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "slug",
                "name",
                "category",
                "category_label",
                "website"
              ],
              "properties": {
                "slug": {
                  "type": "string"
                },
                "name": {
                  "$ref": "#/components/schemas/nullable_string"
                },
                "category": {
                  "$ref": "#/components/schemas/nullable_string"
                },
                "category_label": {
                  "$ref": "#/components/schemas/nullable_string"
                },
                "website": {
                  "$ref": "#/components/schemas/nullable_string"
                }
              }
            }
          },
          "company_lists": {
            "type": "array",
            "description": "Your team's static company lists that hold this company, by name. Empty when the company is not saved.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "name"
              ],
              "properties": {
                "id": {
                  "type": "integer"
                },
                "name": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "discover_response": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "meta"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/discover_company"
            }
          },
          "meta": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "results",
              "limit",
              "offset",
              "params",
              "filters"
            ],
            "properties": {
              "results": {
                "type": "integer"
              },
              "limit": {
                "type": "integer"
              },
              "offset": {
                "type": "integer"
              },
              "params": {
                "type": "object",
                "additionalProperties": true
              },
              "filters": {
                "type": "object",
                "description": "Applied structured filters that can be reused for pagination. Funding date ranges resolved from natural-language queries are returned in funding.date as explicit, inclusive YYYY-MM-DD dates, preserving the date window when reused on a later day.",
                "additionalProperties": true
              },
              "permalink": {
                "$ref": "#/components/schemas/nullable_string"
              }
            }
          }
        }
      },
      "strict_boolean_filter": {
        "description": "A boolean filter. Query-string clients may use the documented case-insensitive aliases.",
        "anyOf": [
          {
            "type": "boolean"
          },
          {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          {
            "type": "string",
            "pattern": "^\\s*(?:[Tt][Rr][Uu][Ee]|[Tt]|1|[Oo][Nn]|[Yy][Ee][Ss]|[Yy]|[Ff][Aa][Ll][Ss][Ee]|[Ff]|0|[Oo][Ff][Ff]|[Nn][Oo]|[Nn])\\s*$"
          }
        ]
      },
      "source": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "domain",
          "uri",
          "extracted_on",
          "last_seen_on",
          "still_on_page"
        ],
        "properties": {
          "id": {
            "type": "integer"
          },
          "domain": {
            "type": "string"
          },
          "uri": {
            "type": "string",
            "format": "uri"
          },
          "extracted_on": {
            "type": "string",
            "format": "date"
          },
          "last_seen_on": {
            "type": "string",
            "format": "date"
          },
          "still_on_page": {
            "type": "boolean"
          }
        }
      },
      "verification_summary": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "date",
          "status"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/nullable_integer"
          },
          "date": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "status": {
            "$ref": "#/components/schemas/nullable_string"
          }
        }
      },
      "domain_search_email": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "value",
          "type",
          "source_type",
          "provenance",
          "confidence",
          "sources",
          "first_name",
          "last_name",
          "position",
          "position_raw",
          "seniority",
          "department",
          "decision_maker",
          "linkedin",
          "twitter",
          "phone_number",
          "verification"
        ],
        "properties": {
          "id": {
            "type": "integer"
          },
          "value": {
            "type": "string",
            "format": "email"
          },
          "type": {
            "type": "string",
            "enum": [
              "personal",
              "generic"
            ]
          },
          "source_type": {
            "type": "string",
            "deprecated": true,
            "description": "Deprecated: use `provenance`. \"found\" or \"generated\". Its values never change, so an address with provenance \"previously_found\" will return \"found\" here.",
            "enum": [
              "found",
              "generated"
            ]
          },
          "provenance": {
            "type": "string",
            "example": "found",
            "description": "Where the address came from. \"found\": the address was seen on a public web page. \"inferred\": it was worked out from the person's name and the company's email pattern. \"previously_found\" is coming: found on a page but not confirmed there in the last 90 days. More values may be added, so treat an unrecognized value as unknown rather than an error. Distinct from `type`, which is the role of the address."
          },
          "confidence": {
            "type": "integer"
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/source"
            }
          },
          "first_name": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "last_name": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "position": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "position_raw": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "seniority": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "department": {
            "type": "string",
            "nullable": true,
            "description": "Department value stored by Hunter's classifier, such as `finance & accounting`."
          },
          "decision_maker": {
            "type": "boolean"
          },
          "linkedin": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "twitter": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "phone_number": {
            "type": "string",
            "nullable": true,
            "description": "Null when Hunter holds no phone number for the person, or when the number is on the California DROP list."
          },
          "verification": {
            "$ref": "#/components/schemas/verification_summary"
          }
        }
      },
      "domain_search_response": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "meta"
        ],
        "properties": {
          "data": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "domain",
              "disposable",
              "webmail",
              "accept_all",
              "pattern",
              "organization",
              "linked_domains",
              "emails"
            ],
            "properties": {
              "domain": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "disposable": {
                "type": "boolean"
              },
              "webmail": {
                "type": "boolean"
              },
              "accept_all": {
                "type": "boolean"
              },
              "pattern": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "organization": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "linked_domains": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "emails": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/domain_search_email"
                }
              }
            }
          },
          "meta": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "results",
              "results_approximate",
              "limit",
              "offset",
              "params"
            ],
            "properties": {
              "results": {
                "type": "integer"
              },
              "results_approximate": {
                "type": "boolean"
              },
              "limit": {
                "type": "integer"
              },
              "offset": {
                "type": "integer"
              },
              "filters": {
                "type": "string",
                "description": "The type of filters that the request used.",
                "enum": [
                  "broad",
                  "precise"
                ]
              },
              "aggregations": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "departments",
                  "decision_makers",
                  "personal",
                  "generic"
                ],
                "properties": {
                  "departments": {
                    "type": "object",
                    "description": "Counts keyed by the department values stored by Hunter's classifier.",
                    "additionalProperties": {
                      "type": "integer"
                    }
                  },
                  "decision_makers": {
                    "type": "integer"
                  },
                  "personal": {
                    "type": "integer"
                  },
                  "generic": {
                    "type": "integer"
                  }
                }
              },
              "params": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "domain",
                  "company",
                  "type",
                  "seniority",
                  "department",
                  "decision_maker"
                ],
                "properties": {
                  "domain": {
                    "$ref": "#/components/schemas/nullable_string"
                  },
                  "company": {
                    "$ref": "#/components/schemas/nullable_string"
                  },
                  "type": {
                    "$ref": "#/components/schemas/nullable_string"
                  },
                  "seniority": {
                    "$ref": "#/components/schemas/nullable_string"
                  },
                  "department": {
                    "$ref": "#/components/schemas/nullable_string"
                  },
                  "decision_maker": {
                    "oneOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "$ref": "#/components/schemas/nullable_string"
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      },
      "location_filter_item": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "continent": {
            "type": "string"
          },
          "business_region": {
            "type": "string"
          },
          "country": {
            "type": "string",
            "minLength": 2,
            "maxLength": 2
          },
          "state": {
            "type": "string"
          },
          "city": {
            "type": "string"
          }
        }
      },
      "location_filter_collection": {
        "oneOf": [
          {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/location_filter_item"
            }
          },
          {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/location_filter_item"
            }
          }
        ]
      },
      "location_filter": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "include": {
            "$ref": "#/components/schemas/location_filter_collection"
          },
          "exclude": {
            "$ref": "#/components/schemas/location_filter_collection"
          }
        }
      },
      "domain_search_request": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "api_key": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "company": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "personal",
              "generic"
            ]
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 10
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "default": 0
          },
          "department": {
            "type": "string",
            "description": "Comma-separated department values from Hunter's live position taxonomy (not a frozen enum). `~` matches people with no department. Unknown values are ignored; a list with no remaining valid values returns 400 (`invalid_department`).\n",
            "example": "sales,marketing"
          },
          "source_type": {
            "type": "string",
            "deprecated": true,
            "description": "Deprecated, use `provenance`. \"generated\" is the old name for \"inferred\".",
            "enum": [
              "found",
              "generated"
            ]
          },
          "provenance": {
            "type": "string",
            "description": "Keep only addresses with this provenance: found, inferred. Replaces `source_type`; when both are sent they must agree, otherwise the request returns 400 (`invalid_provenance`).",
            "enum": [
              "found",
              "inferred"
            ]
          },
          "job_titles": {
            "type": "string"
          },
          "seniority": {
            "type": "string",
            "description": "Comma-separated seniority values from Hunter's live position taxonomy (not a frozen enum). Unknown values are ignored; a list with no remaining valid values returns 400 (`invalid_seniority`).\n",
            "example": "senior,executive"
          },
          "decision_maker": {
            "$ref": "#/components/schemas/strict_boolean_filter"
          },
          "required_field": {
            "type": "string"
          },
          "verification_status": {
            "type": "string"
          },
          "aggregations": {
            "type": "boolean"
          },
          "saved_leads": {
            "type": "boolean"
          },
          "location": {
            "$ref": "#/components/schemas/location_filter"
          }
        }
      },
      "domain_search_found_response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/domain_search_response"
          },
          {
            "type": "object",
            "additionalProperties": true,
            "properties": {
              "data": {
                "type": "object",
                "additionalProperties": true,
                "properties": {
                  "pattern": {
                    "type": "string",
                    "nullable": true,
                    "enum": [
                      null
                    ],
                    "description": "Always null. This endpoint does not expose the domain's email pattern."
                  },
                  "emails": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": true,
                      "properties": {
                        "source_type": {
                          "type": "string",
                          "enum": [
                            "found"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        ]
      },
      "domain_search_found_request": {
        "type": "object",
        "additionalProperties": false,
        "description": "At least one of `domain` or `company` is required.",
        "properties": {
          "api_key": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "company": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "personal",
              "generic"
            ]
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 10
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "default": 0
          },
          "department": {
            "type": "string",
            "description": "Comma-separated department values from Hunter's live position taxonomy (not a frozen enum). `~` matches people with no department. Unknown values are ignored; a list with no remaining valid values returns 400 (`invalid_department`).\n",
            "example": "sales,marketing"
          },
          "source_type": {
            "type": "string",
            "description": "Accepted and ignored. This endpoint returns found addresses only."
          },
          "provenance": {
            "type": "string",
            "description": "Accepted and ignored. This endpoint returns found addresses only."
          },
          "job_titles": {
            "type": "string"
          },
          "seniority": {
            "type": "string",
            "description": "Comma-separated seniority values from Hunter's live position taxonomy (not a frozen enum). Unknown values are ignored; a list with no remaining valid values returns 400 (`invalid_seniority`).\n",
            "example": "senior,executive"
          },
          "decision_maker": {
            "$ref": "#/components/schemas/strict_boolean_filter"
          },
          "required_field": {
            "type": "string"
          },
          "verification_status": {
            "type": "string"
          },
          "aggregations": {
            "type": "boolean"
          },
          "saved_leads": {
            "type": "boolean"
          },
          "location": {
            "$ref": "#/components/schemas/location_filter"
          }
        }
      },
      "nullable_boolean": {
        "type": "boolean",
        "nullable": true
      },
      "email_finder_response": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "meta"
        ],
        "properties": {
          "data": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "first_name",
              "last_name",
              "email",
              "score",
              "domain",
              "accept_all",
              "position",
              "twitter",
              "linkedin_url",
              "phone_number",
              "company",
              "source_type",
              "provenance",
              "sources",
              "verification"
            ],
            "properties": {
              "first_name": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "last_name": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "email": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "score": {
                "$ref": "#/components/schemas/nullable_integer"
              },
              "domain": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "accept_all": {
                "$ref": "#/components/schemas/nullable_boolean"
              },
              "position": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "twitter": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "linkedin_url": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "phone_number": {
                "type": "string",
                "nullable": true,
                "description": "Null when Hunter holds no phone number for the person, or when the number is on the California DROP list."
              },
              "company": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "source_type": {
                "type": "string",
                "nullable": true,
                "deprecated": true,
                "description": "Deprecated: use `provenance`. \"found\" or \"generated\". Its values never change, so an address with provenance \"previously_found\" will return \"found\" here."
              },
              "provenance": {
                "type": "string",
                "nullable": true,
                "example": "found",
                "description": "Where the address came from. \"found\": the address was seen on a public web page. \"inferred\": it was worked out from the person's name and the company's email pattern. \"previously_found\" is coming: found on a page but not confirmed there in the last 90 days. More values may be added, so treat an unrecognized value as unknown rather than an error. Null when no address was found."
              },
              "sources": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/source"
                }
              },
              "verification": {
                "$ref": "#/components/schemas/verification_summary"
              }
            }
          },
          "meta": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "params"
            ],
            "properties": {
              "params": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "first_name",
                  "last_name",
                  "full_name",
                  "domain",
                  "company",
                  "linkedin_handle",
                  "max_duration"
                ],
                "properties": {
                  "first_name": {
                    "$ref": "#/components/schemas/nullable_string"
                  },
                  "last_name": {
                    "$ref": "#/components/schemas/nullable_string"
                  },
                  "full_name": {
                    "$ref": "#/components/schemas/nullable_string"
                  },
                  "domain": {
                    "$ref": "#/components/schemas/nullable_string"
                  },
                  "company": {
                    "$ref": "#/components/schemas/nullable_string"
                  },
                  "linkedin_handle": {
                    "$ref": "#/components/schemas/nullable_string"
                  },
                  "max_duration": {
                    "$ref": "#/components/schemas/nullable_string"
                  }
                }
              }
            }
          }
        }
      },
      "email_verifier_response": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "meta"
        ],
        "properties": {
          "data": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "status",
              "score",
              "email",
              "regexp",
              "gibberish",
              "disposable",
              "webmail",
              "mx_records",
              "smtp_server",
              "smtp_check",
              "accept_all",
              "block",
              "verification",
              "sources",
              "result",
              "_deprecation_notice"
            ],
            "properties": {
              "status": {
                "type": "string"
              },
              "score": {
                "type": "integer"
              },
              "email": {
                "type": "string",
                "format": "email"
              },
              "regexp": {
                "type": "boolean"
              },
              "gibberish": {
                "type": "boolean"
              },
              "disposable": {
                "type": "boolean"
              },
              "webmail": {
                "type": "boolean"
              },
              "mx_records": {
                "type": "boolean"
              },
              "smtp_server": {
                "type": "boolean"
              },
              "smtp_check": {
                "type": "boolean"
              },
              "accept_all": {
                "type": "boolean"
              },
              "block": {
                "type": "boolean"
              },
              "verification": {
                "$ref": "#/components/schemas/verification_summary"
              },
              "sources": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/source"
                }
              },
              "result": {
                "type": "string"
              },
              "_deprecation_notice": {
                "type": "string"
              }
            }
          },
          "meta": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "params"
            ],
            "properties": {
              "domain": {
                "type": "string"
              },
              "company_name": {
                "type": "string"
              },
              "following_domain": {
                "type": "boolean"
              },
              "webmail": {
                "type": "boolean"
              },
              "params": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "email"
                ],
                "properties": {
                  "email": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      },
      "pending_envelope": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "meta"
        ],
        "properties": {
          "data": {
            "type": "object",
            "additionalProperties": false
          },
          "meta": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "params",
              "message"
            ],
            "properties": {
              "params": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "email"
                ],
                "properties": {
                  "email": {
                    "type": "string"
                  }
                }
              },
              "message": {
                "type": "string"
              }
            }
          }
        }
      },
      "email_count_response": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "meta"
        ],
        "properties": {
          "data": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "total",
              "personal_emails",
              "generic_emails",
              "department",
              "seniority"
            ],
            "properties": {
              "total": {
                "type": "integer"
              },
              "personal_emails": {
                "type": "integer"
              },
              "generic_emails": {
                "type": "integer"
              },
              "department": {
                "type": "object",
                "description": "Counts keyed by the department values stored by Hunter's classifier. Only email addresses with a known department are counted, so the sum can be less than total.",
                "additionalProperties": {
                  "type": "integer"
                }
              },
              "seniority": {
                "type": "object",
                "description": "Counts keyed by seniority. Only email addresses with a known seniority are counted, so the sum can be less than total.",
                "additionalProperties": {
                  "type": "integer"
                }
              },
              "job_titles": {
                "type": "object",
                "additionalProperties": {
                  "type": "integer"
                }
              }
            }
          },
          "meta": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "params"
            ],
            "properties": {
              "params": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "domain",
                  "company",
                  "type"
                ],
                "properties": {
                  "domain": {
                    "$ref": "#/components/schemas/nullable_string"
                  },
                  "company": {
                    "$ref": "#/components/schemas/nullable_string"
                  },
                  "type": {
                    "$ref": "#/components/schemas/nullable_string"
                  }
                }
              }
            }
          }
        }
      },
      "social_handle": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "handle"
        ],
        "properties": {
          "handle": {
            "$ref": "#/components/schemas/nullable_string"
          }
        }
      },
      "person": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "name",
          "email",
          "location",
          "timeZone",
          "utcOffset",
          "geo",
          "bio",
          "site",
          "avatar",
          "employment",
          "facebook",
          "github",
          "twitter",
          "linkedin",
          "googleplus",
          "gravatar",
          "fuzzy",
          "emailProvider",
          "indexedAt",
          "phone",
          "activeAt",
          "inactiveAt"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "fullName",
              "givenName",
              "familyName"
            ],
            "properties": {
              "fullName": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "givenName": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "familyName": {
                "$ref": "#/components/schemas/nullable_string"
              }
            }
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "location": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "timeZone": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "utcOffset": {
            "$ref": "#/components/schemas/nullable_integer"
          },
          "geo": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "city",
              "state",
              "stateCode",
              "country",
              "countryCode",
              "lat",
              "lng"
            ],
            "properties": {
              "city": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "state": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "stateCode": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "country": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "countryCode": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "lat": {
                "type": "number",
                "nullable": true
              },
              "lng": {
                "type": "number",
                "nullable": true
              }
            }
          },
          "bio": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "site": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "avatar": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "employment": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "domain",
              "name",
              "title",
              "role",
              "subRole",
              "seniority"
            ],
            "properties": {
              "domain": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "name": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "title": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "role": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "subRole": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "seniority": {
                "$ref": "#/components/schemas/nullable_string"
              }
            }
          },
          "facebook": {
            "$ref": "#/components/schemas/social_handle"
          },
          "github": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "handle",
              "id",
              "avatar",
              "company",
              "blog",
              "followers",
              "following"
            ],
            "properties": {
              "handle": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "id": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "avatar": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "company": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "blog": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "followers": {
                "$ref": "#/components/schemas/nullable_integer"
              },
              "following": {
                "$ref": "#/components/schemas/nullable_integer"
              }
            }
          },
          "twitter": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "handle",
              "id",
              "bio",
              "followers",
              "following",
              "statuses",
              "favorites",
              "location",
              "site",
              "avatar"
            ],
            "properties": {
              "handle": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "id": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "bio": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "followers": {
                "$ref": "#/components/schemas/nullable_integer"
              },
              "following": {
                "$ref": "#/components/schemas/nullable_integer"
              },
              "statuses": {
                "$ref": "#/components/schemas/nullable_integer"
              },
              "favorites": {
                "$ref": "#/components/schemas/nullable_integer"
              },
              "location": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "site": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "avatar": {
                "$ref": "#/components/schemas/nullable_string"
              }
            }
          },
          "linkedin": {
            "$ref": "#/components/schemas/social_handle"
          },
          "googleplus": {
            "$ref": "#/components/schemas/social_handle"
          },
          "gravatar": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "handle",
              "urls",
              "avatar",
              "avatars"
            ],
            "properties": {
              "handle": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "urls": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "avatar": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "avatars": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "fuzzy": {
            "type": "boolean"
          },
          "emailProvider": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "indexedAt": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "phone": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "activeAt": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "inactiveAt": {
            "$ref": "#/components/schemas/nullable_string"
          }
        }
      },
      "person_enrichment_response": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "meta"
        ],
        "properties": {
          "data": {
            "$ref": "#/components/schemas/person"
          },
          "meta": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "email"
            ],
            "properties": {
              "email": {
                "type": "string",
                "format": "email"
              }
            }
          }
        }
      },
      "company_facebook": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "handle",
          "likes"
        ],
        "properties": {
          "handle": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "likes": {
            "$ref": "#/components/schemas/nullable_integer"
          }
        }
      },
      "company": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "name",
          "legalName",
          "domain",
          "domainAliases",
          "site",
          "category",
          "tags",
          "description",
          "foundedYear",
          "location",
          "timeZone",
          "utcOffset",
          "geo",
          "logo",
          "facebook",
          "linkedin",
          "twitter",
          "crunchbase",
          "youtube",
          "instagram",
          "emailProvider",
          "type",
          "companyType",
          "ticker",
          "identifiers",
          "phone",
          "metrics",
          "indexedAt",
          "tech",
          "techCategories",
          "fundingRounds",
          "parent",
          "ultimateParent"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "legalName": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "domain": {
            "type": "string"
          },
          "domainAliases": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "site": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "phoneNumbers",
              "emailAddresses"
            ],
            "properties": {
              "phoneNumbers": {
                "type": "array",
                "description": "Claimed numbers are omitted. Empty when phone screening is unavailable.",
                "items": {
                  "type": "string"
                }
              },
              "emailAddresses": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "email"
                }
              }
            }
          },
          "category": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "sector",
              "industryGroup",
              "industry",
              "subIndustry",
              "gicsCode",
              "sicCode",
              "sic4Codes",
              "naicsCode",
              "naics6Codes",
              "naics6Codes2022"
            ],
            "properties": {
              "sector": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "industryGroup": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "industry": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "subIndustry": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "gicsCode": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "sicCode": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "sic4Codes": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "naicsCode": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "naics6Codes": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "naics6Codes2022": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "tags": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "description": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "foundedYear": {
            "$ref": "#/components/schemas/nullable_integer"
          },
          "location": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "timeZone": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "utcOffset": {
            "$ref": "#/components/schemas/nullable_integer"
          },
          "geo": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "streetNumber",
              "streetName",
              "subPremise",
              "streetAddress",
              "city",
              "postalCode",
              "state",
              "stateCode",
              "country",
              "countryCode",
              "lat",
              "lng"
            ],
            "properties": {
              "streetNumber": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "streetName": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "subPremise": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "streetAddress": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "city": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "postalCode": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "state": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "stateCode": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "country": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "countryCode": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "lat": {
                "type": "number",
                "nullable": true
              },
              "lng": {
                "type": "number",
                "nullable": true
              }
            }
          },
          "logo": {
            "type": "string",
            "format": "uri"
          },
          "facebook": {
            "$ref": "#/components/schemas/company_facebook"
          },
          "linkedin": {
            "$ref": "#/components/schemas/social_handle"
          },
          "twitter": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "handle",
              "id",
              "bio",
              "followers",
              "following",
              "location",
              "site",
              "avatar"
            ],
            "properties": {
              "handle": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "id": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "bio": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "followers": {
                "$ref": "#/components/schemas/nullable_integer"
              },
              "following": {
                "$ref": "#/components/schemas/nullable_integer"
              },
              "location": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "site": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "avatar": {
                "$ref": "#/components/schemas/nullable_string"
              }
            }
          },
          "crunchbase": {
            "$ref": "#/components/schemas/social_handle"
          },
          "youtube": {
            "$ref": "#/components/schemas/social_handle"
          },
          "instagram": {
            "$ref": "#/components/schemas/social_handle"
          },
          "emailsCount": {
            "$ref": "#/components/schemas/discover_email_counts"
          },
          "emailProvider": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "type": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "companyType": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "ticker": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "identifiers": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "usEIN"
            ],
            "properties": {
              "usEIN": {
                "$ref": "#/components/schemas/nullable_string"
              }
            }
          },
          "phone": {
            "type": "string",
            "nullable": true,
            "description": "Null when claimed for removal or when phone screening is unavailable."
          },
          "metrics": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "alexaUsRank",
              "alexaGlobalRank",
              "trafficRank",
              "employees",
              "employeesCount",
              "marketCap",
              "raised",
              "annualRevenue",
              "estimatedAnnualRevenue",
              "fiscalYearEnd"
            ],
            "properties": {
              "alexaUsRank": {
                "$ref": "#/components/schemas/nullable_integer"
              },
              "alexaGlobalRank": {
                "$ref": "#/components/schemas/nullable_integer"
              },
              "trafficRank": {
                "$ref": "#/components/schemas/nullable_integer"
              },
              "employees": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "employeesCount": {
                "$ref": "#/components/schemas/nullable_integer"
              },
              "marketCap": {
                "$ref": "#/components/schemas/nullable_integer"
              },
              "raised": {
                "type": "number",
                "nullable": true
              },
              "annualRevenue": {
                "$ref": "#/components/schemas/nullable_integer"
              },
              "estimatedAnnualRevenue": {
                "$ref": "#/components/schemas/nullable_integer"
              },
              "fiscalYearEnd": {
                "$ref": "#/components/schemas/nullable_string"
              }
            }
          },
          "indexedAt": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "tech": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "techCategories": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "fundingRounds": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "date",
                "type",
                "amount",
                "investors"
              ],
              "properties": {
                "date": {
                  "type": "string",
                  "format": "date"
                },
                "type": {
                  "$ref": "#/components/schemas/nullable_string"
                },
                "amount": {
                  "type": "string"
                },
                "investors": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "alreadySaved": {
            "type": "boolean"
          },
          "parent": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "domain"
            ],
            "properties": {
              "domain": {
                "$ref": "#/components/schemas/nullable_string"
              }
            }
          },
          "ultimateParent": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "domain"
            ],
            "properties": {
              "domain": {
                "$ref": "#/components/schemas/nullable_string"
              }
            }
          }
        }
      },
      "company_enrichment_response": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "meta"
        ],
        "properties": {
          "data": {
            "$ref": "#/components/schemas/company"
          },
          "meta": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "domain"
            ],
            "properties": {
              "domain": {
                "type": "string"
              }
            }
          }
        }
      },
      "combined_enrichment_response": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "meta"
        ],
        "properties": {
          "data": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "person",
              "company"
            ],
            "properties": {
              "person": {
                "$ref": "#/components/schemas/person"
              },
              "company": {
                "$ref": "#/components/schemas/company"
              }
            }
          },
          "meta": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "email"
            ],
            "properties": {
              "email": {
                "type": "string",
                "format": "email"
              }
            }
          }
        }
      },
      "combined_clearbit_response": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "person",
          "company"
        ],
        "properties": {
          "person": {
            "$ref": "#/components/schemas/person"
          },
          "company": {
            "$ref": "#/components/schemas/company"
          }
        }
      },
      "usage_bucket": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "used",
          "available",
          "remaining"
        ],
        "properties": {
          "used": {
            "type": "number"
          },
          "available": {
            "type": "number"
          },
          "remaining": {
            "type": "number"
          },
          "over_quota": {
            "type": "number"
          },
          "credit_cost": {
            "type": "number",
            "description": "Only on `searches` and `verifications` when the team has a single credits pool: the credits one request of this type costs (1 for a search, 0.5 for a verification)."
          },
          "derived_from": {
            "type": "string",
            "enum": [
              "credits"
            ],
            "description": "Only on `searches` and `verifications` when the team has a single credits pool: this bucket is the `credits` pool counted in requests of this type, not a separate quota."
          }
        }
      },
      "account_response": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "first_name",
              "last_name",
              "email",
              "plan_name",
              "plan_level",
              "reset_date",
              "team_id",
              "requests",
              "calls"
            ],
            "properties": {
              "first_name": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "last_name": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "email": {
                "type": "string",
                "format": "email"
              },
              "plan_name": {
                "type": "string"
              },
              "plan_level": {
                "type": "integer"
              },
              "reset_date": {
                "type": "string",
                "format": "date"
              },
              "team_id": {
                "type": "integer"
              },
              "requests": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "searches",
                  "verifications"
                ],
                "properties": {
                  "credits": {
                    "$ref": "#/components/schemas/usage_bucket"
                  },
                  "searches": {
                    "$ref": "#/components/schemas/usage_bucket"
                  },
                  "verifications": {
                    "$ref": "#/components/schemas/usage_bucket"
                  }
                }
              },
              "calls": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "_deprecation_notice",
                  "used",
                  "available"
                ],
                "properties": {
                  "_deprecation_notice": {
                    "type": "string"
                  },
                  "used": {
                    "type": "number"
                  },
                  "available": {
                    "type": "number"
                  }
                }
              }
            }
          }
        }
      },
      "generic_resource_response": {
        "type": "object",
        "additionalProperties": true,
        "description": "Generic envelope for V2 resource operations whose detailed schema is not yet in the contract."
      },
      "email_account_response": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "email",
              "first_name",
              "last_name",
              "sending_status",
              "daily_limit",
              "provider",
              "sender_name",
              "default_account",
              "signature",
              "profile_picture_url",
              "custom_tracking_domain",
              "sending_schedule",
              "warmup"
            ],
            "properties": {
              "id": {
                "type": "integer"
              },
              "email": {
                "type": "string",
                "nullable": true,
                "description": "The address messages are sent from."
              },
              "first_name": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "last_name": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "sending_status": {
                "type": "string",
                "enum": [
                  "active",
                  "paused",
                  "warming"
                ],
                "description": "`warming` while inbox protection or a progressive-sending ramp-up runs, even if the account is disconnected. Otherwise `active` when connected, and `paused` when disconnected or backing off after transient sending errors."
              },
              "daily_limit": {
                "type": "integer",
                "description": "Maximum number of messages sent from this account per day."
              },
              "provider": {
                "type": "string",
                "enum": [
                  "gmail",
                  "outlook",
                  "smtp_imap"
                ]
              },
              "sender_name": {
                "type": "string",
                "nullable": true,
                "description": "Display name used in the From header. May be `null` for Outlook accounts, whose sender name lives in the Microsoft profile."
              },
              "default_account": {
                "type": "boolean",
                "nullable": true,
                "description": "Whether this is its owner's default sending account. Per user, so on a team several accounts can each be the default for their own owner."
              },
              "signature": {
                "type": "string",
                "nullable": true,
                "description": "The account's signature as sanitized HTML, or `null` when none is set."
              },
              "profile_picture_url": {
                "type": "string",
                "nullable": true,
                "description": "The account owner's avatar."
              },
              "custom_tracking_domain": {
                "type": "string",
                "nullable": true,
                "description": "Hostname the team's tracking links, open-tracking pixels, and unsubscribe links use, for example `track.example.com`. `null` when the team has no custom tracking domain, the domain is not verified or its SSL is not ready yet, or the team's plan does not include custom tracking domains. Hunter's shared tracking domain is used in all those cases."
              },
              "sending_schedule": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "days",
                  "start_time",
                  "end_time",
                  "time_zone"
                ],
                "description": "The default send windows a new sequence created by the requesting user would use. A sequence can override these.",
                "properties": {
                  "days": {
                    "type": "array",
                    "nullable": true,
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    },
                    "description": "Sending days, 0 = Monday to 6 = Sunday."
                  },
                  "start_time": {
                    "type": "string",
                    "nullable": true,
                    "pattern": "^\\d{2}:\\d{2}$",
                    "description": "Start of the sending window, `HH:MM` in `time_zone`."
                  },
                  "end_time": {
                    "type": "string",
                    "nullable": true,
                    "pattern": "^\\d{2}:\\d{2}$",
                    "description": "End of the sending window, `HH:MM` in `time_zone`."
                  },
                  "time_zone": {
                    "type": "string",
                    "description": "IANA or Rails time zone name, for example `Europe/Paris`."
                  }
                }
              },
              "warmup": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "enabled",
                  "status",
                  "end_date"
                ],
                "description": "Inbox protection summary.",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "description": "Whether inbox protection is currently protecting the account."
                  },
                  "status": {
                    "type": "string",
                    "nullable": true,
                    "enum": [
                      "pending_oauth",
                      "in_progress",
                      "finished",
                      "paused",
                      "active",
                      null
                    ],
                    "description": "`null` when inbox protection was never set up for the account."
                  },
                  "end_date": {
                    "type": "string",
                    "format": "date",
                    "nullable": true
                  }
                }
              }
            }
          }
        }
      },
      "follow_up_create_request": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "api_key": {
            "type": "string"
          },
          "step": {
            "type": "integer",
            "minimum": 0,
            "description": "Step to create. Optional for a new step (the next step is used). Required with `variant`, where it names the existing step that gets a Variant B.\n"
          },
          "variant": {
            "type": "string",
            "enum": [
              "B"
            ],
            "description": "Set to `B` to add Variant B to an existing `step`, which turns A/B testing on for the sequence. Omitted fields are copied from the step's Variant A. A Variant B whose subject and body both match Variant A is refused.\n"
          },
          "wait_days": {
            "type": "integer",
            "minimum": 0
          },
          "subject": {
            "type": "string"
          },
          "body": {
            "type": "string",
            "description": "Plain text or HTML. Line breaks and blank lines in plain text, and `<p>` paragraphs in HTML, are kept. The body is stored as the editor's HTML (`<div>` and `<br>`), also when `message_format` is `text`.\n"
          },
          "message_format": {
            "type": "string"
          },
          "message_template_id": {
            "description": "ID of a message template whose subject, body, and format fill omitted fields."
          }
        }
      },
      "sequence_test_request": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "email"
        ],
        "properties": {
          "api_key": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "The address the test messages are sent to."
          }
        }
      },
      "domain_finder_request": {
        "type": "object",
        "additionalProperties": true,
        "required": [
          "company"
        ],
        "properties": {
          "company": {
            "type": "string",
            "description": "Company name to resolve to a domain."
          },
          "limit": {
            "type": "integer",
            "description": "Maximum suggestions to return."
          },
          "perfect_match": {
            "type": "boolean",
            "description": "Only return an exact company-name match."
          }
        }
      },
      "multi_domain_search_request": {
        "type": "object",
        "additionalProperties": false,
        "description": "Filter set for the multi-domain search. Multi-value filters accept a comma-separated string (the v2 convention). At least one filter is required.",
        "properties": {
          "api_key": {
            "type": "string"
          },
          "domain": {
            "type": "string",
            "description": "Comma-separated domain names, 25 at most. A URL is cleaned to its domain. Hidden and unknown domains are dropped. With two or more remaining domains, the page spreads its rows across them (up to limit divided by the number of domains for each, never more than limit in total) and returns no next_search_after cursor.",
            "example": "stripe.com,cloudflare.com"
          },
          "company_name": {
            "type": "string",
            "description": "Comma-separated company names.",
            "example": "Stripe,Acme"
          },
          "location": {
            "type": "string",
            "description": "Comma-separated ISO 3166-1 alpha-2 country codes.",
            "example": "US,FR"
          },
          "industry": {
            "type": "string",
            "description": "Comma-separated integer industry codes.",
            "example": "4,25"
          },
          "headcount": {
            "type": "string",
            "description": "Comma-separated company-size buckets (e.g. 11-50, 51-200).",
            "example": "11-50,51-200"
          },
          "company_type": {
            "type": "string",
            "description": "Comma-separated Hunter company types.",
            "example": "educational,government agency"
          },
          "founded_year": {
            "type": "string",
            "description": "Comma-separated founding years.",
            "example": "2015,2016"
          },
          "technology": {
            "type": "string",
            "description": "Comma-separated technology slugs.",
            "example": "rails,stripe"
          },
          "department": {
            "type": "string",
            "description": "Comma-separated departments (e.g. executive, sales, finance). Each value also matches the other names Hunter stores for that department, such as \"finance & accounting\" for finance.",
            "example": "executive,marketing"
          },
          "seniority": {
            "type": "string",
            "description": "Comma-separated seniority levels: junior, senior, executive.",
            "example": "senior,executive"
          },
          "type": {
            "type": "string",
            "description": "Comma-separated email types: personal, generic.",
            "example": "personal"
          },
          "provenance": {
            "type": "string",
            "description": "Comma-separated provenance values: found, inferred.",
            "example": "found"
          },
          "job_title": {
            "type": "string",
            "description": "Comma-separated free-text job titles. A person matches when their position matches any of the titles. Independent of department and seniority. Common abbreviations match their spelled-out forms, also inside a longer title: `VP Sales` also matches \"Vice President of Sales\", and `CTO` matches \"Chief Technology Officer\". This covers CEO, CTO, CFO, COO, CMO, CIO, CISO, CHRO, VP, SVP, EVP, HR, SDR, BDR, AE, Sr, Jr, and Cofounder.",
            "example": "VP of Sales,Head of Growth"
          },
          "decision_maker": {
            "allOf": [
              {
                "$ref": "#/components/schemas/strict_boolean_filter"
              }
            ],
            "description": "When true, keep only decision-makers."
          },
          "verification_status": {
            "type": "string",
            "description": "Comma-separated verification statuses: valid, accept_all, unknown.",
            "example": "valid,accept_all"
          },
          "required_field": {
            "type": "string",
            "description": "Comma-separated fields that every returned person must have (AND): full_name, position, phone_number.",
            "example": "full_name,position"
          },
          "min_confidence": {
            "type": "integer",
            "minimum": 2,
            "maximum": 100,
            "description": "Minimum email confidence score.",
            "example": 80
          },
          "exclude_already_saved": {
            "allOf": [
              {
                "$ref": "#/components/schemas/strict_boolean_filter"
              }
            ],
            "description": "When true, omit people already saved as leads in your account. This refines a search but does not satisfy the at-least-one-filter requirement on its own."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 100,
            "description": "Number of rows to return per page."
          },
          "search_after": {
            "type": "string",
            "description": "Opaque pagination cursor from meta.next_search_after. Omit for the first page."
          },
          "per_domain": {
            "allOf": [
              {
                "$ref": "#/components/schemas/strict_boolean_filter"
              }
            ],
            "description": "When true, include a per-domain result breakdown in meta."
          }
        }
      },
      "multi_domain_search_email": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "name",
          "position",
          "department",
          "seniority",
          "type",
          "decision_maker",
          "domain",
          "company_name",
          "full_name_exists",
          "phone_number_exists",
          "linkedin_exists",
          "verification",
          "reveal_handle"
        ],
        "properties": {
          "name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/nullable_string"
              }
            ],
            "description": "Masked display name — first name plus last initial (e.g. \"Ada L.\"). Null when either name part is missing. The full last name is only returned by the reveal endpoint."
          },
          "position": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "department": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "seniority": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "type": {
            "type": "string",
            "enum": [
              "personal",
              "generic"
            ]
          },
          "provenance": {
            "type": "string",
            "nullable": true,
            "example": "found",
            "description": "Where the address came from. \"found\": the address was seen on a public web page. \"inferred\": it was worked out from the person's name and the company's email pattern. \"previously_found\" is coming: found on a page but not confirmed there in the last 90 days. More values may be added, so treat an unrecognized value as unknown rather than an error. Distinct from `type`, which is the role of the address. Null when no provenance is recorded for the address."
          },
          "decision_maker": {
            "type": "boolean"
          },
          "domain": {
            "type": "string",
            "example": "example.com"
          },
          "company_name": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "full_name_exists": {
            "type": "boolean"
          },
          "phone_number_exists": {
            "type": "boolean"
          },
          "linkedin_exists": {
            "type": "boolean"
          },
          "verification": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "date",
              "status"
            ],
            "properties": {
              "date": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "status": {
                "$ref": "#/components/schemas/nullable_string"
              }
            }
          },
          "already_revealed": {
            "type": "boolean",
            "description": "True when your team has already revealed this email, so revealing it again charges no credits. Returned only to the Hunter browser extension."
          },
          "reveal_handle": {
            "type": "string",
            "description": "Opaque, signed handle identifying this row for the reveal endpoint. Never the raw email id.",
            "example": "aAKWnmY9z-P8kCj6sBQjZ8yiYnNSMKb0"
          }
        }
      },
      "multi_domain_search_response": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "meta"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/multi_domain_search_email"
            }
          },
          "meta": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "results",
              "next_search_after",
              "params"
            ],
            "properties": {
              "results": {
                "type": "integer",
                "description": "Total number of matching rows."
              },
              "next_search_after": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/nullable_string"
                  }
                ],
                "description": "Cursor for the next page, or null on the last page. Pass it back as search_after."
              },
              "params": {
                "type": "object",
                "additionalProperties": true,
                "description": "Echo of the applied filters. Multi-value filters are returned as arrays."
              },
              "per_domain": {
                "type": "array",
                "description": "Per-domain result breakdown. Present only when per_domain was requested.",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "domain",
                    "emails"
                  ],
                  "properties": {
                    "domain": {
                      "type": "string"
                    },
                    "emails": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "lead_upsert_item": {
        "type": "object",
        "additionalProperties": true,
        "required": [
          "email"
        ],
        "description": "One lead of a bulk upsert. Same fields as the single lead upsert.",
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "description": "The email address that identifies the lead. Required."
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "position": {
            "type": "string"
          },
          "company": {
            "type": "string"
          },
          "company_industry": {
            "type": "string"
          },
          "confidence_score": {
            "type": "integer"
          },
          "website": {
            "type": "string"
          },
          "country_code": {
            "type": "string"
          },
          "company_size": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "department": {
            "type": "string"
          },
          "linkedin_url": {
            "type": "string"
          },
          "phone_number": {
            "type": "string"
          },
          "twitter": {
            "type": "string"
          },
          "sync_status": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          },
          "leads_list_id": {
            "type": "integer",
            "description": "The list the lead must belong to. Cannot be combined with `leads_list_name`."
          },
          "leads_list_ids": {
            "type": "array",
            "maxItems": 50,
            "items": {
              "type": "integer"
            },
            "description": "The lists the lead must belong to. Cannot be combined with `leads_list_name`."
          },
          "leads_list_name": {
            "type": "string",
            "description": "The name of a static list. The list is created when it does not exist yet. Cannot be combined with `leads_list_id` or `leads_list_ids`."
          },
          "custom_attributes": {
            "type": "object",
            "additionalProperties": true,
            "description": "Custom attribute values keyed by slug. Merged into the values the lead already has; a blank value clears that key."
          }
        }
      },
      "leads_bulk_upsert_request": {
        "type": "object",
        "additionalProperties": true,
        "required": [
          "leads"
        ],
        "properties": {
          "leads": {
            "type": "array",
            "minItems": 1,
            "maxItems": 100,
            "description": "The leads to upsert, at most 100 per request. Each entry is matched on `email` against the leads of your team: a match is updated, anything else is created.",
            "items": {
              "$ref": "#/components/schemas/lead_upsert_item"
            }
          }
        }
      },
      "leads_bulk_upsert_response": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "meta"
        ],
        "properties": {
          "data": {
            "type": "array",
            "description": "One result per submitted lead, in the order they were submitted.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "index",
                "email",
                "status",
                "lead",
                "errors"
              ],
              "properties": {
                "index": {
                  "type": "integer",
                  "description": "Position of the lead in the submitted array."
                },
                "email": {
                  "type": "string",
                  "nullable": true
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "created",
                    "updated",
                    "failed"
                  ]
                },
                "lead": {
                  "type": "object",
                  "nullable": true,
                  "additionalProperties": true,
                  "description": "The stored lead. Null when the item failed."
                },
                "errors": {
                  "type": "array",
                  "description": "Empty when the item succeeded.",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "id",
                      "code",
                      "details"
                    ],
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "code": {
                        "type": "integer"
                      },
                      "details": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "meta": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "total",
              "created",
              "updated",
              "failed"
            ],
            "properties": {
              "total": {
                "type": "integer"
              },
              "created": {
                "type": "integer"
              },
              "updated": {
                "type": "integer"
              },
              "failed": {
                "type": "integer"
              }
            }
          }
        }
      },
      "leads_list_request": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "api_key": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "maxLength": 255,
            "description": "The name of the list, up to 255 characters. A longer name returns a 422."
          },
          "leads_list_folder_id": {
            "description": "The folder to put the list in. On update, null or an empty value removes the list from its folder. A form-encoded request sends the empty value as an empty string.",
            "oneOf": [
              {
                "type": "integer",
                "nullable": true
              },
              {
                "type": "string",
                "maxLength": 0
              }
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "static",
              "dynamic"
            ],
            "description": "On create, `static` (the default) makes a list that keeps the leads you add to it. `dynamic` makes a list that holds every lead matching its `filters`, including leads saved later; leads can't be added to it or removed from it by hand. A list's type can't be changed: on update, a different type returns a 422."
          },
          "filters": {
            "type": "object",
            "additionalProperties": true,
            "description": "The filters of a dynamic list, required when `type` is `dynamic` and accepted on update of a dynamic list only, where they replace the saved filters. Keys and values are the filters of GET /v2/leads, in JSON form: for example `position: [\"CEO\"]`, `verification_status: [\"valid\"]`, `created_at: \"last7d\"`, `location: { country: { include: [\"FR\"] } }`, or `custom_attributes: { <slug>: \"*\" }`. `leads_list_id` narrows the list to one static list. The Leads page filters `decision_maker: true`, `seniority_level`, `email_type` and `position_keywords` are saved too (HUN-25033). A `company` array saves only when the Leads page of the list's creator reads company as a list; otherwise it returns a 422. These return a 422 instead of saving a broader list: a filter or a value that GET /v2/leads ignores or rejects, a filter that the Leads page can't read back (`company_size`, `lead_city`, `lead_state`, `lead_country_code`, a single `id`), `leads_list_ids`, `people_per_company`, a dynamic list in `leads_list_id`, or an empty object."
          }
        }
      },
      "leads_list_create_request": {
        "description": "The body of a create request: the update body, with `name` required.",
        "allOf": [
          {
            "$ref": "#/components/schemas/leads_list_request"
          },
          {
            "type": "object",
            "additionalProperties": true,
            "required": [
              "name"
            ]
          }
        ]
      },
      "leads_import_request": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "csv_data"
        ],
        "properties": {
          "api_key": {
            "type": "string"
          },
          "csv_data": {
            "type": "string",
            "description": "The CSV content. Comma and semicolon separators are both detected. The server rejects anything over 10 MB once encoded, which is a byte limit and so cannot be expressed as maxLength. Over 100,000 rows is rejected. Send a large CSV as JSON: percent encoding can treble a form-encoded body, which the proxy rejects at 25 MB before the endpoint sees it."
          },
          "leads_list_id": {
            "type": "integer",
            "description": "Identifier of the static list the leads should land in. Must belong to your team. Omit it to pick a destination on the configuration page."
          },
          "file_name": {
            "type": "string",
            "description": "Name shown for this import in the imports history. A longer name is truncated rather than rejected, so no maxLength is declared."
          }
        }
      },
      "lookalikes_response": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "meta"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "domain",
                "company_name",
                "country",
                "industry",
                "size",
                "similarity_score"
              ],
              "properties": {
                "domain": {
                  "type": "string",
                  "example": "example.com"
                },
                "company_name": {
                  "$ref": "#/components/schemas/nullable_string"
                },
                "country": {
                  "$ref": "#/components/schemas/nullable_string"
                },
                "industry": {
                  "$ref": "#/components/schemas/nullable_string"
                },
                "size": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/nullable_string"
                    }
                  ],
                  "description": "Company size range (e.g. \"51-200\"). Null when unknown."
                },
                "similarity_score": {
                  "type": "number",
                  "description": "Similarity score ranking this company against the seed.",
                  "example": 85.2
                }
              }
            }
          },
          "meta": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "results",
              "limit",
              "params"
            ],
            "properties": {
              "results": {
                "type": "integer",
                "description": "Number of lookalike companies returned after filtering."
              },
              "limit": {
                "type": "integer",
                "description": "Maximum number of lookalikes requested."
              },
              "params": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "country",
                  "industry",
                  "size"
                ],
                "description": "Echo of the applied parameters. Multi-value filters are returned as arrays.",
                "properties": {
                  "company_list_id": {
                    "type": "integer",
                    "description": "Present when the seed is a company list."
                  },
                  "domain": {
                    "type": "string",
                    "description": "The cleaned seed domain. Present when the seed is a domain."
                  },
                  "country": {
                    "$ref": "#/components/schemas/nullable_string"
                  },
                  "industry": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "size": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "signal_event_type": {
        "type": "string",
        "description": "The kind of event. `hiring_volume` and `hiring_spike`, and `company_growth`, are in early access: they are returned only when the account has them, as on the dashboard. When `types` names one that the account does not have, the response skips it and names it in `meta.types_skipped`.",
        "enum": [
          "funding_round",
          "technology_added",
          "technology_removed",
          "new_contact",
          "new_executive",
          "job_posted",
          "hiring_volume",
          "hiring_spike",
          "company_growth",
          "location_changed",
          "position_changed",
          "email_invalidated"
        ]
      },
      "signal_event": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "source",
          "type",
          "occurred_at",
          "company",
          "details",
          "signal_id",
          "next_call"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable event identifier. Use it to remove duplicate events. One funding round, job, or company event that matches two Monitored Signals is two events, one for each signal, and `signal_id` names the signal. It is null with `source=leads`.",
            "example": "lead:domain_event:812345678"
          },
          "source": {
            "type": "string",
            "enum": [
              "leads",
              "monitored"
            ]
          },
          "type": {
            "$ref": "#/components/schemas/signal_event_type"
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time"
          },
          "company": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "domain",
              "name"
            ],
            "properties": {
              "domain": {
                "type": "string",
                "example": "example.com"
              },
              "name": {
                "type": "string",
                "nullable": true,
                "example": "Example Inc",
                "description": "The company name. Null when Hunter has no name for the domain."
              }
            }
          },
          "details": {
            "type": "object",
            "additionalProperties": false,
            "description": "Depends on `type`. `funding_round` has `round_type`, `amount_usd`, and `announced_on`. `technology_added` and `technology_removed` have `technology`. `new_contact` has no field. `new_executive` has `title`. `job_posted` has `job`. `hiring_volume` has `open_roles` and `role_clusters`. `hiring_spike` has `open_roles`, `previous_median`, and `window_weeks`. `company_growth` has `growth_percent`, `window_months`, `base_headcount`, and `current_headcount`. `location_changed` and `position_changed` have `lead_id`, `from`, and `to`. `email_invalidated` has `lead_id`. A value Hunter does not have is null.",
            "properties": {
              "round_type": {
                "type": "string",
                "example": "Series A"
              },
              "amount_usd": {
                "$ref": "#/components/schemas/nullable_integer"
              },
              "announced_on": {
                "type": "string",
                "format": "date"
              },
              "technology": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "slug",
                  "name"
                ],
                "properties": {
                  "slug": {
                    "type": "string",
                    "example": "react"
                  },
                  "name": {
                    "type": "string",
                    "example": "React"
                  }
                }
              },
              "title": {
                "type": "string",
                "nullable": true,
                "description": "The job title of the new executive.",
                "example": "Chief Technology Officer"
              },
              "job": {
                "type": "object",
                "additionalProperties": false,
                "description": "The job posted. Every field is null when the job is no longer stored.",
                "required": [
                  "title",
                  "location",
                  "country",
                  "employer_url",
                  "active"
                ],
                "properties": {
                  "title": {
                    "$ref": "#/components/schemas/nullable_string"
                  },
                  "location": {
                    "$ref": "#/components/schemas/nullable_string"
                  },
                  "country": {
                    "$ref": "#/components/schemas/nullable_string"
                  },
                  "employer_url": {
                    "type": "string",
                    "nullable": true,
                    "description": "The job on the employer's own site, when known."
                  },
                  "active": {
                    "type": "boolean",
                    "nullable": true,
                    "description": "False when the job is no longer open."
                  }
                }
              },
              "open_roles": {
                "type": "integer",
                "nullable": true,
                "description": "The number of open roles at the company."
              },
              "role_clusters": {
                "type": "array",
                "description": "The open roles by group, largest first.",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "label",
                    "count"
                  ],
                  "properties": {
                    "label": {
                      "type": "string",
                      "example": "Engineers"
                    },
                    "count": {
                      "type": "integer",
                      "example": 6
                    }
                  }
                }
              },
              "previous_median": {
                "type": "integer",
                "nullable": true,
                "description": "The median number of open roles in the weeks before the spike."
              },
              "window_weeks": {
                "type": "integer",
                "nullable": true,
                "description": "The number of weeks the median covers."
              },
              "growth_percent": {
                "type": "integer",
                "nullable": true,
                "description": "The headcount growth over `window_months`, in percent."
              },
              "window_months": {
                "$ref": "#/components/schemas/nullable_integer"
              },
              "base_headcount": {
                "$ref": "#/components/schemas/nullable_integer"
              },
              "current_headcount": {
                "$ref": "#/components/schemas/nullable_integer"
              },
              "lead_id": {
                "type": "integer",
                "nullable": true,
                "description": "The team's lead for the contact. Send it to `GET /leads/{id}`. Null when the contact is not one of the team's leads."
              },
              "from": {
                "type": "string",
                "nullable": true,
                "description": "The previous location or job title."
              },
              "to": {
                "type": "string",
                "nullable": true,
                "description": "The new location or job title."
              }
            }
          },
          "signal_id": {
            "$ref": "#/components/schemas/nullable_integer"
          },
          "next_call": {
            "type": "object",
            "additionalProperties": false,
            "description": "The call that finds people at the company. It charges credits as usual.",
            "required": [
              "endpoint",
              "params",
              "mcp_tool",
              "charges_credits"
            ],
            "properties": {
              "endpoint": {
                "type": "string",
                "example": "GET /v2/domain-search"
              },
              "params": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "domain"
                ],
                "properties": {
                  "domain": {
                    "type": "string"
                  }
                }
              },
              "mcp_tool": {
                "type": "string",
                "example": "Domain-Search"
              },
              "charges_credits": {
                "type": "boolean"
              }
            }
          }
        }
      },
      "signals_response": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "meta"
        ],
        "properties": {
          "data": {
            "type": "array",
            "description": "Events, newest first.",
            "items": {
              "$ref": "#/components/schemas/signal_event"
            }
          },
          "meta": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "limit",
              "next_cursor",
              "next_since",
              "window_start"
            ],
            "properties": {
              "limit": {
                "type": "integer"
              },
              "next_cursor": {
                "type": "string",
                "nullable": true,
                "description": "Send it as `cursor` to read the next page. It is null on the last page. A page can hold fewer than `limit` events and still have a next cursor."
              },
              "next_since": {
                "type": "string",
                "format": "date-time",
                "description": "Keep it and send it as `since` on the next poll. It is never after the newest event. Because some events arrive late, it stays 36 hours behind now for lead events, and 7 days behind the end of the date window of each funding signal that the page read. That end is now, unless the signal has a custom window."
              },
              "window_start": {
                "type": "string",
                "format": "date-time",
                "description": "The exclusive lower bound on `occurred_at` for this request. With a `signal_id`, it also respects the signal's own date window."
              },
              "types_skipped": {
                "type": "array",
                "description": "Only when `types` names an early access type that your account does not have. The response skips these types and gives the other requested types.",
                "items": {
                  "type": "string"
                }
              },
              "signals_included": {
                "type": "array",
                "description": "First page of the merged `source=monitored` feed only. The Monitored Signals that this walk reads, newest first.",
                "items": {
                  "type": "integer"
                }
              },
              "signals_skipped": {
                "type": "array",
                "description": "First page of the merged `source=monitored` feed only. The active signals that the merged feed does not read: the company follows past the first 1,000 and the funding signals past the first 25. Read each one with `signal_id`.",
                "items": {
                  "type": "integer"
                }
              }
            }
          }
        }
      },
      "monitored_signal": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "name",
          "type",
          "status",
          "filters",
          "event_types",
          "created_at"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "description": "Send it as `signal_id` to `GET /signals?source=monitored`.",
            "example": 123
          },
          "name": {
            "type": "string",
            "example": "Series A in fintech"
          },
          "type": {
            "type": "string",
            "description": "`funding_rounds` follows funding rounds that match the filters. `job_openings` follows job posts that match the filters. `company_follow` follows the events of one company.",
            "enum": [
              "funding_rounds",
              "job_openings",
              "company_follow"
            ]
          },
          "status": {
            "type": "string",
            "description": "A paused signal is readable only with `signal_id`. The merged feed reads active signals only.",
            "enum": [
              "active",
              "paused"
            ]
          },
          "filters": {
            "type": "object",
            "additionalProperties": false,
            "description": "The filters of the signal. `funding_rounds` can have the location, size, industry, series, amount, and date filters. `job_openings` can have the location, size, industry, job, and date filters. `company_follow` has `domain` and `updates`.",
            "properties": {
              "countries": {
                "type": "array",
                "description": "Headquarters country codes (ISO 3166-1 alpha-2), or `QU` for the European Union. A job openings signal can also name a region or a continent.",
                "items": {
                  "type": "string"
                },
                "example": [
                  "FR"
                ]
              },
              "company_sizes": {
                "type": "array",
                "description": "Employee count ranges.",
                "items": {
                  "type": "string"
                },
                "example": [
                  "11-50"
                ]
              },
              "industries": {
                "type": "array",
                "description": "The company industries to include, by name.",
                "items": {
                  "type": "string"
                },
                "example": [
                  "Software Development"
                ]
              },
              "excluded_industries": {
                "type": "array",
                "description": "The company industries to leave out, by name.",
                "items": {
                  "type": "string"
                }
              },
              "title_include": {
                "type": "array",
                "description": "Words that the job title contains.",
                "items": {
                  "type": "string"
                },
                "example": [
                  "engineer"
                ]
              },
              "title_exclude": {
                "type": "array",
                "description": "Words that the job title does not contain.",
                "items": {
                  "type": "string"
                }
              },
              "description_include": {
                "type": "array",
                "description": "Words that the job description contains.",
                "items": {
                  "type": "string"
                }
              },
              "description_exclude": {
                "type": "array",
                "description": "Words that the job description does not contain.",
                "items": {
                  "type": "string"
                }
              },
              "job_countries": {
                "type": "array",
                "description": "Job location country codes (ISO 3166-1 alpha-2), `QU` for the European Union, or a region or continent name.",
                "items": {
                  "type": "string"
                },
                "example": [
                  "US"
                ]
              },
              "seniority": {
                "type": "array",
                "description": "Seniority levels.",
                "items": {
                  "type": "string"
                },
                "example": [
                  "Director"
                ]
              },
              "types_of_contract": {
                "type": "array",
                "description": "Contract types.",
                "items": {
                  "type": "string"
                },
                "example": [
                  "Full-time"
                ]
              },
              "departments": {
                "type": "array",
                "description": "Job departments.",
                "items": {
                  "type": "string"
                },
                "example": [
                  "engineering"
                ]
              },
              "series": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "example": [
                  "series_a"
                ]
              },
              "amount_raised_from": {
                "type": "integer",
                "description": "Minimum amount raised, in USD."
              },
              "amount_raised_to": {
                "type": "integer",
                "description": "Maximum amount raised, in USD."
              },
              "published_date": {
                "type": "string",
                "description": "The date window of the feed: 7d, 1m, 3m, 6m, 1y, or custom. The API reads at most the last 30 days.",
                "example": "1m"
              },
              "published_date_from": {
                "type": "integer",
                "description": "With `published_date=custom`, the start of the window, in days before today."
              },
              "published_date_to": {
                "type": "integer",
                "description": "With `published_date=custom`, the end of the window, in days before today."
              },
              "domain": {
                "type": "string",
                "description": "The company that the signal follows.",
                "example": "stripe.com"
              },
              "updates": {
                "type": "array",
                "description": "The event types that the company follow reads.",
                "items": {
                  "$ref": "#/components/schemas/signal_event_type"
                }
              }
            }
          },
          "event_types": {
            "type": "array",
            "description": "The event types that the signal's feed can return.",
            "items": {
              "$ref": "#/components/schemas/signal_event_type"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "monitored_signals_response": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "meta"
        ],
        "properties": {
          "data": {
            "type": "array",
            "description": "Monitored Signals, newest first.",
            "items": {
              "$ref": "#/components/schemas/monitored_signal"
            }
          },
          "meta": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "total",
              "limit",
              "offset"
            ],
            "properties": {
              "total": {
                "type": "integer",
                "description": "The number of Monitored Signals this operation lists for the team."
              },
              "limit": {
                "type": "integer"
              },
              "offset": {
                "type": "integer"
              }
            }
          }
        }
      },
      "briefing_item": {
        "type": "object",
        "additionalProperties": false,
        "description": "One item of the briefing: how many new things one source holds and the call that returns them.",
        "required": [
          "type",
          "status",
          "reason",
          "count",
          "count_exact",
          "next_call",
          "next_since"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "lead_signals",
              "monitored_signals",
              "opportunities"
            ],
            "description": "The source of the item. `lead_signals` counts the events on companies in the team's lists. `monitored_signals` counts the events of the team's active Monitored Signals. `opportunities` counts this week's opportunities. More values may be added."
          },
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "unavailable",
              "no_access"
            ],
            "description": "`ok` when the source was read. `unavailable` when it timed out or is down: try again later. `no_access` when the plan or a team setting does not include it."
          },
          "reason": {
            "type": "string",
            "nullable": true,
            "description": "With `no_access`, the error id that the source's own endpoint returns: `no_signals_access` or `no_opportunities_access` when the plan does not include the source, `optional_ai_features_off` when the team turned optional AI features off, `ai_access_revoked` when the account's AI features were revoked. Null otherwise.",
            "example": "no_signals_access"
          },
          "count": {
            "type": "integer",
            "nullable": true,
            "description": "The number of events or opportunities that `next_call` returns. Null unless `status` is `ok`."
          },
          "count_exact": {
            "type": "boolean",
            "nullable": true,
            "description": "False when there can be more than `count`: `count` is then a lower bound, and `next_call` returns its first page. Null unless `status` is `ok`."
          },
          "next_call": {
            "type": "object",
            "nullable": true,
            "additionalProperties": false,
            "description": "The call that returns the details. It is free. Null unless `status` is `ok`.",
            "required": [
              "endpoint",
              "params",
              "mcp_tool",
              "charges_credits"
            ],
            "properties": {
              "endpoint": {
                "type": "string",
                "example": "GET /v2/signals"
              },
              "params": {
                "type": "object",
                "additionalProperties": false,
                "description": "The query parameters to send, as they are.",
                "properties": {
                  "source": {
                    "type": "string",
                    "example": "leads"
                  },
                  "since": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "limit": {
                    "type": "integer"
                  }
                }
              },
              "mcp_tool": {
                "type": "string",
                "nullable": true,
                "description": "The Hunter MCP tool that makes the same call. Null when no MCP tool does.",
                "example": "List-Signals"
              },
              "charges_credits": {
                "type": "boolean",
                "enum": [
                  false
                ]
              }
            }
          },
          "next_since": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "For a signals item, the watermark of its own feed: send it back as `leads_since` or `monitored_since`. It stays at the item's window start when the item is `unavailable` or its count is not exact. Null for the opportunities item and for a `no_access` item."
          }
        }
      },
      "briefing_response": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "meta"
        ],
        "properties": {
          "data": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "needs_attention",
              "new_this_week",
              "account"
            ],
            "properties": {
              "needs_attention": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "items"
                ],
                "properties": {
                  "items": {
                    "type": "array",
                    "description": "The lead signal and Monitored Signal events after `since`.",
                    "items": {
                      "$ref": "#/components/schemas/briefing_item"
                    }
                  }
                }
              },
              "new_this_week": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "items"
                ],
                "properties": {
                  "items": {
                    "type": "array",
                    "description": "This week's opportunities.",
                    "items": {
                      "$ref": "#/components/schemas/briefing_item"
                    }
                  }
                }
              },
              "account": {
                "type": "object",
                "additionalProperties": false,
                "description": "The plan and credits, as `GET /v2/account` gives them. Every field but `status` is null when the account could not be read.",
                "required": [
                  "status",
                  "plan_name",
                  "plan_level",
                  "reset_date",
                  "requests",
                  "next_call"
                ],
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "ok",
                      "unavailable"
                    ]
                  },
                  "plan_name": {
                    "$ref": "#/components/schemas/nullable_string"
                  },
                  "plan_level": {
                    "$ref": "#/components/schemas/nullable_integer"
                  },
                  "reset_date": {
                    "type": "string",
                    "format": "date",
                    "nullable": true
                  },
                  "requests": {
                    "type": "object",
                    "nullable": true,
                    "additionalProperties": false,
                    "description": "With `credits`, the team has a single credits pool. Use `remaining` as the balance.",
                    "required": [
                      "searches",
                      "verifications"
                    ],
                    "properties": {
                      "credits": {
                        "$ref": "#/components/schemas/usage_bucket"
                      },
                      "searches": {
                        "$ref": "#/components/schemas/usage_bucket"
                      },
                      "verifications": {
                        "$ref": "#/components/schemas/usage_bucket"
                      }
                    }
                  },
                  "next_call": {
                    "type": "object",
                    "nullable": true,
                    "additionalProperties": false,
                    "required": [
                      "endpoint",
                      "params",
                      "mcp_tool",
                      "charges_credits"
                    ],
                    "properties": {
                      "endpoint": {
                        "type": "string",
                        "example": "GET /v2/account"
                      },
                      "params": {
                        "type": "object",
                        "additionalProperties": false
                      },
                      "mcp_tool": {
                        "type": "string",
                        "nullable": true,
                        "example": "Get-Account-Details"
                      },
                      "charges_credits": {
                        "type": "boolean",
                        "enum": [
                          false
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "meta": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "since",
              "next_since"
            ],
            "properties": {
              "since": {
                "type": "string",
                "format": "date-time",
                "description": "The exclusive lower bound on the events counted in this call."
              },
              "next_since": {
                "type": "string",
                "format": "date-time",
                "description": "When every count is exact, keep it and send it as `since` on the next call. When a count is not exact, it stays at `since` until the rest is read: read that item's `next_call` to the last page and keep that call's `meta.next_since` instead. It stays behind the newest event, because events can reach Hunter late, so a later call can count some events again. It is the earliest `next_since` of the signals items."
              }
            }
          }
        }
      },
      "opportunities_response": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "meta"
        ],
        "properties": {
          "data": {
            "type": "array",
            "description": "Opportunities, best first: people before companies, then by score.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id",
                "type",
                "source",
                "description",
                "results_count",
                "score",
                "seen_at",
                "created_at",
                "next_call"
              ],
              "properties": {
                "id": {
                  "type": "integer",
                  "example": 812345
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "people",
                    "companies"
                  ],
                  "description": "Whether the results are people or companies."
                },
                "source": {
                  "type": "string",
                  "enum": [
                    "leads",
                    "campaign_replies",
                    "companies",
                    "companies_funding"
                  ],
                  "description": "What the opportunity is based on: the team's saved leads, the people who replied to its sequences, its saved companies, or recently funded companies like its saved ones. More values may be added."
                },
                "description": {
                  "type": "string",
                  "example": "Chief Financial Officers at software companies in Germany are recommended based on your saved leads."
                },
                "results_count": {
                  "type": "integer",
                  "description": "Number of people or companies, without the people the team saved as leads since the opportunity was generated."
                },
                "score": {
                  "type": "integer",
                  "description": "How closely the opportunity matches the team's saved data. Higher is closer."
                },
                "seen_at": {
                  "type": "string",
                  "format": "date-time",
                  "nullable": true,
                  "description": "When a teammate first opened the opportunity on the dashboard. Null when no one did."
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "next_call": {
                  "type": "object",
                  "additionalProperties": false,
                  "description": "The call that returns the opportunity's people or companies. It is free.",
                  "required": [
                    "endpoint",
                    "params",
                    "mcp_tool",
                    "charges_credits"
                  ],
                  "properties": {
                    "endpoint": {
                      "type": "string",
                      "example": "GET /v2/opportunities/812345/results"
                    },
                    "params": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {}
                    },
                    "mcp_tool": {
                      "type": "string",
                      "nullable": true,
                      "description": "The Hunter MCP tool that makes the same call.",
                      "example": "Get-Opportunity-Results"
                    },
                    "charges_credits": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "meta": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "results",
              "limit",
              "offset"
            ],
            "properties": {
              "results": {
                "type": "integer",
                "description": "Total number of opportunities."
              },
              "limit": {
                "type": "integer"
              },
              "offset": {
                "type": "integer"
              }
            }
          }
        }
      },
      "opportunity_person": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "name",
          "position",
          "department",
          "seniority",
          "type",
          "decision_maker",
          "domain",
          "company_name",
          "full_name_exists",
          "phone_number_exists",
          "verification",
          "reveal_handle"
        ],
        "properties": {
          "name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/nullable_string"
              }
            ],
            "description": "Masked display name — first name plus last initial (e.g. \"Ada L.\"). Null when either name part is missing. The full last name is only returned by the reveal endpoint."
          },
          "position": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "department": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "seniority": {
            "$ref": "#/components/schemas/nullable_string"
          },
          "type": {
            "type": "string",
            "enum": [
              "personal",
              "generic"
            ]
          },
          "provenance": {
            "type": "string",
            "nullable": true,
            "example": "found",
            "description": "Where the address came from. \"found\": the address was seen on a public web page. \"inferred\": it was worked out from the person's name and the company's email pattern. \"previously_found\" is coming: found on a page but not confirmed there in the last 90 days. More values may be added, so treat an unrecognized value as unknown rather than an error. Distinct from `type`, which is the role of the address. Null when no provenance is recorded for the address."
          },
          "decision_maker": {
            "type": "boolean"
          },
          "domain": {
            "type": "string",
            "example": "example.com"
          },
          "company_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/nullable_string"
              }
            ],
            "description": "The company name, as Multi Domain Search returns it. Null when Hunter has no name for the domain."
          },
          "full_name_exists": {
            "type": "boolean"
          },
          "phone_number_exists": {
            "type": "boolean"
          },
          "verification": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "date",
              "status"
            ],
            "properties": {
              "date": {
                "$ref": "#/components/schemas/nullable_string"
              },
              "status": {
                "$ref": "#/components/schemas/nullable_string"
              }
            }
          },
          "reveal_handle": {
            "type": "string",
            "description": "Opaque, signed handle for `POST /v2/multi-domain-search/reveal`. It is valid until the team's billing period ends. Never the raw email id.",
            "example": "aAKWnmY9z-P8kCj6sBQjZ8yiYnNSMKb0"
          }
        }
      },
      "opportunity_company": {
        "type": "object",
        "additionalProperties": false,
        "description": "A company of the opportunity: its domain, its name, and its number of email addresses. It carries no other firmographics: Domain Search and Discover return them.",
        "required": [
          "domain",
          "company_name",
          "emails_count"
        ],
        "properties": {
          "domain": {
            "type": "string",
            "example": "example.com"
          },
          "company_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/nullable_string"
              }
            ],
            "description": "The company name. Null when Hunter has no name for the domain."
          },
          "emails_count": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "personal",
              "generic",
              "total"
            ],
            "properties": {
              "personal": {
                "type": "integer"
              },
              "generic": {
                "type": "integer"
              },
              "total": {
                "type": "integer"
              }
            }
          }
        }
      },
      "opportunity_results_response": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "meta"
        ],
        "properties": {
          "data": {
            "type": "array",
            "description": "People or companies, the closest first. `meta.type` says which.",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/opportunity_person"
                },
                {
                  "$ref": "#/components/schemas/opportunity_company"
                }
              ]
            }
          },
          "meta": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "results",
              "limit",
              "offset"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "people",
                  "companies"
                ]
              },
              "results": {
                "type": "integer",
                "description": "Total number of people or companies that Hunter serves for this opportunity. It can be lower than the opportunity's `results_count`."
              },
              "limit": {
                "type": "integer"
              },
              "offset": {
                "type": "integer"
              }
            }
          }
        }
      }
    }
  }
}