{"openapi":"3.1.0","info":{"title":"Resume Analyzer API","version":"1.0"},"paths":{"/api/syndication/publish":{"post":{"tags":["syndication"],"summary":"Publish Syndication","operationId":"publish_syndication_api_syndication_publish_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyndicationPublishRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyndicationPublishResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/syndication/unpublish/{job_id}":{"delete":{"tags":["syndication"],"summary":"Unpublish Syndication","operationId":"unpublish_syndication_api_syndication_unpublish__job_id__delete","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"corporate_plan","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Corporate Plan"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyndicationUnpublishResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/syndication/jobs/{job_id}/listings":{"get":{"tags":["syndication-listings"],"summary":"Get Job Listings","operationId":"get_job_listings_api_syndication_jobs__job_id__listings_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Job Listings Api Syndication Jobs  Job Id  Listings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/feeds/health":{"get":{"tags":["syndication-feeds"],"summary":"Feeds Health","operationId":"feeds_health_api_feeds_health_get","parameters":[{"name":"explain_channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"e.g. naukri — adds feed filter diagnostics counts for that channel.","title":"Explain Channel"},"description":"e.g. naukri — adds feed filter diagnostics counts for that channel."},{"name":"explain_corporate_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Explain Corporate Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Feeds Health Api Feeds Health Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/feeds/indeed.xml":{"get":{"tags":["syndication-feeds"],"summary":"Indeed Xml Feed","operationId":"indeed_xml_feed_api_feeds_indeed_xml_get","parameters":[{"name":"corporate_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Corporate Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"minimum":1,"default":2000,"title":"Page Size"}},{"name":"no_cache","in":"query","required":false,"schema":{"type":"boolean","description":"Bypass Redis; always rebuild XML from Postgres.","default":false,"title":"No Cache"},"description":"Bypass Redis; always rebuild XML from Postgres."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/feeds/{channel_slug}.xml":{"get":{"tags":["syndication-feeds"],"summary":"Generic Partner Xml Feed","operationId":"generic_partner_xml_feed_api_feeds__channel_slug__xml_get","parameters":[{"name":"channel_slug","in":"path","required":true,"schema":{"type":"string","title":"Channel Slug"}},{"name":"corporate_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Corporate Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"minimum":1,"default":2000,"title":"Page Size"}},{"name":"no_cache","in":"query","required":false,"schema":{"type":"boolean","description":"Bypass Redis; always rebuild XML from Postgres.","default":false,"title":"No Cache"},"description":"Bypass Redis; always rebuild XML from Postgres."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/syndication/ops/queue":{"get":{"tags":["syndication-ops-internal"],"summary":"Ops Queue Snapshot","operationId":"ops_queue_snapshot_api_syndication_ops_queue_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Queue Snapshot Api Syndication Ops Queue Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/syndication/ops/dlq":{"get":{"tags":["syndication-ops-internal"],"summary":"Ops Dlq Snapshot","operationId":"ops_dlq_snapshot_api_syndication_ops_dlq_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Dlq Snapshot Api Syndication Ops Dlq Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/syndication/ops/workers":{"get":{"tags":["syndication-ops-internal"],"summary":"Ops Workers Snapshot","operationId":"ops_workers_snapshot_api_syndication_ops_workers_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Workers Snapshot Api Syndication Ops Workers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/syndication/ops/adapters":{"get":{"tags":["syndication-ops-internal"],"summary":"Ops Adapter Matrix","operationId":"ops_adapter_matrix_api_syndication_ops_adapters_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ops Adapter Matrix Api Syndication Ops Adapters Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/syndication/health":{"get":{"tags":["syndication-ops"],"summary":"Syndication Health","operationId":"syndication_health_api_syndication_health_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Syndication Health Api Syndication Health Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/syndication/metrics":{"get":{"tags":["syndication-ops"],"summary":"Syndication Metrics","operationId":"syndication_metrics_api_syndication_metrics_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Syndication Metrics Api Syndication Metrics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/syndication/alerts/evaluate":{"post":{"tags":["syndication-ops"],"summary":"Syndication Evaluate Alerts","description":"Run alert rules against a fresh health snapshot (intended for cron / internal automation).","operationId":"syndication_evaluate_alerts_api_syndication_alerts_evaluate_post","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Syndication Evaluate Alerts Api Syndication Alerts Evaluate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/syndication/feeds/health":{"get":{"tags":["syndication-ops"],"summary":"Syndication Feeds Health","operationId":"syndication_feeds_health_api_syndication_feeds_health_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Syndication Feeds Health Api Syndication Feeds Health Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/syndication/oauth/linkedin/connect":{"post":{"tags":["syndication-oauth"],"summary":"Linkedin Oauth Connect","operationId":"linkedin_oauth_connect_api_syndication_oauth_linkedin_connect_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedInConnectBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/syndication/oauth/linkedin/callback":{"get":{"tags":["syndication-oauth"],"summary":"Linkedin Oauth Callback","operationId":"linkedin_oauth_callback_api_syndication_oauth_linkedin_callback_get","parameters":[{"name":"state","in":"query","required":true,"schema":{"type":"string","title":"State"}},{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},{"name":"error_description","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Description"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/syndication/oauth/linkedin/refresh":{"post":{"tags":["syndication-oauth"],"summary":"Linkedin Token Refresh Manual","operationId":"linkedin_token_refresh_manual_api_syndication_oauth_linkedin_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedInRefreshBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/apply/{job_id}":{"head":{"tags":["application-attribution"],"summary":"Capture Apply Attribution","operationId":"capture_apply_attribution_apply__job_id__head","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["application-attribution"],"summary":"Capture Apply Attribution","operationId":"capture_apply_attribution_apply__job_id__head","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["application-attribution"],"summary":"Capture Apply Attribution","operationId":"capture_apply_attribution_apply__job_id__head","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/syndication/stats/corporate/{corporate_id}":{"get":{"tags":["syndication-stats"],"summary":"Corporate Syndication Stats","operationId":"corporate_syndication_stats_api_syndication_stats_corporate__corporate_id__get","parameters":[{"name":"corporate_id","in":"path","required":true,"schema":{"type":"string","title":"Corporate Id"}},{"name":"listings_limit","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"minimum":1,"default":500,"title":"Listings Limit"}},{"name":"app_source_limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":40,"title":"App Source Limit"}},{"name":"apps_offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Apps Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/syndication/stats/{job_id}":{"get":{"tags":["syndication-stats"],"summary":"Job Syndication Stats","operationId":"job_syndication_stats_api_syndication_stats__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/syndication/credentials/{channel}":{"post":{"tags":["syndication-credentials"],"summary":"Store Corporate Credentials","operationId":"store_corporate_credentials_api_syndication_credentials__channel__post","parameters":[{"name":"channel","in":"path","required":true,"schema":{"type":"string","title":"Channel"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreCredentialsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/syndication/connect/panel/{corporate_id}":{"get":{"tags":["syndication-credentials"],"summary":"Syndication Connect Panel","operationId":"syndication_connect_panel_api_syndication_connect_panel__corporate_id__get","parameters":[{"name":"corporate_id","in":"path","required":true,"schema":{"type":"string","title":"Corporate Id"}},{"name":"plan","in":"query","required":false,"schema":{"type":"string","default":"free","title":"Plan"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/syndication/monitoring/google-jobs-stale-scan":{"post":{"tags":["syndication-monitoring"],"summary":"Scan Stale Google Jobs Listings","operationId":"scan_stale_google_jobs_listings_api_syndication_monitoring_google_jobs_stale_scan_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StaleJobsScanBody"},{"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"}}}}}}},"/health":{"get":{"summary":"Health Check","description":"Health check endpoint for production monitoring.","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health/deep":{"get":{"summary":"Deep Health Check","description":"Chroma (app + intent tenants) and Redis reachability; 503 if any fails. Cached ~30s — see core/deep_health.py.","operationId":"deep_health_check_health_deep_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/metrics":{"get":{"summary":"Get Metrics","description":"Get production metrics for monitoring.","operationId":"get_metrics_metrics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/circuit-breaker/{tenant_id}":{"get":{"summary":"Get Circuit Breaker Info","description":"Get circuit breaker status for a tenant.","operationId":"get_circuit_breaker_info_circuit_breaker__tenant_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rate-limiter/{tenant_id}":{"get":{"summary":"Get Rate Limiter Info","description":"Get rate limiter status for a tenant.","operationId":"get_rate_limiter_info_rate_limiter__tenant_id__get","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/session-status/{uid}":{"get":{"summary":"Get User Session Status","description":"Get session status for a user.","operationId":"get_user_session_status_session_status__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/memory-summary/{uid}":{"get":{"summary":"Get User Memory Summary","description":"Get memory summary for a user.","operationId":"get_user_memory_summary_memory_summary__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflow-summary/{uid}":{"get":{"summary":"Get Workflow Summary Endpoint","description":"Get workflow summary showing active agents and progress.","operationId":"get_workflow_summary_endpoint_workflow_summary__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-output/{uid}/{agent_name}":{"get":{"summary":"Get Agent Specific Output","description":"Get filtered output for a specific agent.","operationId":"get_agent_specific_output_agent_output__uid___agent_name__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}},{"name":"agent_name","in":"path","required":true,"schema":{"type":"string","title":"Agent Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/filtered-output/{uid}":{"get":{"summary":"Get Filtered Output","description":"Get intelligently filtered output based on active agents.","operationId":"get_filtered_output_filtered_output__uid__get","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/adaptive-insights":{"get":{"summary":"Get Adaptive Insights Endpoint","description":"Get insights from the adaptive learning system.","operationId":"get_adaptive_insights_endpoint_adaptive_insights_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/learned-patterns":{"get":{"summary":"Get Learned Patterns Endpoint","description":"Export all learned patterns for analysis.","operationId":"get_learned_patterns_endpoint_learned_patterns_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/agent-predictions/{agent_name}":{"get":{"summary":"Get Agent Predictions","description":"Get predictions for what fields an agent will produce.","operationId":"get_agent_predictions_agent_predictions__agent_name__get","parameters":[{"name":"agent_name","in":"path","required":true,"schema":{"type":"string","title":"Agent Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/update-session-step":{"post":{"summary":"Update User Session Step","description":"Update session step and data.","operationId":"update_user_session_step_update_session_step_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/callback-status":{"get":{"summary":"Get Callback Status","description":"Get callback status (failures by URL + latest per-node status).","operationId":"get_callback_status_callback_status_get","parameters":[{"name":"uid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/callback-reset":{"post":{"summary":"Reset Callback Status Endpoint","description":"Reset callback failure tracking","operationId":"reset_callback_status_endpoint_callback_reset_post","parameters":[{"name":"callback_url","in":"query","required":false,"schema":{"type":"string","title":"Callback Url"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Read Root","operationId":"read_root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/analyze-resume-callback":{"patch":{"summary":"Analyze Resume Callback","description":"Production-ready entrypoint for resume parsing, skill gap, assessment, etc.\nBody must include at least: uid, callback_url, tenant_id\nOther fields can vary; the graph dispatcher routes appropriately.\n\nManual JD entry (``jd_text`` / ``job_details``): see\n``docs/manual-jd-pipeline-and-edit-status.md``. Use ``edit_status=true`` on job\nedit to skip enhance/terminal and re-run ranker only.\n\nReturns **202 Accepted** immediately; the pipeline runs in the background and reports\nvia ``callback_url`` (same pattern as ``/compare-candidate-job``).","operationId":"analyze_resume_callback_analyze_resume_callback_patch","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/reanalyze-with-interests":{"post":{"summary":"Reanalyze With Interests","description":"Re-run career advisor, market/course recommender, and assessment recommender with updated interests.\nUses cached structured resume and gap context from Chroma when available.\n\n**POST** or **PATCH** with the same JSON body.","operationId":"reanalyze_with_interests_reanalyze_with_interests_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"patch":{"summary":"Reanalyze With Interests","description":"Re-run career advisor, market/course recommender, and assessment recommender with updated interests.\nUses cached structured resume and gap context from Chroma when available.\n\n**POST** or **PATCH** with the same JSON body.","operationId":"reanalyze_with_interests_reanalyze_with_interests_patch","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/debug":{"get":{"summary":"Debug Langgraph","operationId":"debug_langgraph_debug_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/compare-candidate-job":{"post":{"summary":"Compare Candidate Job Endpoint","description":"Compare a candidate's structured resume with a job description.\nRoutes through the graph for consistent processing and callbacks.\nNON-BLOCKING: Returns **HTTP 202 Accepted** immediately; results sent via callback.\n\nRequest Body:\n- uid (str, required): UID of the candidate\n- job_id (str, required): ID of the job (job description will be fetched from DB)\n- callback_url (str, required): URL to send results via callback (required for non-blocking)\n- tenant_id (str, optional): Tenant ID\n\nReturns:\n- status: \"processing\"\n- uid: Candidate UID\n- job_id: Job ID\n- callback_url: Callback URL where results will be sent\n- message: Processing status message","operationId":"compare_candidate_job_endpoint_compare_candidate_job_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"patch":{"summary":"Compare Candidate Job Endpoint","description":"Compare a candidate's structured resume with a job description.\nRoutes through the graph for consistent processing and callbacks.\nNON-BLOCKING: Returns **HTTP 202 Accepted** immediately; results sent via callback.\n\nRequest Body:\n- uid (str, required): UID of the candidate\n- job_id (str, required): ID of the job (job description will be fetched from DB)\n- callback_url (str, required): URL to send results via callback (required for non-blocking)\n- tenant_id (str, optional): Tenant ID\n\nReturns:\n- status: \"processing\"\n- uid: Candidate UID\n- job_id: Job ID\n- callback_url: Callback URL where results will be sent\n- message: Processing status message","operationId":"compare_candidate_job_endpoint_compare_candidate_job_patch","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/generate-resume-content":{"post":{"summary":"Generate Resume Content","description":"Generate resume content in formatted Markdown from structured resume and context.\nWorks with minimal data - only requires structured resume. All other context is optional.\n\nRequest Body (distinct from resume flow to avoid routing conflicts):\n{\n  \"uid\": \"user123\",\n  \"tenant_id\": \"tenant_id\" (optional, defaults to uid),\n  \"session_id\": \"session_id\" (optional),\n  \"callback_url\": \"https://...\" (optional - output will be POSTed here on completion),\n  \"certificates\": [ {\"name\": \"...\", \"issuer\": \"...\", \"date\": \"...\"}, ... ] (optional, max 50 items)\n}\n\nNote: Does NOT accept resume_url or resume_text to avoid being routed to the resume analysis flow.\n\nReturns:\n- resume_content: Resume content (Markdown format)\n- success: Boolean indicating success\n- processing_time_seconds: Processing time\n- context_used: Dictionary showing which context was available","operationId":"generate_resume_content_generate_resume_content_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Generate Resume Content Generate Resume Content Post"}}}}}}},"/whatsapp-preference":{"post":{"summary":"Update Whatsapp Preference","description":"Update WhatsApp opt-in preference and number for a user.\nStores in Chroma resume collection metadata (no Firebase required).\nPayload: {uid, whatsapp_opt_in: bool, whatsapp_number: string}","operationId":"update_whatsapp_preference_whatsapp_preference_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/sourcing-preference":{"post":{"summary":"Update Sourcing Preference","description":"Update Lane B (Global Talent Sourcing) consent for a candidate.\nStores in Chroma resume collection metadata (no Firebase required) — same shape as\n/whatsapp-preference, distinct field: SOURCING_CONSENT_METADATA_KEY (\"sourcing_opt_in\").\nPayload: {uid, sourcing_opt_in: bool}","operationId":"update_sourcing_preference_sourcing_preference_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/skill-proficiency-certificates":{"post":{"summary":"Skill Proficiency Certificates Endpoint","description":"Add certificates and merge derived skills into the candidate's resume via LangGraph;\noptionally run skill proficiency analyzer (so skills needing proof are updated).\nReturns strict JSON: uid, skills, skills_without_supporting_evidence, and rest of resume.","operationId":"skill_proficiency_certificates_endpoint_skill_proficiency_certificates_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"patch":{"summary":"Skill Proficiency Certificates Endpoint","description":"Add certificates and merge derived skills into the candidate's resume via LangGraph;\noptionally run skill proficiency analyzer (so skills needing proof are updated).\nReturns strict JSON: uid, skills, skills_without_supporting_evidence, and rest of resume.","operationId":"skill_proficiency_certificates_endpoint_skill_proficiency_certificates_patch","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/upload-certificates":{"post":{"summary":"Certificates Upload Endpoint","description":"Upload a certificate (PDF, DOC, or DOCX); extract certification name from document text,\nroute through LangGraph update_certificates node to merge cert and derived skills,\noptionally run skill proficiency analyzer.\nReturns strict JSON: uid, skills, skills_without_supporting_evidence, rest of resume.","operationId":"certificates_upload_endpoint_upload_certificates_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_certificates_upload_endpoint_upload_certificates_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mock-questions":{"patch":{"summary":"Mock Questions Endpoint","description":"Generate mock interview questions for a candidate and job.\nFetches JD and candidate from DB, generates Q&A based on the job.\nIndependent call (not part of graph).","operationId":"mock_questions_endpoint_mock_questions_patch","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/assessment-question-generator":{"patch":{"summary":"Assessment Question Generator Callback","description":"Dedicated entrypoint for assessment question generation only.\n\nRequest body matches ``PATCH /analyze-resume-callback`` when routing to\n``assessment_question_generator`` (must include non-empty ``plan`` plus\n``uid``, ``callback_url``, and optional fields such as ``tenant_id``,\n``assessment_id``, ``session_id``, etc.).\n\nReturns **202 Accepted**; the same pipeline runs in the background and\nreports via ``callback_url`` with ``node``: ``assessment_question_generator``\nand output ``generated_questions`` / ``assessment_id`` as in the shared flow.","operationId":"assessment_question_generator_callback_assessment_question_generator_patch","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/manual-assessment-builder":{"post":{"summary":"Manual Assessment Builder Callback","description":"Dedicated entrypoint for manual assessment builder (from-topic or from-content).\n\nBody must include exactly one of ``topic``, ``assessment_file_url`` (PDF/DOC/DOCX), or\n``assessment_text`` (pasted study material, JD, syllabus, training doc), plus\n``organization_type`` (corporate|university|recruiting), ``uid``, ``callback_url``,\n``question_count`` (1..10, required), ``difficulty`` (easy|medium|hard, required),\nand optional ``tenant_id``, ``total_marks``, ``target_group`` (fresher|mid-level|senior),\n``sections``, ``question_types``. CamelCase aliases: ``assessmentFileUrl``,\n``assessmentText``, ``targetGroup``, ``questionCount``, ``questionTypes``.\n\n``topic`` -> ``generation_mode: from_topic``; file or paste -> ``from_content``.\n\nReturns **202 Accepted**; pipeline runs in the background and reports via ``callback_url``\nwith ``analysis_type``: ``manual_assessment_builder``.","operationId":"manual_assessment_builder_callback_manual_assessment_builder_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/prefill-profile-questions":{"post":{"summary":"Prefill Profile Questions","description":"Generate draft answers for profile questions from resume context.\nStores ``profile_questions`` and ``profile_status`` on Firestore ``users/{uid}`` when Firestore is available.\n\nOptional ``callback_url``: sends the same PATCH callback pattern as the main pipeline\n(``node``: ``prefill_profile_questions``). Resume context and Q&A instructions come from\n``interest_filler_agent._build_interest_prompt``; the model must return the legacy top-level\nJSON array of objects with ``question`` and ``answer`` keys (same contract as before).\n\n**POST** or **PATCH** with the same JSON body.","operationId":"prefill_profile_questions_prefill_profile_questions_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"patch":{"summary":"Prefill Profile Questions","description":"Generate draft answers for profile questions from resume context.\nStores ``profile_questions`` and ``profile_status`` on Firestore ``users/{uid}`` when Firestore is available.\n\nOptional ``callback_url``: sends the same PATCH callback pattern as the main pipeline\n(``node``: ``prefill_profile_questions``). Resume context and Q&A instructions come from\n``interest_filler_agent._build_interest_prompt``; the model must return the legacy top-level\nJSON array of objects with ``question`` and ``answer`` keys (same contract as before).\n\n**POST** or **PATCH** with the same JSON body.","operationId":"prefill_profile_questions_prefill_profile_questions_patch","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/assessments":{"post":{"summary":"Assessments Endpoint","description":"Create assessment plan from spec. Single action: create_from_spec.\n\nBody: uid, action=\"create_from_spec\", topic, num_questions={mcq, short, long, coding}, difficulty, time_limit_minutes (optional)","operationId":"assessments_endpoint_assessments_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/evaluate-interview-transcript":{"post":{"summary":"Evaluate Interview Transcript Endpoint","description":"Evaluate an interview transcript against a job description.\n\nProvides per-answer Evaluation cards (question, score, feedback), overall\ncandidate summary vs JD, and optional interviewer feedback\n(JD coverage gaps, question quality, suggested follow-ups).\n\nRequest Body:\n{\n    \"job_id\": \"job_123\",           // REQUIRED: Job ID (fetches JD from Chroma)\n    \"uid\": \"candidate_456\",        // REQUIRED: Candidate UID\n    \"job_description\": \"...\",      // Optional: JD text override (skips Chroma fetch)\n    \"transcript\": [...],           // OR interviewer_questions OR session_id\n    \"interviewer_questions\": [{\"question\": \"...\", \"answer\": \"...\"}],\n    \"session_id\": \"session_xyz\",   // Optional: fetch transcript from interview_chroma\n    \"include_interviewer_feedback\": true\n}\n\nReturns:\n{\n    \"job_id\": \"job_123\",\n    \"uid\": \"candidate_456\",\n    \"per_answer_evaluations\": [{\"question\": \"...\", \"score\": 9, \"feedback\": \"...\"}],\n    \"overall_summary\": {...},\n    \"interviewer_feedback\": {...},\n    \"processing_time_seconds\": 12.5\n}","operationId":"evaluate_interview_transcript_endpoint_evaluate_interview_transcript_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/interview":{"post":{"summary":"Interview","description":"Unified conversational agent endpoint - routes to interview or career guidance workflows.\n\nRoutes based on payload structure:\n- Interview payload: Has \"interview_topic\", \"answer\", or \"question_count\" fields\n- Career guidance payload: Has \"message\" field\n\nInterview Payload Example:\n{\n    \"uid\": \"user123\",\n    \"interview_topic\": \"Python\",\n    \"structured_resume\": {...},\n    \"answer\": \"user's answer\",\n    \"question_count\": 1,\n    \"stream\": true  # Optional: If true, returns SSE streaming response\n}\n\nFor **career guidance** (``message``), ``stream`` defaults to **true** (same as ``/career-coach/chat``).\nWith ``stream: true`` and ``callback_url``, returns **SSE** and streams each event to the callback\n(then ``response_complete`` / ``tool_outputs``). With ``callback_url`` and ``stream: false``,\nreturns **HTTP 202** and **PATCH**es the final chatbot ``output`` when done.\nFor **interview** payloads, ``stream`` defaults to **false**; set ``stream: true`` for SSE + callbacks.\n**Interview** with ``end_interview: true``, ``stream: false``, and ``callback_url``: returns **HTTP 200**\nwith the full serialized interview in the body and still **PATCH**es ``callback_url`` with\n``output: { \"structured_report\": { ... } }`` only (no other ``output`` keys).\n\nCareer Guidance Payload Example:\n{\n    \"uid\": \"user123\",\n    \"message\": \"What courses should I take?\",\n    \"session_id\": \"optional\",\n    \"callback_url\": \"optional\",\n    \"stream\": true\n}","operationId":"interview_interview_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/interview-report":{"post":{"summary":"Interview Report","description":"Build the same **structured_report** shape as end-of-interview callbacks from an existing\n``conversation_history`` (plus optional evaluation context), and **PATCH** it to ``callback_url``.\n\nRequest body is validated as ``InterviewReportCallbackRequest``. Authentication matches\n``/interview`` (GenAI token via ``verify_request_token``).\n\nOn success the callback receives (same as other interview completion PATCHes):\n\n- ``status``: ``completed``\n- ``node``: ``interview_report``\n- ``uid``, optional ``session_id``, ``callback_url``\n- ``output``: ``{ \"structured_report\": { ... } }`` (normalized six-field UI schema)\n\n**HTTP 202** — processing is asynchronous when the request is accepted.","operationId":"interview_report_interview_report_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/videointerview":{"post":{"summary":"Video Interview","description":"Dedicated video interview endpoint with streaming support and avatar generation.\n\nThis endpoint is optimized for video interviews with:\n- Real-time question streaming (SSE)\n- Avatar video generation (HeyGen Streaming API or Video Generation API)\n- Parallel processing for low latency\n- WebRTC streaming support\n\nRequest Body:\n{\n    \"uid\": \"user123\",                    // REQUIRED\n    \"interview_topic\": \"Python\",         // REQUIRED\n    \"structured_resume\": {...},          // Optional\n    \"answer\": \"user's answer\",           // Optional (for subsequent questions)\n    \"question_count\": 1,                 // Optional\n    \"generate_avatar\": true,             // Optional: Enable avatar video generation\n    \"stream\": true,                      // Optional: Enable SSE streaming (default: true)\n    \"session_id\": \"optional-session-id\" // Optional\n}\n\nResponse (Streaming - SSE):\n- type: \"start\" - Stream started\n- type: \"progress\" - Progress update\n- type: \"chunk\" - Question text chunk\n- type: \"avatar_status\" - Avatar generation status\n- type: \"avatar_video_ready\" - Avatar video ready (WebRTC or URL)\n- type: \"done\" - Stream complete\n\nResponse (Non-streaming):\n{\n    \"question\": \"What is your experience with Python?\",\n    \"session_id\": \"session_123\",\n    \"question_count\": 1,\n    \"conversation_history\": [...]\n}\n\nWhen **callback_url** is set **and** ``stream`` is false: returns **HTTP 202**; the interview runs in\nthe background (non-streaming) and the result is **PATCH**ed to ``callback_url`` when done.\nWith ``stream: true`` (default) and ``callback_url``, returns **SSE** and **PATCH**es stream events\nchunk-by-chunk, then ``status: completed``.","operationId":"video_interview_videointerview_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/videosdk/meeting":{"post":{"summary":"Create Videosdk Meeting","description":"Create a VideoSDK meeting room for video interviews.\n\nReturns:\n    Dict with roomId and token, or error dict","operationId":"create_videosdk_meeting_videosdk_meeting_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health/avatar":{"get":{"summary":"Health Avatar","description":"Health check endpoint for avatar video generation system.\nChecks HeyGen API configuration and connectivity.\n\nReturns:\n    Dict with health status and configuration info","operationId":"health_avatar_health_avatar_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/screening-interview/turn":{"post":{"summary":"Screening Interview Turn","description":"Fixed-question screening interview, one answer per call (voice front-end).\n\nFirst call: {uid, job_id} -> {session_id, intro, question, ...}; questions are generated\nfrom the applicant's resume and the job (optional override: questions [{id, text}]).\nNext calls: {uid, job_id, session_id, question_id, answer} -> next question, or done=true.\nOn done, evaluate with /evaluate-interview-transcript {job_id, uid, session_id}.","operationId":"screening_interview_turn_screening_interview_turn_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/prescreen/plan":{"post":{"summary":"Prescreen Plan","description":"Questions for a recruiter's live interview, from the candidate's resume and the job.\n\n{job_id, job_description?, candidate_uid?, max_questions?=8}\n  -> {questions: [{id, question, skill, why}]}\nSame generator as the voice screening interview. Without candidate_uid (or a stored\nresume) the questions come from the job alone.","operationId":"prescreen_plan_prescreen_plan_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/live-prescreen/suggest":{"post":{"summary":"Live Prescreen Suggest","description":"Up to 3 next-question suggestions for a recruiter during a live meeting (stateless).\n\nBody per CIE handoff 5.2: {interview_id, organization_id, job_id, candidate_uid?,\njob_description?, turns:[{speaker, text, start_ms}], questions_asked:[...],\nplanned_questions:[{id, question, skill, why}], max_suggestions}\n  -> {suggestions:[{question, reason, skill, kind}], uncovered_skills:[...], latency_ms}","operationId":"live_prescreen_suggest_live_prescreen_suggest_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/internal/candidates/{uid}":{"delete":{"summary":"Purge Candidate Endpoint","description":"Hard-delete a candidate's resume/gap/assessment/interview data from Chroma.\n\nRAG security audit H1 — no hard-delete existed anywhere in the live path.\nIntended caller: Node's deleteAccount, after its own Firestore/Storage/Auth\ncascade completes (not yet wired on the Node side — see the Kishore ask).","operationId":"purge_candidate_endpoint_internal_candidates__uid__delete","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/jobs/{job_id}":{"delete":{"summary":"Purge Job Endpoint","description":"Hard-delete a job's Chroma record and cached ranked-candidates snapshot.\n\nRAG security audit H1 — closing/deleting a job on Node only flips a\nmetadata flag or removes the Firestore doc; the Chroma copy had no delete\npath, so a deleted job stayed fetchable by ID forever. Intended caller:\nNode's deleteJob (not yet wired — see the Kishore ask).","operationId":"purge_job_endpoint_internal_jobs__job_id__delete","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/external-bookmarks/tenant/{tenant_id}":{"delete":{"summary":"Purge External Bookmarks For Tenant Endpoint","description":"Hard-delete every external-candidate bookmark for one tenant (D6: cascade\ncleanup when a tenant's account is deleted — same RAG security audit H1 pattern\nas purge_candidate_data/purge_job_data above). This collection has no TTL/age-based\nauto-purge (D6: manual delete only); account deletion is the one cascade trigger.\nIntended caller: Node's deleteAccount/deleteOrg, after its own Firestore/Auth\ncascade completes (not yet wired — same situation as the two purge endpoints above).","operationId":"purge_external_bookmarks_for_tenant_endpoint_internal_external_bookmarks_tenant__tenant_id__delete","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/bulk-cv-match/purge":{"post":{"summary":"Purge Bulk Cv Match Endpoint","description":"Delete Bulk CV Match CVs (and every per-job match row for them) from Chroma.\n\nBody: {org_id: str, resume_ids: [str, ...] (≤ 500), include_copies?: bool}.\nCallers (Functions):\n- hourly expiry sweep: include_copies=false\n- employer \"Delete\" / \"Delete all\": include_copies=true — also removes every other CV\n  in the org with the same file fingerprint, so no copy of that person's CV survives.\nReturns every resume_id removed (requested ids plus copies) so Functions can redact\nthose rows in saved chat messages too. A Chroma failure returns 502 so the caller\nkeeps its own records and retries instead of assuming the delete happened.","operationId":"purge_bulk_cv_match_endpoint_internal_bulk_cv_match_purge_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/internal/candidates/{uid}/profile":{"post":{"summary":"Sync Candidate Profile Endpoint","description":"Node pushes a candidate's profile save here so UI edits reach the resume index.\n\nBody: any of {skills, experience, education, certifications, projects, location,\nheadline} in Node's profile field names; only sections present are applied.\nCaller: Node profile.service.ts updateProfile (fire-and-forget).","operationId":"sync_candidate_profile_endpoint_internal_candidates__uid__profile_post","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/candidates/{uid}/relationships":{"post":{"summary":"Create Tenant Candidate Relationship Endpoint","description":"Record an explicit candidate<->tenant relationship (Lane A candidate-search scope).\n\nBody: {tenant_id: str, relationship_type: \"recruiter_added\"|\"tenant_imported\"|\"tenant_sourced\",\nsource_job_id?: str}. Node/Gateway owns auth, tenant ownership, and business\nauthorization before calling this — validates and rejects on its own side; the Agent\nonly persists what it's told. Intended caller: Node's Add Candidate / bulk import /\nrecruiter sourcing flows (not yet wired — see the Kishore ask, agreed 2026-08-21).","operationId":"create_tenant_candidate_relationship_endpoint_internal_candidates__uid__relationships_post","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/candidates/relationships/bulk":{"post":{"summary":"Create Tenant Candidate Relationships Bulk Endpoint","description":"Bulk variant of the single-candidate relationship endpoint above.\n\nFor bulk import and historical backfill specifically — looping the single-item\nendpoint per candidate means one HTTP round trip per candidate, which doesn't scale\nto a multi-thousand-candidate import or backfill. Body: {items: [{uid, tenant_id,\nrelationship_type, source_job_id?}, ...]}, max 1000 per call (chunk larger batches\nclient-side). Each item is independent and reported separately — a bad item doesn't\nfail the batch, so Node can retry only what actually failed.","operationId":"create_tenant_candidate_relationships_bulk_endpoint_internal_candidates_relationships_bulk_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/ranker":{"patch":{"summary":"Ranker Endpoint","description":"Direct API endpoint to run the ranker agent for a specific job description.\n\nTwo modes:\n1. **Bulk Ranking** (default): Provide job_id, optionally with employer uid - ranks all candidates\n2. **Single Candidate Re-ranking**: Provide job_id + candidate_uid - ranks specific candidate\n\nRequest Body (Bulk Ranking):\n{\n    \"job_id\": \"job_123\",  // REQUIRED: ID of the job description\n    \"callback_url\": \"https://example.com/callback\",  // Optional\n    \"uid\": \"employer_uid\",  // Optional requester/callback context\n    \"tenant_id\": \"optional_tenant_id\"  // Optional\n}\n\nRequest Body (Single Candidate Re-ranking):\n{\n    \"job_id\": \"job_123\",  // REQUIRED: ID of the job description\n    \"uid\": \"employer_uid\",  // Optional requester/callback context\n    \"candidate_uid\": \"candidate_uid\",  // REQUIRED for single-candidate mode\n    \"callback_url\": \"https://example.com/callback\",  // Optional\n    \"tenant_id\": \"optional_tenant_id\",  // Optional\n    \"recruiter_questions\": [...]  // Optional Q&A for matching\n}\n\nWhen **callback_url** is provided: returns **202 Accepted** immediately with\n``status: processing``; full results are sent to ``callback_url`` when done\n(avoids client/proxy timeouts on long runs).\n\nWhen **callback_url** is omitted: returns **200** with the full payload after\nthe ranker finishes (synchronous).\n\nReturns (Bulk Ranking, no callback):\n{\n    \"status\": \"success\",\n    \"job_id\": \"job_123\",\n    \"ranked_candidates\": [...],\n    ...\n}\n\nReturns (with callback_url): HTTP **202** + ``{\"status\":\"processing\", ...}``.","operationId":"ranker_endpoint_ranker_patch","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/ranker/deep-analysis":{"post":{"summary":"Deep Analysis Endpoint","description":"On-demand LLM rationale for a single (candidate, job) pair.\n\nConsumes the deterministic scorer's ``pre_computed`` evidence (match_score,\nsubscores, skills_matched/unmatched, preset, …) and returns a JSON rationale\nblock (``positive_rationale`` / ``negative_rationale`` / ``concerns`` /\n``score_explanation`` / ``summary`` / ``domain_relevant_years``). The\ndeterministic ``match_score`` is authoritative — the LLM never re-scores.\n\nResponse fields include ``analysis_source`` (``\"cache\"`` or ``\"llm\"``),\n``cache_hit``, and ``model_used``.","operationId":"deep_analysis_endpoint_ranker_deep_analysis_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/ranker/ready-to-hire":{"post":{"summary":"Ready To Hire Ranking Endpoint","description":"Rank a small shortlist of \"Ready to Hire\" candidates for one job.\n\nConsumes per-candidate evidence supplied by the caller (match_score, the\noutput of /evaluate-interview-transcript, an optional assessment result,\noptional interviewer notes) and returns a ranked list. The ranking itself\nis a deterministic composite (interview 55% / match 35% / assessment 10%,\nrenormalized when assessment is absent) — the LLM only narrates each\ncandidate's placement and, when the top candidates are within a few points\nof each other, names one recommended hire. See agents.ranker.rank_ready_to_hire_candidates.","operationId":"ready_to_hire_ranking_endpoint_ranker_ready_to_hire_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/job-status/{session_id}":{"get":{"summary":"Job Status Endpoint","description":"Return the current LangGraph pipeline stage for a session from the checkpoint store.\n\nRequires LANGGRAPH_CHECKPOINT_BACKEND=memory or redis. With redis, REDIS_URL must be\nRedis Stack (RediSearch), not plain Redis.","operationId":"job_status_endpoint_api_job_status__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/job-matcher":{"post":{"summary":"Job Matcher Endpoint","description":"Direct API endpoint to run the job_matcher agent for a specific candidate.\n\nThis endpoint allows you to trigger job matching for a specific candidate\non-demand, independent of the normal flow or scheduled jobs.\n\nRequest Body:\n{\n    \"uid\": \"candidate_123\",  // REQUIRED: UID of the candidate\n    \"callback_url\": \"https://example.com/callback\",  // Optional: URL to receive results\n    \"tenant_id\": \"optional_tenant_id\",  // Optional: Tenant ID\n    \"structured_resume\": {...}  // Optional: Structured resume (if not provided, will be fetched from DB)\n}\n\nWhen **callback_url** is provided: **202 Accepted** + ``processing``; results\non callback. Without callback: **200** + full match payload (synchronous).","operationId":"job_matcher_endpoint_api_job_matcher_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"patch":{"summary":"Job Matcher Endpoint","description":"Direct API endpoint to run the job_matcher agent for a specific candidate.\n\nThis endpoint allows you to trigger job matching for a specific candidate\non-demand, independent of the normal flow or scheduled jobs.\n\nRequest Body:\n{\n    \"uid\": \"candidate_123\",  // REQUIRED: UID of the candidate\n    \"callback_url\": \"https://example.com/callback\",  // Optional: URL to receive results\n    \"tenant_id\": \"optional_tenant_id\",  // Optional: Tenant ID\n    \"structured_resume\": {...}  // Optional: Structured resume (if not provided, will be fetched from DB)\n}\n\nWhen **callback_url** is provided: **202 Accepted** + ``processing``; results\non callback. Without callback: **200** + full match payload (synchronous).","operationId":"job_matcher_endpoint_api_job_matcher_patch","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/job-matcher/deep-analysis":{"post":{"summary":"Job Matcher Deep Analysis Endpoint","description":"LLM narrative only from pre-computed job-matcher scores. No scoring, no graph.\nOptional ``callback_url``: HTTP 202 + result on callback; else synchronous 200.","operationId":"job_matcher_deep_analysis_endpoint_job_matcher_deep_analysis_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/enhance-job-description":{"post":{"summary":"Enhance Job Description Endpoint","description":"Enhance job description text only. Downloads from jd_url or uses jd_text,\nruns enhancement, and sends the result to callback_url. Client can then\nsend the enhanced text in the normal flow (validate → parse → rank).","operationId":"enhance_job_description_endpoint_enhance_job_description_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"patch":{"summary":"Enhance Job Description Endpoint","description":"Enhance job description text only. Downloads from jd_url or uses jd_text,\nruns enhancement, and sends the result to callback_url. Client can then\nsend the enhanced text in the normal flow (validate → parse → rank).","operationId":"enhance_job_description_endpoint_enhance_job_description_patch","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/search-gateway":{"post":{"summary":"Search Gateway","description":"Pure vector-similarity candidate search (no LLM / QueryParser / enrichment).\nReturns {uid, score} per hit. Supports optional async callback.","operationId":"search_gateway_search_gateway_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/search-candidate":{"post":{"summary":"Recruitment Search Candidates","description":"Search for candidates based on natural language query.\n\nThis endpoint:\n1. Parses the recruiter's query to extract structured entities\n2. Normalizes locations, skills, and seniority levels\n3. Executes vector search with metadata filtering\n4. Returns ranked candidates with match explanations\n5. Optionally sends results to callback_url if provided\n\nRequest Body:\n{\n    \"query\": \"Senior Python Developer in Dubai\",  // REQUIRED: Natural language query\n    \"top_k\": 50,  // Optional: Number of candidates to return (configurable via RECRUITMENT_DEFAULT_TOP_K setting)\n    \"callback_url\": \"https://apis-buh3qzwapq-uc.a.run.app/apis/user/aiResponse/...\"  // Optional: Callback URL\n}\n\nReturns:\n{\n    \"query\": \"Senior Python Developer in Dubai\",\n    \"parsed_query\": {...},\n    \"matches\": [...],\n    \"total_found\": 25,\n    \"processing_time_ms\": 450,\n    \"search_strategy\": \"vector_similarity_with_filters\",\n    \"filters_applied\": {...},\n    \"avg_match_score\": 0.72,\n    \"top_match_score\": 0.87,\n    \"callback_url\": \"...\"  // If provided\n}","operationId":"recruitment_search_candidates_search_candidate_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"patch":{"summary":"Recruitment Search Candidates","description":"Search for candidates based on natural language query.\n\nThis endpoint:\n1. Parses the recruiter's query to extract structured entities\n2. Normalizes locations, skills, and seniority levels\n3. Executes vector search with metadata filtering\n4. Returns ranked candidates with match explanations\n5. Optionally sends results to callback_url if provided\n\nRequest Body:\n{\n    \"query\": \"Senior Python Developer in Dubai\",  // REQUIRED: Natural language query\n    \"top_k\": 50,  // Optional: Number of candidates to return (configurable via RECRUITMENT_DEFAULT_TOP_K setting)\n    \"callback_url\": \"https://apis-buh3qzwapq-uc.a.run.app/apis/user/aiResponse/...\"  // Optional: Callback URL\n}\n\nReturns:\n{\n    \"query\": \"Senior Python Developer in Dubai\",\n    \"parsed_query\": {...},\n    \"matches\": [...],\n    \"total_found\": 25,\n    \"processing_time_ms\": 450,\n    \"search_strategy\": \"vector_similarity_with_filters\",\n    \"filters_applied\": {...},\n    \"avg_match_score\": 0.72,\n    \"top_match_score\": 0.87,\n    \"callback_url\": \"...\"  // If provided\n}","operationId":"recruitment_search_candidates_search_candidate_patch","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/career-coach/chat":{"post":{"summary":"Coach Chat Ask","description":"Career chatbot endpoint with streaming support.\n\nCONCURRENCY: This endpoint is fully thread-safe and supports multiple concurrent users.\nEach request is isolated by uid and session_id, ensuring no data conflicts.\n\nSupports both streaming and non-streaming modes based on request parameter.\n\nRequest Body:\n{\n    \"uid\": \"user123\",  // REQUIRED: User ID for session isolation\n    \"message\": \"What should I focus on to advance my career?\",\n    \"session_id\": \"optional-session-id\",  // If not provided, auto-generated\n    \"callback_url\": \"optional-callback-url\",\n    \"stream\": true  // Default: true (enables streaming)\n}\n\nStreaming Response (SSE format):\n- type: \"start\" - Stream started\n- type: \"chunk\" - Content chunk\n- type: \"done\" - Stream complete with metadata\n- type: \"error\" - Error occurred\n\nNon-streaming Response:\n{\n    \"response\": \"Full response text\",\n    \"session_id\": \"session_id\",\n    \"conversation_history\": [...],\n    \"suggested_topics\": [...],\n    \"action_items\": [...],\n    \"confidence_score\": 0.8\n}","operationId":"coach_chat_ask_career_coach_chat_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/coach/chat/ask":{"post":{"summary":"Coach Chat Ask","description":"Career chatbot endpoint with streaming support.\n\nCONCURRENCY: This endpoint is fully thread-safe and supports multiple concurrent users.\nEach request is isolated by uid and session_id, ensuring no data conflicts.\n\nSupports both streaming and non-streaming modes based on request parameter.\n\nRequest Body:\n{\n    \"uid\": \"user123\",  // REQUIRED: User ID for session isolation\n    \"message\": \"What should I focus on to advance my career?\",\n    \"session_id\": \"optional-session-id\",  // If not provided, auto-generated\n    \"callback_url\": \"optional-callback-url\",\n    \"stream\": true  // Default: true (enables streaming)\n}\n\nStreaming Response (SSE format):\n- type: \"start\" - Stream started\n- type: \"chunk\" - Content chunk\n- type: \"done\" - Stream complete with metadata\n- type: \"error\" - Error occurred\n\nNon-streaming Response:\n{\n    \"response\": \"Full response text\",\n    \"session_id\": \"session_id\",\n    \"conversation_history\": [...],\n    \"suggested_topics\": [...],\n    \"action_items\": [...],\n    \"confidence_score\": 0.8\n}","operationId":"coach_chat_ask_coach_chat_ask_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/analytics/query":{"post":{"summary":"Analytics Query","description":"Query Langfuse analytics using natural language.","operationId":"analytics_query_api_analytics_query_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/chat":{"post":{"tags":["chat"],"summary":"Chat","description":"Unified chat entry point: relevance → intent → dispatch → structured response.\n\nAccepts both the canonical ``authorized_context`` shape and the UI payload shape\n(nested ``authorization``, ``resume``, ``jd``, ``active_job``, ``applicants``).","operationId":"chat_api_v1_chat_post","requestBody":{"content":{"application/json":{"examples":{"ui_job_search":{"summary":"UI team — job search (nested authorization)","value":{"message":"Find React jobs in Bangalore","conversation_id":"test-job-positive-1","user_id":"candidate-1","tenant_id":"tenant-1","candidate_context":{"authorization":{"user_id":"candidate-1","tenant_id":"tenant-1","roles":["candidate"],"request_source":"internal"},"candidate_profile":{"headline":"Senior React Developer","skills":["React","TypeScript"]}}}},"ui_resume_missing":{"summary":"UI team — resume analysis without resume (missing_context)","value":{"message":"Analyze my resume","conversation_id":"test-resume-negative-1","candidate_context":{"authorization":{"user_id":"candidate-1","tenant_id":"tenant-1","roles":["candidate"],"request_source":"internal"}}}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatResponse"}}}},"400":{"description":"invalid_request / context_missing"},"401":{"description":"authentication_failed / UNAUTHORIZED_SERVICE_CALL"},"413":{"description":"payload_too_large"},"422":{"description":"Invalid authorized context or body shape"},"429":{"description":"rate_limit_exceeded"},"503":{"description":"provider_unavailable"}}}},"/api/v1/chat/feedback":{"post":{"tags":["chat"],"summary":"Chat Feedback","description":"Record 👍/👎 feedback for a single assistant turn.\n\n``message_id`` must be ``metadata.request_id`` from the corresponding chat response.\nFeedback is stored in the shared intent classification Chroma database.","operationId":"chat_feedback_api_v1_chat_feedback_post","requestBody":{"content":{"application/json":{"examples":{"ui_thumbs_up":{"summary":"UI — thumbs up on assistant turn","value":{"conversation_id":"conv-abc123","message_id":"req_8bfc8c248ecf","user_message":"Find remote nursing jobs in Chennai","assistant_message":"Here are some matching roles...","is_correct":true,"user_id":"candidate-1","tenant_id":"tenant-1","candidate_context":{"authorization":{"user_id":"candidate-1","tenant_id":"tenant-1","roles":["candidate"],"request_source":"internal"}}}},"ui_thumbs_down_with_text":{"summary":"UI — thumbs down with reason and comment","value":{"conversation_id":"conv-abc123","message_id":"req_8bfc8c248ecf","user_message":"Find remote nursing jobs in Chennai","assistant_message":"Let me help with career advice instead...","is_correct":false,"feedback_reason":"wrong_intent","feedback_text":"I asked for job search, not career advice.","client_feedback_id":"fb_ui_001","authorized_context":{"user_id":"candidate-1","tenant_id":"tenant-1","roles":["candidate"],"request_source":"internal"}}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatFeedbackResponse"}}}},"400":{"description":"invalid_request / conversation mismatch"},"401":{"description":"authentication_failed / UNAUTHORIZED_SERVICE_CALL"},"413":{"description":"payload_too_large"},"422":{"description":"Invalid authorized context or body shape"},"503":{"description":"intent store unavailable"}}}},"/api/v1/chat/stream":{"post":{"tags":["chat"],"summary":"Chat Stream","description":"SSE stream variant of ``POST /api/v1/chat`` (§10.2 event types).","operationId":"chat_stream_api_v1_chat_stream_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/recruitment/sourcing/external-search":{"post":{"tags":["sourcing"],"summary":"External Search Candidates Endpoint","description":"Generate semantic Google queries (LinkedIn profiles) and outreach templates for candidate discovery.\n\nPayload: {\n    \"tenant_id\": str,\n    \"role\": str,\n    \"skills\": List[str],\n    \"location\": Optional[str],\n    \"seniority\": Optional[str],\n    \"company_name\": Optional[str],\n    \"uid\": Optional[str],\n    \"source_job_id\": Optional[str]\n}\n\nReturns a \"batch_id\" alongside the candidate list whenever candidates are found —\npass it to POST /external-selection to bookmark a subset of them.","operationId":"external_search_candidates_endpoint_recruitment_sourcing_external_search_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response External Search Candidates Endpoint Recruitment Sourcing External Search Post"}}}}}}},"/recruitment/sourcing/ingest-candidate":{"post":{"tags":["sourcing"],"summary":"Ingest External Candidate Endpoint","description":"Removed. Replaced by POST /external-selection (batch-based candidate bookmarking).\n\nThis endpoint trusted client-supplied candidate data directly; the replacement\nre-reads candidates server-side from the cached search batch instead.","operationId":"ingest_external_candidate_endpoint_recruitment_sourcing_ingest_candidate_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Ingest External Candidate Endpoint Recruitment Sourcing Ingest Candidate Post"}}}}}}},"/recruitment/sourcing/external-selection":{"post":{"tags":["sourcing"],"summary":"External Selection Endpoint","description":"Persist a recruiter's selected subset of a previously shown external-search batch.\n\nPayload: {\n    \"tenant_id\": str,\n    \"batch_id\": str,\n    \"selected_ids\": List[str],\n    \"uid\": Optional[str]\n}\n\nCandidate data is never trusted from the client — only IDs are read from the\nrequest; the actual candidate rows are re-read server-side from the batch\ncached by /external-search. The batch stays alive until its normal 30-minute\nTTL (counted from the search, not from any save) so a recruiter can bookmark\nmore candidates from the same search results across multiple submits.\nRe-selecting an id already bookmarked by this employer from this batch is a\nno-op, not an error — it's reported in ``already_saved`` rather than ``saved``.","operationId":"external_selection_endpoint_recruitment_sourcing_external_selection_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response External Selection Endpoint Recruitment Sourcing External Selection Post"}}}}}}},"/recruitment/sourcing/external-bookmarks":{"get":{"tags":["sourcing"],"summary":"List External Bookmarks Endpoint","description":"List this employer's bookmarked external candidates, optionally filtered by\nstatus and/or job title.\n\nScoped to (tenant_id, uid) when uid is given: each employer only sees candidates\nthey personally bookmarked, never a colleague's within the same tenant. uid is\noptional (unlike before) so an un-migrated caller — e.g. a homepage card still\ncalling this endpoint directly without uid — gets a tenant-wide list instead of a\n422, same backward-compatible fallback DELETE already uses.","operationId":"list_external_bookmarks_endpoint_recruitment_sourcing_external_bookmarks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List External Bookmarks Endpoint Recruitment Sourcing External Bookmarks Get"}}}}}}},"/recruitment/sourcing/external-bookmarks/{ext_id}/status":{"patch":{"tags":["sourcing"],"summary":"Update External Bookmark Status Endpoint","description":"Update a bookmarked candidate's outreach status (not_contacted / contacted / invited).\n\nDoubles as a single-candidate \"toggle to bookmark\" action: if ``ext_id`` has no\nbookmark yet and the request includes ``batch_id`` (the same id the frontend\nalready has on the search-results card), this creates the bookmark by re-reading\nthe candidate's real data from that server-cached search batch — never from the\nrequest body — before setting the requested status. Same trust boundary\nPOST /external-selection enforces: only IDs come from the client, never candidate\ndata. The batch is left alive (not deleted) so other candidates on the same\nresults list can still be toggled afterward, unlike the bulk-selection endpoint's\nsubmit-once-then-delete behavior.","operationId":"update_external_bookmark_status_endpoint_recruitment_sourcing_external_bookmarks__ext_id__status_patch","parameters":[{"name":"ext_id","in":"path","required":true,"schema":{"type":"string","title":"Ext Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update External Bookmark Status Endpoint Recruitment Sourcing External Bookmarks  Ext Id  Status Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/recruitment/sourcing/external-bookmarks/{ext_id}":{"delete":{"tags":["sourcing"],"summary":"Delete External Bookmark Endpoint","description":"Un-bookmark an external candidate (D8). Hard-deletes the row — no retention\nwindow applies to this collection (D6: manual delete only, no auto-expiry) — and\nthe candidate becomes immediately eligible to resurface in this employer's future\nexternal searches, since search-exclusion reads this same collection live.\n\nScoped to the employer who owns the bookmark when uid is supplied — another\nemployer in the same tenant can't un-bookmark it that way. uid is optional (not\nrequired, unlike GET/PATCH) so an older client that hasn't been updated to send it\nyet still works — chroma.delete_external_bookmark falls back to deleting by\ntenant_id+ext_id alone in that case. tenant_id and uid are query params\n(?tenant_id=...&uid=...), matching GET /external-bookmarks, since DELETE requests\nconventionally carry no body.","operationId":"delete_external_bookmark_endpoint_recruitment_sourcing_external_bookmarks__ext_id__delete","parameters":[{"name":"ext_id","in":"path","required":true,"schema":{"type":"string","title":"Ext Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete External Bookmark Endpoint Recruitment Sourcing External Bookmarks  Ext Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/recruitment/evidence/extract-portfolio":{"post":{"tags":["evidence"],"summary":"Extract Portfolio Endpoint","description":"Extract portfolio information from a candidate's portfolio website.\n\nPayload: {\n    \"portfolio_url\": str,\n    \"require_explicit\": bool (optional, default: true)\n}\n\nReturns: {\n    \"url\": str,\n    \"skills_mentioned\": List[str],\n    \"summary\": str,\n    \"verification_status\": str\n}","operationId":"extract_portfolio_endpoint_recruitment_evidence_extract_portfolio_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Extract Portfolio Endpoint Recruitment Evidence Extract Portfolio Post"}}}}}}},"/trust-signals/extract":{"post":{"tags":["trust-signals"],"summary":"Extract Trust Signals","operationId":"extract_trust_signals_trust_signals_extract_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrustSignalsExtractResponse"}}}}}}}},"components":{"schemas":{"Action":{"properties":{"label":{"type":"string","title":"Label"},"action_type":{"type":"string","enum":["start_workflow","apply","navigate","upload","confirm","upload_resume","start_assessment","paste_resume","analyze_pasted_resume","update_profile_resume","compare_resume","reference_resume","dismiss_resume_prompt","upload_jd","analyze_pasted_jd","select_job","upload_bulk_resumes"],"title":"Action Type","default":"start_workflow"},"assessment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assessment Id"},"intent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intent"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"requires_confirmation":{"type":"boolean","title":"Requires Confirmation","default":false},"credit_cost":{"type":"integer","title":"Credit Cost","default":0}},"type":"object","required":["label"],"title":"Action"},"AnalyticsRequest":{"properties":{"query":{"type":"string","title":"Query"},"limit":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Limit","default":200}},"type":"object","required":["query"],"title":"AnalyticsRequest"},"AssessmentSession":{"properties":{"status":{"type":"string","enum":["starting","in_progress","completed"],"title":"Status"},"assessment_id":{"type":"string","title":"Assessment Id"},"topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic"},"current_index":{"type":"integer","title":"Current Index","default":0},"total_questions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Questions"},"question_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question Id"},"answer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answer"},"answers":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Answers"},"questions":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Questions","description":"Full question set with correct_answer — Firebase→Agent only; never forwarded to UI."},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"},"scoring_mode":{"type":"string","enum":["standard","completion_only"],"title":"Scoring Mode","default":"standard"}},"type":"object","required":["status","assessment_id"],"title":"AssessmentSession","description":"Persisted assessment session.\n\nFirebase → Agent legs carry the full ``questions[]`` including scoring keys.\nAgent → UI legs must have ``questions[]`` stripped (see ``strip_assessment_session_for_client``)."},"Body_certificates_upload_endpoint_upload_certificates_post":{"properties":{"uid":{"type":"string","title":"Uid"},"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"callback_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Callback Url"},"run_proficiency_analysis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Proficiency Analysis","default":"true"}},"type":"object","required":["uid","file"],"title":"Body_certificates_upload_endpoint_upload_certificates_post"},"ChannelListingOutcome":{"properties":{"channel":{"type":"string","title":"Channel"},"status":{"type":"string","title":"Status"},"action_required":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Required"},"listing_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Listing Id"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"external_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Url"}},"type":"object","required":["channel","status"],"title":"ChannelListingOutcome","description":"UI-friendly per-channel listing state (also returned from listings API after worker runs)."},"ChatErrorDetail":{"properties":{"code":{"type":"string","title":"Code"},"recoverable":{"type":"boolean","title":"Recoverable","default":true},"details":{"additionalProperties":true,"type":"object","title":"Details"}},"type":"object","required":["code"],"title":"ChatErrorDetail"},"ChatFeedbackResponse":{"properties":{"status":{"type":"string","enum":["success","error"],"title":"Status"},"feedback_id":{"type":"string","title":"Feedback Id","description":"Stable id for this feedback submission."},"record_id":{"type":"string","title":"Record Id","description":"Intent classification record id in Chroma."},"message_id":{"type":"string","title":"Message Id"},"conversation_id":{"type":"string","title":"Conversation Id"},"is_correct":{"type":"boolean","title":"Is Correct"},"label_status":{"type":"string","title":"Label Status"},"stored_at":{"type":"string","title":"Stored At"},"record_found":{"type":"boolean","title":"Record Found","description":"True when an existing intent log was updated; false when a feedback stub was created."},"error":{"anyOf":[{"$ref":"#/components/schemas/ChatErrorDetail"},{"type":"null"}]}},"type":"object","required":["status","feedback_id","record_id","message_id","conversation_id","is_correct","label_status","stored_at","record_found"],"title":"ChatFeedbackResponse"},"ChatHistoryMessage":{"properties":{"role":{"type":"string","enum":["user","assistant","system"],"title":"Role"},"content":{"type":"string","title":"Content"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"component_types":{"items":{"type":"string"},"type":"array","title":"Component Types"}},"type":"object","required":["role","content"],"title":"ChatHistoryMessage"},"ChatMetadata":{"properties":{"request_id":{"type":"string","title":"Request Id"},"trace_id":{"type":"string","title":"Trace Id"},"workflow_id":{"type":"string","title":"Workflow Id"},"tool_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Id"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"prompt_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Version"},"latency_ms":{"type":"integer","title":"Latency Ms","default":0},"fallback_used":{"type":"boolean","title":"Fallback Used","default":false},"fallback_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fallback Reason"},"cache_hit":{"type":"boolean","title":"Cache Hit","default":false}},"type":"object","required":["request_id","trace_id","workflow_id"],"title":"ChatMetadata"},"ChatResponse":{"properties":{"status":{"type":"string","enum":["success","error","blocked"],"title":"Status"},"message":{"type":"string","title":"Message"},"conversation_id":{"type":"string","title":"Conversation Id"},"detected_intent":{"type":"string","enum":["small_talk","unknown","blocked","resume_analysis","job_search","assessment_start","interview_start","interview_prep_list","interview_live","jd_analysis","corporate_candidate_search","applicant_shortlist","cover_letter","salary_insights","hiring_insights","profile_completeness","missing_context","resume_replacement","resume_paste_confirmation","career_coach","skill_analysis"],"title":"Detected Intent"},"chat_history":{"items":{"$ref":"#/components/schemas/ChatHistoryMessage"},"type":"array","title":"Chat History"},"components":{"items":{"$ref":"#/components/schemas/Component"},"type":"array","title":"Components"},"actions":{"items":{"$ref":"#/components/schemas/Action"},"type":"array","title":"Actions"},"visual":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Visual","description":"Validated infographic card (e.g. resume_score_card v1); absent means show text only."},"metadata":{"$ref":"#/components/schemas/ChatMetadata"},"token_usage":{"$ref":"#/components/schemas/TokenUsage"},"error":{"anyOf":[{"$ref":"#/components/schemas/ChatErrorDetail"},{"type":"null"}]},"assessment_session":{"anyOf":[{"$ref":"#/components/schemas/AssessmentSession"},{"type":"null"}],"description":"Slim session metadata for UI; questions[] and scoring keys are excluded."},"firebase_assessment_session":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Firebase Assessment Session","description":"Full assessment session for Firebase persistence only; not for direct UI rendering."}},"type":"object","required":["status","message","conversation_id","detected_intent","metadata","token_usage"],"title":"ChatResponse"},"Component":{"properties":{"component_id":{"type":"string","title":"Component Id"},"component_type":{"type":"string","title":"Component Type"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"props":{"additionalProperties":true,"type":"object","title":"Props"},"actions":{"items":{"$ref":"#/components/schemas/Action"},"type":"array","title":"Actions"}},"type":"object","required":["component_id","component_type"],"title":"Component"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LinkedInConnectBody":{"properties":{"uid":{"type":"string","minLength":1,"title":"Uid"},"landing_return_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Landing Return Url"}},"type":"object","required":["uid"],"title":"LinkedInConnectBody"},"LinkedInRefreshBody":{"properties":{"corporate_id":{"type":"string","minLength":1,"title":"Corporate Id"}},"type":"object","required":["corporate_id"],"title":"LinkedInRefreshBody"},"StaleJobsScanBody":{"properties":{"stale_hours":{"anyOf":[{"type":"integer","maximum":720.0,"minimum":1.0},{"type":"null"}],"title":"Stale Hours"}},"type":"object","title":"StaleJobsScanBody","description":"Optional stale threshold override (hours); defaults come from GOOGLE_JOBS_STALE_CRAWLING_HOURS."},"StoreCredentialsBody":{"properties":{"corporate_id":{"type":"string","minLength":1,"title":"Corporate Id"},"uid":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Uid"},"credential_type":{"type":"string","minLength":1,"title":"Credential Type","default":"employer_api"},"api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"},"access_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"},"refresh_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refresh Token"},"endpoint_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Url"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"phone_number_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number Id"},"bot_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bot Token"},"channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Id"},"instagram_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instagram User Id"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["corporate_id"],"title":"StoreCredentialsBody"},"SyndicationPublishRequest":{"properties":{"job_id":{"type":"string","maxLength":128,"minLength":1,"title":"Job Id"},"uid":{"type":"string","maxLength":128,"minLength":1,"title":"Uid","description":"Firebase user id (publisher scope); stored internally as syndication tenant key."},"corporate_plan":{"type":"string","maxLength":64,"minLength":1,"title":"Corporate Plan","description":"Subscription tier label from Jobsify billing (normalized inside orchestrator)."},"job":{"additionalProperties":true,"type":"object","title":"Job","description":"Structured job record used by adapters (title, description, company, …)."},"channels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Channels","description":"Optional allowlist of channels to publish to. Accepts a list or a single comma-separated string (e.g. 'ka_telegram' or ['ka_telegram','ka_whatsapp']). When omitted, all plan-permitted channels are used."}},"type":"object","required":["job_id","uid","corporate_plan"],"title":"SyndicationPublishRequest"},"SyndicationPublishResponse":{"properties":{"accepted_channels":{"items":{"type":"string"},"type":"array","title":"Accepted Channels"},"skipped_channels":{"additionalProperties":{"type":"string"},"type":"object","title":"Skipped Channels"},"tasks_scheduled":{"type":"integer","title":"Tasks Scheduled"},"channel_listings":{"items":{"$ref":"#/components/schemas/ChannelListingOutcome"},"type":"array","title":"Channel Listings","description":"Initial listing rows scheduled (status typically PENDING until worker completes)."}},"type":"object","required":["accepted_channels","skipped_channels","tasks_scheduled"],"title":"SyndicationPublishResponse"},"SyndicationUnpublishResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"channels_enqueued":{"items":{"type":"string"},"type":"array","title":"Channels Enqueued"},"skipped_channels":{"additionalProperties":{"type":"string"},"type":"object","title":"Skipped Channels"}},"type":"object","required":["job_id","channels_enqueued","skipped_channels"],"title":"SyndicationUnpublishResponse"},"TokenUsage":{"properties":{"llm_input_tokens":{"type":"integer","title":"Llm Input Tokens","default":0},"llm_output_tokens":{"type":"integer","title":"Llm Output Tokens","default":0},"llm_thinking_tokens":{"type":"integer","title":"Llm Thinking Tokens","default":0},"total_tokens":{"type":"integer","title":"Total Tokens","default":0},"cache_hit_count":{"type":"integer","title":"Cache Hit Count","default":0},"tool_calls_count":{"type":"integer","title":"Tool Calls Count","default":0},"workflow_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Id"},"request_latency_ms":{"type":"integer","title":"Request Latency Ms","default":0},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"estimated_cost_usd":{"type":"number","title":"Estimated Cost Usd","default":0.0},"total_cost_inr":{"type":"number","title":"Total Cost Inr","default":0.0}},"type":"object","title":"TokenUsage"},"TrustSignal":{"properties":{"type":{"type":"string","enum":["identity_consistency","tenure_pattern","public_professional_presence","professional_conduct","background_verification"],"title":"Type"},"result":{"type":"string","title":"Result"},"reason":{"type":"string","title":"Reason"},"source_url":{"type":"string","title":"Source Url","default":""},"retrieval_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retrieval Date"},"identity_confidence":{"anyOf":[{"type":"string","enum":["low","medium","high"]},{"type":"null"}],"title":"Identity Confidence"},"verification_status":{"type":"string","enum":["unverified","auto_checked","owner_verified","recruiter_verified"],"title":"Verification Status","default":"unverified"},"review_status":{"type":"string","enum":["pending","approved","rejected"],"title":"Review Status","default":"pending"},"disputed":{"type":"boolean","title":"Disputed","default":false}},"type":"object","required":["type","result","reason"],"title":"TrustSignal","description":"One trust signal — the social-profiling output, kept in this file so it\nshares VerificationStatus/ConfidenceLevel with the rest of the Evidence\nProfile instead of inventing a second shape (spec's \"add the trust signal\ntypes here\" instruction for this file).\n\nNever a label on a person, never a score: `result` is restricted to the\nclosed set for its `type` (see TRUST_SIGNAL_RESULT_VALUES), and `reason`\nis mandatory — a signal without a candidate-readable reason cannot be\nsaved, per the spec's \"Rules that do not bend\"."},"TrustSignalsExtractResponse":{"properties":{"candidate_uid":{"type":"string","title":"Candidate Uid"},"consent_id":{"type":"string","title":"Consent Id"},"signals":{"items":{"$ref":"#/components/schemas/TrustSignal"},"type":"array","title":"Signals"}},"type":"object","required":["candidate_uid","consent_id","signals"],"title":"TrustSignalsExtractResponse"},"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"}}}}