{"openapi":"3.1.0","info":{"title":"Honeylead Pipeline API","version":"1.0.0"},"paths":{"/v1/auth/login":{"post":{"summary":"Login","operationId":"login_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/invite":{"post":{"summary":"Invite","description":"Admin-only: create a user account and send an invite email.\nRequires X-Admin-Secret header matching ADMIN_SECRET env var.\n\nBody: { email, name }","operationId":"invite_v1_auth_invite_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/forgot-password":{"post":{"summary":"Forgot Password","description":"Send a password-reset email. Always returns 200 to avoid user enumeration.","operationId":"forgot_password_v1_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/set-password":{"post":{"summary":"Set Password","description":"Validate a token (invite or reset) and set the user's password.\nReturns a JWT so the user is immediately logged in.","operationId":"set_password_v1_auth_set_password_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/register":{"post":{"summary":"Register","description":"Self-service signup. Creates a new user + workspace and returns a JWT.\nIf the email already exists returns 409 so the frontend can redirect to login.","operationId":"register_v1_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/set-my-password":{"post":{"summary":"Set My Password","description":"Set/replace the password for the ALREADY-authenticated user (JWT), no email\nround-trip. Lets the 57% of magic-link-only accounts add a password so they can\nsign in without fishing a link out of spam (pilot feedback, 2026-06-15).","operationId":"set_my_password_v1_auth_set_my_password_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/logout":{"post":{"summary":"Logout","operationId":"logout_v1_auth_logout_post","responses":{"204":{"description":"Successful Response"}}}},"/v1/auth/magic-link":{"post":{"summary":"Request Magic Link","description":"Send a one-time sign-in link to the user's email.\nCreates an account automatically if none exists.","operationId":"request_magic_link_v1_auth_magic_link_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/magic-link/verify":{"post":{"summary":"Verify Magic Link","description":"Verify a magic-link token and return a JWT + user object.","operationId":"verify_magic_link_v1_auth_magic_link_verify_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/google":{"get":{"summary":"Google Oauth Start","description":"Redirect browser to Google's OAuth consent screen.","operationId":"google_oauth_start_v1_auth_google_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/auth/google/callback":{"get":{"summary":"Google Oauth Callback","description":"Exchange Google auth code for a user JWT, then redirect to the app.","operationId":"google_oauth_callback_v1_auth_google_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"error","in":"query","required":false,"schema":{"type":"string","default":"","title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/briefs":{"get":{"summary":"List Briefs","operationId":"list_briefs_v1_briefs_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Brief","operationId":"create_brief_v1_briefs_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/briefs/{brief_id}":{"get":{"summary":"Get Brief","operationId":"get_brief_v1_briefs__brief_id__get","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Update Brief","operationId":"update_brief_v1_briefs__brief_id__patch","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Archive Brief","operationId":"archive_brief_v1_briefs__brief_id__delete","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/briefs/{brief_id}/signals/{signal}/broaden":{"post":{"summary":"Broaden Signal","description":"User-triggered broaden: re-run ONE signal for this brief with a relaxed\nfilter (drop the size band, or widen the geography). Explicitly recruiter-\ninitiated, so the extra Crustdata spend is intended. Runs in a background\nthread and returns immediately; the UI re-polls /signals for the new leads.","operationId":"broaden_signal_v1_briefs__brief_id__signals__signal__broaden_post","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}},{"name":"signal","in":"path","required":true,"schema":{"type":"string","title":"Signal"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/briefs/{brief_id}/signals":{"get":{"summary":"Get Brief Signals","description":"Return signal counts + recent leads for a brief's workspace panel.","operationId":"get_brief_signals_v1_briefs__brief_id__signals_get","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/briefs/{brief_id}/signals/{signal}/leads":{"get":{"summary":"Get Signal Leads","description":"Fetch leads for a specific signal type directly (for the workspace panel).\n\nImplements stale-while-revalidate for the jobs signal:\n- Returns cached signal_leads immediately (no blocking).\n- If the cached data is older than SIGNAL_STALE_HOURS (default 24h), spawns a\n  background refresh thread and annotates the response with cache_age_hours and\n  refreshing=True so the UI can show a \"refreshing…\" indicator.","operationId":"get_signal_leads_v1_briefs__brief_id__signals__signal__leads_get","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}},{"name":"signal","in":"path","required":true,"schema":{"type":"string","title":"Signal"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":15,"title":"Limit"}},{"name":"skip_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Skip Refresh"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/briefs/{brief_id}/feed":{"get":{"summary":"Get Brief Feed","description":"Unified feed across all 4 signals — flat list of company-grouped cards.\n\nEach card = one company + the signal that fired + decision-makers + actions.\nCards are sorted by confidence (highest first), then by detected_at.","operationId":"get_brief_feed_v1_briefs__brief_id__feed_get","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/briefs/{brief_id}/export.csv":{"get":{"summary":"Export Brief Csv","description":"Stream the brief's leads as a recruiter-ready CSV. Mirrors /feed but\nflattened: one row per decision-maker, so the CSV is ready to drop into a\nCRM or outbound tool.","operationId":"export_brief_csv_v1_briefs__brief_id__export_csv_get","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/power-search":{"post":{"summary":"Power Search","description":"Power-user passthrough: submit raw Crustdata filters, get unified cards.\n\nBody:\n  {\n    \"signal\":  \"jobs|funding|backfill|promotions\",\n    \"filters\": { Crustdata filter object — see docs.crustdata.com },\n    \"limit\":   25 (default)\n  }","operationId":"power_search_v1_power_search_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/stats":{"get":{"summary":"Admin Stats","description":"Live ops gauge for the pilot (#10 observability). Admin-token gated.\n\nAnswers \"are we burning credits / hitting limits?\" in real time:\n  - estimated Crustdata credits used since process start (NOT a billing\n    ledger or true balance — an estimate from our own call/result counts)\n  - calls per endpoint, cache hit-rate, 429 count\nHeader: X-Admin-Secret must match HONEYLEAD_ADMIN_TOKEN (or ADMIN_SECRET).","operationId":"admin_stats_v1_admin_stats_get","parameters":[{"name":"x-admin-secret","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runs/{run_id}":{"get":{"summary":"Get Run","description":"Poll a pipeline run's status.","operationId":"get_run_v1_runs__run_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/briefs/{brief_id}/events":{"get":{"summary":"Brief Events","operationId":"brief_events_v1_briefs__brief_id__events_get","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/mpc/extract":{"post":{"summary":"Mpc Extract","description":"Drag-and-drop a resume FILE -> plain text. Accepts {filename, content_b64}\n(base64 of a PDF / DOCX / txt). Returns {text} for the recruiter to eyeball +\nedit before 'Read candidate'. No file storage — extract and discard.","operationId":"mpc_extract_v1_mpc_extract_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/mpc/parse":{"post":{"summary":"Mpc Parse","description":"Resume OR job description -> profile + opportunity ICP + clarifying questions.","operationId":"mpc_parse_v1_mpc_parse_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/mpc/run":{"post":{"summary":"Mpc Run","description":"Create a candidate-sourced brief, persist its ICP synchronously, then seed\nsignals in the background.\n\nThe parse + ICP save run INSIDE the request (not a background task) on purpose:\na parse failure now surfaces as an HTTP error the UI can show, and a worker\nrestart (e.g. a deploy) can no longer strand the brief with a NULL parsed_icp\nand zero leads — the failure mode that made Cheryl's candidate search vanish\ninto an empty screen (2026-06-16). Only the slow Crustdata signal seeding is\ndeferred to the background.","operationId":"mpc_run_v1_mpc_run_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agents":{"get":{"summary":"List Agents","operationId":"list_agents_v1_agents_get","parameters":[{"name":"briefId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Briefid"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agents/{agent_id}/leads":{"get":{"summary":"Leads For Agent","operationId":"leads_for_agent_v1_agents__agent_id__leads_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me/outreach/sync":{"post":{"summary":"Sync Outreach","description":"Mirror the client's outreach state (lib/savedLeads) server-side so it's durable\nacross devices AND so the reminder email can find who's due a follow-up. Body:\n{ leads: [{ key, name?, company?, role?, email?, status, contactedAt?, lastTouchAt?,\nfollowUpsSent? }] }. Timestamps are epoch ms or ISO; best-effort per lead.","operationId":"sync_outreach_v1_me_outreach_sync_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me/outreach/due":{"get":{"summary":"Outreach Due","description":"Follow-ups due now for this recruiter (server-computed from synced state).","operationId":"outreach_due_v1_me_outreach_due_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/leads/{lead_id}/unlock":{"post":{"summary":"Unlock Lead","description":"Reveal contact info for a signal lead.\nIf email not already in DB, fires Prospeo → Apollo waterfall.\nlead_id is the UUID from signal_leads.id.","operationId":"unlock_lead_v1_leads__lead_id__unlock_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/leads/{lead_id}/feedback":{"post":{"summary":"Lead Feedback","description":"Accuracy loop. A recruiter tells us a lead is on- or off-target. A 'down'\nverdict immediately suppresses that company from this workspace's future lead\nlists (instant trust win) AND is recorded so we can later learn the niche from\nthe pattern. Accuracy is the precondition for the daily-habit BD pipeline: an\noff-niche list sends recruiters back to their eight-tab manual process.\n\nBody: { verdict: 'up'|'down', reason?, company?, companyDomain? }.","operationId":"lead_feedback_v1_leads__lead_id__feedback_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me/accounts":{"get":{"summary":"List Accounts","operationId":"list_accounts_v1_me_accounts_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Add Accounts","description":"Bulk-add companies to a list. Body: { companies: [...] | \"text\", mode: 'watch'|'avoid' }.","operationId":"add_accounts_v1_me_accounts_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me/accounts/remove":{"post":{"summary":"Remove Account","operationId":"remove_account_v1_me_accounts_remove_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/leads/{lead_id}/draft":{"post":{"summary":"Draft Lead Outreach","description":"Generate a ready-to-send, signal-aware outreach sequence for one lead and\nreturn it inline (no chat round-trip). Reuses the same drafter the agent uses,\nso copy quality is identical. Anthropic-only — costs ZERO Crustdata credits and\ndoes NOT require the lead to be unlocked (the recruiter sends it themselves).","operationId":"draft_lead_outreach_v1_leads__lead_id__draft_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/agents/{agent_id}/unlock-all":{"post":{"summary":"Unlock All","description":"Reveal contacts for all leads under an agent (brief + signal).\nPhase 1: no credit deduction. agent_id = \"{brief_id}-{brand}\".","operationId":"unlock_all_v1_agents__agent_id__unlock_all_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sequences":{"get":{"summary":"List Sequences Handler","operationId":"list_sequences_handler_v1_sequences_get","parameters":[{"name":"briefId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Briefid"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sequences/{seq_id}":{"get":{"summary":"Get Sequence Handler","operationId":"get_sequence_handler_v1_sequences__seq_id__get","parameters":[{"name":"seq_id","in":"path","required":true,"schema":{"type":"string","title":"Seq Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sequences/{seq_id}/touches/{touch_id}":{"patch":{"summary":"Patch Touch","description":"Edit subject/body on a touch before it is sent.","operationId":"patch_touch_v1_sequences__seq_id__touches__touch_id__patch","parameters":[{"name":"seq_id","in":"path","required":true,"schema":{"type":"string","title":"Seq Id"}},{"name":"touch_id","in":"path","required":true,"schema":{"type":"string","title":"Touch Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/coverage/signal-cards":{"get":{"summary":"Signal Cards","operationId":"signal_cards_v1_coverage_signal_cards_get","parameters":[{"name":"briefId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Briefid"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/coverage/signals":{"get":{"summary":"Signal Coverage","description":"Return signal coverage counts for today vs week.","operationId":"signal_coverage_v1_coverage_signals_get","parameters":[{"name":"briefId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Briefid"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/coverage/pipeline":{"get":{"summary":"Pipeline Health","description":"Return pipeline health rows from recent agent_runs.","operationId":"pipeline_health_v1_coverage_pipeline_get","parameters":[{"name":"briefId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Briefid"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/chat/quick-picks":{"get":{"summary":"Quick Picks","operationId":"quick_picks_v1_chat_quick_picks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/chat":{"post":{"summary":"Chat","description":"Batch endpoint — waits for the full agent turn, then returns JSON.","operationId":"chat_v1_chat_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/chat/stream":{"post":{"summary":"Chat Stream","description":"Streaming endpoint — returns SSE events as the agent works.\n\nEvent types (all JSON-encoded in `data`):\n  text        — {\"text\": \"...\"}            partial assistant text\n  tool_call   — {\"name\": \"...\", \"id\": \"...\"} tool being called\n  tool_result — {\"tool_id\": \"...\", \"output\": {...}}\n  lead_block  — {\"lead\": AgentLead}         inline lead card\n  done        — {\"blocks\": [...], \"sessionId\": \"...\"}\n  error       — {\"message\": \"...\"}","operationId":"chat_stream_v1_chat_stream_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/chat/sessions":{"get":{"summary":"List Sessions","description":"List recent chat sessions for the sidebar.","operationId":"list_sessions_v1_chat_sessions_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/chat/sessions/{session_id}":{"delete":{"summary":"Delete Chat Session","description":"Remove a session from the sidebar (soft-archive). The brief and its\nleads are untouched — this just hides the conversation thread.","operationId":"delete_chat_session_v1_chat_sessions__session_id__delete","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Rename Chat Session","description":"Rename a saved search in the sidebar.\n\nTitles are auto-generated from the query or the parsed candidate, which reads\nfine on the day and is useless a week later: a recruiter running several MPCs\nends up with three threads all called \"Candidate: Program Manager\" and no way\nto tell them apart. Both beta users asked for this independently on the Aug 27\ncall (\"force me to name this\", \"let me rename it like I rename Claude chats\").","operationId":"rename_chat_session_v1_chat_sessions__session_id__patch","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Chat Session","description":"Load a past session's message history for display.","operationId":"get_chat_session_v1_chat_sessions__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/catalog/search":{"get":{"summary":"Search Catalog Leads","operationId":"search_catalog_leads_v1_catalog_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"industry","in":"query","required":false,"schema":{"type":"string","default":"","title":"Industry"}},{"name":"has_email","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Has Email"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/catalog/unlock/{lead_id}":{"post":{"summary":"Unlock Catalog Lead","description":"Reveal the email for a locked catalog lead. REQUIRES A SIGNED-IN USER.\n\nThis was open to the internet, and the waterfall below spends real money per\ncall (Prospeo, then Apollo). With 742 locked leads that was 742 paid lookups a\nstranger could trigger. Found 2026-09-06 while checking the system before\ntesters arrived.\n\nFires the email enrichment waterfall (Prospeo LinkedIn→email, then Apollo\nemail reveal) for a single lead on demand. Credits only burn here — not\nduring catalog population. Returns the email if found.","operationId":"unlock_catalog_lead_v1_catalog_unlock__lead_id__post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/catalog/stats":{"get":{"summary":"Catalog Stats","operationId":"catalog_stats_v1_catalog_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/profile/enrich":{"post":{"summary":"Enrich Profile","description":"Enrich a recruiter's LinkedIn profile via Prospeo /enrich-person.\nReturns name, title, company, and photo_url if available.\nThis is called once at profile setup; the result is cached client-side.","operationId":"enrich_profile_v1_profile_enrich_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/status":{"get":{"summary":"Billing Status","description":"Return the current user's plan, tier, and unlock counts.","operationId":"billing_status_v1_billing_status_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/checkout":{"post":{"summary":"Create Checkout","description":"Create a Stripe Checkout session.\nBody: { \"plan\": \"growth\" | \"scale\" }  (defaults to \"growth\")\nReturns { url } — frontend redirects to it.","operationId":"create_checkout_v1_billing_checkout_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"default":{},"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/portal":{"post":{"summary":"Customer Portal","description":"Return a Stripe Customer Portal URL so the user can manage/cancel.","operationId":"customer_portal_v1_billing_portal_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/team":{"get":{"summary":"Get Team","description":"Members, seat usage, owner tier, and pooled unlock usage for the caller's\nworkspace. Safe for any member to read.","operationId":"get_team_v1_team_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/team/invite":{"post":{"summary":"Invite Member","description":"Owner invites a teammate by email. Enforces the tier's seat cap and\none-pending-invite-per-email. Body: { email, role? }.","operationId":"invite_member_v1_team_invite_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/team/invite/{token}":{"get":{"summary":"Get Invite","description":"Public-ish: resolve an invite token so the accept page can show who\ninvited you and to which team. Never leaks the token itself.","operationId":"get_invite_v1_team_invite__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/team/accept":{"post":{"summary":"Accept Invite","description":"Authenticated user joins the inviting workspace as a member, inheriting\nits plan tier. The invite email must match the caller's email.","operationId":"accept_invite_v1_team_accept_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/team/invite/{invite_id}/revoke":{"post":{"summary":"Revoke Invite","description":"Owner cancels a still-pending invite.","operationId":"revoke_invite_v1_team_invite__invite_id__revoke_post","parameters":[{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","title":"Invite Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/team/members/remove":{"post":{"summary":"Remove Member","description":"Owner removes a teammate. The member is moved back to their own solo\nworkspace (derived from their email) on the free tier — their account is\nnever deleted, only detached from the team.","operationId":"remove_member_v1_team_members_remove_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/onboard/analyze-website":{"post":{"summary":"Analyze Website","description":"Scrape the recruiter's agency website and return the plain-English search query\nthat describes what they place. The UI shows it for confirmation before creating a\nbrief. Returns {query, sourceUrl, scrapedChars, ok}. query is '' when the site is\ntoo thin to read — the UI then asks the recruiter directly.","operationId":"analyze_website_v1_onboard_analyze_website_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/fill-coverage":{"post":{"summary":"Fill Coverage","description":"Fill one (vertical x region) cell of the company universe from Coresignal.\nBody: {vertical, region, limit?}. Returns the stored count + a sample.","operationId":"fill_coverage_v1_admin_fill_coverage_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/heal-orphaned-briefs":{"post":{"summary":"Heal Orphaned Briefs","description":"Recover briefs orphaned by a failed ICP parse. `_parse_icp_async` is\nfire-and-forget with no retry, so when the parse throws (LLM timeout, bad\nresponse) the brief is left with parsed_icp=NULL forever and the recruiter\ngets a permanently empty feed (~11% of briefs, 2026-07-31 audit: 69/609).\n\nFinds briefs that have the recruiter's words (natural_lang_source) but no\nparsed_icp, re-parses each, persists it, and re-fires the all-signal seed.\nIdempotent and bounded by `limit`. Body: {limit?, dry_run?}.","operationId":"heal_orphaned_briefs_v1_admin_heal_orphaned_briefs_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/promote-signal-leads":{"post":{"summary":"Promote Signal Leads","description":"Promote companies recruiters ALREADY found (signal_leads) into the owned\nembedded lake — the rent-once-own-forever flywheel. No external sourcing cost:\nthe companies are already known, so this only inserts rows (tagged\nsource='signal_promote', so fully reversible). Then /admin/embed-companies embeds\nthem via cheap OpenAI. Idempotent — skips domains already in the lake.\nBody: {limit?}. Returns {promoted, lake_before, lake_after, unembedded}.\n\nWhy: 2026-06-20 audit found 6,997 unique signal_lead companies absent from the\n2,840-company lake — a ~3.5x expansion that fixes empty niche searches, and works\neven while Coresignal search credits are out.","operationId":"promote_signal_leads_v1_admin_promote_signal_leads_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/test-serve":{"post":{"summary":"Test Serve","description":"Dry-run the serving path for a cell: resolve owned companies for (vertical,\nregion) and overlay Coresignal decision-makers, WITHOUT writing to the feed.\nProves the Layer-1 → Layer-2 data is good. Body: {vertical, region, companies?}.","operationId":"test_serve_v1_admin_test_serve_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/embed-companies":{"post":{"summary":"Embed Companies Ep","description":"Backfill embeddings for the owned company universe. Body: {limit?}. Run\nrepeatedly until remaining=0. No-op if embeddings are disabled.","operationId":"embed_companies_ep_v1_admin_embed_companies_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/enrich-descriptions":{"post":{"summary":"Enrich Descriptions Ep","description":"Fetch homepage meta-descriptions for the next batch of companies that lack\none (free, no API cost), so embeddings gain specialty signal.\nBody: {limit?, include_synthetic?}. Run repeatedly until remaining=0, then re-embed.\n\n`include_synthetic` (default FALSE) also re-fetches the 7,745 rows carrying a\nsynthetic description — \"Recently hiring for VP of Engineering…\", which is the\nstored description of 484 different companies. That is the single biggest free\nimprovement available to the owned-company search, and it is deliberately NOT the\ndefault: this same function is called automatically by\ncompany_filler._complete_new_companies on every coverage-filler cycle, and widening\nthe default would turn that into an unattended bulk rewrite plus a re-embed of\n7,745 rows per cycle.\n\nSo the bulk run is a human decision, taken in batches:\n  POST /admin/enrich-descriptions {\"limit\": 150, \"include_synthetic\": true}\nCheck `remaining` after each call and spot-check the first batch before continuing.","operationId":"enrich_descriptions_ep_v1_admin_enrich_descriptions_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/provider-status":{"get":{"summary":"Provider Status","description":"Confirmed live status of every provider + the owned-track readiness, so the\n'can a recruiter be spoon-fed end to end' question has a real answer. Reports\nonly whether a key is present (never the value).","operationId":"provider_status_v1_admin_provider_status_get","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/test-unlock":{"post":{"summary":"Test Unlock","description":"Prove the LAST link of the spoonfeed loop: an owned-track decision-maker\n(Coresignal LinkedIn) -> verified email via the real Unlock waterfall (Blitz ->\nCrustdata -> Prospeo -> Apollo). Pass {linkedin} or let it pick a real cached\ncontact. Email is masked in the response (no raw PII).","operationId":"test_unlock_v1_admin_test_unlock_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/flag-quality":{"post":{"summary":"Flag Quality Ep","description":"Flag clearly non-US / non-company rows as `excluded` (filtered at serve time).\nBody: {dry_run?:true}. Run dry first, review samples, then {dry_run:false}.","operationId":"flag_quality_ep_v1_admin_flag_quality_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/send-digest":{"post":{"summary":"Send Digest Ep","description":"Test the morning digest. {email, workspace?, send?:false}. Default previews\nthe rendered HTML (no send); send=true emails it via Resend (no-op unless\nRESEND_API_KEY is set + the domain is verified).","operationId":"send_digest_ep_v1_admin_send_digest_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/db-stats":{"get":{"summary":"Db Stats","description":"Metadata-completeness audit of the owned company universe: how much of the\nDB has industry tags, region, headcount, embeddings, and decision-maker\ncontacts — so coverage/quality work is evidence-driven.","operationId":"db_stats_v1_admin_db_stats_get","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/opps-debug":{"get":{"summary":"Opps Debug","description":"Why are the opportunities off-ICP? Shows a brief's resolved ICP target vs the\nindustry/role tag distribution of its leads, and how many survive the gate. No\nwrites. Defaults to the most-recent-with-leads brief; pass ?brief_id= to pin one.","operationId":"opps_debug_v1_admin_opps_debug_get","parameters":[{"name":"brief_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Brief Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/send-tester-emails":{"post":{"summary":"Send Tester Emails","description":"Render + (optionally schedule) the pilot onboarding email to a list of testers\nvia Resend. Body: {recipients:[{email,first}], scheduled_at?, from?, reply_to?,\ndry_run?}. dry_run=true (DEFAULT) previews who/what without sending — you must pass\ndry_run=false to actually send. Excludes obvious internal accounts as a safety net.","operationId":"send_tester_emails_v1_admin_send_tester_emails_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/test-leadmagic":{"post":{"summary":"Test Leadmagic","description":"Probe LeadMagic with an arbitrary person (first/last/domain/linkedin) — used to\ntest the Huntr→LeadMagic hybrid: Huntr finds the right decision-maker, LeadMagic\nturns name+domain into the verified email. Returns (email, status).","operationId":"test_leadmagic_v1_admin_test_leadmagic_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/user-billing":{"get":{"summary":"User Billing","description":"Read a user's billing/gate state — created_at, subscription_status, trial_exempt,\nunlocks_used — to see exactly why the trial gate did or didn't fire for them.","operationId":"user_billing_v1_admin_user_billing_get","parameters":[{"name":"email","in":"query","required":false,"schema":{"type":"string","default":"","title":"Email"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/set-trial-exempt":{"post":{"summary":"Set Trial Exempt","description":"Mark an email as trial-exempt — pilot/comp access that's NEVER paywalled by the\nfree-trial gate. Pre-creates a passwordless account if none exists yet, so a brand-new\npilot user is exempt the moment they first sign in via magic link (which finds the\nexisting record by email). Idempotent. Body: {email, name?}.","operationId":"set_trial_exempt_v1_admin_set_trial_exempt_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/test-full-brief":{"post":{"summary":"Test Full Brief","description":"END-TO-END readiness test. Parses a real NL query, creates a throwaway brief,\nand fires the FULL pre_warm pipeline (Crustdata 4 signals + Coresignal serving +\nopportunities). SPENDS Crustdata credits (~10-25 for a fresh niche). Returns the\nbrief_id immediately — poll GET /admin/opps-debug?brief_id=<id> to watch it fill.","operationId":"test_full_brief_v1_admin_test_full_brief_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/rewarm-brief":{"post":{"summary":"Rewarm Brief","description":"Re-scan an EXISTING brief's signals with the current code + prod API keys.\nUse after a relevance/taxonomy fix to flush a customer's stale leads (the\njobs worker's _save_leads sweeps stale single-signal rows on a fresh batch).\nBody: {brief_id, signals?: [\"jobs\",...]}. Runs synchronously and returns the\nper-signal saved counts. Bypasses the niche signal-cache (calls run_signal\ndirectly), so it always re-hits Crustdata. SPENDS credits (~10-15/signal).","operationId":"rewarm_brief_v1_admin_rewarm_brief_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/semantic-search":{"post":{"summary":"Semantic Search Ep","description":"Test the vector semantic search: embed a query and cosine-rank the owned\ncompanies. Body: {query, region?, k?}. Proves meaning-match works.","operationId":"semantic_search_ep_v1_admin_semantic_search_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/test-serve-write":{"post":{"summary":"Test Serve Write","description":"Full end-to-end validation of the accounts serving WRITE path, no recruiter\nauth needed: create a throwaway brief, run the real _seed_from_owned_companies\nagainst a synthetic ICP, read back the accounts leads (with their geo tags),\nthen delete the brief (cascade-removes the leads). Proves the CHECK-constraint\nfix, region resolution, and company-based geo tagging in one shot.\nBody: {query?, locations?, industries?}.","operationId":"test_serve_write_v1_admin_test_serve_write_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/fill-demand":{"post":{"summary":"Fill Demand Ep","description":"Run one demand-driven fill cycle now (same logic the autonomous worker uses):\nfill the thin cells recruiters actually searched, then embed. Body: {max_cells?}.","operationId":"fill_demand_ep_v1_admin_fill_demand_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/coverage":{"get":{"summary":"Coverage Status","description":"Read the coverage map + a company count — to verify a fill landed.","operationId":"coverage_status_v1_admin_coverage_get","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/funnel":{"get":{"summary":"Funnel","description":"Four-metric acquisition funnel, daily, for the last `days` days.\n\nThe ONLY four metrics tracked (locked 2026-06-25 Cody/Mike call):\n  1. visitors          — unique people on honeylead.io / app   (PostHog)\n  2. signups           — account creations, user_signed_up      (PostHog)\n  3. trial_starts      — card entered → Stripe trial began      (Stripe)\n  4. paid_conversions  — first real paid invoice of an in-window\n                         subscription (trial→paid or pay-now)   (Stripe)\n\nRead-only: never touches the billing WRITE path. Each source is isolated, so a\nfailure in one degrades that pair to zeros (reported under `errors`) instead of\n500ing the whole report. Stripe gives historical data, so this backfills the\n30-day baseline immediately — no waiting for new events to accrue.","operationId":"funnel_v1_admin_funnel_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/parse-preview":{"post":{"summary":"Parse Preview","description":"Parse a recruiter query to an ICP and return it. Creates nothing, scans\nnothing, spends no provider credits.\n\nThis is the cheap half of the accuracy loop. Search precision is decided at parse\ntime (a bare \"Project Manager\" fetches construction; \"EHR Project Manager\" fetches\nhospitals), so most regressions are visible here for one Claude call instead of a\nfull ~5 minute scan and real Crustdata/ColdIQ spend. Lets us re-check every\nrecruiter's niche after any prompt change.\n\nBody: {\"query\": \"...\"}  ->  {top_titles, signal_titles, industries, company_size}","operationId":"parse_preview_v1_admin_parse_preview_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/heal-unreachable-searches":{"post":{"summary":"Heal Unreachable Searches","description":"Give every saved search a chat session so it shows up in the sidebar again.\n\nThe sidebar lists searches by walking agent_sessions, so a brief created without\none (the New Search modal, an API create, or a chat turn that failed to bind) is\ninvisible to the recruiter even though the search ran and the leads are sitting in\nthe database. Audited 2026-09-07: 26 searches across 13 recruiters, holding 581\nleads, including a 99-lead roofing search and a 79-lead revenue-cycle search. They\npaid credits for work they could not reach.\n\nCreates one session per orphaned brief, titled with the search name, so it appears\nwhere the recruiter expects. Idempotent (only touches briefs with no session) and\nbounded by `limit`. Body: {limit?, dry_run?}.","operationId":"heal_unreachable_searches_v1_admin_heal_unreachable_searches_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/feedback":{"post":{"summary":"Submit Feedback","description":"Recruiter submits feedback. Body: { message, context? }","operationId":"submit_feedback_v1_feedback_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"My Feedback","description":"The recruiter's own submissions + outcomes. Backs the bell icon.\nDeliberately does NOT return triage internals.","operationId":"my_feedback_v1_feedback_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/feedback/seen":{"post":{"summary":"Mark Seen","description":"Recruiter opened the bell — clear their unread count.","operationId":"mark_seen_v1_feedback_seen_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/feedback":{"get":{"summary":"Admin Queue","description":"Mike's queue. ?status=new|approved|declined|shipped|all","operationId":"admin_queue_v1_admin_feedback_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"new","title":"Status"}},{"name":"x-admin-secret","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/feedback/{feedback_id}/decide":{"post":{"summary":"Admin Decide","description":"Mike promotes a submission to work, declines it, or marks it shipped.\nBody: { status: approved|declined|shipped, resolution? }\n\nSetting seen_by_user = FALSE is what lights the recruiter's bell, so the loop\nvisibly closes for the person who bothered to write in.","operationId":"admin_decide_v1_admin_feedback__feedback_id__decide_post","parameters":[{"name":"feedback_id","in":"path","required":true,"schema":{"type":"string","title":"Feedback Id"}},{"name":"x-admin-secret","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/feedback/review/{feedback_id}":{"get":{"summary":"Review Page","description":"Render one feedback item with decision buttons. Read-only on purpose — see the\nnote at the top of this section about mail scanners following links.","operationId":"review_page_v1_feedback_review__feedback_id__get","parameters":[{"name":"feedback_id","in":"path","required":true,"schema":{"type":"string","title":"Feedback Id"}},{"name":"t","in":"query","required":false,"schema":{"type":"string","default":"","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Review Decide","description":"The actual decision. Same signed link, but a POST — robots that fetch the URL\nrender the page and change nothing.","operationId":"review_decide_v1_feedback_review__feedback_id__post","parameters":[{"name":"feedback_id","in":"path","required":true,"schema":{"type":"string","title":"Feedback Id"}},{"name":"t","in":"query","required":false,"schema":{"type":"string","default":"","title":"T"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/opportunities":{"get":{"summary":"Get Opportunities","description":"Top ranked opportunities. Default scope = the recruiter's MOST RECENT search\n(coherent). Pass allSearches=true to aggregate across every search, or briefId to\npick one. Off-target leads are gated out in all modes.","operationId":"get_opportunities_v1_opportunities_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":5,"title":"Limit"}},{"name":"briefId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Briefid"}},{"name":"allSearches","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Allsearches"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/mint-api-key":{"post":{"summary":"Mint Api Key","description":"Mint an API key for a workspace. {email | workspace, label?}. Admin-only.\nReturns the raw key ONCE — it is stored hashed and cannot be retrieved again.","operationId":"mint_api_key_v1_admin_mint_api_key_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/search":{"post":{"summary":"Api Search","description":"PUBLIC (API-key) search: 'what companies in my niche are hiring right now?'\n\nAuth: `Authorization: Bearer hl_live_...`. Returns owned-data matches + which of\nthem have cached hiring signals. Never returns verified emails (account-gated).","operationId":"api_search_v1_api_search_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/daily-play":{"get":{"summary":"Api Daily Play","description":"PUBLIC (API-key) daily play: the recruiter's freshest niche plays, each with the\nreason to reach out now + a ready-to-send message. Auth: `Authorization: Bearer\nhl_live_...`. Owned data only — no live scan, emails stay gated to the app.","operationId":"api_daily_play_v1_api_daily_play_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":5,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/mcp":{"post":{"summary":"Mcp Http","description":"Hosted MCP server (Streamable HTTP / JSON-RPC) — so recruiters can add Honeylead\nto Claude (or any MCP client) with ONE URL, no local install. Auth: pass the API\nkey via the `Authorization: Bearer hl_live_...` header (preferred) or `?key=`.\n\nAdd in Claude Code:\n  claude mcp add --transport http honeylead \\\n    https://<host>/v1/mcp --header \"Authorization: Bearer hl_live_xxx\"","operationId":"mcp_http_v1_mcp_post","parameters":[{"name":"key","in":"query","required":false,"schema":{"type":"string","default":"","title":"Key"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api-keys":{"post":{"summary":"Create My Api Key","description":"Mint an API key for the signed-in user's own workspace. Returns the raw key\nONCE (stored hashed). Powers the in-app 'Settings → API' self-serve flow.","operationId":"create_my_api_key_v1_api_keys_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List My Api Keys","description":"List the signed-in user's keys (metadata only — never the raw key).","operationId":"list_my_api_keys_v1_api_keys_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api-keys/{key_id}":{"delete":{"summary":"Revoke My Api Key","description":"Revoke one of the signed-in user's keys.","operationId":"revoke_my_api_key_v1_api_keys__key_id__delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/capabilities":{"get":{"summary":"Capabilities","description":"What you can call and what each costs. Free.","operationId":"capabilities_v1_api_capabilities_get","parameters":[{"name":"key","in":"query","required":false,"schema":{"type":"string","default":"","title":"Key"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/balance":{"get":{"summary":"Balance","operationId":"balance_v1_api_balance_get","parameters":[{"name":"key","in":"query","required":false,"schema":{"type":"string","default":"","title":"Key"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/enrich":{"post":{"summary":"Enrich","description":"Run one capability. Single row, or `rows` for up to 50.\n\nSingle:\n  {\"capability\": \"email_find\", \"first_name\": \"Jane\", \"last_name\": \"Doe\",\n   \"domain\": \"acme.com\"}\n\nBatch:\n  {\"capability\": \"email_find\", \"rows\": [{...}, {...}]}\n\nPreview the cost without spending:\n  {\"capability\": \"email_find\", \"dry_run\": true, ...}","operationId":"enrich_v1_api_enrich_post","parameters":[{"name":"key","in":"query","required":false,"schema":{"type":"string","default":"","title":"Key"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/unsubscribe":{"post":{"summary":"Unsubscribe","operationId":"unsubscribe_v1_unsubscribe_post","parameters":[{"name":"e","in":"query","required":false,"schema":{"type":"string","default":"","title":"E"}},{"name":"t","in":"query","required":false,"schema":{"type":"string","default":"","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Unsubscribe","operationId":"unsubscribe_v1_unsubscribe_get","parameters":[{"name":"e","in":"query","required":false,"schema":{"type":"string","default":"","title":"E"}},{"name":"t","in":"query","required":false,"schema":{"type":"string","default":"","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/outbound/create-sequence":{"post":{"summary":"Create Sequence","description":"body: {workspace_id, name, steps:[...], source_signal_id?}\nstep schema (each step is one of):\n  {\"type\":\"linkedin_connect\",\"note\":\"...\"}   |  {\"type\":\"linkedin_message\"}\n  {\"type\":\"email\"}                            |  {\"type\":\"wait\",\"days\":N}\n  {\"type\":\"condition\",\"if\":\"no_reply\"}\n(a malformed/unknown step is skipped defensively, never crashes the tick)","operationId":"create_sequence_v1_admin_outbound_create_sequence_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/outbound/add-account":{"post":{"summary":"Add Account","description":"body: {workspace_id, channel, provider_account_id?, user_id?, timezone?}","operationId":"add_account_v1_admin_outbound_add_account_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/outbound/enroll":{"post":{"summary":"Enroll","description":"body: {sequence_id, workspace_id, channel_account_id,\ncontacts:[{contact_ref, contact_name?, company?, copy:{\"0\":text,...}}]}","operationId":"enroll_v1_admin_outbound_enroll_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/outbound/tick":{"post":{"summary":"Tick","description":"Advance every due enrollment (absorb replies first, then process due steps).\nCall on a schedule. body: {workspace_id?} to scope to one workspace.","operationId":"tick_v1_admin_outbound_tick_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/outbound/funnel":{"get":{"summary":"Funnel","operationId":"funnel_v1_admin_outbound_funnel_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/niche-warm":{"post":{"summary":"Niche Warm Now","description":"Run the daily niche warmer immediately. body: {force?: true} re-runs\npast the daily claim (idempotent writes).","operationId":"niche_warm_now_v1_admin_niche_warm_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/market-moves/scan":{"post":{"summary":"Market Moves Scan","description":"Poll the Market Moves feed (Area Development) once: parse + store new events.","operationId":"market_moves_scan_v1_admin_market_moves_scan_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/market-moves/recent":{"get":{"summary":"Market Moves Recent","description":"Recent Market Moves events as ready-to-show cards. ?state=Texas filters.","operationId":"market_moves_recent_v1_admin_market_moves_recent_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Limit"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/outbound/seed-cohort":{"post":{"summary":"Seed Cohort","description":"Warm a cohort member's workspace before they first log in.\nbody: {email, niche: construction|senior_housing|it, state?}. Creates a\npreset brief in THEIR workspace and fires the full signal scan, so their\nfirst login is a filled feed, not a blank prompt.","operationId":"seed_cohort_v1_admin_outbound_seed_cohort_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/outbound/weekly-report":{"get":{"summary":"Weekly Report","description":"The Friday report: one row per recruiter for the org coaching call.\n?emails=a@x.com,b@y.com scopes to a cohort (omit for all users);\n?format=csv returns a downloadable CSV.","operationId":"weekly_report_v1_admin_outbound_weekly_report_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":7,"title":"Days"}},{"name":"emails","in":"query","required":false,"schema":{"type":"string","default":"","title":"Emails"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","default":"json","title":"Format"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/outbound/mark-appointment":{"post":{"summary":"Mark Appointment","description":"body: {enrollment_id, booked?}","operationId":"mark_appointment_v1_admin_outbound_mark_appointment_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/outbound/talent-map":{"post":{"summary":"Gen Talent Map","description":"body: {signal:{...}, candidates:[...], brand:{...}, workspace_id, contact_id?}","operationId":"gen_talent_map_v1_admin_outbound_talent_map_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/outbound/start-outreach":{"post":{"summary":"Start Outreach","description":"The 'Start outreach' button: signal + sourced candidates/contacts -> live sequence\nwhose CTA is a branded talent-map microsite. Drafts + QA-gates every message; holds\nany contact whose copy can't pass clean. Nothing sends here (only tick sends).\nbody: {signal:{company,title,metro,signal_id?}, candidates:[...], contacts:[...],\n       brand:{...}, workspace_id, channel_account_id, steps?, sequence_name?}","operationId":"start_outreach_v1_admin_outbound_start_outreach_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/outbound/unipile-accounts":{"get":{"summary":"Unipile Accounts","description":"List the LinkedIn/other accounts connected to the Unipile tenant, using the\nkey from server env (never from the client). Used to discover the account_id.","operationId":"unipile_accounts_v1_admin_outbound_unipile_accounts_get","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/outbound/hosted-link":{"get":{"summary":"Admin Hosted Link","description":"Ops: generate a 'Connect' hosted-auth link for a workspace (channel=linkedin|email).","operationId":"admin_hosted_link_v1_admin_outbound_hosted_link_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"linkedin","title":"Channel"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/outbound/register-webhooks":{"post":{"summary":"Register Webhooks","description":"Idempotently register the Unipile 'users' (new_relation) + 'messaging'\n(new_message) webhooks pointing at our events endpoint, so accept/reply tracking\nis push-based. Safe to call repeatedly.","operationId":"register_webhooks_v1_admin_outbound_register_webhooks_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/outbound/search-history":{"get":{"summary":"Search History","operationId":"search_history_v1_admin_outbound_search_history_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me/outbound/start-outreach":{"post":{"summary":"Me Start Outreach","description":"The dashboard 'Start outreach' button. body: {signal, candidates, contacts,\nbrand?, steps?, sequence_name?}. Workspace + LinkedIn account come from the login.","operationId":"me_start_outreach_v1_me_outbound_start_outreach_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me/outbound/create-sequence":{"post":{"summary":"Me Create Sequence","description":"The in-app sequence builder. body: {name, steps:[{type, days?, note?}]}.\nSteps are validated against the engine's schema; malformed input never reaches\nthe DB.","operationId":"me_create_sequence_v1_me_outbound_create_sequence_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me/outbound/sequence-list":{"get":{"summary":"Me Sequence List","description":"Sequences with aggregate stats — the Sequences board.","operationId":"me_sequence_list_v1_me_outbound_sequence_list_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me/outbound/sequences":{"get":{"summary":"Me Sequences","description":"Every enrollment in the caller's workspace with its live state, for the\nSequences view.","operationId":"me_sequences_v1_me_outbound_sequences_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me/outbound/funnel":{"get":{"summary":"Me Funnel","operationId":"me_funnel_v1_me_outbound_funnel_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me/outbound/mark-appointment":{"post":{"summary":"Me Mark Appointment","description":"Mark a booked meeting. Enrollment MUST belong to the caller's workspace.","operationId":"me_mark_appointment_v1_me_outbound_mark_appointment_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me/outbound/account":{"get":{"summary":"Me Account","description":"LinkedIn connection status for the Unipile connect UI: is a channel configured\nserver-side, and does this workspace have an account row + is it healthy.","operationId":"me_account_v1_me_outbound_account_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me/outbound/draft-copy":{"post":{"summary":"Me Draft Copy","description":"Pre-fill the sequence builder with a strong editable draft (Dimensional ask,\nAug 13: 'auto populate a really strong message they can edit' — ONE option).\nbody: {signal:{company,title}, contact:{contact_name}}. Drafts with the\n{talent_map} merge tag so the real link renders per contact at launch.","operationId":"me_draft_copy_v1_me_outbound_draft_copy_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me/outbound/hold-for-review":{"post":{"summary":"Me Hold For Review","description":"'Edit before it sends': move just-launched enrollments into the review\nqueue, where per-message editing already exists. Only enrollments that have\nnot sent anything yet (step 0, no send events) can be pulled back.\nbody: {sequence_id} or {enrollment_ids: [...]}.","operationId":"me_hold_for_review_v1_me_outbound_hold_for_review_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me/outbound/review-queue":{"get":{"summary":"Me Review Queue","description":"Approve-before-send: enrollments waiting for the recruiter's sign-off, with the\nexact rendered copy that will go out.","operationId":"me_review_queue_v1_me_outbound_review_queue_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me/outbound/review":{"post":{"summary":"Me Review","description":"Approve (optionally with edited copy) or discard a reviewed enrollment.\nbody: {enrollment_id, action: \"approve\"|\"discard\", copy?: {\"0\": \"...\", ...}}\nEdited copy is re-run through the QA gate (mechanical, incl. em-dash strip).","operationId":"me_review_v1_me_outbound_review_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me/outbound/connect-linkedin":{"post":{"summary":"Me Connect Linkedin","description":"Recruiter clicks 'Connect LinkedIn' -> returns a Unipile hosted-auth URL to\nredirect them to. They log into LinkedIn on Unipile's page; the callback webhook\nlinks the account to this workspace. The recruiter never sees Unipile.","operationId":"me_connect_linkedin_v1_me_outbound_connect_linkedin_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me/outbound/connect-email":{"post":{"summary":"Me Connect Email","description":"Recruiter connects their own warmed mailbox (Google/Microsoft/IMAP) via the\nsame hosted flow. Email is a first-class send channel.","operationId":"me_connect_email_v1_me_outbound_connect_email_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/unipile/account":{"post":{"summary":"Unipile Account Webhook","operationId":"unipile_account_webhook_v1_webhooks_unipile_account_post","parameters":[{"name":"tok","in":"query","required":false,"schema":{"type":"string","default":"","title":"Tok"}},{"name":"x-hl-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Hl-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/unipile/events":{"post":{"summary":"Unipile Events Webhook","operationId":"unipile_events_webhook_v1_webhooks_unipile_events_post","parameters":[{"name":"tok","in":"query","required":false,"schema":{"type":"string","default":"","title":"Tok"}},{"name":"x-hl-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Hl-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/lm/{slug}":{"get":{"summary":"View Talent Map","description":"Render a client-branded talent-map microsite and log the view.","operationId":"view_talent_map_v1_lm__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me/outbound/reconcile-linkedin":{"post":{"summary":"Me Reconcile Linkedin","description":"Finish a LinkedIn connection whose callback never arrived.\n\nThe hosted-auth flow relies on Unipile POSTing our notify_url when the recruiter\nfinishes logging in. When that callback does not land, the account exists on\nUnipile but our row keeps an empty provider_account_id, so the dashboard still\nsays \"Connect LinkedIn\" and nothing can send. Three of seven connections were\nstuck like this, including Stacey Lowe (Dimensional Search), whose report reached\nus as \"we couldn't get her LinkedIn integrated\" (2026-09-07).\n\nThis asks Unipile directly instead of waiting to be told. The hosted link encodes\nthe workspace in the account name as \"<workspace_id>::<channel>\", so we can match\nthe recruiter's own account without guessing, and we only ever link an account\nwhose name carries THIS workspace.","operationId":"me_reconcile_linkedin_v1_me_outbound_reconcile_linkedin_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/outbound/reconcile-all-linkedin":{"post":{"summary":"Admin Reconcile All Linkedin","description":"Ops sweep: finish every stuck LinkedIn connection at once. Body: {dry_run?}.","operationId":"admin_reconcile_all_linkedin_v1_admin_outbound_reconcile_all_linkedin_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me":{"get":{"summary":"Me","operationId":"me_v1_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/saved-searches":{"get":{"summary":"Saved Searches","operationId":"saved_searches_v1_saved_searches_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/watched-companies":{"get":{"summary":"Watched Companies","operationId":"watched_companies_v1_watched_companies_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/diagnostics":{"get":{"summary":"Diagnostics","description":"Report which API keys and DB are configured. Safe to call at any time.","operationId":"diagnostics_v1_diagnostics_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/luma":{"post":{"summary":"Luma Webhook","operationId":"luma_webhook_v1_webhooks_luma_post","parameters":[{"name":"x-webhook-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Webhook-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/admin/patch-session-brief":{"post":{"summary":"Patch Session Brief","description":"One-time admin fix: set agent_sessions.brief_id for an orphaned session.\nUseful when a brief was created but the linkage wasn't saved (pre-fix).","operationId":"patch_session_brief_v1_admin_patch_session_brief_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/cleanup-ta-leads":{"get":{"summary":"Cleanup Ta Leads","description":"Delete all signal_leads rows where role_title contains TA/HR terms.\nAlso delete catalog_leads rows with TA job titles.\nProtected by admin secret.","operationId":"cleanup_ta_leads_admin_cleanup_ta_leads_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/bootstrap-user":{"post":{"summary":"Bootstrap User","description":"One-time admin endpoint: create a user with a direct password hash.\nRequires bearer admin secret. Safe to call multiple times (upsert).\nRemove or gate behind feature flag after initial setup.","operationId":"bootstrap_user_v1_admin_bootstrap_user_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/preview":{"post":{"summary":"Public Preview","description":"PUBLIC no-auth instant preview — the no-signup taste (Funnel C, stage 1).\nRuns the OWNED-data semantic search only (free; no Crustdata/Coresignal, so it\nworks even with the live stack dry) and returns a redacted teaser: niche size +\ntop company names + ONE decision-maker title (name/email locked) + a drafted\nmessage. Rate-limited per IP. Contacts/emails are never returned here.","operationId":"public_preview_v1_preview_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/seed-signals/{brief_id}":{"post":{"summary":"Seed Signals","description":"Manually trigger signal seeding for a brief.\nDefault: runs the jobs worker only. With ?all_signals=true, runs ALL four\nsignals (jobs + funding + backfill + promotions) via pre_warm_brief so a\nsingle brief can be fully refreshed (each run sweeps stale leads).\nSafe to call multiple times — inserts upsert and a refresh replaces the feed.","operationId":"seed_signals_v1_seed_signals__brief_id__post","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}},{"name":"all_signals","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"All Signals"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/seed-signals-all":{"post":{"summary":"Seed Signals All","description":"Run all signal workers for all live briefs — jobs, backfill, promotions, funding.\nAlso runs enricher to fill in person names for company-level rows.\nRuns in background thread. Safe to call at any time.","operationId":"seed_signals_all_v1_seed_signals_all_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/run-pipeline":{"post":{"summary":"Trigger Pipeline","operationId":"trigger_pipeline_run_pipeline_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntakePayload"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/status/{job_id}":{"get":{"summary":"Get Status","operationId":"get_status_status__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs":{"get":{"summary":"List Jobs","description":"List all jobs (admin view).","operationId":"list_jobs_jobs_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IntakePayload":{"properties":{"intake_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Intake Id"},"contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Name"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"calendar_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Calendar Link"},"company_overview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Overview"},"decision_maker_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision Maker Title"},"target_roles":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Roles"},"target_roles_list":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Target Roles List"},"target_locations":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Locations"},"target_headcount":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Target Headcount"},"target_revenue":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Revenue"},"target_industries":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Industries"},"target_company_list":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Company List"},"excluded_companies":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Excluded Companies"},"seniority_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seniority Level"},"seniority_levels":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Seniority Levels"},"job_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Type"},"remote_preference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remote Preference"},"target_skills":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Target Skills"},"certifications":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Certifications"},"roles_to_avoid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Roles To Avoid"},"signals":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Signals"},"leads_per_month":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Leads Per Month"},"hiring_volume":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hiring Volume"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"additionalProperties":true,"type":"object","title":"IntakePayload"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}