{"openapi":"3.0.0","info":{"title":"ScoutLayer API","version":"1.0.0","description":"Public website contacts, source evidence and background website research."},"servers":[{"url":"https://api.scoutlayer.io","description":"Production"}],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API key passed as the X-API-Key request header. Recommended for server-to-server calls."},"BearerAuth":{"type":"http","scheme":"bearer","description":"API key (or OAuth token) passed as a Bearer token in the Authorization header."}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"NOT_FOUND"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}},"parameters":{}},"paths":{"/v1/domain/{domain}":{"get":{"tags":["domain"],"summary":"Recommend a business contact and channel, with company context and published contact details","description":"Read the company's own website to recommend a relevant person and contact channel for the requested purpose, explain the choice with source evidence, summarize its business, and return other published emails, phones, contact pages and company/personal social profiles. Emails include basic syntax, DNS/MX and risk checks; mailbox existence and deliverability are not verified. `recommendation` may select a personal social profile or a clearly labelled inferred personal email before a shared team route. Inferred addresses have unconfirmed ownership. The compatible `best_contact` field remains observed-email-only: 0 credits when null, otherwise 1 credit. Guessed addresses stay separately labelled in people and never trigger billing.","x-scoutlayer-credit-cost":1,"x-scoutlayer-platform":"domain","x-scoutlayer-docs-slug":"v1/domain/intelligence","x-mint":{"metadata":{"title":"Website Contact Finder API","sidebarTitle":"Contact Finder"}},"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"example":"stripe.com"},"required":true,"name":"domain","in":"path"},{"schema":{"type":"string","enum":["business","partnerships","press","support"],"description":"Contact purpose used to rank people and channels. Defaults to business. It does not change the published facts or the email-based billing rule.","example":"partnerships"},"required":false,"description":"Contact purpose used to rank people and channels. Defaults to business. It does not change the published facts or the email-based billing rule.","name":"purpose","in":"query"},{"schema":{"type":"string","description":"How many of the site's own pages to read, 1-20. Default 8, which covers the conventional contact pages on almost every site.","example":"8"},"required":false,"description":"How many of the site's own pages to read, 1-20. Default 8, which covers the conventional contact pages on almost every site.","name":"maxPages","in":"query"}],"responses":{"200":{"description":"Recommend a business contact and channel, with company context and published contact details","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["ok","error"]},"domain":{"type":"string"},"information":{"type":"object","properties":{"name":{"type":"string","nullable":true},"legal_name":{"type":"string","nullable":true,"description":"The registered entity behind the site, when one is stated — e.g. `Stripe, Inc.` rather than `Stripe`. Read from schema.org markup when declared, otherwise from the site's own Terms/Privacy copy or footer copyright line.","example":"Example Technologies, Inc."},"website":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"business":{"type":"object","nullable":true,"properties":{"summary":{"type":"string","nullable":true},"offerings":{"type":"array","items":{"type":"string"}},"customers":{"type":"string","nullable":true},"scale":{"type":"string","enum":["solo","small_team","larger_company","unknown"]},"scale_evidence":{"type":"string","nullable":true},"source_urls":{"type":"array","items":{"type":"string"}},"evidence":{"type":"array","items":{"type":"object","properties":{"source_url":{"type":"string"},"quote":{"type":"string"}},"required":["source_url","quote"]}}},"required":["summary","offerings","customers","scale","scale_evidence","source_urls","evidence"]},"language":{"type":"string","nullable":true},"logo":{"type":"object","nullable":true,"properties":{"url":{"type":"string"},"width":{"type":"integer","nullable":true},"height":{"type":"integer","nullable":true}},"required":["url","width","height"]},"favicon":{"type":"object","nullable":true,"properties":{"url":{"type":"string"}},"required":["url"]},"og_image":{"type":"string","nullable":true,"description":"The site's declared social-share preview image (`og:image`/`twitter:image`) — a larger marketing image, distinct from `logo`/`favicon`."},"address":{"type":"object","nullable":true,"properties":{"street":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"region":{"type":"string","nullable":true},"postal_code":{"type":"string","nullable":true},"country":{"type":"string","nullable":true},"country_code":{"type":"string","nullable":true,"description":"ISO 3166-1 alpha-2, when the country name resolves to one","example":"US"},"formatted":{"type":"string","nullable":true}},"required":["street","city","region","postal_code","country","country_code","formatted"]},"brand":{"type":"object","nullable":true,"properties":{"primary_color":{"type":"string","nullable":true,"example":"#635bff"},"colors":{"type":"array","items":{"type":"string"}}},"required":["primary_color","colors"]}},"required":["name","legal_name","website","title","description","language","logo","favicon","address","brand"]},"best_contact":{"type":"object","nullable":true,"properties":{"display_name":{"type":"string","description":"Stored contact title or salutation. May be a website-listed name, a labelled email-local-part inference, or a company team label; it does not establish personal identity."},"display_name_source":{"type":"string","enum":["website","email_local_part","company_name","user"],"description":"Origin of display_name. email_local_part is an inferred salutation, not a verified person. company_name identifies a team, never an individual. user is an account owner's edit to a saved contact, not a website-verified identity."},"type":{"type":"string","enum":["person_email","role_email","generic_email"],"description":"Always an email. `best_contact` is null rather than falling back to a phone number, a contact form, or a social profile — those still appear in their own arrays."},"value":{"type":"string"},"person_id":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"role":{"type":"string","nullable":true},"confidence":{"type":"number","minimum":0,"maximum":1},"source_urls":{"type":"array","items":{"type":"string"},"description":"Pages this fact was read off"},"email_source":{"type":"string","enum":["observed","guessed"],"description":"`observed` was actually published on the site. `guessed` is inferred from the person's name and the domain, then checked for a valid mail-accepting domain — never confirmed to be that person's real mailbox. See `people[].email_source`."}},"required":["type","value","person_id","name","role","confidence","source_urls"]},"recommendation":{"type":"object","nullable":true,"properties":{"display_name":{"type":"string","description":"Stored contact title or salutation. May be a website-listed name, a labelled email-local-part inference, or a company team label; it does not establish personal identity."},"display_name_source":{"type":"string","enum":["website","email_local_part","company_name","user"],"description":"Origin of display_name. email_local_part is an inferred salutation, not a verified person. company_name identifies a team, never an individual. user is an account owner's edit to a saved contact, not a website-verified identity."},"fit":{"type":"string","enum":["specific","likely","general"]},"channel":{"type":"string","enum":["email","social","contact_page"]},"platform":{"type":"string","nullable":true},"value":{"type":"string"},"target":{"type":"string","enum":["person","department","company"]},"person_id":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"role":{"type":"string","nullable":true},"recipient":{"type":"object","nullable":true,"properties":{"person_id":{"type":"string"},"name":{"type":"string"},"role":{"type":"string"},"source_urls":{"type":"array","items":{"type":"string"}}},"required":["person_id","name","role","source_urls"],"description":"Named website-identified person to ask for through a shared team route. This does not attribute the team inbox or company profile to that person."},"reason":{"type":"string"},"method":{"type":"string","enum":["ai","rules"]},"email_source":{"type":"string","nullable":true,"enum":["observed","guessed",null]},"verification":{"type":"object","nullable":true,"properties":{"status":{"type":"string","enum":["passed","risky","failed","unknown"]},"syntax_valid":{"type":"boolean"},"mail_server":{"type":"string","enum":["mx","implicit","none","null_mx","unknown"]},"mx_hosts":{"type":"array","items":{"type":"string"}},"disposable":{"type":"boolean"},"free_provider":{"type":"boolean"},"mailbox_status":{"type":"string","enum":["not_checked"]},"reasons":{"type":"array","items":{"type":"string"}},"checked_at":{"type":"string","nullable":true}},"required":["status","syntax_valid","mail_server","mx_hosts","disposable","free_provider","mailbox_status","reasons","checked_at"]},"source_urls":{"type":"array","items":{"type":"string"}},"evidence":{"type":"array","items":{"type":"object","properties":{"source_url":{"type":"string"},"quote":{"type":"string"}},"required":["source_url","quote"]}},"limitations":{"type":"array","items":{"type":"string"}}},"required":["channel","platform","value","target","person_id","name","role","reason","method","email_source","verification","source_urls","evidence","limitations"],"description":"Evidence-backed starting point for the requested contact purpose, not a guarantee of authority or interest. A relevant person, department, company inbox or contact page may be selected. For business enquiries, a basic-checked inferred personal address may be recommended before a shared team route when no published personal route is available. email_source=guessed explicitly marks unconfirmed ownership; best_contact and billing remain observed-email-only."},"emails":{"type":"array","items":{"type":"object","properties":{"display_name":{"type":"string","description":"Stored contact title or salutation. May be a website-listed name, a labelled email-local-part inference, or a company team label; it does not establish personal identity."},"display_name_source":{"type":"string","enum":["website","email_local_part","company_name","user"],"description":"Origin of display_name. email_local_part is an inferred salutation, not a verified person. company_name identifies a team, never an individual. user is an account owner's edit to a saved contact, not a website-verified identity."},"email":{"type":"string"},"type":{"type":"string","enum":["personal","role","generic"],"description":"`personal` names a person (jane@). `role` addresses a function (sales@, press@). `generic` is a catch-all with no specific function (info@, hello@)."},"person_id":{"type":"string","nullable":true},"confidence":{"type":"number","minimum":0,"maximum":1},"source_urls":{"type":"array","items":{"type":"string"},"description":"Pages this fact was read off"},"purpose":{"type":"string","enum":["business","sales","partnerships","support","press","careers","legal","privacy","security","other"]},"verification":{"type":"object","properties":{"status":{"type":"string","enum":["passed","risky","failed","unknown"]},"syntax_valid":{"type":"boolean"},"mail_server":{"type":"string","enum":["mx","implicit","none","null_mx","unknown"]},"mx_hosts":{"type":"array","items":{"type":"string"}},"disposable":{"type":"boolean"},"free_provider":{"type":"boolean"},"mailbox_status":{"type":"string","enum":["not_checked"]},"reasons":{"type":"array","items":{"type":"string"}},"checked_at":{"type":"string","nullable":true}},"required":["status","syntax_valid","mail_server","mx_hosts","disposable","free_provider","mailbox_status","reasons","checked_at"]}},"required":["email","type","person_id","confidence","source_urls"]}},"phones":{"type":"array","items":{"type":"object","properties":{"phone":{"type":"string"},"type":{"type":"string","enum":["business","mobile","unknown"]},"confidence":{"type":"number","minimum":0,"maximum":1},"source_urls":{"type":"array","items":{"type":"string"},"description":"Pages this fact was read off"}},"required":["phone","type","confidence","source_urls"]}},"socials":{"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","example":"linkedin"},"url":{"type":"string"},"handle":{"type":"string","nullable":true},"source_urls":{"type":"array","items":{"type":"string"},"description":"Pages this fact was read off"}},"required":["platform","url","handle","source_urls"]}},"people":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"role":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"email_source":{"type":"string","nullable":true,"enum":["observed","guessed",null],"description":"`observed` was actually published on the site. `guessed` is inferred from the person's name and the domain, then checked for a valid mail-accepting domain — never confirmed to be that person's real mailbox. See `people[].email_source`."},"email_verification":{"type":"object","nullable":true,"properties":{"status":{"type":"string","enum":["passed","risky","failed","unknown"]},"syntax_valid":{"type":"boolean"},"mail_server":{"type":"string","enum":["mx","implicit","none","null_mx","unknown"]},"mx_hosts":{"type":"array","items":{"type":"string"}},"disposable":{"type":"boolean"},"free_provider":{"type":"boolean"},"mailbox_status":{"type":"string","enum":["not_checked"]},"reasons":{"type":"array","items":{"type":"string"}},"checked_at":{"type":"string","nullable":true}},"required":["status","syntax_valid","mail_server","mx_hosts","disposable","free_provider","mailbox_status","reasons","checked_at"]},"linkedin_url":{"type":"string","nullable":true},"profiles":{"type":"array","items":{"type":"object","properties":{"platform":{"type":"string"},"url":{"type":"string"},"source_urls":{"type":"array","items":{"type":"string"}}},"required":["platform","url","source_urls"]}},"confidence":{"type":"number","minimum":0,"maximum":1},"source_urls":{"type":"array","items":{"type":"string"},"description":"Pages this fact was read off"}},"required":["id","name","role","email","confidence","source_urls"],"description":"A person the site itself names with a role (e.g. a team page's \"Jane Doe, Founder\") — never looked up externally. Empty when the site doesn't publish any."}},"pages":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["contact","about","team","leadership","author","other"]},"url":{"type":"string"},"title":{"type":"string","nullable":true}},"required":["type","url","title"]}},"summary":{"type":"object","properties":{"has_contact":{"type":"boolean"},"has_email":{"type":"boolean"},"email_count":{"type":"integer"},"phone_count":{"type":"integer"},"social_count":{"type":"integer"},"people_count":{"type":"integer"},"has_recommendation":{"type":"boolean"},"personal_profile_count":{"type":"integer"}},"required":["has_contact","has_email","email_count","phone_count","social_count","people_count"]},"meta":{"type":"object","properties":{"contact_purpose":{"type":"string","enum":["business","partnerships","press","support"]},"credits_consumed":{"type":"integer"},"fetched_at":{"type":"string"},"processing_ms":{"type":"integer"}},"required":["credits_consumed","fetched_at","processing_ms"]}},"required":["status","domain","information","best_contact","emails","phones","socials","people","pages","summary","meta"]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Insufficient credits","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Email not verified — never charged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests — never charged, retry shortly","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"501":{"description":"This endpoint is declared but not yet implemented — never charged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"A source site or browser service failed or was unreachable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/research/jobs":{"post":{"tags":["Research jobs"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"summary":"Research a saved list of company websites in the background","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"websites":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":10000},"requestKey":{"type":"string","minLength":8,"maxLength":160},"name":{"type":"string","maxLength":100},"refresh":{"type":"boolean"},"purpose":{"type":"string","enum":["business","partnerships","press","support"]},"callbackUrl":{"type":"string","format":"uri"},"callbackSecret":{"type":"string","minLength":16,"maxLength":200}},"required":["websites","requestKey"]}}}},"responses":{"200":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"202":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"400":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"401":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"402":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"403":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"404":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"409":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"413":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"429":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"500":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"503":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}}}},"get":{"tags":["Research jobs"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"summary":"List recent research tasks","responses":{"200":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"202":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"400":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"401":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"402":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"403":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"404":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"409":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"413":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"429":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"500":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"503":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}}}}},"/v1/research/jobs/{id}":{"get":{"tags":["Research jobs"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"summary":"Read task progress and a page of results","parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"integer","nullable":true,"minimum":0},"required":false,"name":"offset","in":"query"}],"responses":{"200":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"202":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"400":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"401":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"402":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"403":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"404":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"409":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"413":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"429":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"500":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"503":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}}}}},"/v1/research/jobs/{id}/{action}":{"post":{"tags":["Research jobs"],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"summary":"Cancel, resume or retry a research task","parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","enum":["cancel","resume","retry"]},"required":true,"name":"action","in":"path"}],"responses":{"200":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"202":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"400":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"401":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"402":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"403":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"404":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"409":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"413":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"429":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"500":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}},"503":{"description":"Research task response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"nullable":true}}}}}}}}}}