{"openapi":"3.1.0","info":{"title":"GetBrand API","version":"1.0.0","description":"Extract structured brand data — logos, colors, typography, company metadata, and social links — for any domain. Results are cached; most requests return in 10–20 seconds on first extraction, instantly on subsequent calls.\n\n## Domain normalization\n\nThe `domain` field is normalized before use: protocol (`https://`), `www.` prefix, path, query string, and trailing dots are all stripped automatically. IP addresses and `localhost` are rejected."},"servers":[{"url":"https://api.getbrand.dev","description":"Production"}],"components":{"schemas":{"BrandStatusComplete":{"type":"object","properties":{"id":{"type":["string","null"],"example":"b7d3efe4-3f13-4abe-b386-ea7e200d9cbf","description":"Workflow instance ID, or null if result was served from cache"},"status":{"type":"string","enum":["complete"]},"domain":{"type":"string","example":"stripe.com"},"data":{"$ref":"#/components/schemas/BrandData"},"meta":{"type":"object","properties":{"timings":{"type":"object","additionalProperties":{"type":"number"},"example":{"total":18.4,"wikipedia":1.2,"screenshot":8.1},"description":"Step name → duration in seconds"}},"required":["timings"]}},"required":["id","status","domain","data"]},"BrandData":{"type":"object","properties":{"domain":{"type":"string","example":"stripe.com"},"name":{"type":"string","example":"Stripe, Inc."},"description":{"type":"string"},"web_title":{"type":"string","example":"Stripe | Financial Infrastructure for the Internet"},"web_description":{"type":"string","example":"Stripe powers online and in-person payment processing"},"share_previews":{"type":"array","items":{"$ref":"#/components/schemas/SharePreview"}},"screenshots":{"type":"array","items":{"$ref":"#/components/schemas/Screenshot"}},"logos":{"type":"array","items":{"$ref":"#/components/schemas/BrandLogo"},"description":"Ranked best-first"},"colors":{"type":"array","items":{"$ref":"#/components/schemas/NamedColor"},"description":"Up to 8 deduplicated brand colors, logo pixels first"},"color_scheme":{"type":"string","enum":["light","dark"],"example":"light","description":"Detected site color scheme from page imagery (light or dark)."},"slogan":{"type":"string","example":"Financial infrastructure for the internet"},"headline":{"type":"string","example":"Payments infrastructure for the internet"},"cta":{"type":"string","example":"Start now"},"typography":{"$ref":"#/components/schemas/BrandTypography"},"socials":{"type":"array","items":{"$ref":"#/components/schemas/SocialLink"}},"industries":{"type":"object","properties":{"eic":{"type":"array","items":{"$ref":"#/components/schemas/IndustryEntry"}}},"required":["eic"]},"links":{"type":"object","additionalProperties":{"type":["string","null"]},"description":"Always {} currently"},"is_nsfw":{"type":"boolean","example":false},"founded":{"type":"string","example":"2010-09-01","description":"ISO date or year"},"founders":{"type":"array","items":{"type":"string"},"example":["Patrick Collison","John Collison"]},"headquarters":{"type":"string","example":"San Francisco"},"country":{"type":"string","example":"United States"},"industry":{"type":"string","example":"Financial technology"},"ceo":{"type":"string","example":"Patrick Collison"},"employees":{"type":"integer","example":8000,"description":"Single integer headcount; midpoint when the source is a range."},"business_type":{"type":"string","enum":["public","private"]},"official_website":{"type":"string","format":"uri","example":"https://www.stripe.com/"},"wikipedia_url":{"type":"string","format":"uri","example":"https://en.wikipedia.org/wiki/Stripe,_Inc."},"wikipedia_extract":{"type":"string","description":"First paragraph from Wikipedia"},"stock":{"$ref":"#/components/schemas/StockInfo"},"linkedin":{"$ref":"#/components/schemas/LinkedInData"},"style":{"$ref":"#/components/schemas/BrandStyle"}},"required":["domain","name","share_previews","screenshots","logos","colors","socials","industries","links","is_nsfw"]},"SharePreview":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Stored URL of the og:image or twitter:image"},"colors":{"type":"array","items":{"$ref":"#/components/schemas/NamedColor"}}},"required":["url","colors"]},"NamedColor":{"type":"object","properties":{"hex":{"type":"string","example":"#625df5","description":"Hex color code, always lowercase with #"},"name":{"type":"string","example":"","description":"Color name (currently always empty)"}},"required":["hex","name"]},"Screenshot":{"type":"object","properties":{"type":{"type":"string","example":"top","description":"e.g. \"top\", \"bottom\""},"url":{"type":"string","format":"uri"}},"required":["type","url"]},"BrandLogo":{"type":"object","properties":{"url":{"type":"string","format":"uri","example":"https://img.getbrand.dev/...","description":"Primary URL — PNG preferred, else first available format"},"formats":{"type":"array","items":{"$ref":"#/components/schemas/BrandLogoFormat"}},"mode":{"type":"string","enum":["light","dark","any","has_opaque_background"],"example":"any","description":"Background mode the logo is designed for"},"colors":{"type":"array","items":{"$ref":"#/components/schemas/NamedColor"},"description":"Dominant pixel colors extracted from the image"},"resolution":{"$ref":"#/components/schemas/BrandLogoResolution"},"type":{"type":"string","enum":["logo","icon"],"example":"logo","description":"\"logo\" = wordmark or lockup; \"icon\" = symbol only"},"description":{"type":"string","description":"AI-generated description"},"text":{"type":"string","description":"Readable text visible in the logo (e.g. wordmark text)"},"shape":{"type":"string","enum":["round","square"],"description":"Icon shape (icons only)"}},"required":["url","formats","mode","colors","resolution","type"]},"BrandLogoFormat":{"type":"object","properties":{"format":{"type":"string","example":"svg","description":"One of \"svg\", \"png\", \"ico\", etc."},"url":{"type":"string","format":"uri","example":"https://img.getbrand.dev/..."}},"required":["format","url"]},"BrandLogoResolution":{"type":"object","properties":{"width":{"type":"integer","example":200,"description":"0 if unavailable"},"height":{"type":"integer","example":60,"description":"0 if unavailable"},"aspect_ratio":{"type":"number","example":3.33,"description":"width / height"}},"required":["width","height","aspect_ratio"]},"BrandTypography":{"type":"object","properties":{"headline":{"$ref":"#/components/schemas/TypographyFont"},"tagline":{"$ref":"#/components/schemas/TypographyFont"},"cta":{"$ref":"#/components/schemas/TypographyCta"},"custom_fonts":{"type":"array","items":{"type":"string"},"description":"Deduplicated list of custom font family names","example":["Inter","Söhne"]}}},"TypographyFont":{"type":"object","properties":{"fontFamily":{"type":"string","example":"Inter"},"fontUrl":{"type":"string","format":"uri","description":"CDN URL for custom fonts"},"fontSize":{"type":"string","example":"48px"},"color":{"type":"string","example":"#1a1a1a"}}},"TypographyCta":{"type":"object","properties":{"fontFamily":{"type":"string","example":"Inter"},"fontUrl":{"type":"string","format":"uri"},"fontSize":{"type":"string","example":"16px"},"color":{"type":"string","example":"#ffffff"},"backgroundColor":{"type":"string","example":"#635bff"}}},"SocialLink":{"type":"object","properties":{"type":{"type":"string","example":"x","description":"Platform name. Twitter is normalized to \"x\"."},"url":{"type":"string","format":"uri","example":"https://x.com/stripe"}},"required":["type","url"]},"IndustryEntry":{"type":"object","properties":{"industry":{"type":"string","example":"Technology"},"subindustry":{"type":"string","example":"B2B SaaS"}},"required":["industry"]},"StockInfo":{"type":"object","properties":{"ticker":{"type":"string","example":"SPOT"},"exchange":{"type":"string","example":"NYSE"}},"required":["ticker","exchange"]},"LinkedInData":{"type":"object","properties":{"logoUrl":{"type":"string","format":"uri","description":"Stored company logo URL from LinkedIn"},"bannerUrl":{"type":"string","format":"uri","description":"Stored cover/banner image URL"},"name":{"type":"string","description":"Company name as shown on LinkedIn"}}},"BrandStyle":{"type":"object","properties":{"description":{"type":"string","example":"Clean and modern with bold typography"},"tone_keywords":{"type":"array","items":{"type":"string"},"example":["minimal","trustworthy","bold"]}}},"StartBrandResponse":{"type":"object","properties":{"id":{"type":"string","example":"b7d3efe4-3f13-4abe-b386-ea7e200d9cbf","description":"Workflow instance ID"},"status":{"type":"string","example":"queued"},"domain":{"type":"string","example":"stripe.com"},"poll_url":{"type":"string","example":"https://api.getbrand.dev/api/brand/b7d3efe4-3f13-4abe-b386-ea7e200d9cbf","description":"Absolute URL to poll for status updates. You can poll even when webhook_url is provided."}},"required":["id","status","domain","poll_url"]},"StartBrandErrorResponse":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["MISSING_DOMAIN","INVALID_DOMAIN","INVALID_WEBHOOK_URL","PERSONAL_EMAIL_DOMAIN"],"example":"PERSONAL_EMAIL_DOMAIN","description":"`PERSONAL_EMAIL_DOMAIN`: personal/free email provider domains (gmail.com, outlook.com, yahoo.com, …) have no company brand and are never extractable."},"message":{"type":"string","example":"\"gmail.com\" is a personal email provider domain"}},"required":["code","message"]}},"required":["error"]},"UnauthorizedResponse":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"UNAUTHORIZED"},"message":{"type":"string","example":"Missing or invalid API key"}},"required":["code","message"]}},"required":["error"]},"InternalErrorResponse":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"INTERNAL_ERROR"},"message":{"type":"string","example":"An unexpected error occurred"}},"required":["code","message"]}},"required":["error"]},"StartBrandRequest":{"type":"object","properties":{"domain":{"type":"string","example":"stripe.com","description":"Domain to extract brand data for. Protocol, www prefix, path, and query string are stripped automatically. Personal email provider domains (gmail.com, outlook.com, yahoo.com, …) are rejected with a 400 `PERSONAL_EMAIL_DOMAIN` error."},"webhook_url":{"type":"string","format":"uri","example":"https://example.com/webhook","description":"HTTPS endpoint that receives a POST when extraction completes. Each webhook request includes `X-Webhook-Secret` (the API key's webhook secret) for verification. Your endpoint should return 2xx."},"webhook_on_cache_hit":{"type":"boolean","example":true,"description":"If true and webhook_url is set, enqueue a webhook even when this request is served from cache. Defaults to false."},"force_refresh":{"type":"boolean","example":false,"description":"Skip all caches and re-extract from scratch. Defaults to false."}},"required":["domain"],"example":{"domain":"stripe.com","webhook_url":"https://example.com/webhook","webhook_on_cache_hit":true,"force_refresh":false}},"WarmupCachedResponse":{"type":"object","properties":{"id":{"type":"null","description":"Always null for cached results"},"status":{"type":"string","enum":["cached"],"example":"cached"},"domain":{"type":"string","example":"stripe.com"}},"required":["id","status","domain"]},"WarmupAcceptedResponse":{"type":"object","properties":{"id":{"type":"string","example":"b7d3efe4-3f13-4abe-b386-ea7e200d9cbf","description":"Workflow instance ID. A later `POST /api/brand` for the same domain attaches to this instance instead of starting a new extraction."},"status":{"type":"string","enum":["warming"],"example":"warming"},"domain":{"type":"string","example":"stripe.com"},"poll_url":{"type":"string","example":"https://api.getbrand.dev/api/brand/b7d3efe4-3f13-4abe-b386-ea7e200d9cbf","description":"Absolute URL to poll for status updates."}},"required":["id","status","domain","poll_url"]},"WarmupErrorResponse":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["MISSING_DOMAIN","INVALID_DOMAIN","PERSONAL_EMAIL_DOMAIN"],"example":"PERSONAL_EMAIL_DOMAIN","description":"`PERSONAL_EMAIL_DOMAIN`: personal/free email provider domains (gmail.com, outlook.com, yahoo.com, …) have no company brand and are never extractable."},"message":{"type":"string","example":"\"gmail.com\" is a personal email provider domain"}},"required":["code","message"]}},"required":["error"]},"WarmupRequest":{"type":"object","properties":{"domain":{"type":"string","example":"stripe.com","description":"Domain to warm up. Protocol, www prefix, path, and query string are stripped automatically. Personal email provider domains (gmail.com, outlook.com, yahoo.com, …) are rejected with a 400 `PERSONAL_EMAIL_DOMAIN` error."}},"required":["domain"]},"BrandStatusRunning":{"type":"object","properties":{"id":{"type":"string","example":"b7d3efe4-3f13-4abe-b386-ea7e200d9cbf"},"status":{"type":"string","enum":["queued","running","paused","waiting","waitingForPause","unknown"],"example":"running"}},"required":["id","status"]},"BrandStatusErrored":{"type":"object","properties":{"id":{"type":"string","example":"b7d3efe4-3f13-4abe-b386-ea7e200d9cbf"},"status":{"type":"string","enum":["errored","terminated"],"example":"errored"},"error":{"type":"object","properties":{"code":{"type":"string","example":"WORKFLOW_ERROR","description":"Error code. `WORKFLOW_ERROR` for internal failures. Domain-level codes (returned as HTTP 400): `PARKED_DOMAIN`, `RATE_LIMITED`, `MAINTENANCE_MODE`, `ACCESS_DENIED`, `SOFT_404`, `EMPTY_PAGE`, `UNREACHABLE`."},"message":{"type":"string","example":"Brand extraction errored"}},"required":["code","message"]}},"required":["id","status","error"]},"ErrorResponse":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"INVALID_DOMAIN"},"message":{"type":"string","example":"\"foo\" is not a valid domain"}},"required":["code","message"]}},"required":["error"]},"EnrichResponse":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/EnrichResult"},"description":"One result per requested domain, in request order. Each domain succeeds or fails independently — a bad domain never fails the batch."}},"required":["results"]},"EnrichResult":{"oneOf":[{"type":"object","properties":{"domain":{"type":"string","example":"stripe.com"},"status":{"type":"string","enum":["ok"]},"data":{"$ref":"#/components/schemas/CompanyEnrichment"}},"required":["domain","status","data"]},{"type":"object","properties":{"domain":{"type":"string","example":"not a domain"},"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string","enum":["INVALID_DOMAIN","PERSONAL_EMAIL_DOMAIN","PARKED_DOMAIN","RATE_LIMITED","MAINTENANCE_MODE","ACCESS_DENIED","SOFT_404","EMPTY_PAGE","UNREACHABLE","ENRICHMENT_FAILED"],"example":"INVALID_DOMAIN","description":"`PERSONAL_EMAIL_DOMAIN`: personal/free email provider domains (gmail.com, outlook.com, …) are never enrichable. `ENRICHMENT_FAILED`: unexpected internal error."},"message":{"type":"string","example":"\"not a domain\" is not a valid domain"}},"required":["code","message"]}},"required":["domain","status","error"]}]},"CompanyEnrichment":{"type":"object","properties":{"domain":{"type":"string","example":"stripe.com"},"name":{"type":"string","example":"Stripe, Inc."},"founded":{"type":"string","example":"2010-09-01","description":"ISO date or year"},"founders":{"type":"array","items":{"type":"string"},"example":["Patrick Collison","John Collison"]},"headquarters":{"type":"string","example":"San Francisco"},"country":{"type":"string","example":"United States"},"industry":{"type":"string","example":"Financial technology"},"ceo":{"type":"string","example":"Patrick Collison"},"employees":{"type":"integer","example":8000,"description":"Single integer headcount; midpoint when the source is a range."},"business_type":{"type":"string","enum":["public","private"]},"official_website":{"type":"string","format":"uri","example":"https://www.stripe.com/"},"wikipedia_url":{"type":"string","format":"uri","example":"https://en.wikipedia.org/wiki/Stripe,_Inc."},"wikipedia_extract":{"type":"string","description":"First paragraph from Wikipedia"},"stock":{"$ref":"#/components/schemas/StockInfo"},"linkedin":{"$ref":"#/components/schemas/EnrichLinkedIn"},"socials":{"type":"array","items":{"$ref":"#/components/schemas/SocialLink"}}},"required":["domain","name","socials"]},"EnrichLinkedIn":{"type":"object","properties":{"name":{"type":"string","example":"Stripe"},"logoUrl":{"type":"string","format":"uri","description":"Company logo from LinkedIn, re-hosted on img.getbrand.dev"},"bannerUrl":{"type":"string","format":"uri","description":"Cover/banner image from LinkedIn, re-hosted"}}},"EnrichRequest":{"type":"object","properties":{"domains":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":100,"example":["stripe.com","notion.so"],"description":"One or more domains to enrich. Pass a single-element array for one domain. Up to 100 per request. Protocol, www prefix, path, and query string are stripped automatically."},"force_refresh":{"type":"boolean","example":false,"description":"Skip the enrich cache and rebuild from sources. Defaults to false."}},"required":["domains"],"example":{"domains":["stripe.com","notion.so"]}},"StatusResponse":{"type":"object","properties":{"status":{"type":"string","enum":["ok"]},"version":{"type":"string","example":"1.0.0"},"timestamp":{"type":"string","example":"2026-02-28T09:00:00.000Z","description":"ISO 8601 UTC"}},"required":["status","version","timestamp"]},"VerifyResponse":{"type":"object","properties":{"valid":{"type":"boolean","enum":[true]},"client_id":{"type":"string","example":"sony_prod"},"client_name":{"type":"string","example":"Sony Corporation"},"created_at":{"type":"string","example":"2026-02-26T00:00:00Z"}},"required":["valid","client_id","client_name","created_at"]}},"parameters":{}},"paths":{"/api/brand":{"post":{"summary":"Start brand extraction","description":"Kick off a brand data extraction for a domain. Returns a job ID immediately — poll `GET /api/brand/{id}` until `status` is `complete`. Extraction typically takes 10–20 seconds. Results are cached; use `force_refresh: true` to bypass the cache. If a `POST /api/warmup` extraction is already in flight for the domain, this call attaches to it (same job ID, no duplicate extraction) and any `webhook_url` is delivered when the shared instance completes.\n\nIf `webhook_url` is provided, GetBrand will POST the completed payload to that URL. Every webhook request includes `X-Webhook-Secret` (the API key's webhook secret). Verify this header before trusting the payload. Webhook deliveries are retried on non-2xx responses. Cache-hit responses do not trigger webhooks unless `webhook_on_cache_hit` is true.","callbacks":{"webhookDelivery":{"{$request.body#/webhook_url}":{"post":{"summary":"Webhook delivery","description":"Sent when extraction completes. Verify `X-Webhook-Secret` matches your API key's webhook secret.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","status","domain","data"],"properties":{"id":{"type":"string","description":"Workflow instance ID"},"status":{"type":"string","enum":["complete"]},"domain":{"type":"string"},"data":{"type":"object","description":"Brand payload (same shape as GET /api/brand/:id complete response data)","additionalProperties":true}}}}}},"responses":{"200":{"description":"Webhook accepted"},"202":{"description":"Accepted for async processing"},"204":{"description":"No content"},"400":{"description":"Invalid payload"},"401":{"description":"Secret verification failed"}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartBrandRequest"}}}},"responses":{"200":{"description":"Cached result — brand data was already extracted and returned immediately","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandStatusComplete"}}}},"202":{"description":"Extraction started. Poll `poll_url` for status updates; if `webhook_url` was provided, you'll also receive an async webhook on completion.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartBrandResponse"}}}},"400":{"description":"Invalid request. `error.code` is one of `MISSING_DOMAIN`, `INVALID_DOMAIN`, `INVALID_WEBHOOK_URL`, or `PERSONAL_EMAIL_DOMAIN` — personal/free email provider domains (gmail.com, outlook.com, yahoo.com, …) have no company brand and are never extractable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartBrandErrorResponse"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}}}},"/api/warmup":{"post":{"summary":"Warm up brand extraction","description":"Start a brand extraction ahead of time, without a webhook or polling contract. If the result is already cached this is a no-op (200 `cached`). Otherwise the extraction starts immediately (202 `warming`), and a later `POST /api/brand` for the same domain attaches to the in-flight instance instead of starting a duplicate: it returns the shared job ID, and any `webhook_url` it carries is delivered when the shared instance completes. Warmup is idempotent — repeated calls for the same domain return the same in-flight instance.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WarmupRequest"}}}},"responses":{"200":{"description":"Already cached — nothing to warm.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WarmupCachedResponse"}}}},"202":{"description":"Extraction started, or an existing in-flight warmup was reused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WarmupAcceptedResponse"}}}},"400":{"description":"Invalid request. `error.code` is one of `MISSING_DOMAIN`, `INVALID_DOMAIN`, or `PERSONAL_EMAIL_DOMAIN`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WarmupErrorResponse"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}}}},"/api/brand/{id}":{"get":{"summary":"Poll extraction status","description":"Check the status of a brand extraction job. Poll every 3–5 seconds until `status` is `complete` or `errored`.","parameters":[{"schema":{"type":"string","example":"b7d3efe4-3f13-4abe-b386-ea7e200d9cbf","description":"Workflow instance ID returned by POST /api/brand"},"required":true,"description":"Workflow instance ID returned by POST /api/brand","name":"id","in":"path"}],"responses":{"200":{"description":"Current extraction status. Shape varies by `status` field.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/BrandStatusRunning"},{"$ref":"#/components/schemas/BrandStatusComplete"}]}}}},"400":{"description":"Domain-level error — parked domain, rate limited, maintenance mode, etc.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandStatusErrored"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"404":{"description":"No extraction found with this ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Extraction failed or was terminated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandStatusErrored"}}}}}}},"/api/enrich":{"post":{"summary":"Enrich company metadata","description":"Synchronously enrich one or more domains with company metadata — founded, founders, CEO, headquarters, country, industry, employees, stock, official website, Wikipedia, LinkedIn, and social links. Unlike `POST /api/brand`, this returns immediately (no job to poll) and skips screenshot/logo/AI extraction, so it's suited to per-row lookups (e.g. a spreadsheet enrichment column).\n\nPass up to 100 domains per request. Each domain succeeds or fails independently — an invalid or blocked domain never fails the whole batch. Results are cached; use `force_refresh: true` to rebuild from sources.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrichRequest"}}}},"responses":{"200":{"description":"One result per requested domain, in request order. Inspect each result's `status` (`ok` | `error`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrichResponse"}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}}}},"/api/brand/{id}/stream":{"get":{"summary":"Stream extraction status (SSE)","description":"Live updates for a brand extraction job over Server-Sent Events. Closes automatically when extraction completes or fails.\n\n**Events:** `queued` · `running` · `complete` · `error`\n\n**Event format:**\n```\nevent: <name>\nid: <name>\ndata: <json>\n\n```\n\n**Reconnect:** send `Last-Event-ID` header to resume from a specific event.","parameters":[{"schema":{"type":"string","example":"b7d3efe4-3f13-4abe-b386-ea7e200d9cbf","description":"Workflow instance ID returned by POST /api/brand"},"required":true,"description":"Workflow instance ID returned by POST /api/brand","name":"id","in":"path"}],"responses":{"200":{"description":"SSE stream of extraction status events","content":{"text/event-stream":{"schema":{"type":"string","description":"SSE stream — one event per status change, closes on terminal status","example":"event: queued\nid: queued\ndata: {\"id\":\"b7d3efe4-3f13-4abe-b386-ea7e200d9cbf\",\"status\":\"queued\"}\n\nevent: running\nid: running\ndata: {\"id\":\"b7d3efe4-3f13-4abe-b386-ea7e200d9cbf\",\"status\":\"running\"}\n\nevent: complete\nid: complete\ndata: {\"id\":\"b7d3efe4-3f13-4abe-b386-ea7e200d9cbf\",\"status\":\"complete\",\"domain\":\"stripe.com\",\"data\":{...}}\n"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"404":{"description":"No extraction found with this ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/status":{"get":{"summary":"API health check","description":"Returns the current API status and version. No authentication required.","responses":{"200":{"description":"API is operational","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}}}}},"/account/verify":{"get":{"summary":"Verify API key","description":"Check that your API key is valid and return client metadata.","responses":{"200":{"description":"API key is valid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyResponse"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}}}}}},"webhooks":{}}