{"openapi":"3.1.0","info":{"title":"YesLeads API","version":"1.0.0","description":"Verify emails, and find and enrich leads. Send your API key as Authorization: Bearer <key> or X-API-Key: <key>. 120 requests a minute per account across the leads endpoints. Lead credits: search and count are free (search rows come masked); revealing, enriching and exporting cost 1 lead credit per lead you don't own yet, and a lead you own is free forever. Verification costs 1 verification credit per address."},"servers":[{"url":"https://yesleads.io/api/public/v1","description":"YesLeads"}],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"tags":[{"name":"Leads search"},{"name":"Reveal"},{"name":"Export"},{"name":"Enrich"},{"name":"Jobs & downloads"},{"name":"Account & credits"},{"name":"Saved searches"},{"name":"Lists"},{"name":"Verification"}],"paths":{"/leads/meta":{"get":{"operationId":"leadsMeta","tags":["Leads search"],"summary":"Filters, columns, pick lists and limits","responses":{"200":{"description":"Definitions","content":{"application/json":{"schema":{"type":"object","properties":{"filterGroups":{"type":"array","items":{"type":"string"}},"filters":{"type":"array","items":{"type":"object"}},"columns":{"type":"array","items":{"type":"object"}},"defaultColumns":{"type":"array","items":{"$ref":"#/components/schemas/ColumnId"}},"enums":{"type":"object"},"lookups":{"type":"array","items":{"type":"string"}},"limits":{"type":"object"},"credits":{"$ref":"#/components/schemas/Credits"}}}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/leads/values":{"get":{"operationId":"leadsValues","tags":["Leads search"],"summary":"Pick-list values of a lookup filter","description":"60 requests a minute.","parameters":[{"name":"field","in":"query","required":true,"schema":{"type":"string","enum":["departments","industries","countries","hqCountries","fundingTypes","continents","macroRegions","companyTypes","techCategories"]},"description":"Lookup id"}],"responses":{"200":{"description":"Values","content":{"application/json":{"schema":{"type":"object","properties":{"field":{"type":"string"},"values":{"type":"array","items":{"type":"string"}},"credits":{"$ref":"#/components/schemas/Credits"}}}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/leads/count":{"post":{"operationId":"countLeads","tags":["Leads search"],"summary":"Count matching leads (free)","description":"30 requests a minute.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"filters":{"$ref":"#/components/schemas/Filters"}},"required":["filters"],"additionalProperties":false}}}},"responses":{"200":{"description":"Count","content":{"application/json":{"schema":{"type":"object","properties":{"total":{"type":["integer","null"]},"atLeast":{"type":"boolean","description":"total is a lower bound"},"credits":{"$ref":"#/components/schemas/Credits"}}}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/leads/search":{"post":{"operationId":"searchLeads","tags":["Leads search"],"summary":"Search leads (masked preview rows, free)","description":"Returns up to 100 rows (default 25) with contact values removed; has says which contact values each row holds. Free, but counts against the plan's preview rows and needs at least 1 lead credit. The same search again reuses the stored run (cached: true) unless fresh is true. reveal: true also reveals the returned rows in the same call (1 lead credit per lead not owned yet, all or nothing); if that is refused, the 402/429 body carries runId and nothing is charged. 10 searches a minute.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string (A-Z a-z 0-9 _ . : -, up to 128). Sending the same key again within 24 hours returns the first result instead of doing the work twice; a different body with the same key is 422 leads_idempotency_conflict, and 409 leads_idempotency_busy while the first is still running.","schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"filters":{"$ref":"#/components/schemas/Filters"},"columns":{"minItems":1,"maxItems":34,"type":"array","items":{"type":"string","enum":["fullName","firstName","lastName","email","emailConfidence","personalEmails","mobilePhone","directDial","companyPhone","title","seniority","department","currentRole","roleStartDate","headline","bio","linkedinUrl","skills","languages","tags","connections","location","country","state","city","continent","companyName","companyDomain","companyWebsite","companyLinkedinUrl","companyIndustry","sizeBand","employeesMin","employeesMax"]}},"limit":{"type":"integer","minimum":1,"maximum":100},"fresh":{"type":"boolean"},"reveal":{"type":"boolean"}},"required":["filters"],"additionalProperties":false}}}},"responses":{"200":{"description":"Run view","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunView"},{"type":"object","properties":{"cached":{"type":"boolean"},"alreadyOwned":{"type":"integer"},"skipped":{"type":"integer"}}}]}}},"headers":{"Idempotent-Replayed":{"description":"true when this answer is the stored result of an earlier request with the same Idempotency-Key","schema":{"type":"string"}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough lead credits (leads_no_lead_credits): needed, remaining, resetsAt, upgradeUrl. Nothing was charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/leads/export":{"post":{"operationId":"exportLeads","tags":["Export"],"summary":"Export up to 10,000 leads with contact values","description":"Holds maxRows lead credits while the export runs; when it finishes only the leads you did not own before are kept, the rest go back. One export at a time. Poll GET /runs/{id} until completed, then download it.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string (A-Z a-z 0-9 _ . : -, up to 128). Sending the same key again within 24 hours returns the first result instead of doing the work twice; a different body with the same key is 422 leads_idempotency_conflict, and 409 leads_idempotency_busy while the first is still running.","schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"filters":{"$ref":"#/components/schemas/Filters"},"columns":{"minItems":1,"maxItems":34,"type":"array","items":{"type":"string","enum":["fullName","firstName","lastName","email","emailConfidence","personalEmails","mobilePhone","directDial","companyPhone","title","seniority","department","currentRole","roleStartDate","headline","bio","linkedinUrl","skills","languages","tags","connections","location","country","state","city","continent","companyName","companyDomain","companyWebsite","companyLinkedinUrl","companyIndustry","sizeBand","employeesMin","employeesMax"]}},"maxRows":{"type":"integer","minimum":1,"maximum":10000}},"required":["filters","maxRows"],"additionalProperties":false}}}},"responses":{"200":{"description":"Run view","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunView"},{"type":"object","properties":{}}]}}},"headers":{"Idempotent-Replayed":{"description":"true when this answer is the stored result of an earlier request with the same Idempotency-Key","schema":{"type":"string"}}}},"202":{"description":"Accepted: the run is still running. Poll GET /runs/{id} (about every 5 seconds) until run.status is not running.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunView"},{"type":"object","properties":{}}]}}},"headers":{"Idempotent-Replayed":{"description":"true when this answer is the stored result of an earlier request with the same Idempotency-Key","schema":{"type":"string"}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough lead credits (leads_no_lead_credits): needed, remaining, resetsAt, upgradeUrl. Nothing was charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/enrich":{"post":{"operationId":"enrichOne","tags":["Enrich"],"summary":"Enrich one person","description":"A match costs 1 lead credit unless you already own the lead; no match is free. 10 enrich requests a minute. Input fields by type: linkedin: linkedinUrl; workEmail: email; person: firstName, lastName, companyName, companyDomain; phone: phone; personalEmail: email (person: firstName, lastName and companyName or companyDomain).","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string (A-Z a-z 0-9 _ . : -, up to 128). Sending the same key again within 24 hours returns the first result instead of doing the work twice; a different body with the same key is 422 leads_idempotency_conflict, and 409 leads_idempotency_busy while the first is still running.","schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["linkedin","workEmail","person","phone","personalEmail"]},"input":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":300}},"country":{"type":"string","pattern":"^[A-Za-z]{2}$"}},"required":["type","input"],"additionalProperties":false}}}},"responses":{"200":{"description":"Run view","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunView"},{"type":"object","properties":{"match":{"type":"boolean"}}}]}}},"headers":{"Idempotent-Replayed":{"description":"true when this answer is the stored result of an earlier request with the same Idempotency-Key","schema":{"type":"string"}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough lead credits (leads_no_lead_credits): needed, remaining, resetsAt, upgradeUrl. Nothing was charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/enrich/batch":{"post":{"operationId":"enrichBatch","tags":["Enrich"],"summary":"Enrich a list (up to 5,000 items)","description":"Items are normalized and deduplicated. Up to 100 items usually finish in this answer; bigger lists answer 202 and advance 100 rows per GET /runs/{id} poll. One enrich run at a time. Same billing as /enrich.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string (A-Z a-z 0-9 _ . : -, up to 128). Sending the same key again within 24 hours returns the first result instead of doing the work twice; a different body with the same key is 422 leads_idempotency_conflict, and 409 leads_idempotency_busy while the first is still running.","schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["linkedin","workEmail","person","phone","personalEmail"]},"items":{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":300}}},"country":{"type":"string","pattern":"^[A-Za-z]{2}$"}},"required":["type","items"],"additionalProperties":false}}}},"responses":{"200":{"description":"Run view","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunView"},{"type":"object","properties":{"invalid":{"type":"integer","description":"Items that could not be used"},"duplicates":{"type":"integer"},"overLimit":{"type":"integer","description":"Items over the per-run limit, not stored"}}}]}}},"headers":{"Idempotent-Replayed":{"description":"true when this answer is the stored result of an earlier request with the same Idempotency-Key","schema":{"type":"string"}}}},"202":{"description":"Accepted: the run is still running. Poll GET /runs/{id} (about every 5 seconds) until run.status is not running.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunView"},{"type":"object","properties":{"invalid":{"type":"integer","description":"Items that could not be used"},"duplicates":{"type":"integer"},"overLimit":{"type":"integer","description":"Items over the per-run limit, not stored"}}}]}}},"headers":{"Idempotent-Replayed":{"description":"true when this answer is the stored result of an earlier request with the same Idempotency-Key","schema":{"type":"string"}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough lead credits (leads_no_lead_credits): needed, remaining, resetsAt, upgradeUrl. Nothing was charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/enrich/file":{"post":{"operationId":"enrichFile","tags":["Enrich"],"summary":"Enrich a file (CSV, TSV, TXT or XLSX up to 5 MB) or pasted text","description":"Columns are detected unless mapping is given. Answers 202; poll GET /runs/{id}. Needs a Content-Length header.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string (A-Z a-z 0-9 _ . : -, up to 128). Sending the same key again within 24 hours returns the first result instead of doing the work twice; a different body with the same key is 422 leads_idempotency_conflict, and 409 leads_idempotency_busy while the first is still running.","schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["linkedin","workEmail","person","phone","personalEmail"]},"file":{"type":"string","contentMediaType":"application/octet-stream"},"text":{"type":"string","description":"A pasted list instead of a file, one item per line"},"mapping":{"type":"string","description":"JSON object { \"<input field>\": <0-based column> }"},"hasHeader":{"type":"string","enum":["true","false"]},"country":{"type":"string","description":"Two-letter default country for phone numbers (US)"}}}}}},"responses":{"200":{"description":"Run view","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunView"},{"type":"object","properties":{"invalid":{"type":"integer","description":"Items that could not be used"},"duplicates":{"type":"integer"},"overLimit":{"type":"integer","description":"Items over the per-run limit, not stored"},"mapping":{"type":"object","additionalProperties":{"type":"integer"}},"hasHeader":{"type":"boolean"}}}]}}},"headers":{"Idempotent-Replayed":{"description":"true when this answer is the stored result of an earlier request with the same Idempotency-Key","schema":{"type":"string"}}}},"202":{"description":"Accepted: the run is still running. Poll GET /runs/{id} (about every 5 seconds) until run.status is not running.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunView"},{"type":"object","properties":{"invalid":{"type":"integer","description":"Items that could not be used"},"duplicates":{"type":"integer"},"overLimit":{"type":"integer","description":"Items over the per-run limit, not stored"},"mapping":{"type":"object","additionalProperties":{"type":"integer"}},"hasHeader":{"type":"boolean"}}}]}}},"headers":{"Idempotent-Replayed":{"description":"true when this answer is the stored result of an earlier request with the same Idempotency-Key","schema":{"type":"string"}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/runs":{"get":{"operationId":"listRuns","tags":["Jobs & downloads"],"summary":"Your runs, newest first","parameters":[{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["search","export","enrich","list"]},"description":"Only this kind"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":50},"description":"How many"}],"responses":{"200":{"description":"Runs","content":{"application/json":{"schema":{"type":"object","properties":{"runs":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/Run"},{"type":"object","properties":{"credits":{"type":"integer","description":"Lead credits this run used"}}}]}},"credits":{"$ref":"#/components/schemas/Credits"}}}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/runs/{id}":{"get":{"operationId":"getRun","tags":["Jobs & downloads"],"summary":"A run and its rows; polling advances running exports and enrichments","description":"Each poll moves a running export or enrich run one step, then answers its stored state (always 200). Poll about every 5 seconds; an enrich run advances up to 100 rows per poll (10 polls a minute). A run not polled for 60 minutes may end as unknown: resume an enrichment with POST /runs/{id}/retry, start an export again. credits.charged is what the whole run cost.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Run id (24 hex characters)"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0},"description":"First row number"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":500,"default":500},"description":"Rows to return"}],"responses":{"200":{"description":"Run view","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunView"},{"type":"object","properties":{"expired":{"type":"boolean","description":"The rows were deleted (retention)"}}}]}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/runs/{id}/more":{"post":{"operationId":"searchMore","tags":["Leads search"],"summary":"Next page of a search run (free preview rows)","description":"At most 1000 rows per search.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Run id (24 hex characters)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":100}},"additionalProperties":false}}}},"responses":{"200":{"description":"The new page","content":{"application/json":{"schema":{"type":"object","properties":{"run":{"$ref":"#/components/schemas/Run"},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row"}},"total":{"type":["integer","null"]},"atLeast":{"type":"boolean"},"hasMore":{"type":"boolean"},"credits":{"$ref":"#/components/schemas/Credits"}}}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough lead credits (leads_no_lead_credits): needed, remaining, resetsAt, upgradeUrl. Nothing was charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/runs/{id}/reveal":{"post":{"operationId":"revealRows","tags":["Reveal"],"summary":"Reveal contact values of search rows","description":"1 lead credit per lead you don't own yet, all or nothing (up to 10,000 rows). Rows already owned are free; rows without contact data are skipped. With the same Idempotency-Key the reveal runs again (charging nothing new) and reports the first charge.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Run id (24 hex characters)"},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string (A-Z a-z 0-9 _ . : -, up to 128). Sending the same key again within 24 hours returns the first result instead of doing the work twice; a different body with the same key is 422 leads_idempotency_conflict, and 409 leads_idempotency_busy while the first is still running.","schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"minItems":1,"maxItems":10000,"type":"array","items":{"type":"integer","minimum":0,"maximum":9007199254740991}}},"required":["rows"],"additionalProperties":false}}}},"responses":{"200":{"description":"Revealed rows","content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row"}},"alreadyOwned":{"type":"integer"},"skipped":{"type":"integer"},"credits":{"$ref":"#/components/schemas/Credits"}}}}},"headers":{"Idempotent-Replayed":{"description":"true when this answer is the stored result of an earlier request with the same Idempotency-Key","schema":{"type":"string"}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough lead credits (leads_no_lead_credits): needed, remaining, resetsAt, upgradeUrl. Nothing was charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/runs/{id}/download":{"get":{"operationId":"downloadRun","tags":["Jobs & downloads"],"summary":"Download a run as CSV or XLSX","description":"Never charges: contact cells of rows that were not revealed are blank. 409 leads_not_ready while an export is running.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Run id (24 hex characters)"},{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["csv","xlsx"],"default":"csv"},"description":"File format"},{"name":"rows","in":"query","required":false,"schema":{"type":"string"},"description":"Comma-separated row numbers"},{"name":"columns","in":"query","required":false,"schema":{"type":"string"},"description":"Comma-separated column ids"}],"responses":{"200":{"description":"The file","content":{"text/csv":{"schema":{"type":"string"}},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"type":"string","contentMediaType":"application/octet-stream"}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/runs/{id}/retry":{"post":{"operationId":"retryRun","tags":["Enrich"],"summary":"Resend enrich rows with an unknown outcome, or resume a stopped run","description":"Each row can be retried once. The run goes back to running; poll it.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Run id (24 hex characters)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"minItems":1,"maxItems":10000,"type":"array","items":{"type":"integer","minimum":0,"maximum":9007199254740991}}},"additionalProperties":false}}}},"responses":{"200":{"description":"Reset rows","content":{"application/json":{"schema":{"type":"object","properties":{"run":{"$ref":"#/components/schemas/Run"},"reset":{"type":"integer"},"credits":{"$ref":"#/components/schemas/Credits"}}}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/runs/{id}/enrich":{"post":{"operationId":"enrichFromRun","tags":["Enrich"],"summary":"Enrich selected rows of a search or export run","description":"Without type: the LinkedIn URL when the row has one, otherwise the email. Rows with nothing usable are skipped. Answers 202; poll the new run.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Run id (24 hex characters)"},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string (A-Z a-z 0-9 _ . : -, up to 128). Sending the same key again within 24 hours returns the first result instead of doing the work twice; a different body with the same key is 422 leads_idempotency_conflict, and 409 leads_idempotency_busy while the first is still running.","schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"integer","minimum":0,"maximum":9007199254740991}},"type":{"type":"string","enum":["linkedin","workEmail","person","phone","personalEmail"]},"country":{"type":"string","pattern":"^[A-Za-z]{2}$"}},"required":["rows"],"additionalProperties":false}}}},"responses":{"200":{"description":"Run view","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunView"},{"type":"object","properties":{"skipped":{"type":"integer"}}}]}}},"headers":{"Idempotent-Replayed":{"description":"true when this answer is the stored result of an earlier request with the same Idempotency-Key","schema":{"type":"string"}}}},"202":{"description":"Accepted: the run is still running. Poll GET /runs/{id} (about every 5 seconds) until run.status is not running.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunView"},{"type":"object","properties":{"skipped":{"type":"integer"}}}]}}},"headers":{"Idempotent-Replayed":{"description":"true when this answer is the stored result of an earlier request with the same Idempotency-Key","schema":{"type":"string"}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/runs/{id}/verify":{"post":{"operationId":"verifyRun","tags":["Verification"],"summary":"Verify the emails of revealed rows","description":"Spends verification credits (1 per unique address), not lead credits. GET /runs/{id} adds each row's verdict when the job finishes.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Run id (24 hex characters)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"minItems":1,"maxItems":10000,"type":"array","items":{"type":"integer","minimum":0,"maximum":9007199254740991}}},"additionalProperties":false}}}},"responses":{"200":{"description":"Submitted","content":{"application/json":{"schema":{"type":"object","properties":{"run":{"$ref":"#/components/schemas/Run"},"submitted":{"type":"integer"},"skipped":{"type":"integer"},"credits":{"$ref":"#/components/schemas/Credits"}}}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/runs/{id}/rows/{i}/photo":{"get":{"operationId":"getRowPhoto","tags":["Jobs & downloads"],"summary":"A row's photo (the photoUrl / logoUrl of a row)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Run id (24 hex characters)"},{"name":"i","in":"path","required":true,"schema":{"type":"string"},"description":"Row number"}],"responses":{"200":{"description":"The image","content":{"image/*":{"schema":{"type":"string","contentMediaType":"application/octet-stream"}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/runs/{id}/rows/{i}/logo":{"get":{"operationId":"getRowLogo","tags":["Jobs & downloads"],"summary":"A row's company logo (the photoUrl / logoUrl of a row)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Run id (24 hex characters)"},{"name":"i","in":"path","required":true,"schema":{"type":"string"},"description":"Row number"}],"responses":{"200":{"description":"The image","content":{"image/*":{"schema":{"type":"string","contentMediaType":"application/octet-stream"}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/account":{"get":{"operationId":"getAccount","tags":["Account & credits"],"summary":"Lead and verification credits","responses":{"200":{"description":"Balances","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Account"},{"type":"object","properties":{"credits":{"$ref":"#/components/schemas/Credits"}}}]}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/account/ledger":{"get":{"operationId":"getLedger","tags":["Account & credits"],"summary":"Last 50 lead credit movements","responses":{"200":{"description":"Ledger","content":{"application/json":{"schema":{"type":"object","properties":{"entries":{"type":"array","items":{"type":"object","properties":{"n":{"type":"integer","description":"< 0 spent or held, > 0 granted or given back"},"reason":{"type":"string"},"at":{"type":["string","null"],"format":"date-time"},"ref":{"type":"string"}}}},"credits":{"$ref":"#/components/schemas/Credits"}}}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/saved":{"get":{"operationId":"listSaved","tags":["Saved searches"],"summary":"Saved searches, newest first","responses":{"200":{"description":"Saved searches","content":{"application/json":{"schema":{"type":"object","properties":{"saved":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"filters":{"$ref":"#/components/schemas/Filters"},"columns":{"type":"array","items":{"$ref":"#/components/schemas/ColumnId"}},"createdAt":{"type":"string","format":"date-time"}}}},"credits":{"$ref":"#/components/schemas/Credits"}}}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"saveSearch","tags":["Saved searches"],"summary":"Save a search (same name replaces; at most 50)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"filters":{"$ref":"#/components/schemas/Filters"},"columns":{"minItems":1,"maxItems":34,"type":"array","items":{"type":"string","enum":["fullName","firstName","lastName","email","emailConfidence","personalEmails","mobilePhone","directDial","companyPhone","title","seniority","department","currentRole","roleStartDate","headline","bio","linkedinUrl","skills","languages","tags","connections","location","country","state","city","continent","companyName","companyDomain","companyWebsite","companyLinkedinUrl","companyIndustry","sizeBand","employeesMin","employeesMax"]}}},"required":["name","filters"],"additionalProperties":false}}}},"responses":{"200":{"description":"Saved","content":{"application/json":{"schema":{"type":"object","properties":{"saved":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"filters":{"$ref":"#/components/schemas/Filters"},"columns":{"type":"array","items":{"$ref":"#/components/schemas/ColumnId"}},"createdAt":{"type":"string","format":"date-time"}}},"credits":{"$ref":"#/components/schemas/Credits"}}}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/saved/{id}":{"delete":{"operationId":"deleteSaved","tags":["Saved searches"],"summary":"Delete a saved search","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Saved search id"}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"credits":{"$ref":"#/components/schemas/Credits"}}}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/lists":{"get":{"operationId":"listLists","tags":["Lists"],"summary":"Your lists, most recently changed first","description":"A list is a run of kind list: read its leads with GET /runs/{id}, reveal with POST /runs/{id}/reveal, download with GET /runs/{id}/download and verify with POST /runs/{id}/verify.","responses":{"200":{"description":"Lists","content":{"application/json":{"schema":{"type":"object","properties":{"lists":{"type":"array","items":{"$ref":"#/components/schemas/Run"}},"credits":{"$ref":"#/components/schemas/Credits"}}}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createList","tags":["Lists"],"summary":"Create a list (at most 100)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80}},"required":["name"],"additionalProperties":false}}}},"responses":{"200":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"list":{"$ref":"#/components/schemas/Run"},"credits":{"$ref":"#/components/schemas/Credits"}}}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/lists/{id}":{"post":{"operationId":"renameList","tags":["Lists"],"summary":"Rename a list","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"List id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80}},"required":["name"],"additionalProperties":false}}}},"responses":{"200":{"description":"Renamed","content":{"application/json":{"schema":{"type":"object","properties":{"list":{"$ref":"#/components/schemas/Run"},"credits":{"$ref":"#/components/schemas/Credits"}}}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteList","tags":["Lists"],"summary":"Delete a list (leads you own stay owned)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"List id"}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"credits":{"$ref":"#/components/schemas/Credits"}}}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/lists/add":{"post":{"operationId":"addToLists","tags":["Lists"],"summary":"Add leads to one or more lists","description":"Free. From rows of a run (search, enrich or another list), a finished bulk verification job, or verified emails. Hidden leads stay hidden until revealed on the list. Leads a list already holds are skipped; a list holds at most 10,000 leads.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lists":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[a-f0-9]{24}$"}},"from":{"anyOf":[{"type":"object","properties":{"runId":{"type":"string","pattern":"^[a-f0-9]{24}$"},"rows":{"minItems":1,"maxItems":10000,"type":"array","items":{"type":"integer","minimum":0,"maximum":9007199254740991}}},"required":["runId","rows"],"additionalProperties":false},{"type":"object","properties":{"jobId":{"type":"string","minLength":1,"maxLength":100}},"required":["jobId"],"additionalProperties":false},{"type":"object","properties":{"emails":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","properties":{"email":{"type":"string","maxLength":254},"verdict":{"anyOf":[{"type":"string","enum":["safe","risky","invalid","unknown"]},{"type":"null"}]}},"required":["email"],"additionalProperties":false}}},"required":["emails"],"additionalProperties":false}]}},"required":["lists","from"],"additionalProperties":false}}}},"responses":{"200":{"description":"Added","content":{"application/json":{"schema":{"type":"object","properties":{"added":{"type":"object","additionalProperties":{"type":"integer"},"description":"Leads each list gained"},"items":{"type":"integer","description":"Distinct leads in the source"},"credits":{"$ref":"#/components/schemas/Credits"}}}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/lists/{id}/remove":{"post":{"operationId":"removeFromList","tags":["Lists"],"summary":"Remove leads from a list (later rows are renumbered)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"List id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"minItems":1,"maxItems":10000,"type":"array","items":{"type":"integer","minimum":0,"maximum":9007199254740991}}},"required":["rows"],"additionalProperties":false}}}},"responses":{"200":{"description":"Removed","content":{"application/json":{"schema":{"type":"object","properties":{"list":{"$ref":"#/components/schemas/Run"},"removed":{"type":"integer"},"credits":{"$ref":"#/components/schemas/Credits"}}}}}},"401":{"description":"Missing, malformed or unknown API key (unauthorized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (leads_rate_limited, leads_busy), fair use or preview limits (leads_fair_use, leads_preview_limit) or a global limit. Wait Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Any other error: see the code. 400 invalid request or filters, 403 leads_forbidden, 404 leads_not_found, 409 busy / running / not ready, 410 leads_expired, 503 leads_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/openapi.json":{"get":{"operationId":"getOpenApi","tags":["Account & credits"],"summary":"This document","security":[],"responses":{"200":{"description":"OpenAPI 3.1 document","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/verify/single":{"post":{"summary":"Verify a single email address","description":"Performs comprehensive email verification including syntax, MX records, SMTP, and misc checks. Costs 1 credit; not charged if the check fails on our side.","operationId":"verifySingleEmail","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleVerifyRequest"}}}},"responses":{"200":{"description":"Verification result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationResult"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyError"}}}},"402":{"description":"Not enough credits (1 credit per email). Nothing was charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientCredits"}}}},"429":{"description":"Too many requests (per-account or server-wide limit). Wait for the Retry-After header.","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyError"}}}}},"tags":["Verification"]}},"/verify/bulk":{"post":{"summary":"Submit a bulk verification job","description":"Submit an array of emails to verify in bulk Duplicates are removed (case-insensitive) and each remaining address costs 1 credit.","operationId":"submitBulkJob","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkVerifyRequest"}}}},"responses":{"200":{"description":"Job created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkJobResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyError"}}}},"402":{"description":"Not enough credits (1 credit per email). Nothing was charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientCredits"}}}},"429":{"description":"Too many requests (per-account or server-wide limit). Wait for the Retry-After header.","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyError"}}}}},"tags":["Verification"]}},"/verify/bulk/{id}":{"get":{"summary":"Get bulk job progress","description":"Check the progress of a bulk verification job","operationId":"getBulkJobProgress","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The job ID returned from bulk submission"}],"responses":{"200":{"description":"Job progress","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkJobProgress"}}}},"400":{"description":"Malformed job id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyError"}}}},"403":{"description":"The job belongs to another account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyError"}}}},"404":{"description":"Job not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyError"}}}}},"tags":["Verification"]}},"/verify/bulk/{id}/download":{"get":{"summary":"Download bulk results","description":"CSV with columns: input, is_reachable, misc.is_disposable, misc.is_role_account, misc.gravatar_url, mx.accepts_mail, smtp.can_connect, smtp.has_full_inbox, smtp.is_catch_all, smtp.is_deliverable, smtp.is_disabled, syntax.is_valid_syntax, syntax.domain, syntax.username, error. Cells starting with = + - @ are prefixed with ' (formula-injection safe). Available once the job is completed.","operationId":"downloadBulkResults","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The job ID"}],"responses":{"200":{"description":"CSV file with results","content":{"text/csv":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Malformed job id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyError"}}}},"403":{"description":"The job belongs to another account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyError"}}}},"404":{"description":"Job not found or not completed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyError"}}}},"409":{"description":"Job is still running","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyError"}}}}},"tags":["Verification"]}},"/verify/history":{"get":{"summary":"Get verification history","description":"Retrieve the history of bulk verification jobs","operationId":"getHistory","responses":{"200":{"description":"History list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoryResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyError"}}}}},"tags":["Verification"]}},"/verify/bulk/upload":{"post":{"summary":"Start a bulk job from a file","operationId":"uploadBulkFile","description":"Upload a .csv, .tsv, .txt or .xlsx file (up to 100 MB, 1,000,000 addresses). The email column is found automatically; invalid, blank and duplicate rows are skipped. Each remaining address costs 1 credit. Content-Length is required.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary"},"webhook":{"type":"string","description":"Optional JSON object, same as webhook in POST /bulk"}}}}}},"responses":{"200":{"description":"Job started","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/BulkJobResponse"},{"type":"object","properties":{"import":{"type":"object","properties":{"file":{"type":"string"},"bytes":{"type":"integer"},"emails":{"type":"integer"},"column":{"type":["string","null"]},"rows":{"type":"integer"},"invalid":{"type":"integer"},"blank":{"type":"integer"},"duplicates":{"type":"integer"},"overLimit":{"type":"integer"}}}}}]}}}},"400":{"description":"Unsupported or corrupt file, or bad webhook","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyError"}}}},"402":{"description":"Not enough credits (1 credit per email). Nothing was charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientCredits"}}}},"411":{"description":"Content-Length is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyError"}}}},"413":{"description":"File over 100 MB","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyError"}}}},"422":{"description":"No email addresses found in the file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyError"}}}},"429":{"description":"Too many requests (per-account or server-wide limit). Wait for the Retry-After header.","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyError"}}}}},"tags":["Verification"]}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API key","description":"Your API key (yes_...) from the API key page"},"apiKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key","description":"The same key in an X-API-Key header"}},"schemas":{"Filters":{"type":"object","properties":{"titles":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Role: Job titles. Keywords match; put a title in [brackets] for an exact match"},"seniority":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["executive","vp","director","manager","senior","entry","unspecified"]},"description":"Role: Seniority."},"departments":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Role: Departments. Values from GET /leads/values?field=departments."},"roleStartedAfter":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Role: Started role on or after."},"roleStartedBefore":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Role: Started role on or before."},"decisionMaker":{"type":"boolean","const":true,"description":"Role: Decision makers only."},"pastTitles":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Role: Past job titles. Whole titles of ended jobs"},"pastCompanies":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Role: Past companies. Whole company names of ended jobs"},"headline":{"type":"string","minLength":1,"maxLength":100,"description":"Person: Profile contains. Headline, summary, skills and job descriptions"},"skills":{"type":"string","minLength":1,"maxLength":100,"description":"Person: Skills contain."},"education":{"type":"string","minLength":1,"maxLength":100,"description":"Person: Education contains."},"certifications":{"type":"string","minLength":1,"maxLength":100,"description":"Person: Certifications contain."},"languages":{"type":"string","minLength":1,"maxLength":100,"description":"Person: Languages contain."},"degrees":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["high_school","diploma_certificate","associate","bachelor","master","mba","doctorate","other"]},"description":"Person: Degree level."},"connectionsMin":{"type":"number","minimum":-1000,"maximum":1000000000000,"description":"Person: LinkedIn connections at least. 0 to 500"},"continents":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Location: Continents. Values from GET /leads/values?field=continents."},"macroRegions":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Location: World regions. Values from GET /leads/values?field=macroRegions."},"countries":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Location: Countries. Values from GET /leads/values?field=countries."},"states":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Location: States or provinces. Name or code, e.g. California or CA"},"cities":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Location: Cities."},"companyDomains":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Company: Company domains. Domains or website addresses"},"companyName":{"type":"string","minLength":1,"maxLength":100,"description":"Company: Company name."},"companyLinkedinUrls":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Company: Company LinkedIn URLs."},"industries":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Company: Industries. Values from GET /leads/values?field=industries."},"revenue":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["r1","r2","r3","r4","r5","r6"]},"description":"Company: Revenue."},"technologies":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Company: Technologies used. Detected on the company website"},"fundingTypes":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Company: Last funding type. Values from GET /leads/values?field=fundingTypes."},"companyTypes":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Company: Company type. Values from GET /leads/values?field=companyTypes."},"techCategories":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Company: Technology categories. Values from GET /leads/values?field=techCategories."},"investors":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Company: Lead investors."},"lastFundingFrom":{"type":"number","minimum":-1000,"maximum":1000000000000,"description":"Company: Last funded in or after (year)."},"lastFundingTo":{"type":"number","minimum":-1000,"maximum":1000000000000,"description":"Company: Last funded in or before (year)."},"companyKeywords":{"type":"string","minLength":1,"maxLength":100,"description":"Company: Company description contains. Specific phrases work best; very common words match too many companies"},"foundedFrom":{"type":"number","minimum":-1000,"maximum":1000000000000,"description":"Company: Founded in or after (year)."},"foundedTo":{"type":"number","minimum":-1000,"maximum":1000000000000,"description":"Company: Founded in or before (year)."},"totalFundingMin":{"type":"number","minimum":-1000,"maximum":1000000000000,"description":"Company: Total funding at least (USD)."},"totalFundingMax":{"type":"number","minimum":-1000,"maximum":1000000000000,"description":"Company: Total funding at most (USD)."},"followersMin":{"type":"number","minimum":-1000,"maximum":1000000000000,"description":"Company: LinkedIn followers at least."},"followersMax":{"type":"number","minimum":-1000,"maximum":1000000000000,"description":"Company: LinkedIn followers at most."},"companySize":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["b1","b2","b3","b4","b5","b6","b7","b8"]},"description":"Company size: Company size bands."},"sizeBandMin":{"type":"string","enum":["b1","b2","b3","b4","b5","b6","b7","b8"],"description":"Company size: Smallest size band."},"sizeBandMax":{"type":"string","enum":["b1","b2","b3","b4","b5","b6","b7","b8"],"description":"Company size: Largest size band."},"employeesMin":{"type":"number","minimum":-1000,"maximum":1000000000000,"description":"Company size: Employees at least."},"employeesMax":{"type":"number","minimum":-1000,"maximum":1000000000000,"description":"Company size: Employees at most."},"hqCountries":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Headquarters: Headquarters countries. Values from GET /leads/values?field=hqCountries."},"hqStates":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Headquarters: Headquarters states. Name or code, e.g. Texas or TX"},"hqCities":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Headquarters: Headquarters cities."},"hqContinents":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Headquarters: Headquarters continents. Values from GET /leads/values?field=continents."},"hqMacroRegions":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Headquarters: Headquarters world regions. Values from GET /leads/values?field=macroRegions."},"hasEmail":{"type":"boolean","const":true,"description":"Contact data: Has a work email."},"hasMobile":{"type":"boolean","const":true,"description":"Contact data: Has a mobile phone."},"hasPhone":{"type":"boolean","const":true,"description":"Contact data: Has any phone."},"emailConfidence":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["confirmed","accepts_all","unconfirmed"]},"description":"Contact data: Source email confidence. From the data source, not our verification"},"excludeTitles":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Exclusions: Exclude job titles."},"excludeSeniority":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","enum":["executive","vp","director","manager","senior","entry","unspecified"]},"description":"Exclusions: Exclude seniority."},"excludeDepartments":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Exclusions: Exclude departments. Values from GET /leads/values?field=departments."},"excludeCompanyNames":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Exclusions: Exclude company names."},"excludeTechnologies":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Exclusions: Exclude technologies."},"excludeCities":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Exclusions: Exclude cities."},"excludeStates":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Exclusions: Exclude states or provinces."},"excludeHqStates":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Exclusions: Exclude headquarters states."},"excludeDomains":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Exclusions: Exclude company domains."},"excludeCountries":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Exclusions: Exclude countries. Values from GET /leads/values?field=countries."},"excludeHqCountries":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Exclusions: Exclude headquarters countries. Values from GET /leads/values?field=hqCountries."},"excludeIndustries":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"description":"Exclusions: Exclude industries. Values from GET /leads/values?field=industries."},"maxPerCompany":{"type":"integer","minimum":1,"maximum":10,"description":"Options: Most contacts per company. 1 to 10"}},"additionalProperties":false,"description":"Search criteria (at least one, besides options). Every field is optional. GET /leads/meta lists the same definitions with labels and pick lists."},"ColumnId":{"type":"string","enum":["fullName","firstName","lastName","email","emailConfidence","personalEmails","mobilePhone","directDial","companyPhone","title","seniority","department","currentRole","roleStartDate","headline","bio","linkedinUrl","skills","languages","tags","connections","location","country","state","city","continent","companyName","companyDomain","companyWebsite","companyLinkedinUrl","companyIndustry","sizeBand","employeesMin","employeesMax"],"description":"A column id (GET /leads/meta has the labels)"},"LeadRow":{"type":"object","description":"Lead values by column id. Contact values (email, personalEmails, mobilePhone, directDial, companyPhone) are present only once the row is revealed.","properties":{"fullName":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Full name"},"firstName":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"First name"},"lastName":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Last name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Work email"},"emailConfidence":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Source email confidence"},"personalEmails":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Personal emails"},"mobilePhone":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Mobile phone"},"directDial":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Direct dial"},"companyPhone":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Company phone"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Job title"},"seniority":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Seniority"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Department"},"currentRole":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Still in this role"},"roleStartDate":{"anyOf":[{"type":"string","description":"YYYY-MM-DD"},{"type":"null"}],"description":"Role start date"},"headline":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Headline"},"bio":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Bio"},"linkedinUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"LinkedIn URL"},"skills":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Skills"},"languages":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Languages"},"tags":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Tags"},"connections":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"LinkedIn connections"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Location"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Country"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"State"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"City"},"continent":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Continent"},"companyName":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Company"},"companyDomain":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Company domain"},"companyWebsite":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Company website"},"companyLinkedinUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Company LinkedIn URL"},"companyIndustry":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Industry"},"sizeBand":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Company size band"},"employeesMin":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Employees (band minimum)"},"employeesMax":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Employees (band maximum)"}}},"Row":{"type":"object","properties":{"i":{"type":"integer","description":"Row number in the run"},"row":{"$ref":"#/components/schemas/LeadRow"},"revealed":{"type":"boolean"},"owned":{"type":"boolean"},"has":{"type":"object","additionalProperties":{"type":"boolean"},"description":"Which contact values the row holds"},"hasPhoto":{"type":"boolean"},"hasLogo":{"type":"boolean"},"photoUrl":{"type":["string","null"],"description":"Our image URL; send the API key"},"logoUrl":{"type":["string","null"],"description":"Our image URL; send the API key"},"input":{"type":"object","additionalProperties":{"type":"string"},"description":"Enrich: your input"},"state":{"type":"string","enum":["pending","sent","matched","no_match","invalid_input","skipped","unknown"],"description":"Enrich: outcome"},"verdict":{"type":["string","null"],"description":"Verification result (safe, risky, invalid, unknown) after POST /runs/{id}/verify"}}},"Run":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["search","export","enrich","list"]},"name":{"type":"string","description":"Lists only: the list name"},"status":{"type":"string","enum":["running","completed","partial","failed","unknown"]},"filters":{"type":"object"},"columns":{"type":"array","items":{"$ref":"#/components/schemas/ColumnId"}},"requested":{"type":"integer"},"returned":{"type":"integer"},"total":{"type":["integer","null"]},"atLeast":{"type":"boolean"},"hasMore":{"type":"boolean"},"stopped":{"type":["string","null"],"description":"no_credits: the enrichment stopped when lead credits ran out; top up and POST /runs/{id}/retry"},"bulkJobId":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"RunView":{"type":"object","properties":{"run":{"$ref":"#/components/schemas/Run"},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row"},"description":"Up to 100 rows from offset (GET /runs/{id} pages through the rest)"},"offset":{"type":"integer"},"summary":{"type":"object","description":"Enrich runs","properties":{"total":{"type":"integer"},"matched":{"type":"integer"},"noMatch":{"type":"integer"},"invalid":{"type":"integer"},"skipped":{"type":"integer"},"unknown":{"type":"integer"},"pending":{"type":"integer"},"matchRate":{"type":["number","null"]}}},"credits":{"$ref":"#/components/schemas/Credits"}}},"Credits":{"type":"object","properties":{"charged":{"type":"integer","description":"Lead credits this call charged (GET /runs/{id}: the whole run)"},"remaining":{"type":"integer","description":"Lead credits left"},"unlimited":{"type":"boolean"}}},"Account":{"type":"object","properties":{"leads":{"type":"object","description":"Lead credits: remaining, unlimited, usedToday, plan, trial, bonus, preview, resetsAt"},"verification":{"type":"object","description":"Verification credits: remaining, unlimited, daily, free, pack, resetsAt"},"upgradeUrl":{"type":"string"}}},"Error":{"type":"object","required":["error","code"],"properties":{"error":{"type":"string","description":"Message for people"},"code":{"type":"string","enum":["unauthorized","leads_forbidden","leads_unavailable","leads_invalid_request","leads_invalid_filters","leads_filter_too_broad","leads_not_found","leads_busy","leads_rate_limited","leads_daily_limit","leads_run_busy","leads_no_more","leads_run_limit","leads_expired","leads_export_running","leads_enrich_running","leads_too_many_rows","leads_not_ready","leads_no_emails","leads_saved_limit","leads_list_limit","leads_list_full","leads_no_credits","leads_no_lead_credits","leads_fair_use","leads_preview_limit","leads_monthly_limit","leads_verify_failed","leads_idempotency_conflict","leads_idempotency_busy"],"description":"unauthorized (401), leads_forbidden (403), leads_unavailable (503), leads_invalid_request (400), leads_invalid_filters (400), leads_filter_too_broad (400), leads_not_found (404), leads_busy (429), leads_rate_limited (429), leads_daily_limit (429), leads_run_busy (409), leads_no_more (409), leads_run_limit (409), leads_expired (410), leads_export_running (409), leads_enrich_running (409), leads_too_many_rows (400), leads_not_ready (409), leads_no_emails (400), leads_saved_limit (409), leads_list_limit (409), leads_list_full (409), leads_no_credits (402), leads_no_lead_credits (402), leads_fair_use (429), leads_preview_limit (429), leads_monthly_limit (429), leads_verify_failed (503), leads_idempotency_conflict (422), leads_idempotency_busy (409)"},"retryAfter":{"type":"integer"},"needed":{"type":"integer"},"remaining":{"type":"integer"},"resetsAt":{"type":["string","null"],"format":"date-time"},"upgradeUrl":{"type":"string"},"runId":{"type":"string","description":"Search with reveal: the stored search"}}},"SingleVerifyRequest":{"type":"object","required":["to_email"],"properties":{"to_email":{"type":"string","format":"email","description":"The email address to verify"}}},"BulkVerifyRequest":{"type":"object","required":["emails"],"properties":{"emails":{"type":"array","items":{"type":"string","format":"email"},"minItems":1,"description":"Array of email addresses to verify","maxItems":1000000},"webhook":{"type":"object","description":"Optional callbacks: on_each_email is called with each result, on_job_complete once when the job finishes.","properties":{"on_each_email":{"oneOf":[{"type":"string","format":"uri"},{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"extra":{"description":"Any JSON, echoed back in the webhook body"}}}],"description":"http(s) URL resolving to a public address"},"on_job_complete":{"oneOf":[{"type":"string","format":"uri"},{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"extra":{"description":"Any JSON, echoed back in the webhook body"}}}],"description":"http(s) URL resolving to a public address"}}}}},"VerificationResult":{"type":"object","description":"Same body as Reacher /v1/check_email.","additionalProperties":true,"properties":{"input":{"type":"string"},"is_reachable":{"type":"string","enum":["safe","risky","invalid","unknown"]},"syntax":{"type":"object","additionalProperties":true,"properties":{"is_valid_syntax":{"type":"boolean"},"username":{"type":"string"},"domain":{"type":"string"},"address":{"type":["string","null"]}}},"mx":{"type":"object","additionalProperties":true,"properties":{"accepts_mail":{"type":"boolean"},"records":{"type":"array","items":{"type":"string"}}}},"smtp":{"type":"object","additionalProperties":true,"properties":{"can_connect_smtp":{"type":"boolean"},"has_full_inbox":{"type":"boolean"},"is_catch_all":{"type":"boolean"},"is_deliverable":{"type":"boolean"},"is_disabled":{"type":"boolean"}}},"misc":{"type":"object","additionalProperties":true,"properties":{"is_disposable":{"type":"boolean"},"is_role_account":{"type":"boolean"},"is_b2c":{"type":"boolean"},"gravatar_url":{"type":["string","null"]}}},"debug":{"type":"object","additionalProperties":true}}},"BulkJobResponse":{"type":"object","properties":{"job_id":{"type":"string","description":"Unique job identifier"},"total":{"type":"integer","description":"Total number of emails to verify"},"duplicates_removed":{"type":"integer","description":"Addresses dropped as duplicates (case-insensitive) before charging; only present when > 0"}}},"BulkJobProgress":{"type":"object","properties":{"job_id":{"type":"string"},"status":{"type":"string","enum":["running","completed"]},"total":{"type":"integer"},"processed":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"finished_at":{"type":["string","null"],"format":"date-time"},"summary":{"type":"object","properties":{"total_safe":{"type":"integer"},"total_risky":{"type":"integer"},"total_invalid":{"type":"integer"},"total_unknown":{"type":"integer"}}}}},"HistoryResponse":{"type":"object","properties":{"history":{"type":"array","items":{"type":"object","properties":{"jobId":{"type":"string"},"total":{"type":"integer"},"valid":{"type":"integer"},"invalid":{"type":"integer"},"risky":{"type":"integer"},"status":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"processed":{"type":"integer"},"unknown":{"type":"integer"},"finishedAt":{"type":["string","null"],"format":"date-time"}}}}}},"InsufficientCredits":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","example":"insufficient_credits"},"needed":{"type":"integer"},"remaining":{"type":"integer","description":"Credits available now: today's daily plan credits + this month's free credits + pack credits"},"resetsAt":{"type":["string","null"],"format":"date-time","description":"When more credits next arrive (tomorrow 00:00 UTC on a daily plan, otherwise the free month's reset)"},"buyUrl":{"type":"string","example":"/dashboard/billing","description":"Where to buy more credits"}}},"VerifyError":{"type":"object","required":["error"],"properties":{"error":{"description":"A message, or (for errors passed through from the verification engine on /single) an object {code, message}.","oneOf":[{"type":"string"},{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}]},"code":{"type":"string","description":"Machine-readable code on some errors, e.g. insufficient_credits, not_found"}}}}}}