{"openapi":"3.1.0","info":{"title":"Quilr Notify","version":"0.1.0"},"paths":{"/login":{"get":{"summary":"Login Page","operationId":"login_page_login_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/microsoft/login":{"get":{"summary":"Microsoft Login Start","operationId":"microsoft_login_start_auth_microsoft_login_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/microsoft/callback":{"get":{"summary":"Microsoft Login Callback","operationId":"microsoft_login_callback_auth_microsoft_callback_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/logout":{"post":{"summary":"Logout","operationId":"logout_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Dashboard","operationId":"dashboard__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/trackers":{"get":{"summary":"Trackers Index","operationId":"trackers_index_trackers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/trackers/new":{"get":{"summary":"Tracker New","operationId":"tracker_new_trackers_new_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/trackers/{tracker_id}/edit":{"get":{"summary":"Tracker Edit","operationId":"tracker_edit_trackers__tracker_id__edit_get","parameters":[{"name":"tracker_id","in":"path","required":true,"schema":{"type":"string","title":"Tracker Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trackers/{tracker_id}/join":{"get":{"summary":"Tracker Join","operationId":"tracker_join_trackers__tracker_id__join_get","parameters":[{"name":"tracker_id","in":"path","required":true,"schema":{"type":"string","title":"Tracker Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trackers/{tracker_id}":{"get":{"summary":"Tracker Detail","operationId":"tracker_detail_trackers__tracker_id__get","parameters":[{"name":"tracker_id","in":"path","required":true,"schema":{"type":"string","title":"Tracker Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/search":{"get":{"summary":"Search Page","description":"Global search workspace: every ingested message (FTS + snippets) and\nevery extracted record across viewable trackers, in one place.","operationId":"search_page_search_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/licenses":{"get":{"summary":"Licenses Page","description":"License watch: licensed seats vs observed active users per customer,\nwith overage flags — who owes money as they expand. Owner/admin only.","operationId":"licenses_page_licenses_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/settings/members":{"get":{"summary":"Members Page","operationId":"members_page_settings_members_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/insights":{"get":{"summary":"Insights Page","operationId":"insights_page_insights_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/connections":{"get":{"summary":"Connections Index","operationId":"connections_index_connections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/connections/new":{"get":{"summary":"Connection New","operationId":"connection_new_connections_new_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/connections/{connection_id}":{"get":{"summary":"Connection Detail","operationId":"connection_detail_connections__connection_id__get","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/{provider}/start":{"get":{"summary":"Oauth Start","operationId":"oauth_start_oauth__provider__start_get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"connection_id","in":"query","required":true,"schema":{"type":"string","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/{provider}/callback":{"get":{"summary":"Oauth Callback","operationId":"oauth_callback_oauth__provider__callback_get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trackers":{"get":{"summary":"List Trackers","operationId":"list_trackers_api_trackers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Tracker","operationId":"create_tracker_api_trackers_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackerPayload"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trackers/assist":{"post":{"summary":"Assist Tracker","operationId":"assist_tracker_api_trackers_assist_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackerAssistPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trackers/sweep-estimate":{"post":{"summary":"Sweep Estimate","description":"How much a full-channel sweep over these channels would actually read.\n\nPowers the cost guard in the builder so nobody turns on sweep coverage\nwithout seeing the volume it implies.","operationId":"sweep_estimate_api_trackers_sweep_estimate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SweepEstimatePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trackers/{tracker_id}":{"get":{"summary":"Get Tracker","operationId":"get_tracker_api_trackers__tracker_id__get","parameters":[{"name":"tracker_id","in":"path","required":true,"schema":{"type":"string","title":"Tracker Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Tracker","operationId":"update_tracker_api_trackers__tracker_id__put","parameters":[{"name":"tracker_id","in":"path","required":true,"schema":{"type":"string","title":"Tracker Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackerPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Tracker","operationId":"delete_tracker_api_trackers__tracker_id__delete","parameters":[{"name":"tracker_id","in":"path","required":true,"schema":{"type":"string","title":"Tracker Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trackers/{tracker_id}/backfill":{"post":{"summary":"Backfill Tracker","operationId":"backfill_tracker_api_trackers__tracker_id__backfill_post","parameters":[{"name":"tracker_id","in":"path","required":true,"schema":{"type":"string","title":"Tracker Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trackers/{tracker_id}/contributions":{"get":{"summary":"List Contributions","operationId":"list_contributions_api_trackers__tracker_id__contributions_get","parameters":[{"name":"tracker_id","in":"path","required":true,"schema":{"type":"string","title":"Tracker Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Contributions","operationId":"update_contributions_api_trackers__tracker_id__contributions_put","parameters":[{"name":"tracker_id","in":"path","required":true,"schema":{"type":"string","title":"Tracker Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackerContributionsPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trackers/{tracker_id}/onboarding/finish":{"post":{"summary":"Finish Onboarding","operationId":"finish_onboarding_api_trackers__tracker_id__onboarding_finish_post","parameters":[{"name":"tracker_id","in":"path","required":true,"schema":{"type":"string","title":"Tracker Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trackers/{tracker_id}/shares":{"get":{"summary":"List Shares","operationId":"list_shares_api_trackers__tracker_id__shares_get","parameters":[{"name":"tracker_id","in":"path","required":true,"schema":{"type":"string","title":"Tracker Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Update Shares","operationId":"update_shares_api_trackers__tracker_id__shares_post","parameters":[{"name":"tracker_id","in":"path","required":true,"schema":{"type":"string","title":"Tracker Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackerSharesPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trackers/{tracker_id}/shares/invite":{"post":{"summary":"Invite Share","description":"Share a tracker straight to an email address. If they're not in this\norg yet, an invite is created behind the scenes and the share is held\nuntil they sign up — no separate \"add to team\" step needed first.","operationId":"invite_share_api_trackers__tracker_id__shares_invite_post","parameters":[{"name":"tracker_id","in":"path","required":true,"schema":{"type":"string","title":"Tracker Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackerShareInvitePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trackers/{tracker_id}/shares/pending":{"delete":{"summary":"Revoke Pending Share","operationId":"revoke_pending_share_api_trackers__tracker_id__shares_pending_delete","parameters":[{"name":"tracker_id","in":"path","required":true,"schema":{"type":"string","title":"Tracker Id"}},{"name":"email","in":"query","required":true,"schema":{"type":"string","title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trackers/{tracker_id}/records":{"get":{"summary":"Tracker Records","description":"Extracted records for a tracker. Filter with f_<field>=<value>\n(repeatable across fields; values match case-insensitively, lists match\nany element), q= for free-text search over summaries and values,\nsince=/until= (ISO date/datetime) to scope by when the message was sent,\nimportance=<level> for that level and above, triage=<open|acked|snoozed|\ndone|handled> for human workflow state, and sort=importance.","operationId":"tracker_records_api_trackers__tracker_id__records_get","parameters":[{"name":"tracker_id","in":"path","required":true,"schema":{"type":"string","title":"Tracker Id"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"since","in":"query","required":false,"schema":{"type":"string","default":"","title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"type":"string","default":"","title":"Until"}},{"name":"importance","in":"query","required":false,"schema":{"type":"string","default":"","title":"Importance"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"recent","title":"Sort"}},{"name":"triage","in":"query","required":false,"schema":{"type":"string","default":"","title":"Triage"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trackers/{tracker_id}/status":{"post":{"summary":"Set Tracker Status","description":"One-click pause/resume — the \"stop the spend now\" escape hatch for a\nrunaway sweep, without a round-trip through the full edit form.","operationId":"set_tracker_status_api_trackers__tracker_id__status_post","parameters":[{"name":"tracker_id","in":"path","required":true,"schema":{"type":"string","title":"Tracker Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackerStatusPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trackers/{tracker_id}/records/{message_id}/state":{"post":{"summary":"Set Record State","description":"Triage a record: acknowledge, snooze, assign, done, or reopen. Any\nviewer may triage — shared trackers are collaborative work queues.","operationId":"set_record_state_api_trackers__tracker_id__records__message_id__state_post","parameters":[{"name":"tracker_id","in":"path","required":true,"schema":{"type":"string","title":"Tracker Id"}},{"name":"message_id","in":"path","required":true,"schema":{"type":"integer","title":"Message Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordStatePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trackers/{tracker_id}/records/{message_id}/detail":{"get":{"summary":"Record Detail","description":"Everything the record drawer needs to explain one record: the AI's\nreason and confidence, match provenance, triage state, the full message,\nthe bounded thread the extraction engine actually read, and any messages\nthe AI cited as evidence.","operationId":"record_detail_api_trackers__tracker_id__records__message_id__detail_get","parameters":[{"name":"tracker_id","in":"path","required":true,"schema":{"type":"string","title":"Tracker Id"}},{"name":"message_id","in":"path","required":true,"schema":{"type":"integer","title":"Message Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trackers/{tracker_id}/records.csv":{"get":{"summary":"Tracker Records Csv","description":"Server-side CSV export of the filtered records view — one request,\nno client-side page walking, no 5000-row stitching in the browser.","operationId":"tracker_records_csv_api_trackers__tracker_id__records_csv_get","parameters":[{"name":"tracker_id","in":"path","required":true,"schema":{"type":"string","title":"Tracker Id"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"since","in":"query","required":false,"schema":{"type":"string","default":"","title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"type":"string","default":"","title":"Until"}},{"name":"importance","in":"query","required":false,"schema":{"type":"string","default":"","title":"Importance"}},{"name":"triage","in":"query","required":false,"schema":{"type":"string","default":"","title":"Triage"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"recent","title":"Sort"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trackers/{tracker_id}/extractions/errors":{"get":{"summary":"Extraction Errors","description":"The rows the pipeline could not process — visible instead of a bare\ncount, so \"N couldn't be processed\" is inspectable and retryable.","operationId":"extraction_errors_api_trackers__tracker_id__extractions_errors_get","parameters":[{"name":"tracker_id","in":"path","required":true,"schema":{"type":"string","title":"Tracker Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trackers/{tracker_id}/extractions/retry":{"post":{"summary":"Retry Failed Extractions","operationId":"retry_failed_extractions_api_trackers__tracker_id__extractions_retry_post","parameters":[{"name":"tracker_id","in":"path","required":true,"schema":{"type":"string","title":"Tracker Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trackers/{tracker_id}/insights":{"get":{"summary":"Tracker Insights","operationId":"tracker_insights_api_trackers__tracker_id__insights_get","parameters":[{"name":"tracker_id","in":"path","required":true,"schema":{"type":"string","title":"Tracker Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trackers/{tracker_id}/feed":{"get":{"summary":"Tracker Feed","operationId":"tracker_feed_api_trackers__tracker_id__feed_get","parameters":[{"name":"tracker_id","in":"path","required":true,"schema":{"type":"string","title":"Tracker Id"}},{"name":"after_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"After Id"}},{"name":"before_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Before Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"since","in":"query","required":false,"schema":{"type":"string","default":"","title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"type":"string","default":"","title":"Until"}},{"name":"source_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Source Id"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"importance","in":"query","required":false,"schema":{"type":"string","default":"","title":"Importance"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/account/pulse":{"get":{"summary":"Attention Pulse","description":"Tiny cross-page poll powering the live nav badge, title counter, and\nbrowser notifications: how many records still need a human, and the\nnewest few so the client can tell \"new since I looked\".","operationId":"attention_pulse_api_account_pulse_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/account/overview":{"get":{"summary":"Overview","description":"Live refresh payload for the dashboard: the stat tiles and the\nneeds-action queue, computed by the same code that rendered the page.","operationId":"overview_api_account_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/account/pending-tracker-onboarding":{"get":{"summary":"Pending Tracker Onboarding","operationId":"pending_tracker_onboarding_api_account_pending_tracker_onboarding_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/account/members":{"get":{"summary":"List Members","operationId":"list_members_api_account_members_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/account/invites":{"get":{"summary":"List Invites","operationId":"list_invites_api_account_invites_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Invite","operationId":"create_invite_api_account_invites_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitePayload"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/account/invites/{invite_id}":{"delete":{"summary":"Revoke Invite","operationId":"revoke_invite_api_account_invites__invite_id__delete","parameters":[{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","title":"Invite Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connections":{"get":{"summary":"List Connections","operationId":"list_connections_api_connections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Connection","operationId":"create_connection_api_connections_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connections/{connection_id}":{"patch":{"summary":"Patch Connection","operationId":"patch_connection_api_connections__connection_id__patch","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Connection","operationId":"delete_connection_api_connections__connection_id__delete","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connections/{connection_id}/sync":{"post":{"summary":"Sync Now","operationId":"sync_now_api_connections__connection_id__sync_post","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connections/{connection_id}/sources":{"get":{"summary":"List Sources","operationId":"list_sources_api_connections__connection_id__sources_get","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connections/{connection_id}/sources/refresh":{"post":{"summary":"Refresh Sources","operationId":"refresh_sources_api_connections__connection_id__sources_refresh_post","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connections/{connection_id}/sources/discovery":{"get":{"summary":"Source Discovery Status","operationId":"source_discovery_status_api_connections__connection_id__sources_discovery_get","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connections/{connection_id}/runs":{"get":{"summary":"List Runs","operationId":"list_runs_api_connections__connection_id__runs_get","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sources/{source_id}":{"patch":{"summary":"Patch Source","operationId":"patch_source_api_sources__source_id__patch","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourcePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/insights/brief":{"post":{"summary":"Insight Brief","operationId":"insight_brief_api_insights_brief_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BriefPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/insights/ask":{"post":{"summary":"Ask","description":"Grounded Q&A over extracted records — \"what happened with customer X\nthis week?\". Same evidence-citation contract as the dashboard brief:\nthe model cites record indexes, the server hydrates them into evidence\nthe UI renders as clickable drawers. Scoped to viewable trackers.","operationId":"ask_api_insights_ask_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/insights/fields":{"get":{"summary":"List Fields","operationId":"list_fields_api_insights_fields_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/insights/rollup":{"get":{"summary":"Rollup","operationId":"rollup_api_insights_rollup_get","parameters":[{"name":"field","in":"query","required":true,"schema":{"type":"string","title":"Field"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/search":{"get":{"summary":"Search Messages","operationId":"search_messages_api_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"source_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Source Id"}},{"name":"provider","in":"query","required":false,"schema":{"type":"string","default":"","title":"Provider"}},{"name":"since","in":"query","required":false,"schema":{"type":"string","default":"","title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"type":"string","default":"","title":"Until"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/records":{"get":{"summary":"Account Records","description":"Every extracted record across the caller's viewable trackers.","operationId":"account_records_api_records_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"importance","in":"query","required":false,"schema":{"type":"string","default":"","title":"Importance"}},{"name":"triage","in":"query","required":false,"schema":{"type":"string","default":"","title":"Triage"}},{"name":"tracker_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Tracker Id"}},{"name":"since","in":"query","required":false,"schema":{"type":"string","default":"","title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"type":"string","default":"","title":"Until"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"recent","title":"Sort"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/records.csv":{"get":{"summary":"Account Records Csv","description":"Server-side export of the filtered cross-tracker records view.","operationId":"account_records_csv_api_records_csv_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"importance","in":"query","required":false,"schema":{"type":"string","default":"","title":"Importance"}},{"name":"triage","in":"query","required":false,"schema":{"type":"string","default":"","title":"Triage"}},{"name":"tracker_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Tracker Id"}},{"name":"since","in":"query","required":false,"schema":{"type":"string","default":"","title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"type":"string","default":"","title":"Until"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"recent","title":"Sort"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/licenses/overview":{"get":{"summary":"License Overview","operationId":"license_overview_api_licenses_overview_get","parameters":[{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Refresh"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/licenses":{"post":{"summary":"Create License","operationId":"create_license_api_licenses_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicensePayload"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/licenses/{license_id}":{"put":{"summary":"Update License","operationId":"update_license_api_licenses__license_id__put","parameters":[{"name":"license_id","in":"path","required":true,"schema":{"type":"string","title":"License Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicensePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete License","operationId":"delete_license_api_licenses__license_id__delete","parameters":[{"name":"license_id","in":"path","required":true,"schema":{"type":"string","title":"License Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/licenses/refresh":{"post":{"summary":"Refresh Usage","operationId":"refresh_usage_api_licenses_refresh_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/health":{"get":{"summary":"Health","operationId":"health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AskPayload":{"properties":{"question":{"type":"string","maxLength":2000,"minLength":3,"title":"Question"},"tracker_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tracker Id"},"days":{"type":"integer","maximum":90.0,"minimum":1.0,"title":"Days","default":30},"history":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"History","default":[]}},"type":"object","required":["question"],"title":"AskPayload"},"BriefPayload":{"properties":{"tracker_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tracker Id"},"days":{"type":"integer","maximum":90.0,"minimum":1.0,"title":"Days","default":30}},"type":"object","title":"BriefPayload"},"ConnectionCreate":{"properties":{"provider":{"type":"string","title":"Provider"},"auth_mode":{"type":"string","title":"Auth Mode","default":"default"},"client_id":{"type":"string","title":"Client Id","default":""},"client_secret":{"type":"string","title":"Client Secret","default":""},"capabilities":{"items":{"type":"string"},"type":"array","title":"Capabilities","default":[]},"label":{"type":"string","title":"Label","default":""}},"type":"object","required":["provider"],"title":"ConnectionCreate"},"ConnectionPatch":{"properties":{"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"sync_interval_seconds":{"anyOf":[{"type":"integer","maximum":86400.0,"minimum":60.0},{"type":"null"}],"title":"Sync Interval Seconds"}},"type":"object","title":"ConnectionPatch"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InvitePayload":{"properties":{"email":{"type":"string","maxLength":200,"minLength":3,"title":"Email"},"role":{"type":"string","title":"Role","default":"member"}},"type":"object","required":["email"],"title":"InvitePayload"},"LicensePayload":{"properties":{"customer":{"type":"string","maxLength":120,"minLength":1,"title":"Customer"},"usage_key":{"type":"string","maxLength":200,"minLength":1,"title":"Usage Key"},"licensed_seats":{"type":"integer","maximum":1000000.0,"minimum":0.0,"title":"Licensed Seats","default":0},"price_per_seat":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Price Per Seat"},"notes":{"type":"string","maxLength":500,"title":"Notes","default":""}},"type":"object","required":["customer","usage_key"],"title":"LicensePayload"},"RecordStatePayload":{"properties":{"status":{"type":"string","title":"Status"},"snooze_hours":{"anyOf":[{"type":"integer","maximum":720.0,"minimum":1.0},{"type":"null"}],"title":"Snooze Hours"},"assigned_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To"},"note":{"type":"string","maxLength":500,"title":"Note","default":""}},"type":"object","required":["status"],"title":"RecordStatePayload"},"SourcePatch":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"SourcePatch"},"SweepEstimatePayload":{"properties":{"source_ids":{"items":{"type":"string"},"type":"array","title":"Source Ids","default":[]},"days":{"type":"integer","title":"Days","default":14}},"type":"object","title":"SweepEstimatePayload"},"TrackerAssistPayload":{"properties":{"goal":{"type":"string","maxLength":3000,"title":"Goal","default":""},"message":{"type":"string","maxLength":3000,"title":"Message","default":""},"team":{"type":"string","maxLength":80,"title":"Team","default":""},"history":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"History","default":[]},"current_proposal":{"additionalProperties":true,"type":"object","title":"Current Proposal","default":{}}},"type":"object","title":"TrackerAssistPayload"},"TrackerContributionsPayload":{"properties":{"source_ids":{"items":{"type":"string"},"type":"array","title":"Source Ids","default":[]}},"type":"object","title":"TrackerContributionsPayload"},"TrackerPayload":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"description":{"type":"string","title":"Description","default":""},"keywords":{"items":{"type":"string"},"type":"array","title":"Keywords","default":[]},"extraction_schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Extraction Schema","default":[]},"source_ids":{"items":{"type":"string"},"type":"array","title":"Source Ids","default":[]},"status":{"type":"string","title":"Status","default":"active"},"coverage_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coverage Mode"},"sweep_daily_cap":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sweep Daily Cap"},"sweep_history_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sweep History Days"}},"type":"object","required":["name"],"title":"TrackerPayload"},"TrackerShareInvitePayload":{"properties":{"email":{"type":"string","maxLength":200,"minLength":3,"title":"Email"}},"type":"object","required":["email"],"title":"TrackerShareInvitePayload"},"TrackerSharesPayload":{"properties":{"user_ids":{"items":{"type":"string"},"type":"array","title":"User Ids","default":[]}},"type":"object","title":"TrackerSharesPayload"},"TrackerStatusPayload":{"properties":{"status":{"type":"string","title":"Status"}},"type":"object","required":["status"],"title":"TrackerStatusPayload"},"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"}}}}