{"openapi":"3.1.0","info":{"title":"Captide REST API","description":"API for accessing financial disclosures and AI-powered financial document analysis.","version":"0.3.14"},"servers":[{"url":"https://rest-api.captide.co","description":"Prod server"}],"paths":{"/api/v1/companies/list":{"get":{"tags":["Companies"],"summary":"List companies","description":"Find companies in Captide by ticker, ISIN, CUSIP, country of domicile, SEC filing status, CIK, PermID or Captide company ID.\n\n    Use it to get the Captide `id` of the companies you need, for example to filter `/documents/list` with `companyIds`. Results are sorted by name; page through them with `limit` and `offset`.","operationId":"list_companies_api_v1_companies_list_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"tickers","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of company tickers (supports both base tickers like 'ITX' and suffixed tickers like 'ITX.MC')","examples":["STO.AX,ASML.AS"],"title":"Tickers"},"description":"Comma-separated list of company tickers (supports both base tickers like 'ITX' and suffixed tickers like 'ITX.MC')"},{"name":"countries","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of companies' country of domicile (ISO 3166-1 alpha-2)","examples":["AU,NL"],"title":"Countries"},"description":"Comma-separated list of companies' country of domicile (ISO 3166-1 alpha-2)"},{"name":"filesWithSec","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether the companies file reports with the SEC","examples":[false],"title":"Fileswithsec"},"description":"Whether the companies file reports with the SEC"},{"name":"ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of unique company IDs","examples":["77848abe-a215-41b7-8950-86e89ea1fadc,91f6c6da-478f-4161-b451-aa5177cc7fb9"],"title":"Ids"},"description":"Comma-separated list of unique company IDs"},{"name":"ciks","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of Central Index Keys (CIK) assigned by the SEC","examples":["0000320193,0000789019"],"title":"Ciks"},"description":"Comma-separated list of Central Index Keys (CIK) assigned by the SEC"},{"name":"permIds","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of PermIDs (Permanent Identifiers) assigned by Refinitiv","examples":["4295907168,4295907169"],"title":"Permids"},"description":"Comma-separated list of PermIDs (Permanent Identifiers) assigned by Refinitiv"},{"name":"isins","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of ISINs of the companies' listed securities","examples":["US0378331005,AU000000STO6"],"title":"Isins"},"description":"Comma-separated list of ISINs of the companies' listed securities"},{"name":"cusips","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of CUSIPs: matches US and CA listings whose ISIN carries the CUSIP","examples":["037833100"],"title":"Cusips"},"description":"Comma-separated list of CUSIPs: matches US and CA listings whose ISIN carries the CUSIP"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":1000,"minimum":1},{"type":"null"}],"description":"Maximum number of records to return","examples":[100],"default":100,"title":"Limit"},"description":"Maximum number of records to return"},{"name":"offset","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Number of records to skip (for pagination)","examples":[0],"default":0,"title":"Offset"},"description":"Number of records to skip (for pagination)"}],"responses":{"200":{"description":"Companies matching the filters, sorted by name","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CompanyResponse"},"title":"Response List Companies Api V1 Companies List Get"},"example":[{"id":"77848abe-a215-41b7-8950-86e89ea1fadc","name":"Santos Ltd.","tickers":["STO.AX"],"countries":["AU"],"filesWithSec":false,"permId":"4295857141","listings":[{"ticker":"STO.AX","exchangeMic":"XASX","isin":"AU000000STO6"}]}]}}},"400":{"description":"Invalid request parameters","content":{"application/json":{"examples":{"invalid_company_id":{"summary":"Invalid company ID format: badly formed hexadecimal UUID string","value":{"detail":"Invalid company ID format: badly formed hexadecimal UUID string"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"less_than_equal","loc":["query","limit"],"msg":"Input should be less than or equal to 1000","input":"5000","ctx":{"le":1000}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}}}},"/api/v1/companies/search":{"get":{"tags":["Companies"],"summary":"Search companies","description":"Look companies up by name or ticker while the user types, for autocomplete or when you only know part of a name.\n\n    Matches company names and tickers that contain the query, with or without an exchange suffix (`AAPL`, `STO.AX`). Results come best match first: names that start with the query, then larger companies.","operationId":"search_companies_api_v1_companies_search_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Search query: company name or ticker (e.g. 'Apple', 'AAPL', 'STO.AX')","title":"Query"},"description":"Search query: company name or ticker (e.g. 'Apple', 'AAPL', 'STO.AX')"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":50,"minimum":1},{"type":"null"}],"description":"Maximum number of results (type-ahead)","default":20,"title":"Limit"},"description":"Maximum number of results (type-ahead)"}],"responses":{"200":{"description":"Companies matching the query, best match first","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CompanyResponse"},"title":"Response Search Companies Api V1 Companies Search Get"},"example":[{"id":"77848abe-a215-41b7-8950-86e89ea1fadc","name":"Santos Ltd.","tickers":["STO.AX"],"countries":["AU"],"filesWithSec":false,"permId":"4295857141","listings":[{"ticker":"STO.AX","exchangeMic":"XASX","isin":"AU000000STO6"}]}]}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"missing","loc":["query","query"],"msg":"Field required"}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}}}},"/api/v1/companies/{id}":{"get":{"tags":["Companies"],"summary":"Get company by ID","description":"Get one company by its Captide `id`: its name, tickers with exchange suffixes, countries of domicile, SEC filing status, CIK and PermID.","operationId":"get_company_api_v1_companies__id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"The company","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyResponse"},"example":{"id":"77848abe-a215-41b7-8950-86e89ea1fadc","name":"Santos Ltd.","tickers":["STO.AX"],"countries":["AU"],"filesWithSec":false,"permId":"4295857141","listings":[{"ticker":"STO.AX","exchangeMic":"XASX","isin":"AU000000STO6"}]}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"examples":{"not_found":{"summary":"Company with ID '00000000-0000-0000-0000-000000000000' not found","value":{"detail":"Company with ID '00000000-0000-0000-0000-000000000000' not found"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The ID is not a valid UUID","content":{"application/json":{"examples":{"invalid_uuid":{"summary":"Invalid UUID format: 'abc'","value":{"detail":"Invalid UUID format: 'abc'"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/documents/list":{"get":{"tags":["Documents"],"summary":"List documents","description":"Find documents (filings, reports, presentations, transcripts and other disclosures) by company, category, SEC form type, fiscal period, date range, or text in the title and description.\n\n    Returns each document's metadata and `id`; use `GET /documents/{id}` to get links to its files. Results are newest first by default; page through them with `limit` and `offset`.","operationId":"list_documents_api_v1_documents_list_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"documentCategories","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of document categories. For detailed descriptions, please refer to [this page](/coverage).\n\nValid values: `annual-financial-report`, `interim-financial-report`, `financial-attachments`, `annual-activity-report`, `interim-activity-report`, `compliance-report`, `historical-performance-summary`, `earnings-release`, `current-report`, `letter-to-shareholders`, `earnings-presentation`, `earnings-call-transcript`, `investor-event-presentation`, `investor-event-transcript`, `conference-transcript`, `shareholder-meeting-circular`, `shareholder-meeting-resolutions`, `shareholder-meeting-transcript`, `governance-report`, `compensation-report`, `governance-policies`, `esg-report`, `esg-assessment`, `insider-share-transactions`, `shareholder-dealing-disclosure`, `beneficial-ownership-disclosure`, `institutional-holdings-disclosure`, `share-issuance-notice`, `share-buyback-notice`, `share-capital-disclosure`, `initial-offering-prospectus`, `follow-on-offering-prospectus`, `merger-offering-prospectus`, `employee-share-plan-prospectus`, `tender-offer-disclosure`, `going-private-statement`, `termination-of-registration`, `other`.\n\nLegacy codes such as `annual-report` or `interim-report` are also accepted.","examples":["annual-financial-report,interim-financial-report,earnings-release"],"title":"Documentcategories"},"description":"Comma-separated list of document categories. For detailed descriptions, please refer to [this page](/coverage).\n\nValid values: `annual-financial-report`, `interim-financial-report`, `financial-attachments`, `annual-activity-report`, `interim-activity-report`, `compliance-report`, `historical-performance-summary`, `earnings-release`, `current-report`, `letter-to-shareholders`, `earnings-presentation`, `earnings-call-transcript`, `investor-event-presentation`, `investor-event-transcript`, `conference-transcript`, `shareholder-meeting-circular`, `shareholder-meeting-resolutions`, `shareholder-meeting-transcript`, `governance-report`, `compensation-report`, `governance-policies`, `esg-report`, `esg-assessment`, `insider-share-transactions`, `shareholder-dealing-disclosure`, `beneficial-ownership-disclosure`, `institutional-holdings-disclosure`, `share-issuance-notice`, `share-buyback-notice`, `share-capital-disclosure`, `initial-offering-prospectus`, `follow-on-offering-prospectus`, `merger-offering-prospectus`, `employee-share-plan-prospectus`, `tender-offer-disclosure`, `going-private-statement`, `termination-of-registration`, `other`.\n\nLegacy codes such as `annual-report` or `interim-report` are also accepted."},{"name":"secFormTypes","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of SEC form types, as EDGAR names them (exact match; amendments end in `/A`). Only SEC filings have one; `filesWithSec` on `/companies/list` says whether a company files with the SEC, and each document's `secFormType` shows the name to use.\n\nCommon types: annual and interim reports `10-K`, `10-Q`, `20-F`, `40-F`; current reports `8-K`, `6-K`; proxies `DEF 14A`, `DEFA14A`; registrations and prospectuses `S-1`, `S-3`, `S-4`, `S-8`, `F-1`, `F-3`, `F-4`, `424B4`; institutional holdings `13F-HR`, `13F-HR/A`, `13F-NT`; beneficial ownership `SC 13D`, `SC 13G` (filed as `SCHEDULE 13D` and `SCHEDULE 13G` since December 2024); deregistrations `15-12B`, `15-12G`, `15-15D`; insider transactions `3`, `4`","examples":["10-K,10-Q"],"title":"Secformtypes"},"description":"Comma-separated list of SEC form types, as EDGAR names them (exact match; amendments end in `/A`). Only SEC filings have one; `filesWithSec` on `/companies/list` says whether a company files with the SEC, and each document's `secFormType` shows the name to use.\n\nCommon types: annual and interim reports `10-K`, `10-Q`, `20-F`, `40-F`; current reports `8-K`, `6-K`; proxies `DEF 14A`, `DEFA14A`; registrations and prospectuses `S-1`, `S-3`, `S-4`, `S-8`, `F-1`, `F-3`, `F-4`, `424B4`; institutional holdings `13F-HR`, `13F-HR/A`, `13F-NT`; beneficial ownership `SC 13D`, `SC 13G` (filed as `SCHEDULE 13D` and `SCHEDULE 13G` since December 2024); deregistrations `15-12B`, `15-12G`, `15-15D`; insider transactions `3`, `4`"},{"name":"companyTickers","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of tickers of the companies filing the documents (supports both base tickers like 'ITX' and suffixed tickers like 'ITX.MC')","examples":["STO.AX,ASML.AS"],"title":"Companytickers"},"description":"Comma-separated list of tickers of the companies filing the documents (supports both base tickers like 'ITX' and suffixed tickers like 'ITX.MC')"},{"name":"companyIds","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of unique IDs of the companies filing the documents. Use /companies/list to find the company ID","examples":["77848abe-a215-41b7-8950-86e89ea1fadc,91f6c6da-478f-4161-b451-aa5177cc7fb9"],"title":"Companyids"},"description":"Comma-separated list of unique IDs of the companies filing the documents. Use /companies/list to find the company ID"},{"name":"fiscalQuarter","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":4,"minimum":1},{"type":"null"}],"description":"Fiscal quarter to filter documents (1-4)","examples":[1],"title":"Fiscalquarter"},"description":"Fiscal quarter to filter documents (1-4)"},{"name":"fiscalYear","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Fiscal year to filter documents (e.g., 2024)","examples":[2024],"title":"Fiscalyear"},"description":"Fiscal year to filter documents (e.g., 2024)"},{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date for filtering documents (ISO 8601 format)","examples":["2025-01-01"],"title":"Startdate"},"description":"Start date for filtering documents (ISO 8601 format)"},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date for filtering documents (ISO 8601 format)","examples":["2025-12-31"],"title":"Enddate"},"description":"End date for filtering documents (ISO 8601 format)"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":1000,"minimum":1},{"type":"null"}],"description":"Maximum number of records to return","examples":[100],"default":100,"title":"Limit"},"description":"Maximum number of records to return"},{"name":"offset","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Number of records to skip (for pagination)","examples":[0],"default":0,"title":"Offset"},"description":"Number of records to skip (for pagination)"},{"name":"sortBy","in":"query","required":false,"schema":{"enum":["date","name"],"type":"string","description":"Field to sort by: `date` (effective date, default) or `name` (document title)","default":"date","title":"Sortby"},"description":"Field to sort by: `date` (effective date, default) or `name` (document title)"},{"name":"sortOrder","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","description":"Sort direction: `desc` (default) or `asc`","default":"desc","title":"Sortorder"},"description":"Sort direction: `desc` (default) or `asc`"},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"Free-form text search across document title and description (full-text search)","examples":["annual earnings report"],"title":"Query"},"description":"Free-form text search across document title and description (full-text search)"}],"responses":{"200":{"description":"Documents matching the filters, newest first by default","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DocumentListResponse"},"title":"Response List Documents Api V1 Documents List Get"},"example":[{"id":"97ac0c55-7349-46ec-8670-92f8524f5294","documentCategory":"interim-financial-report","title":"Third Quarter Report","description":"Santos Limited third quarter report for the period ending 30 September 2026, summarising record quarterly production and free cash flow, operational performance across assets (including Barossa, Pikka and PNG LNG), sales and pricing, updated 2026 guidance and project developments.","date":"2026-10-22","fiscalQuarter":3,"fiscalYear":2026,"fiscalPeriod":"quarter","language":"en","companyId":"77848abe-a215-41b7-8950-86e89ea1fadc","companyName":"Santos Ltd.","companyTickers":["STO.AX"],"metadata":{}}]}}},"400":{"description":"Invalid request parameters","content":{"application/json":{"examples":{"invalid_category":{"summary":"Invalid document categories: annual-reports","value":{"detail":"Invalid document categories: annual-reports"}},"invalid_company_id":{"summary":"Invalid company ID format: badly formed hexadecimal UUID string","value":{"detail":"Invalid company ID format: badly formed hexadecimal UUID string"}},"invalid_date":{"summary":"Invalid startDate format. Use ISO 8601 format (e.g., 2024-12-12T15:00:00Z)","value":{"detail":"Invalid startDate format. Use ISO 8601 format (e.g., 2024-12-12T15:00:00Z)"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"less_than_equal","loc":["query","limit"],"msg":"Input should be less than or equal to 1000","input":"5000","ctx":{"le":1000}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}}}},"/api/v1/documents/{id}":{"get":{"tags":["Documents"],"summary":"Get document by ID","description":"Get a document's metadata and temporary links to its original file and its Markdown version.\n\n    Categories are returned as legacy codes, and the field names differ from the rest of the API; see Versions and Conventions.","operationId":"get_document_by_id_api_v1_documents__id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Document ID","examples":["a586df65-76d8-4b04-864c-ceed76592f4d"],"title":"Id"},"description":"Document ID"}],"responses":{"200":{"description":"The document, with legacy category codes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"},"example":{"id":"97ac0c55-7349-46ec-8670-92f8524f5294","documentCategory":"interim-report","tickers":["STO.AX"],"companyName":"Santos Ltd.","date":"2026-10-22","fiscalQuarter":3,"fiscalYear":2026,"title":"Third Quarter Report","description":"Santos Limited third quarter report for the period ending 30 September 2026, summarising record quarterly production and free cash flow, operational performance across assets (including Barossa, Pikka and PNG LNG), sales and pricing, updated 2026 guidance and project developments.","originalFileUrl":"https://files.captide.co/original-docs/77848abe-a215-41b7-8950-86e89ea1fadc/97ac0c55-7349-46ec-8670-92f8524f5294.pdf?se=2026-11-03T18%3A15%3A55Z&sp=r&sv=2025-07-05&sr=b&sig=…","markdownFileUrl":"https://files.captide.co/markdown-docs/77848abe-a215-41b7-8950-86e89ea1fadc/97ac0c55-7349-46ec-8670-92f8524f5294.md?se=2026-11-03T18%3A15%3A55Z&sp=r&sv=2025-07-05&sr=b&sig=…","metadata":{}}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"uuid_parsing","loc":["path","id"],"msg":"Input should be a valid UUID, invalid length: expected length 32 for simple format, found 3","input":"abc","ctx":{"error":"invalid length: expected length 32 for simple format, found 3"}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"examples":{"not_found":{"summary":"Document not found","value":{"detail":"Document not found"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/rag/chunks":{"post":{"tags":["Retrieval Augmented Generation"],"summary":"Search document chunks","description":"Find the passages in corporate disclosures that answer a natural-language question, without generating an answer.\n\n    Captide works out which companies and documents the question is about, then returns the most relevant chunks of text, each with its page number and source document. Use it to give your own LLM grounded context, or to combine Captide content with other sources.\n\n    To search specific documents only, pass their IDs in `documentIds`.","operationId":"search_chunks_api_v1_rag_chunks_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRequest"}}},"required":true},"responses":{"200":{"description":"Retrieved document chunks with metadata","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChunksResponse"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}}}}},"402":{"description":"Not enough API credits for this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"insufficient_credits":{"summary":"Insufficient credits. Required: 10 cents, Available: 4 cents","value":{"detail":"Insufficient credits. Required: 10 cents, Available: 4 cents"}}}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"},"example":{"detail":[{"type":"missing","loc":["body"],"msg":"Field required"}]}}}}},"security":[{"APIKeyHeader":[]}]}},"/api/v1/rag/agent-response":{"post":{"tags":["Retrieval Augmented Generation"],"summary":"Identify companies in a query","description":"Identify the companies a natural-language request refers to and return their names and tickers, as an answer with a `sourceMap` keyed by company ID.","operationId":"agent_response_api_v1_rag_agent_response_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRequest"}}},"required":true},"responses":{"200":{"description":"Agent response with sourceMap of resolved companies","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Agent Response Api V1 Rag Agent Response Post"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}}}}},"402":{"description":"Not enough API credits for this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"insufficient_credits":{"summary":"Insufficient credits. Required: 10 cents, Available: 4 cents","value":{"detail":"Insufficient credits. Required: 10 cents, Available: 4 cents"}}}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"},"example":{"detail":[{"type":"missing","loc":["body"],"msg":"Field required"}]}}}}},"security":[{"APIKeyHeader":[]}]}},"/api/v1/webhooks":{"post":{"tags":["Webhooks"],"summary":"Create webhook","description":"Register a URL to receive new documents as Captide adds them.\n\n    For each new document published in the last 7 days, Captide sends a `POST` to your URL with the document in the same format as `GET /api/v2/documents/{id}`. Set `documentCategories` to receive only some categories. See the Webhooks guide for headers, retries and how to respond.","operationId":"create_webhook_api_v1_webhooks_post","security":[{"APIKeyHeader":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookCreate"}}}},"responses":{"201":{"description":"The new webhook","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookResponse"},"example":{"id":"3f2c8d1e-5b7a-4c9e-8f10-2a6b4d9e7c51","url":"https://example.com/captide/webhook","documentCategories":["earnings-release","earnings-call-transcript"],"enabled":true,"description":"Earnings watchlist","createdAt":"2026-11-03T17:40:12.481930+00:00"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"url_parsing","loc":["body","url"],"msg":"Input should be a valid URL, relative URL without a base","input":"not a url","ctx":{"error":"relative URL without a base"}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}}},"get":{"tags":["Webhooks"],"summary":"List webhooks","description":"List your organization's webhooks, oldest first. Pass `description` to find the webhooks with that exact description.","operationId":"list_webhooks_api_v1_webhooks_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"description","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by exact description match","title":"Description"},"description":"Filter by exact description match"}],"responses":{"200":{"description":"Your organization's webhooks, oldest first","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WebhookResponse"},"title":"Response List Webhooks Api V1 Webhooks Get"},"example":[{"id":"3f2c8d1e-5b7a-4c9e-8f10-2a6b4d9e7c51","url":"https://example.com/captide/webhook","documentCategories":["earnings-release","earnings-call-transcript"],"enabled":true,"description":"Earnings watchlist","createdAt":"2026-11-03T17:40:12.481930+00:00"}]}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/{id}":{"get":{"tags":["Webhooks"],"summary":"Get webhook","description":"Get one of your organization's webhooks by its ID.","operationId":"get_webhook_api_v1_webhooks__id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Webhook endpoint ID","title":"Id"},"description":"Webhook endpoint ID"}],"responses":{"200":{"description":"The webhook","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookResponse"},"example":{"id":"3f2c8d1e-5b7a-4c9e-8f10-2a6b4d9e7c51","url":"https://example.com/captide/webhook","documentCategories":["earnings-release","earnings-call-transcript"],"enabled":true,"description":"Earnings watchlist","createdAt":"2026-11-03T17:40:12.481930+00:00"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"uuid_parsing","loc":["path","id"],"msg":"Input should be a valid UUID, invalid length: expected length 32 for simple format, found 3","input":"abc","ctx":{"error":"invalid length: expected length 32 for simple format, found 3"}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"examples":{"not_found":{"summary":"Webhook not found","value":{"detail":"Webhook not found"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["Webhooks"],"summary":"Update webhook","description":"Change a webhook's URL, category filter or description, or pause it with `enabled: false`.\n\n    Only the fields you send change. Send `documentCategories: []` to receive every category again. Documents added while a webhook is paused aren't sent later.","operationId":"update_webhook_api_v1_webhooks__id__patch","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Webhook endpoint ID","title":"Id"},"description":"Webhook endpoint ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookUpdate"}}}},"responses":{"200":{"description":"The updated webhook","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookResponse"},"example":{"id":"3f2c8d1e-5b7a-4c9e-8f10-2a6b4d9e7c51","url":"https://example.com/captide/webhook","documentCategories":["earnings-release","earnings-call-transcript"],"enabled":true,"description":"Earnings watchlist","createdAt":"2026-11-03T17:40:12.481930+00:00"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"uuid_parsing","loc":["path","id"],"msg":"Input should be a valid UUID, invalid length: expected length 32 for simple format, found 3","input":"abc","ctx":{"error":"invalid length: expected length 32 for simple format, found 3"}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"examples":{"not_found":{"summary":"Webhook not found","value":{"detail":"Webhook not found"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["Webhooks"],"summary":"Delete webhook","description":"Delete one of your organization's webhooks. Captide stops sending documents to its URL.","operationId":"delete_webhook_api_v1_webhooks__id__delete","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Webhook endpoint ID","title":"Id"},"description":"Webhook endpoint ID"}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"uuid_parsing","loc":["path","id"],"msg":"Input should be a valid UUID, invalid length: expected length 32 for simple format, found 3","input":"abc","ctx":{"error":"invalid length: expected length 32 for simple format, found 3"}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"examples":{"not_found":{"summary":"Webhook not found","value":{"detail":"Webhook not found"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/companies/list":{"get":{"tags":["Companies"],"summary":"List companies","description":"Find companies in Captide by ticker, ISIN, CUSIP, country of domicile, SEC filing status, CIK, PermID or Captide company ID.\n\n    Use it to get the Captide `id` of the companies you need, for example to filter `/documents/list` with `companyIds`. Results are sorted by name; page through them with `limit` and `offset`.","operationId":"list_companies_api_v2_companies_list_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"tickers","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of company tickers (supports both base tickers like 'ITX' and suffixed tickers like 'ITX.MC')","examples":["STO.AX,ASML.AS"],"title":"Tickers"},"description":"Comma-separated list of company tickers (supports both base tickers like 'ITX' and suffixed tickers like 'ITX.MC')"},{"name":"countries","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of companies' country of domicile (ISO 3166-1 alpha-2)","examples":["AU,NL"],"title":"Countries"},"description":"Comma-separated list of companies' country of domicile (ISO 3166-1 alpha-2)"},{"name":"filesWithSec","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether the companies file reports with the SEC","examples":[false],"title":"Fileswithsec"},"description":"Whether the companies file reports with the SEC"},{"name":"ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of unique company IDs","examples":["77848abe-a215-41b7-8950-86e89ea1fadc,91f6c6da-478f-4161-b451-aa5177cc7fb9"],"title":"Ids"},"description":"Comma-separated list of unique company IDs"},{"name":"ciks","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of Central Index Keys (CIK) assigned by the SEC","examples":["0000320193,0000789019"],"title":"Ciks"},"description":"Comma-separated list of Central Index Keys (CIK) assigned by the SEC"},{"name":"permIds","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of PermIDs (Permanent Identifiers) assigned by Refinitiv","examples":["4295907168,4295907169"],"title":"Permids"},"description":"Comma-separated list of PermIDs (Permanent Identifiers) assigned by Refinitiv"},{"name":"isins","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of ISINs of the companies' listed securities","examples":["US0378331005,AU000000STO6"],"title":"Isins"},"description":"Comma-separated list of ISINs of the companies' listed securities"},{"name":"cusips","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of CUSIPs: matches US and CA listings whose ISIN carries the CUSIP","examples":["037833100"],"title":"Cusips"},"description":"Comma-separated list of CUSIPs: matches US and CA listings whose ISIN carries the CUSIP"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":1000,"minimum":1},{"type":"null"}],"description":"Maximum number of records to return","examples":[100],"default":100,"title":"Limit"},"description":"Maximum number of records to return"},{"name":"offset","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Number of records to skip (for pagination)","examples":[0],"default":0,"title":"Offset"},"description":"Number of records to skip (for pagination)"}],"responses":{"200":{"description":"Companies matching the filters, sorted by name","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CompanyResponse"},"title":"Response List Companies Api V2 Companies List Get"},"example":[{"id":"77848abe-a215-41b7-8950-86e89ea1fadc","name":"Santos Ltd.","tickers":["STO.AX"],"countries":["AU"],"filesWithSec":false,"permId":"4295857141","listings":[{"ticker":"STO.AX","exchangeMic":"XASX","isin":"AU000000STO6"}]}]}}},"400":{"description":"Invalid request parameters","content":{"application/json":{"examples":{"invalid_company_id":{"summary":"Invalid company ID format: badly formed hexadecimal UUID string","value":{"detail":"Invalid company ID format: badly formed hexadecimal UUID string"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"less_than_equal","loc":["query","limit"],"msg":"Input should be less than or equal to 1000","input":"5000","ctx":{"le":1000}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}}}},"/api/v2/companies/search":{"get":{"tags":["Companies"],"summary":"Search companies","description":"Look companies up by name or ticker while the user types, for autocomplete or when you only know part of a name.\n\n    Matches company names and tickers that contain the query, with or without an exchange suffix (`AAPL`, `STO.AX`). Results come best match first: names that start with the query, then larger companies.","operationId":"search_companies_api_v2_companies_search_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Search query: company name or ticker (e.g. 'Apple', 'AAPL', 'STO.AX')","title":"Query"},"description":"Search query: company name or ticker (e.g. 'Apple', 'AAPL', 'STO.AX')"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":50,"minimum":1},{"type":"null"}],"description":"Maximum number of results (type-ahead)","default":20,"title":"Limit"},"description":"Maximum number of results (type-ahead)"}],"responses":{"200":{"description":"Companies matching the query, best match first","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CompanyResponse"},"title":"Response Search Companies Api V2 Companies Search Get"},"example":[{"id":"77848abe-a215-41b7-8950-86e89ea1fadc","name":"Santos Ltd.","tickers":["STO.AX"],"countries":["AU"],"filesWithSec":false,"permId":"4295857141","listings":[{"ticker":"STO.AX","exchangeMic":"XASX","isin":"AU000000STO6"}]}]}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"missing","loc":["query","query"],"msg":"Field required"}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}}}},"/api/v2/companies/{id}":{"get":{"tags":["Companies"],"summary":"Get company by ID","description":"Get one company by its Captide `id`: its name, tickers with exchange suffixes, countries of domicile, SEC filing status, CIK and PermID.","operationId":"get_company_api_v2_companies__id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"The company","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyResponse"},"example":{"id":"77848abe-a215-41b7-8950-86e89ea1fadc","name":"Santos Ltd.","tickers":["STO.AX"],"countries":["AU"],"filesWithSec":false,"permId":"4295857141","listings":[{"ticker":"STO.AX","exchangeMic":"XASX","isin":"AU000000STO6"}]}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"examples":{"not_found":{"summary":"Company with ID '00000000-0000-0000-0000-000000000000' not found","value":{"detail":"Company with ID '00000000-0000-0000-0000-000000000000' not found"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The ID is not a valid UUID","content":{"application/json":{"examples":{"invalid_uuid":{"summary":"Invalid UUID format: 'abc'","value":{"detail":"Invalid UUID format: 'abc'"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/documents/list":{"get":{"tags":["Documents"],"summary":"List documents","description":"Find documents (filings, reports, presentations, transcripts and other disclosures) by company, category, SEC form type, fiscal period, date range, or text in the title and description.\n\n    Returns each document's metadata and `id`; use `GET /documents/{id}` to get links to its files. Results are newest first by default; page through them with `limit` and `offset`.","operationId":"list_documents_api_v2_documents_list_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"documentCategories","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of document categories. For detailed descriptions, please refer to [this page](/coverage).\n\nValid values: `annual-financial-report`, `interim-financial-report`, `financial-attachments`, `annual-activity-report`, `interim-activity-report`, `compliance-report`, `historical-performance-summary`, `earnings-release`, `current-report`, `letter-to-shareholders`, `earnings-presentation`, `earnings-call-transcript`, `investor-event-presentation`, `investor-event-transcript`, `conference-transcript`, `shareholder-meeting-circular`, `shareholder-meeting-resolutions`, `shareholder-meeting-transcript`, `governance-report`, `compensation-report`, `governance-policies`, `esg-report`, `esg-assessment`, `insider-share-transactions`, `shareholder-dealing-disclosure`, `beneficial-ownership-disclosure`, `institutional-holdings-disclosure`, `share-issuance-notice`, `share-buyback-notice`, `share-capital-disclosure`, `initial-offering-prospectus`, `follow-on-offering-prospectus`, `merger-offering-prospectus`, `employee-share-plan-prospectus`, `tender-offer-disclosure`, `going-private-statement`, `termination-of-registration`, `other`.\n\nLegacy codes such as `annual-report` or `interim-report` are also accepted.","examples":["annual-financial-report,interim-financial-report,earnings-release"],"title":"Documentcategories"},"description":"Comma-separated list of document categories. For detailed descriptions, please refer to [this page](/coverage).\n\nValid values: `annual-financial-report`, `interim-financial-report`, `financial-attachments`, `annual-activity-report`, `interim-activity-report`, `compliance-report`, `historical-performance-summary`, `earnings-release`, `current-report`, `letter-to-shareholders`, `earnings-presentation`, `earnings-call-transcript`, `investor-event-presentation`, `investor-event-transcript`, `conference-transcript`, `shareholder-meeting-circular`, `shareholder-meeting-resolutions`, `shareholder-meeting-transcript`, `governance-report`, `compensation-report`, `governance-policies`, `esg-report`, `esg-assessment`, `insider-share-transactions`, `shareholder-dealing-disclosure`, `beneficial-ownership-disclosure`, `institutional-holdings-disclosure`, `share-issuance-notice`, `share-buyback-notice`, `share-capital-disclosure`, `initial-offering-prospectus`, `follow-on-offering-prospectus`, `merger-offering-prospectus`, `employee-share-plan-prospectus`, `tender-offer-disclosure`, `going-private-statement`, `termination-of-registration`, `other`.\n\nLegacy codes such as `annual-report` or `interim-report` are also accepted."},{"name":"secFormTypes","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of SEC form types, as EDGAR names them (exact match; amendments end in `/A`). Only SEC filings have one; `filesWithSec` on `/companies/list` says whether a company files with the SEC, and each document's `secFormType` shows the name to use.\n\nCommon types: annual and interim reports `10-K`, `10-Q`, `20-F`, `40-F`; current reports `8-K`, `6-K`; proxies `DEF 14A`, `DEFA14A`; registrations and prospectuses `S-1`, `S-3`, `S-4`, `S-8`, `F-1`, `F-3`, `F-4`, `424B4`; institutional holdings `13F-HR`, `13F-HR/A`, `13F-NT`; beneficial ownership `SC 13D`, `SC 13G` (filed as `SCHEDULE 13D` and `SCHEDULE 13G` since December 2024); deregistrations `15-12B`, `15-12G`, `15-15D`; insider transactions `3`, `4`","examples":["10-K,10-Q"],"title":"Secformtypes"},"description":"Comma-separated list of SEC form types, as EDGAR names them (exact match; amendments end in `/A`). Only SEC filings have one; `filesWithSec` on `/companies/list` says whether a company files with the SEC, and each document's `secFormType` shows the name to use.\n\nCommon types: annual and interim reports `10-K`, `10-Q`, `20-F`, `40-F`; current reports `8-K`, `6-K`; proxies `DEF 14A`, `DEFA14A`; registrations and prospectuses `S-1`, `S-3`, `S-4`, `S-8`, `F-1`, `F-3`, `F-4`, `424B4`; institutional holdings `13F-HR`, `13F-HR/A`, `13F-NT`; beneficial ownership `SC 13D`, `SC 13G` (filed as `SCHEDULE 13D` and `SCHEDULE 13G` since December 2024); deregistrations `15-12B`, `15-12G`, `15-15D`; insider transactions `3`, `4`"},{"name":"companyTickers","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of tickers of the companies filing the documents (supports both base tickers like 'ITX' and suffixed tickers like 'ITX.MC')","examples":["STO.AX,ASML.AS"],"title":"Companytickers"},"description":"Comma-separated list of tickers of the companies filing the documents (supports both base tickers like 'ITX' and suffixed tickers like 'ITX.MC')"},{"name":"companyIds","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of unique IDs of the companies filing the documents. Use /companies/list to find the company ID","examples":["77848abe-a215-41b7-8950-86e89ea1fadc,91f6c6da-478f-4161-b451-aa5177cc7fb9"],"title":"Companyids"},"description":"Comma-separated list of unique IDs of the companies filing the documents. Use /companies/list to find the company ID"},{"name":"fiscalQuarter","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":4,"minimum":1},{"type":"null"}],"description":"Fiscal quarter to filter documents (1-4)","examples":[1],"title":"Fiscalquarter"},"description":"Fiscal quarter to filter documents (1-4)"},{"name":"fiscalYear","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Fiscal year to filter documents (e.g., 2024)","examples":[2024],"title":"Fiscalyear"},"description":"Fiscal year to filter documents (e.g., 2024)"},{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date for filtering documents (ISO 8601 format)","examples":["2025-01-01"],"title":"Startdate"},"description":"Start date for filtering documents (ISO 8601 format)"},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date for filtering documents (ISO 8601 format)","examples":["2025-12-31"],"title":"Enddate"},"description":"End date for filtering documents (ISO 8601 format)"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":1000,"minimum":1},{"type":"null"}],"description":"Maximum number of records to return","examples":[100],"default":100,"title":"Limit"},"description":"Maximum number of records to return"},{"name":"offset","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Number of records to skip (for pagination)","examples":[0],"default":0,"title":"Offset"},"description":"Number of records to skip (for pagination)"},{"name":"sortBy","in":"query","required":false,"schema":{"enum":["date","name"],"type":"string","description":"Field to sort by: `date` (effective date, default) or `name` (document title)","default":"date","title":"Sortby"},"description":"Field to sort by: `date` (effective date, default) or `name` (document title)"},{"name":"sortOrder","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","description":"Sort direction: `desc` (default) or `asc`","default":"desc","title":"Sortorder"},"description":"Sort direction: `desc` (default) or `asc`"},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"Free-form text search across document title and description (full-text search)","examples":["annual earnings report"],"title":"Query"},"description":"Free-form text search across document title and description (full-text search)"}],"responses":{"200":{"description":"Documents matching the filters, newest first by default","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DocumentListResponse"},"title":"Response List Documents Api V2 Documents List Get"},"example":[{"id":"97ac0c55-7349-46ec-8670-92f8524f5294","documentCategory":"interim-financial-report","title":"Third Quarter Report","description":"Santos Limited third quarter report for the period ending 30 September 2026, summarising record quarterly production and free cash flow, operational performance across assets (including Barossa, Pikka and PNG LNG), sales and pricing, updated 2026 guidance and project developments.","date":"2026-10-22","fiscalQuarter":3,"fiscalYear":2026,"fiscalPeriod":"quarter","language":"en","companyId":"77848abe-a215-41b7-8950-86e89ea1fadc","companyName":"Santos Ltd.","companyTickers":["STO.AX"],"metadata":{}}]}}},"400":{"description":"Invalid request parameters","content":{"application/json":{"examples":{"invalid_category":{"summary":"Invalid document categories: annual-reports","value":{"detail":"Invalid document categories: annual-reports"}},"invalid_company_id":{"summary":"Invalid company ID format: badly formed hexadecimal UUID string","value":{"detail":"Invalid company ID format: badly formed hexadecimal UUID string"}},"invalid_date":{"summary":"Invalid startDate format. Use ISO 8601 format (e.g., 2024-12-12T15:00:00Z)","value":{"detail":"Invalid startDate format. Use ISO 8601 format (e.g., 2024-12-12T15:00:00Z)"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"less_than_equal","loc":["query","limit"],"msg":"Input should be less than or equal to 1000","input":"5000","ctx":{"le":1000}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}}}},"/api/v2/documents/{id}":{"get":{"tags":["Documents"],"summary":"Get document by ID","description":"Get a document's metadata and temporary links to its files: the original (`originalFileUrl`), its LLM-ready Markdown version (`markdownFileUrl`) and, for documents processed by Captide's OCR pipeline, its layout as JSON (`layoutJsonFileUrl`), with each page's text, tables and figures and where they sit on the page.\n\n    Use the `id` returned by `/documents/list`, chunks, agent sources or webhooks. The links expire one hour after the request; request the document again for fresh ones instead of storing them.","operationId":"get_document_by_id_api_v2_documents__id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Document ID, as returned by `/documents/list`, chunks, agent sources and webhooks","examples":["a586df65-76d8-4b04-864c-ceed76592f4d"],"title":"Id"},"description":"Document ID, as returned by `/documents/list`, chunks, agent sources and webhooks"}],"responses":{"200":{"description":"The document, with temporary links to its files","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponseV2"},"example":{"id":"97ac0c55-7349-46ec-8670-92f8524f5294","documentCategory":"interim-financial-report","title":"Third Quarter Report","description":"Santos Limited third quarter report for the period ending 30 September 2026, summarising record quarterly production and free cash flow, operational performance across assets (including Barossa, Pikka and PNG LNG), sales and pricing, updated 2026 guidance and project developments.","date":"2026-10-22","fiscalQuarter":3,"fiscalYear":2026,"fiscalPeriod":"quarter","language":"en","companyId":"77848abe-a215-41b7-8950-86e89ea1fadc","companyName":"Santos Ltd.","companyTickers":["STO.AX"],"originalFileUrl":"https://files.captide.co/original-docs/77848abe-a215-41b7-8950-86e89ea1fadc/97ac0c55-7349-46ec-8670-92f8524f5294.pdf?se=2026-11-03T18%3A15%3A55Z&sp=r&sv=2025-07-05&sr=b&sig=…","markdownFileUrl":"https://files.captide.co/markdown-docs/77848abe-a215-41b7-8950-86e89ea1fadc/97ac0c55-7349-46ec-8670-92f8524f5294.md?se=2026-11-03T18%3A15%3A55Z&sp=r&sv=2025-07-05&sr=b&sig=…","layoutJsonFileUrl":"https://files.captide.co/original-docs/77848abe-a215-41b7-8950-86e89ea1fadc/97ac0c55-7349-46ec-8670-92f8524f5294.json?se=2026-11-03T18%3A15%3A55Z&sp=r&sv=2025-07-05&sr=b&sig=…","metadata":{}}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"uuid_parsing","loc":["path","id"],"msg":"Input should be a valid UUID, invalid length: expected length 32 for simple format, found 3","input":"abc","ctx":{"error":"invalid length: expected length 32 for simple format, found 3"}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"examples":{"not_found":{"summary":"Document not found","value":{"detail":"Document not found"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/rag/agent-response":{"post":{"tags":["Retrieval Augmented Generation"],"summary":"Get agent response","description":"Answer a natural-language question from corporate disclosures, with every statement cited.\n\n    The answer is Markdown in `content`, with citations such as `[#43c00004]`. Each citation is a key in `sourceMap`, which holds the passage, page and exact excerpt that support it, and the source document's metadata. When no relevant documents are found, `content` says so and `sourceMap` is empty.\n\n    Use it when you need the complete answer at once, for example for data extraction or alerts. For chat interfaces, use the streaming endpoint. To answer from specific documents only, pass their IDs in `documentIds`.","operationId":"agent_response_api_v2_rag_agent_response_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"X-Langfuse-Trace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Langfuse-Trace-Id"}},{"name":"X-Langfuse-Parent-Span-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Langfuse-Parent-Span-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRequest"}}}},"responses":{"200":{"description":"The cited answer and its sources","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"},"examples":{"with_sources":{"summary":"Answer with sources","value":{"content":"Zscaler’s net dollar retention was **115%** in Q4 FY2026 [#43c00004].\n\nManagement said NRR was “consistent each quarter this year at **115%**” [#43c00004:2].","sourceMap":{"#43c00004":{"content":"please join us at our upcoming Investor Day on October 6 in New York City. I want to thank our employees, customers and\npartners for their continued support. With that, operator, you may now open the call for questions. …","pageNumber":5,"excerpt":"115%","documentMetadata":{"id":"a0dcd3e7-7985-4fbc-9c77-371b4232e242","title":"Zscaler, Inc. Earnings Call Transcript Q4 2026 (2026-09-03)","documentCategory":"earnings-call-transcript","date":"2026-09-03","fiscalQuarter":4,"fiscalYear":2026,"companyName":"Zscaler, Inc.","companyTickers":["ZS"]}},"#43c00004:2":{"content":"please join us at our upcoming Investor Day on October 6 in New York City. I want to thank our employees, customers and\npartners for their continued support. With that, operator, you may now open the call for questions. …","pageNumber":5,"excerpt":"115%","documentMetadata":{"id":"a0dcd3e7-7985-4fbc-9c77-371b4232e242","title":"Zscaler, Inc. Earnings Call Transcript Q4 2026 (2026-09-03)","documentCategory":"earnings-call-transcript","date":"2026-09-03","fiscalQuarter":4,"fiscalYear":2026,"companyName":"Zscaler, Inc.","companyTickers":["ZS"]}}}}},"no_sources":{"summary":"No relevant documents found","value":{"content":"I couldn't find any relevant documents in our database to answer your query. This could be because:\n\n- The company or topic you're asking about isn't covered in our document collection\n- The specific information you're looking for isn't mentioned in the available documents\n- Your query might need to be more specific or use different terminology\n\nTry rephrasing your question or asking about a different company or topic that might be covered in our financial disclosure database.","sourceMap":{}}}}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"missing","loc":["body"],"msg":"Field required"}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"402":{"description":"Not enough API credits for this request","content":{"application/json":{"examples":{"insufficient_credits":{"summary":"Insufficient credits. Required: 10 cents, Available: 4 cents","value":{"detail":"Insufficient credits. Required: 10 cents, Available: 4 cents"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/rag/agent-response-stream":{"post":{"tags":["Retrieval Augmented Generation"],"summary":"Stream agent response","description":"Answer a natural-language question from corporate disclosures, streamed as Server-Sent Events, so you can show progress and the answer as it is written.\n\n    Each event is a `data:` line holding a JSON object. Its `type` is one of:\n    - `thinking`: a progress update, with a `stage`\n    - `message`: the next piece of the answer\n    - `content_final`: the complete answer; when present, it replaces the text built from `message` events\n    - `sources`: the `sourceMap`, mapping each citation to its passage, page and excerpt\n    - `warning`: a non-fatal issue, such as no relevant documents being found\n    - `done`: the end of the stream","operationId":"agent_response_stream_api_v2_rag_agent_response_stream_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"X-Langfuse-Trace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Langfuse-Trace-Id"}},{"name":"X-Langfuse-Parent-Span-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Langfuse-Parent-Span-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRequest"}}}},"responses":{"200":{"description":"Server-Sent Events: thinking, message, content_final, sources, warning, done","content":{"text/event-stream":{"example":"data: {\"type\": \"thinking\", \"role\": \"assistant\", \"content\": \"Identifying companies from your query...\", \"stage\": \"search\"}\n\ndata: {\"type\": \"thinking\", \"role\": \"assistant\", \"content\": \"Selecting documents for Zscaler, Inc....\", \"stage\": \"document_selection\"}\n\ndata: {\"type\": \"thinking\", \"role\": \"assistant\", \"content\": \"Found 5 relevant pages.\", \"stage\": \"analyzing\"}\n\ndata: {\"type\": \"message\", \"role\": \"assistant\", \"content\": \"Z\"}\n\ndata: {\"type\": \"message\", \"role\": \"assistant\", \"content\": \"scaler\"}\n\n...\n\ndata: {\"type\": \"content_final\", \"role\": \"assistant\", \"content\": \"Zscaler’s net dollar retention was **115%** in Q4 FY2026 [#43c00004]. …\"}\n\ndata: {\"type\": \"sources\", \"content\": {\"#43c00004\": {\"content\": \"…\", \"pageNumber\": 5, \"excerpt\": \"115%\", \"documentMetadata\": {\"id\": \"a0dcd3e7-7985-4fbc-9c77-371b4232e242\", \"title\": \"Zscaler, Inc. Earnings Call Transcript Q4 2026 (2026-09-03)\", …}}}}\n\ndata: {\"type\": \"done\"}\n\n"}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"missing","loc":["body"],"msg":"Field required"}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"402":{"description":"Not enough API credits for this request","content":{"application/json":{"examples":{"insufficient_credits":{"summary":"Insufficient credits. Required: 10 cents, Available: 4 cents","value":{"detail":"Insufficient credits. Required: 10 cents, Available: 4 cents"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/rag/chunks":{"post":{"tags":["Retrieval Augmented Generation","Retrieval Augmented Generation"],"summary":"Search document chunks","description":"Find the passages in corporate disclosures that answer a natural-language question, without generating an answer.\n\n    Captide works out which companies and documents the question is about, then returns the most relevant chunks of text, each with its page number and source document. Use it to give your own LLM grounded context, or to combine Captide content with other sources.\n\n    To search specific documents only, pass their IDs in `documentIds`.","operationId":"search_chunks_api_v2_rag_chunks_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRequest"}}},"required":true},"responses":{"200":{"description":"Chunks relevant to the query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChunksResponse"},"example":{"relevantChunks":[{"content":"please join us at our upcoming Investor Day on October 6 in New York City. I want to thank our employees, customers and\npartners for their continued support. With that, operator, you may now open the call for questions. …","pageNumber":5,"documentMetadata":{"id":"a0dcd3e7-7985-4fbc-9c77-371b4232e242","title":"Zscaler, Inc. Earnings Call Transcript Q4 2026 (2026-09-03)","documentCategory":"earnings-call-transcript","date":"2026-09-03","fiscalQuarter":4,"fiscalYear":2026,"companyName":"Zscaler, Inc.","companyTickers":["ZS"]}}]}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}}}}},"402":{"description":"Not enough API credits for this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"insufficient_credits":{"summary":"Insufficient credits. Required: 10 cents, Available: 4 cents","value":{"detail":"Insufficient credits. Required: 10 cents, Available: 4 cents"}}}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"},"example":{"detail":[{"type":"missing","loc":["body"],"msg":"Field required"}]}}}}},"security":[{"APIKeyHeader":[]}]}},"/api/v2/rag/company-retrieval":{"post":{"tags":["Retrieval Augmented Generation","Retrieval Augmented Generation"],"summary":"Retrieve companies from a query","description":"Identify the companies a natural-language request refers to, by name, ticker or informal reference, and return their details.\n\n    Use it to turn free text such as \"Give me Estée Lauder and Louis Vuitton\" or \"AAPL and MSFT\" into Captide company IDs before calling other endpoints.","operationId":"company_retrieval_api_v2_rag_company_retrieval_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRequest","description":"Natural language query to find companies","examples":[{"query":"Give me Estee Lauder and Louis Vuitton"}]}}},"required":true},"responses":{"200":{"description":"Companies the query refers to","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CompanyResponse"},"type":"array","title":"Response Company Retrieval Api V2 Rag Company Retrieval Post"},"example":[{"id":"081224fb-308b-41a9-ae77-6763e97191ea","name":"LVMH Moët Hennessy Louis Vuitton SE","tickers":["MC.PA"],"countries":["FR"],"filesWithSec":false,"permId":"4295866862","listings":[{"ticker":"MC.PA","exchangeMic":"XPAR","isin":"FR0000121014"}]},{"id":"20944e0e-f557-4900-a8a7-0ee88af4c898","name":"The Estée Lauder Companies Inc.","tickers":["EL"],"countries":["US"],"filesWithSec":true,"cik":"1001250","permId":"4295903171","listings":[{"ticker":"EL","exchangeMic":"XNYS","isin":"US5184391044"}]}]}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"},"example":{"detail":[{"type":"missing","loc":["body"],"msg":"Field required"}]}}}},"402":{"description":"Not enough API credits for this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"insufficient_credits":{"summary":"Insufficient credits. Required: 10 cents, Available: 4 cents","value":{"detail":"Insufficient credits. Required: 10 cents, Available: 4 cents"}}}}}}},"security":[{"APIKeyHeader":[]}]}},"/api/v2/webhooks":{"post":{"tags":["Webhooks"],"summary":"Create webhook","description":"Register a URL to receive new documents as Captide adds them.\n\n    For each new document published in the last 7 days, Captide sends a `POST` to your URL with the document in the same format as `GET /api/v2/documents/{id}`. Set `documentCategories` to receive only some categories. See the Webhooks guide for headers, retries and how to respond.","operationId":"create_webhook_api_v2_webhooks_post","security":[{"APIKeyHeader":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookCreate"}}}},"responses":{"201":{"description":"The new webhook","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookResponse"},"example":{"id":"3f2c8d1e-5b7a-4c9e-8f10-2a6b4d9e7c51","url":"https://example.com/captide/webhook","documentCategories":["earnings-release","earnings-call-transcript"],"enabled":true,"description":"Earnings watchlist","createdAt":"2026-11-03T17:40:12.481930+00:00"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"url_parsing","loc":["body","url"],"msg":"Input should be a valid URL, relative URL without a base","input":"not a url","ctx":{"error":"relative URL without a base"}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}}},"get":{"tags":["Webhooks"],"summary":"List webhooks","description":"List your organization's webhooks, oldest first. Pass `description` to find the webhooks with that exact description.","operationId":"list_webhooks_api_v2_webhooks_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"description","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by exact description match","title":"Description"},"description":"Filter by exact description match"}],"responses":{"200":{"description":"Your organization's webhooks, oldest first","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WebhookResponse"},"title":"Response List Webhooks Api V2 Webhooks Get"},"example":[{"id":"3f2c8d1e-5b7a-4c9e-8f10-2a6b4d9e7c51","url":"https://example.com/captide/webhook","documentCategories":["earnings-release","earnings-call-transcript"],"enabled":true,"description":"Earnings watchlist","createdAt":"2026-11-03T17:40:12.481930+00:00"}]}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/webhooks/{id}":{"get":{"tags":["Webhooks"],"summary":"Get webhook","description":"Get one of your organization's webhooks by its ID.","operationId":"get_webhook_api_v2_webhooks__id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Webhook endpoint ID","title":"Id"},"description":"Webhook endpoint ID"}],"responses":{"200":{"description":"The webhook","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookResponse"},"example":{"id":"3f2c8d1e-5b7a-4c9e-8f10-2a6b4d9e7c51","url":"https://example.com/captide/webhook","documentCategories":["earnings-release","earnings-call-transcript"],"enabled":true,"description":"Earnings watchlist","createdAt":"2026-11-03T17:40:12.481930+00:00"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"uuid_parsing","loc":["path","id"],"msg":"Input should be a valid UUID, invalid length: expected length 32 for simple format, found 3","input":"abc","ctx":{"error":"invalid length: expected length 32 for simple format, found 3"}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"examples":{"not_found":{"summary":"Webhook not found","value":{"detail":"Webhook not found"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["Webhooks"],"summary":"Update webhook","description":"Change a webhook's URL, category filter or description, or pause it with `enabled: false`.\n\n    Only the fields you send change. Send `documentCategories: []` to receive every category again. Documents added while a webhook is paused aren't sent later.","operationId":"update_webhook_api_v2_webhooks__id__patch","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Webhook endpoint ID","title":"Id"},"description":"Webhook endpoint ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookUpdate"}}}},"responses":{"200":{"description":"The updated webhook","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookResponse"},"example":{"id":"3f2c8d1e-5b7a-4c9e-8f10-2a6b4d9e7c51","url":"https://example.com/captide/webhook","documentCategories":["earnings-release","earnings-call-transcript"],"enabled":true,"description":"Earnings watchlist","createdAt":"2026-11-03T17:40:12.481930+00:00"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"uuid_parsing","loc":["path","id"],"msg":"Input should be a valid UUID, invalid length: expected length 32 for simple format, found 3","input":"abc","ctx":{"error":"invalid length: expected length 32 for simple format, found 3"}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"examples":{"not_found":{"summary":"Webhook not found","value":{"detail":"Webhook not found"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["Webhooks"],"summary":"Delete webhook","description":"Delete one of your organization's webhooks. Captide stops sending documents to its URL.","operationId":"delete_webhook_api_v2_webhooks__id__delete","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Webhook endpoint ID","title":"Id"},"description":"Webhook endpoint ID"}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"uuid_parsing","loc":["path","id"],"msg":"Input should be a valid UUID, invalid length: expected length 32 for simple format, found 3","input":"abc","ctx":{"error":"invalid length: expected length 32 for simple format, found 3"}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"examples":{"not_found":{"summary":"Webhook not found","value":{"detail":"Webhook not found"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/changes":{"get":{"tags":["Changes"],"summary":"List changes","description":"Every change to the documents and companies the API shows, in order: new documents, documents whose metadata or files changed, documents removed from the API, and the same for companies. Use it to keep a copy of Captide's data up to date without re-reading the lists.\n\n    To start:\n    1. Load your starting copy from `GET /changes/snapshot`: companies, then documents. Keep the `cursor` of the first page you loaded.\n    2. From then on, call this endpoint with `after` set to that `cursor` (then to each response's `nextCursor`) every few minutes, and apply the changes in order. Changes made while you were loading the snapshot come through again, so apply them as upserts and deletes:\n       - `document.created` / `company.created`: add it, or replace it if you have it.\n       - `document.updated` / `company.updated`: replace it. `changedFields` says what changed and `previous` holds the old values. When a file changed (`originalFileUrl`, `markdownFileUrl`, `layoutJsonFileUrl`) or the document's `id` changed (a new version of its file), fetch it again with `GET /documents/{id}`.\n       - `document.deleted` / `company.deleted`: remove it, if you have it.\n\n    A document is in the feed when `/documents/list` lists it, so a document that gains a category or a listable file appears as `document.created`. A document dated in the future is announced when it is added, although the list only shows it from its date. Changes are published about a minute after they are made.","operationId":"list_changes_api_v2_changes_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"after","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Return changes after this `sequence`: the last one you processed, or `nextCursor` / `latestCursor` from a previous response","examples":[1310],"default":0,"title":"After"},"description":"Return changes after this `sequence`: the last one you processed, or `nextCursor` / `latestCursor` from a previous response"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Maximum number of changes to return","examples":[100],"default":100,"title":"Limit"},"description":"Maximum number of changes to return"},{"name":"types","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated change types to return, e.g. `document.created,document.updated`. Default: all.","examples":["document.created,document.updated"],"title":"Types"},"description":"Comma-separated change types to return, e.g. `document.created,document.updated`. Default: all."},{"name":"companyIds","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated company IDs: only changes to these companies and their documents. A document moved to another company comes through for both, as `document.updated` with `companyId` in `changedFields`.","examples":["77848abe-a215-41b7-8950-86e89ea1fadc"],"title":"Companyids"},"description":"Comma-separated company IDs: only changes to these companies and their documents. A document moved to another company comes through for both, as `document.updated` with `companyId` in `changedFields`."},{"name":"documentCategories","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated document category codes: only document changes in these categories (before or after the change). Company changes are not affected; use `types` to leave them out.","examples":["earnings-release,earnings-call-transcript"],"title":"Documentcategories"},"description":"Comma-separated document category codes: only document changes in these categories (before or after the change). Company changes are not affected; use `types` to leave them out."}],"responses":{"200":{"description":"A page of changes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangesResponse"},"example":{"changes":[{"sequence":1312,"id":"6f1d9c1e-2b7a-4d0e-9d5f-0c9a7e2b41a3","type":"document.updated","changedAt":"2026-11-04T18:02:11.514Z","changedFields":["fiscalQuarter","markdownFileUrl"],"previous":{},"document":{"id":"97ac0c55-7349-46ec-8670-92f8524f5294","documentCategory":"interim-financial-report","title":"Third Quarter Report","description":"Santos Limited third quarter report for the period ending 30 September 2026, summarising record quarterly production and free cash flow, operational performance across assets (including Barossa, Pikka and PNG LNG), sales and pricing, updated 2026 guidance and project developments.","date":"2026-10-22","fiscalQuarter":3,"fiscalYear":2026,"fiscalPeriod":"quarter","language":"en","companyId":"77848abe-a215-41b7-8950-86e89ea1fadc","companyName":"Santos Ltd.","companyTickers":["STO.AX"],"metadata":{}}},{"sequence":1315,"id":"0b8e4f52-7c33-4a61-a9d2-5e1f0c6d7b88","type":"company.updated","changedAt":"2026-11-04T18:03:40.027Z","changedFields":["permId"],"previous":{},"company":{"id":"77848abe-a215-41b7-8950-86e89ea1fadc","name":"Santos Ltd.","tickers":["STO.AX"],"countries":["AU"],"filesWithSec":false,"permId":"4295857141","listings":[{"ticker":"STO.AX","exchangeMic":"XASX","isin":"AU000000STO6"}]}}],"nextCursor":1315,"hasMore":false,"latestCursor":1315}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Invalid request parameters","content":{"application/json":{"examples":{"unknown_type":{"summary":"Unknown change type(s): document.moved. Valid types: document.created, document.updated, document.deleted, company.created, company.updated, company.deleted","value":{"detail":"Unknown change type(s): document.moved. Valid types: document.created, document.updated, document.deleted, company.created, company.updated, company.deleted"}},"invalid_company_id":{"summary":"Invalid companyIds: each value must be a UUID","value":{"detail":"Invalid companyIds: each value must be a UUID"}},"invalid_category":{"summary":"Invalid document categories: quarterly-letter","value":{"detail":"Invalid document categories: quarterly-letter"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"less_than_equal","loc":["query","limit"],"msg":"Input should be less than or equal to 1000","input":"5000","ctx":{"le":1000}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}}}},"/api/v2/changes/snapshot":{"get":{"tags":["Changes"],"summary":"Snapshot for the changes feed","description":"Every document or company the changes feed covers, as it is now: the starting copy to keep up to date with `GET /changes`.\n\n    Page through it with `pageToken` (each response's `nextPageToken`, until it is null), then follow the feed from `cursor`. Load companies first, then documents, and follow the feed from the `cursor` of the first page you loaded. Changes made while you load come through the feed again; apply them as upserts and deletes.\n\n    Unlike `/documents/list`, paging can't skip anything when documents are added or removed meanwhile, and documents dated in the future are included, as the feed includes them. Documents come without file links; get those from `GET /documents/{id}`.","operationId":"changes_snapshot_api_v2_changes_snapshot_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"type","in":"query","required":true,"schema":{"enum":["document","company"],"type":"string","description":"`document` or `company`","examples":["document"],"title":"Type"},"description":"`document` or `company`"},{"name":"pageToken","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`nextPageToken` from the previous page; omit for the first page","title":"Pagetoken"},"description":"`nextPageToken` from the previous page; omit for the first page"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Maximum number of items to return","examples":[100],"default":100,"title":"Limit"},"description":"Maximum number of items to return"},{"name":"companyIds","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated company IDs: only these companies, or only their documents","examples":["77848abe-a215-41b7-8950-86e89ea1fadc"],"title":"Companyids"},"description":"Comma-separated company IDs: only these companies, or only their documents"}],"responses":{"200":{"description":"A page of documents","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangesSnapshotResponse"},"example":{"items":[{"id":"97ac0c55-7349-46ec-8670-92f8524f5294","documentCategory":"interim-financial-report","title":"Third Quarter Report","description":"Santos Limited third quarter report for the period ending 30 September 2026, summarising record quarterly production and free cash flow, operational performance across assets (including Barossa, Pikka and PNG LNG), sales and pricing, updated 2026 guidance and project developments.","date":"2026-10-22","fiscalQuarter":3,"fiscalYear":2026,"fiscalPeriod":"quarter","language":"en","companyId":"77848abe-a215-41b7-8950-86e89ea1fadc","companyName":"Santos Ltd.","companyTickers":["STO.AX"],"metadata":{}}],"nextPageToken":"MTMxNS4wMDBhNmU1Yy0xYjJkLTRlNGYtOGE5Yy0zZDJlMWYwYTliN2M","cursor":1315}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Invalid request parameters","content":{"application/json":{"examples":{"invalid_page_token":{"summary":"Invalid pageToken","value":{"detail":"Invalid pageToken"}},"invalid_company_id":{"summary":"Invalid companyIds: each value must be a UUID","value":{"detail":"Invalid companyIds: each value must be a UUID"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"less_than_equal","loc":["query","limit"],"msg":"Input should be less than or equal to 1000","input":"5000","ctx":{"le":1000}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}}}},"/api/v2/datasets":{"get":{"tags":["Datasets"],"summary":"List datasets","description":"The datasets Captide builds from the documents it collects, such as institutional holdings from Form 13F filings: what each covers, how fresh it is, its licence, and the endpoints that serve it.\n\n    Every data point in a dataset links to the document it was read from (`sources[].documentId`), so you can fetch it with `GET /documents/{id}` and show the exact page.","operationId":"list_datasets_api_v2_datasets_get","responses":{"200":{"description":"The datasets","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DatasetResponse"},"type":"array","title":"Response List Datasets Api V2 Datasets Get"},"example":[{"key":"ownership","title":"US institutional holdings (SEC Form 13F)","description":"Quarter-end holdings that institutional investment managers report on Form 13F: shares, principal amounts and options in US-listed 13(f) securities, their market value and voting authority, per manager, security and filing, from filings dated 2020 onward. …","endpoints":["GET /api/v2/datasets/ownership/holdings"],"completeFrom":"2020-01-01T05:00:00Z","freshness":"New 13F filings are extracted every 15 minutes once ingested from EDGAR and appear within 15 minutes of extraction; history comes from the SEC's quarterly Form 13F data sets.","license":"Form 13F filings are US government records in the public domain. Cite the filing.","docsUrl":"https://docs.captide.ai/datasets/ownership"}]}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}}}}}},"security":[{"APIKeyHeader":[]}]}},"/api/v2/datasets/{key}":{"get":{"tags":["Datasets"],"summary":"Get dataset","description":"One dataset's coverage, freshness, licence and endpoints, by its key (`ownership`).","operationId":"get_dataset_api_v2_datasets__key__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","description":"Dataset key","examples":["ownership"],"title":"Key"},"description":"Dataset key"}],"responses":{"200":{"description":"The dataset","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetResponse"},"example":{"key":"ownership","title":"US institutional holdings (SEC Form 13F)","description":"Quarter-end holdings that institutional investment managers report on Form 13F: shares, principal amounts and options in US-listed 13(f) securities, their market value and voting authority, per manager, security and filing, from filings dated 2020 onward. …","endpoints":["GET /api/v2/datasets/ownership/holdings"],"completeFrom":"2020-01-01T05:00:00Z","freshness":"New 13F filings are extracted every 15 minutes once ingested from EDGAR and appear within 15 minutes of extraction; history comes from the SEC's quarterly Form 13F data sets.","license":"Form 13F filings are US government records in the public domain. Cite the filing.","docsUrl":"https://docs.captide.ai/datasets/ownership"}}}},"404":{"description":"Resource not found","content":{"application/json":{"examples":{"not_found":{"summary":"Dataset not found","value":{"detail":"Dataset not found"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/datasets/ownership/holdings":{"get":{"tags":["Datasets"],"summary":"List 13F holdings","description":"Positions that US institutional investment managers report on SEC Form 13F at a quarter end: who holds a company's securities, or what a manager holds. Each position is a manager's shares (or principal amount) and market value in one security, summed over its 13F lines, with the filings it was read from in `sources`.\n\n    Filter by the security (`companyIds`, `companyTickers` or `cusips`), by the manager (`holderCompanyIds` or `holderCiks`), or both. Without `periodEnd`, positions are for the latest quarter end whose 13F filing deadline (45 days) has passed. Positions are current values; with `asOf`, they are what had been published by that time (a filing counts from the end of its filing date in New York). Results are largest market value first; page through them with `pageToken`. If the holdings change while you page (a new or corrected filing is published), the next page returns `409`: start again without `pageToken`, so you never mix two versions of the data.\n\n    Option positions (puts and calls) are left out unless `include=options`; their underlying shares never add to `shares`. 13F reports long positions only, with no shares outstanding, so positions carry no percentage of a company.","operationId":"list_ownership_holdings_api_v2_datasets_ownership_holdings_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"companyIds","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated Captide company IDs of the issuers held: who holds these companies","examples":["91f6c6da-478f-4161-b451-aa5177cc7fb9"],"title":"Companyids"},"description":"Comma-separated Captide company IDs of the issuers held: who holds these companies"},{"name":"companyTickers","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated tickers of the issuers held, as in `/companies/list`","examples":["AAPL"],"title":"Companytickers"},"description":"Comma-separated tickers of the issuers held, as in `/companies/list`"},{"name":"cusips","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated CUSIPs of the securities held","examples":["037833100"],"title":"Cusips"},"description":"Comma-separated CUSIPs of the securities held"},{"name":"holderCompanyIds","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated Captide company IDs of the managers: what these managers hold","examples":["58703e09-9c45-4fde-92a1-ab22a06f28d7"],"title":"Holdercompanyids"},"description":"Comma-separated Captide company IDs of the managers: what these managers hold"},{"name":"holderCiks","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated SEC CIKs of the managers (leading zeros optional)","examples":["1067983"],"title":"Holderciks"},"description":"Comma-separated SEC CIKs of the managers (leading zeros optional)"},{"name":"periodEnd","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Quarter end (e.g. `2026-06-30`). Default: the latest quarter end whose filing deadline has passed","examples":["2026-06-30"],"title":"Periodend"},"description":"Quarter end (e.g. `2026-06-30`). Default: the latest quarter end whose filing deadline has passed"},{"name":"asOf","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Point in time (ISO 8601): positions as published by then. Default: current","examples":["2026-08-31T00:00:00Z"],"title":"Asof"},"description":"Point in time (ISO 8601): positions as published by then. Default: current"},{"name":"include","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`options` to add put and call positions","examples":["options"],"title":"Include"},"description":"`options` to add put and call positions"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Positions per page (up to 100)","examples":[50],"default":50,"title":"Limit"},"description":"Positions per page (up to 100)"},{"name":"pageToken","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`nextPageToken` from the previous page; omit for the first page","title":"Pagetoken"},"description":"`nextPageToken` from the previous page; omit for the first page"}],"responses":{"200":{"description":"Positions, largest market value first","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnershipHoldingsResponse"},"example":{"periodEnd":"2026-06-30","items":[{"holder":{"companyId":"58703e09-9c45-4fde-92a1-ab22a06f28d7","name":"Berkshire Hathaway Inc.","cik":"1067983"},"security":{"cusip":"037833100","issuerName":"APPLE INC","titleOfClass":"COM","companyId":"91f6c6da-478f-4161-b451-aa5177cc7fb9","ticker":"AAPL"},"periodEnd":"2026-06-30","shares":227917808,"marketValue":65950296923,"votingAuthority":{"sole":227917808,"shared":0,"none":0},"publishedAt":"2026-08-15T04:00:00Z","sources":[{"documentId":"31932647-dea0-4c89-8fc1-3c3c5aec89d2","accessionNumber":"0001193125-26-352200","lineNumber":15,"pageNumber":3,"excerpt":"037833100 200,237,120 692,000 SH DFND 4 692,000 0 0"},{"documentId":"31932647-dea0-4c89-8fc1-3c3c5aec89d2","accessionNumber":"0001193125-26-352200","lineNumber":16,"pageNumber":3,"excerpt":"037833100 1,111,142,400 3,840,000 SH DFND 1,2,4,11 3,840,000 0 0"},{"documentId":"31932647-dea0-4c89-8fc1-3c3c5aec89d2","accessionNumber":"0001193125-26-352200","lineNumber":17,"pageNumber":3,"excerpt":"037833100 9,838,240 34,000 SH DFND 2,4,11 34,000 0 0"},{"documentId":"31932647-dea0-4c89-8fc1-3c3c5aec89d2","accessionNumber":"0001193125-26-352200","lineNumber":18,"pageNumber":3,"excerpt":"037833100 10,047,736,640 34,724,000 SH DFND 4,5 34,724,000 0 0"},{"documentId":"31932647-dea0-4c89-8fc1-3c3c5aec89d2","accessionNumber":"0001193125-26-352200","lineNumber":19,"pageNumber":3,"excerpt":"037833100 788,216,640 2,724,000 SH DFND 4,6 2,724,000 0 0"},{"documentId":"31932647-dea0-4c89-8fc1-3c3c5aec89d2","accessionNumber":"0001193125-26-352200","lineNumber":20,"pageNumber":3,"excerpt":"037833100 4,494,339,520 15,532,000 SH DFND 4,7 15,532,000 0 0"},{"documentId":"31932647-dea0-4c89-8fc1-3c3c5aec89d2","accessionNumber":"0001193125-26-352200","lineNumber":21,"pageNumber":3,"excerpt":"037833100 17,808,079,008 61,542,988 SH DFND 4,8,11 61,542,988 0 0"},{"documentId":"31932647-dea0-4c89-8fc1-3c3c5aec89d2","accessionNumber":"0001193125-26-352200","lineNumber":22,"pageNumber":3,"excerpt":"037833100 2,084,549,440 7,204,000 SH DFND 4,5,9 7,204,000 0 0"},{"documentId":"31932647-dea0-4c89-8fc1-3c3c5aec89d2","accessionNumber":"0001193125-26-352200","lineNumber":23,"pageNumber":3,"excerpt":"037833100 4,187,617,920 14,472,000 SH DFND 4,10 14,472,000 0 0"},{"documentId":"31932647-dea0-4c89-8fc1-3c3c5aec89d2","accessionNumber":"0001193125-26-352200","lineNumber":24,"pageNumber":3,"excerpt":"037833100 23,341,172,315 80,664,820 SH DFND 4,11 80,664,820 0 0"},{"documentId":"31932647-dea0-4c89-8fc1-3c3c5aec89d2","accessionNumber":"0001193125-26-352200","lineNumber":25,"pageNumber":3,"excerpt":"037833100 784,744,320 2,712,000 SH DFND 4,12 2,712,000 0 0"},{"documentId":"31932647-dea0-4c89-8fc1-3c3c5aec89d2","accessionNumber":"0001193125-26-352200","lineNumber":26,"pageNumber":3,"excerpt":"037833100 1,092,623,360 3,776,000 SH DFND 4,14 3,776,000 0 0"}]}],"nextPageToken":"WyIyMDI2LTA2LTMwIixudWxsLDE4NDEsIjY1OTUwMjk2OTIzLjAwIiwiMTA2Nzk4MyIsIjAzNzgzMzEwMCIsIiJd"}}}},"400":{"description":"Invalid request parameters","content":{"application/json":{"examples":{"missing_filter":{"summary":"Filter by the security (companyIds, companyTickers or cusips) or the manager (holderCompanyIds or holderCiks)","value":{"detail":"Filter by the security (companyIds, companyTickers or cusips) or the manager (holderCompanyIds or holderCiks)"}},"invalid_period":{"summary":"periodEnd must be a quarter end (e.g. 2026-06-30)","value":{"detail":"periodEnd must be a quarter end (e.g. 2026-06-30)"}},"invalid_company_id":{"summary":"Invalid companyIds: each value must be a UUID","value":{"detail":"Invalid companyIds: each value must be a UUID"}},"invalid_page_token":{"summary":"Invalid pageToken","value":{"detail":"Invalid pageToken"}},"page_token_mismatch":{"summary":"pageToken belongs to a read with another periodEnd or asOf","value":{"detail":"pageToken belongs to a read with another periodEnd or asOf"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The holdings changed since the first page","content":{"application/json":{"examples":{"stale_page_token":{"summary":"The holdings changed while you were paging (a new or corrected filing was published). Start again without pageToken.","value":{"detail":"The holdings changed while you were paging (a new or corrected filing was published). Start again without pageToken."}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The holdings were updated twice while this page was read","content":{"application/json":{"examples":{"updating":{"summary":"The holdings are being updated; try again in a few seconds","value":{"detail":"The holdings are being updated; try again in a few seconds"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"less_than_equal","loc":["query","limit"],"msg":"Input should be less than or equal to 1000","input":"5000","ctx":{"le":1000}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}}}},"/api/v3/companies/list":{"get":{"tags":["Companies"],"summary":"List companies","description":"Find companies in Captide by ticker, ISIN, CUSIP, country of domicile, SEC filing status, CIK, PermID or Captide company ID.\n\n    Use it to get the Captide `id` of the companies you need, for example to filter `/documents/list` with `companyIds`. Results are sorted by name; page through them with `limit` and `offset`.","operationId":"list_companies_api_v3_companies_list_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"tickers","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of company tickers (supports both base tickers like 'ITX' and suffixed tickers like 'ITX.MC')","examples":["STO.AX,ASML.AS"],"title":"Tickers"},"description":"Comma-separated list of company tickers (supports both base tickers like 'ITX' and suffixed tickers like 'ITX.MC')"},{"name":"countries","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of companies' country of domicile (ISO 3166-1 alpha-2)","examples":["AU,NL"],"title":"Countries"},"description":"Comma-separated list of companies' country of domicile (ISO 3166-1 alpha-2)"},{"name":"filesWithSec","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether the companies file reports with the SEC","examples":[false],"title":"Fileswithsec"},"description":"Whether the companies file reports with the SEC"},{"name":"ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of unique company IDs","examples":["77848abe-a215-41b7-8950-86e89ea1fadc,91f6c6da-478f-4161-b451-aa5177cc7fb9"],"title":"Ids"},"description":"Comma-separated list of unique company IDs"},{"name":"ciks","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of Central Index Keys (CIK) assigned by the SEC","examples":["0000320193,0000789019"],"title":"Ciks"},"description":"Comma-separated list of Central Index Keys (CIK) assigned by the SEC"},{"name":"permIds","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of PermIDs (Permanent Identifiers) assigned by Refinitiv","examples":["4295907168,4295907169"],"title":"Permids"},"description":"Comma-separated list of PermIDs (Permanent Identifiers) assigned by Refinitiv"},{"name":"isins","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of ISINs of the companies' listed securities","examples":["US0378331005,AU000000STO6"],"title":"Isins"},"description":"Comma-separated list of ISINs of the companies' listed securities"},{"name":"cusips","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of CUSIPs: matches US and CA listings whose ISIN carries the CUSIP","examples":["037833100"],"title":"Cusips"},"description":"Comma-separated list of CUSIPs: matches US and CA listings whose ISIN carries the CUSIP"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":1000,"minimum":1},{"type":"null"}],"description":"Maximum number of records to return","examples":[100],"default":100,"title":"Limit"},"description":"Maximum number of records to return"},{"name":"offset","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Number of records to skip (for pagination)","examples":[0],"default":0,"title":"Offset"},"description":"Number of records to skip (for pagination)"}],"responses":{"200":{"description":"Companies matching the filters, sorted by name","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CompanyResponse"},"title":"Response List Companies Api V3 Companies List Get"},"example":[{"id":"77848abe-a215-41b7-8950-86e89ea1fadc","name":"Santos Ltd.","tickers":["STO.AX"],"countries":["AU"],"filesWithSec":false,"permId":"4295857141","listings":[{"ticker":"STO.AX","exchangeMic":"XASX","isin":"AU000000STO6"}]}]}}},"400":{"description":"Invalid request parameters","content":{"application/json":{"examples":{"invalid_company_id":{"summary":"Invalid company ID format: badly formed hexadecimal UUID string","value":{"detail":"Invalid company ID format: badly formed hexadecimal UUID string"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"less_than_equal","loc":["query","limit"],"msg":"Input should be less than or equal to 1000","input":"5000","ctx":{"le":1000}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}}}},"/api/v3/companies/search":{"get":{"tags":["Companies"],"summary":"Search companies","description":"Look companies up by name or ticker while the user types, for autocomplete or when you only know part of a name.\n\n    Matches company names and tickers that contain the query, with or without an exchange suffix (`AAPL`, `STO.AX`). Results come best match first: names that start with the query, then larger companies.","operationId":"search_companies_api_v3_companies_search_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Search query: company name or ticker (e.g. 'Apple', 'AAPL', 'STO.AX')","title":"Query"},"description":"Search query: company name or ticker (e.g. 'Apple', 'AAPL', 'STO.AX')"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":50,"minimum":1},{"type":"null"}],"description":"Maximum number of results (type-ahead)","default":20,"title":"Limit"},"description":"Maximum number of results (type-ahead)"}],"responses":{"200":{"description":"Companies matching the query, best match first","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CompanyResponse"},"title":"Response Search Companies Api V3 Companies Search Get"},"example":[{"id":"77848abe-a215-41b7-8950-86e89ea1fadc","name":"Santos Ltd.","tickers":["STO.AX"],"countries":["AU"],"filesWithSec":false,"permId":"4295857141","listings":[{"ticker":"STO.AX","exchangeMic":"XASX","isin":"AU000000STO6"}]}]}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"missing","loc":["query","query"],"msg":"Field required"}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}}}},"/api/v3/companies/{id}":{"get":{"tags":["Companies"],"summary":"Get company by ID","description":"Get one company by its Captide `id`: its name, tickers with exchange suffixes, countries of domicile, SEC filing status, CIK and PermID.","operationId":"get_company_api_v3_companies__id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"The company","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyResponse"},"example":{"id":"77848abe-a215-41b7-8950-86e89ea1fadc","name":"Santos Ltd.","tickers":["STO.AX"],"countries":["AU"],"filesWithSec":false,"permId":"4295857141","listings":[{"ticker":"STO.AX","exchangeMic":"XASX","isin":"AU000000STO6"}]}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"examples":{"not_found":{"summary":"Company with ID '00000000-0000-0000-0000-000000000000' not found","value":{"detail":"Company with ID '00000000-0000-0000-0000-000000000000' not found"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"The ID is not a valid UUID","content":{"application/json":{"examples":{"invalid_uuid":{"summary":"Invalid UUID format: 'abc'","value":{"detail":"Invalid UUID format: 'abc'"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v3/documents/list":{"get":{"tags":["Documents"],"summary":"List documents","description":"Find documents (filings, reports, presentations, transcripts and other disclosures) by company, category, SEC form type, fiscal period, date range, or text in the title and description.\n\n    Returns each document's metadata and `id`; use `GET /documents/{id}` to get links to its files. Results are newest first by default; page through them with `limit` and `offset`.","operationId":"list_documents_api_v3_documents_list_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"documentCategories","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of document categories. For detailed descriptions, please refer to [this page](/coverage).\n\nValid values: `annual-financial-report`, `interim-financial-report`, `financial-attachments`, `annual-activity-report`, `interim-activity-report`, `compliance-report`, `historical-performance-summary`, `earnings-release`, `current-report`, `letter-to-shareholders`, `earnings-presentation`, `earnings-call-transcript`, `investor-event-presentation`, `investor-event-transcript`, `conference-transcript`, `shareholder-meeting-circular`, `shareholder-meeting-resolutions`, `shareholder-meeting-transcript`, `governance-report`, `compensation-report`, `governance-policies`, `esg-report`, `esg-assessment`, `insider-share-transactions`, `shareholder-dealing-disclosure`, `beneficial-ownership-disclosure`, `institutional-holdings-disclosure`, `share-issuance-notice`, `share-buyback-notice`, `share-capital-disclosure`, `initial-offering-prospectus`, `follow-on-offering-prospectus`, `merger-offering-prospectus`, `employee-share-plan-prospectus`, `tender-offer-disclosure`, `going-private-statement`, `termination-of-registration`, `other`.\n\nLegacy codes such as `annual-report` or `interim-report` are also accepted.","examples":["annual-financial-report,interim-financial-report,earnings-release"],"title":"Documentcategories"},"description":"Comma-separated list of document categories. For detailed descriptions, please refer to [this page](/coverage).\n\nValid values: `annual-financial-report`, `interim-financial-report`, `financial-attachments`, `annual-activity-report`, `interim-activity-report`, `compliance-report`, `historical-performance-summary`, `earnings-release`, `current-report`, `letter-to-shareholders`, `earnings-presentation`, `earnings-call-transcript`, `investor-event-presentation`, `investor-event-transcript`, `conference-transcript`, `shareholder-meeting-circular`, `shareholder-meeting-resolutions`, `shareholder-meeting-transcript`, `governance-report`, `compensation-report`, `governance-policies`, `esg-report`, `esg-assessment`, `insider-share-transactions`, `shareholder-dealing-disclosure`, `beneficial-ownership-disclosure`, `institutional-holdings-disclosure`, `share-issuance-notice`, `share-buyback-notice`, `share-capital-disclosure`, `initial-offering-prospectus`, `follow-on-offering-prospectus`, `merger-offering-prospectus`, `employee-share-plan-prospectus`, `tender-offer-disclosure`, `going-private-statement`, `termination-of-registration`, `other`.\n\nLegacy codes such as `annual-report` or `interim-report` are also accepted."},{"name":"secFormTypes","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of SEC form types, as EDGAR names them (exact match; amendments end in `/A`). Only SEC filings have one; `filesWithSec` on `/companies/list` says whether a company files with the SEC, and each document's `secFormType` shows the name to use.\n\nCommon types: annual and interim reports `10-K`, `10-Q`, `20-F`, `40-F`; current reports `8-K`, `6-K`; proxies `DEF 14A`, `DEFA14A`; registrations and prospectuses `S-1`, `S-3`, `S-4`, `S-8`, `F-1`, `F-3`, `F-4`, `424B4`; institutional holdings `13F-HR`, `13F-HR/A`, `13F-NT`; beneficial ownership `SC 13D`, `SC 13G` (filed as `SCHEDULE 13D` and `SCHEDULE 13G` since December 2024); deregistrations `15-12B`, `15-12G`, `15-15D`; insider transactions `3`, `4`","examples":["10-K,10-Q"],"title":"Secformtypes"},"description":"Comma-separated list of SEC form types, as EDGAR names them (exact match; amendments end in `/A`). Only SEC filings have one; `filesWithSec` on `/companies/list` says whether a company files with the SEC, and each document's `secFormType` shows the name to use.\n\nCommon types: annual and interim reports `10-K`, `10-Q`, `20-F`, `40-F`; current reports `8-K`, `6-K`; proxies `DEF 14A`, `DEFA14A`; registrations and prospectuses `S-1`, `S-3`, `S-4`, `S-8`, `F-1`, `F-3`, `F-4`, `424B4`; institutional holdings `13F-HR`, `13F-HR/A`, `13F-NT`; beneficial ownership `SC 13D`, `SC 13G` (filed as `SCHEDULE 13D` and `SCHEDULE 13G` since December 2024); deregistrations `15-12B`, `15-12G`, `15-15D`; insider transactions `3`, `4`"},{"name":"companyTickers","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of tickers of the companies filing the documents (supports both base tickers like 'ITX' and suffixed tickers like 'ITX.MC')","examples":["STO.AX,ASML.AS"],"title":"Companytickers"},"description":"Comma-separated list of tickers of the companies filing the documents (supports both base tickers like 'ITX' and suffixed tickers like 'ITX.MC')"},{"name":"companyIds","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of unique IDs of the companies filing the documents. Use /companies/list to find the company ID","examples":["77848abe-a215-41b7-8950-86e89ea1fadc,91f6c6da-478f-4161-b451-aa5177cc7fb9"],"title":"Companyids"},"description":"Comma-separated list of unique IDs of the companies filing the documents. Use /companies/list to find the company ID"},{"name":"fiscalQuarter","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":4,"minimum":1},{"type":"null"}],"description":"Fiscal quarter to filter documents (1-4)","examples":[1],"title":"Fiscalquarter"},"description":"Fiscal quarter to filter documents (1-4)"},{"name":"fiscalYear","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Fiscal year to filter documents (e.g., 2024)","examples":[2024],"title":"Fiscalyear"},"description":"Fiscal year to filter documents (e.g., 2024)"},{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date for filtering documents (ISO 8601 format)","examples":["2025-01-01"],"title":"Startdate"},"description":"Start date for filtering documents (ISO 8601 format)"},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date for filtering documents (ISO 8601 format)","examples":["2025-12-31"],"title":"Enddate"},"description":"End date for filtering documents (ISO 8601 format)"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":1000,"minimum":1},{"type":"null"}],"description":"Maximum number of records to return","examples":[100],"default":100,"title":"Limit"},"description":"Maximum number of records to return"},{"name":"offset","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Number of records to skip (for pagination)","examples":[0],"default":0,"title":"Offset"},"description":"Number of records to skip (for pagination)"},{"name":"sortBy","in":"query","required":false,"schema":{"enum":["date","name"],"type":"string","description":"Field to sort by: `date` (effective date, default) or `name` (document title)","default":"date","title":"Sortby"},"description":"Field to sort by: `date` (effective date, default) or `name` (document title)"},{"name":"sortOrder","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","description":"Sort direction: `desc` (default) or `asc`","default":"desc","title":"Sortorder"},"description":"Sort direction: `desc` (default) or `asc`"},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"Free-form text search across document title and description (full-text search)","examples":["annual earnings report"],"title":"Query"},"description":"Free-form text search across document title and description (full-text search)"}],"responses":{"200":{"description":"Documents matching the filters, newest first by default","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DocumentListResponse"},"title":"Response List Documents Api V3 Documents List Get"},"example":[{"id":"97ac0c55-7349-46ec-8670-92f8524f5294","documentCategory":"interim-financial-report","title":"Third Quarter Report","description":"Santos Limited third quarter report for the period ending 30 September 2026, summarising record quarterly production and free cash flow, operational performance across assets (including Barossa, Pikka and PNG LNG), sales and pricing, updated 2026 guidance and project developments.","date":"2026-10-22","fiscalQuarter":3,"fiscalYear":2026,"fiscalPeriod":"quarter","language":"en","companyId":"77848abe-a215-41b7-8950-86e89ea1fadc","companyName":"Santos Ltd.","companyTickers":["STO.AX"],"metadata":{}}]}}},"400":{"description":"Invalid request parameters","content":{"application/json":{"examples":{"invalid_category":{"summary":"Invalid document categories: annual-reports","value":{"detail":"Invalid document categories: annual-reports"}},"invalid_company_id":{"summary":"Invalid company ID format: badly formed hexadecimal UUID string","value":{"detail":"Invalid company ID format: badly formed hexadecimal UUID string"}},"invalid_date":{"summary":"Invalid startDate format. Use ISO 8601 format (e.g., 2024-12-12T15:00:00Z)","value":{"detail":"Invalid startDate format. Use ISO 8601 format (e.g., 2024-12-12T15:00:00Z)"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"less_than_equal","loc":["query","limit"],"msg":"Input should be less than or equal to 1000","input":"5000","ctx":{"le":1000}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}}}},"/api/v3/documents/{id}":{"get":{"tags":["Documents"],"summary":"Get document by ID","description":"Get a document's metadata and temporary links to its files: the original (`originalFileUrl`), its LLM-ready Markdown version (`markdownFileUrl`) and, for documents processed by Captide's OCR pipeline, its layout as JSON (`layoutJsonFileUrl`), with each page's text, tables and figures and where they sit on the page.\n\n    Use the `id` returned by `/documents/list`, chunks, agent sources or webhooks. The links expire one hour after the request; request the document again for fresh ones instead of storing them.","operationId":"get_document_by_id_api_v3_documents__id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Document ID, as returned by `/documents/list`, chunks, agent sources and webhooks","examples":["a586df65-76d8-4b04-864c-ceed76592f4d"],"title":"Id"},"description":"Document ID, as returned by `/documents/list`, chunks, agent sources and webhooks"}],"responses":{"200":{"description":"The document, with temporary links to its files","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponseV2"},"example":{"id":"97ac0c55-7349-46ec-8670-92f8524f5294","documentCategory":"interim-financial-report","title":"Third Quarter Report","description":"Santos Limited third quarter report for the period ending 30 September 2026, summarising record quarterly production and free cash flow, operational performance across assets (including Barossa, Pikka and PNG LNG), sales and pricing, updated 2026 guidance and project developments.","date":"2026-10-22","fiscalQuarter":3,"fiscalYear":2026,"fiscalPeriod":"quarter","language":"en","companyId":"77848abe-a215-41b7-8950-86e89ea1fadc","companyName":"Santos Ltd.","companyTickers":["STO.AX"],"originalFileUrl":"https://files.captide.co/original-docs/77848abe-a215-41b7-8950-86e89ea1fadc/97ac0c55-7349-46ec-8670-92f8524f5294.pdf?se=2026-11-03T18%3A15%3A55Z&sp=r&sv=2025-07-05&sr=b&sig=…","markdownFileUrl":"https://files.captide.co/markdown-docs/77848abe-a215-41b7-8950-86e89ea1fadc/97ac0c55-7349-46ec-8670-92f8524f5294.md?se=2026-11-03T18%3A15%3A55Z&sp=r&sv=2025-07-05&sr=b&sig=…","layoutJsonFileUrl":"https://files.captide.co/original-docs/77848abe-a215-41b7-8950-86e89ea1fadc/97ac0c55-7349-46ec-8670-92f8524f5294.json?se=2026-11-03T18%3A15%3A55Z&sp=r&sv=2025-07-05&sr=b&sig=…","metadata":{}}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"uuid_parsing","loc":["path","id"],"msg":"Input should be a valid UUID, invalid length: expected length 32 for simple format, found 3","input":"abc","ctx":{"error":"invalid length: expected length 32 for simple format, found 3"}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"examples":{"not_found":{"summary":"Document not found","value":{"detail":"Document not found"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v3/webhooks":{"post":{"tags":["Webhooks"],"summary":"Create webhook","description":"Register a URL to receive new documents as Captide adds them.\n\n    For each new document published in the last 7 days, Captide sends a `POST` to your URL with the document in the same format as `GET /api/v2/documents/{id}`. Set `documentCategories` to receive only some categories. See the Webhooks guide for headers, retries and how to respond.","operationId":"create_webhook_api_v3_webhooks_post","security":[{"APIKeyHeader":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookCreate"}}}},"responses":{"201":{"description":"The new webhook","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookResponse"},"example":{"id":"3f2c8d1e-5b7a-4c9e-8f10-2a6b4d9e7c51","url":"https://example.com/captide/webhook","documentCategories":["earnings-release","earnings-call-transcript"],"enabled":true,"description":"Earnings watchlist","createdAt":"2026-11-03T17:40:12.481930+00:00"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"url_parsing","loc":["body","url"],"msg":"Input should be a valid URL, relative URL without a base","input":"not a url","ctx":{"error":"relative URL without a base"}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}}},"get":{"tags":["Webhooks"],"summary":"List webhooks","description":"List your organization's webhooks, oldest first. Pass `description` to find the webhooks with that exact description.","operationId":"list_webhooks_api_v3_webhooks_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"description","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by exact description match","title":"Description"},"description":"Filter by exact description match"}],"responses":{"200":{"description":"Your organization's webhooks, oldest first","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WebhookResponse"},"title":"Response List Webhooks Api V3 Webhooks Get"},"example":[{"id":"3f2c8d1e-5b7a-4c9e-8f10-2a6b4d9e7c51","url":"https://example.com/captide/webhook","documentCategories":["earnings-release","earnings-call-transcript"],"enabled":true,"description":"Earnings watchlist","createdAt":"2026-11-03T17:40:12.481930+00:00"}]}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/webhooks/{id}":{"get":{"tags":["Webhooks"],"summary":"Get webhook","description":"Get one of your organization's webhooks by its ID.","operationId":"get_webhook_api_v3_webhooks__id__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Webhook endpoint ID","title":"Id"},"description":"Webhook endpoint ID"}],"responses":{"200":{"description":"The webhook","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookResponse"},"example":{"id":"3f2c8d1e-5b7a-4c9e-8f10-2a6b4d9e7c51","url":"https://example.com/captide/webhook","documentCategories":["earnings-release","earnings-call-transcript"],"enabled":true,"description":"Earnings watchlist","createdAt":"2026-11-03T17:40:12.481930+00:00"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"uuid_parsing","loc":["path","id"],"msg":"Input should be a valid UUID, invalid length: expected length 32 for simple format, found 3","input":"abc","ctx":{"error":"invalid length: expected length 32 for simple format, found 3"}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"examples":{"not_found":{"summary":"Webhook not found","value":{"detail":"Webhook not found"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["Webhooks"],"summary":"Update webhook","description":"Change a webhook's URL, category filter or description, or pause it with `enabled: false`.\n\n    Only the fields you send change. Send `documentCategories: []` to receive every category again. Documents added while a webhook is paused aren't sent later.","operationId":"update_webhook_api_v3_webhooks__id__patch","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Webhook endpoint ID","title":"Id"},"description":"Webhook endpoint ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookUpdate"}}}},"responses":{"200":{"description":"The updated webhook","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookResponse"},"example":{"id":"3f2c8d1e-5b7a-4c9e-8f10-2a6b4d9e7c51","url":"https://example.com/captide/webhook","documentCategories":["earnings-release","earnings-call-transcript"],"enabled":true,"description":"Earnings watchlist","createdAt":"2026-11-03T17:40:12.481930+00:00"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"uuid_parsing","loc":["path","id"],"msg":"Input should be a valid UUID, invalid length: expected length 32 for simple format, found 3","input":"abc","ctx":{"error":"invalid length: expected length 32 for simple format, found 3"}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"examples":{"not_found":{"summary":"Webhook not found","value":{"detail":"Webhook not found"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["Webhooks"],"summary":"Delete webhook","description":"Delete one of your organization's webhooks. Captide stops sending documents to its URL.","operationId":"delete_webhook_api_v3_webhooks__id__delete","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"Webhook endpoint ID","title":"Id"},"description":"Webhook endpoint ID"}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"uuid_parsing","loc":["path","id"],"msg":"Input should be a valid UUID, invalid length: expected length 32 for simple format, found 3","input":"abc","ctx":{"error":"invalid length: expected length 32 for simple format, found 3"}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"404":{"description":"Resource not found","content":{"application/json":{"examples":{"not_found":{"summary":"Webhook not found","value":{"detail":"Webhook not found"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v3/changes":{"get":{"tags":["Changes"],"summary":"List changes","description":"Every change to the documents and companies the API shows, in order: new documents, documents whose metadata or files changed, documents removed from the API, and the same for companies. Use it to keep a copy of Captide's data up to date without re-reading the lists.\n\n    To start:\n    1. Load your starting copy from `GET /changes/snapshot`: companies, then documents. Keep the `cursor` of the first page you loaded.\n    2. From then on, call this endpoint with `after` set to that `cursor` (then to each response's `nextCursor`) every few minutes, and apply the changes in order. Changes made while you were loading the snapshot come through again, so apply them as upserts and deletes:\n       - `document.created` / `company.created`: add it, or replace it if you have it.\n       - `document.updated` / `company.updated`: replace it. `changedFields` says what changed and `previous` holds the old values. When a file changed (`originalFileUrl`, `markdownFileUrl`, `layoutJsonFileUrl`) or the document's `id` changed (a new version of its file), fetch it again with `GET /documents/{id}`.\n       - `document.deleted` / `company.deleted`: remove it, if you have it.\n\n    A document is in the feed when `/documents/list` lists it, so a document that gains a category or a listable file appears as `document.created`. A document dated in the future is announced when it is added, although the list only shows it from its date. Changes are published about a minute after they are made.","operationId":"list_changes_api_v3_changes_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"after","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Return changes after this `sequence`: the last one you processed, or `nextCursor` / `latestCursor` from a previous response","examples":[1310],"default":0,"title":"After"},"description":"Return changes after this `sequence`: the last one you processed, or `nextCursor` / `latestCursor` from a previous response"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Maximum number of changes to return","examples":[100],"default":100,"title":"Limit"},"description":"Maximum number of changes to return"},{"name":"types","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated change types to return, e.g. `document.created,document.updated`. Default: all.","examples":["document.created,document.updated"],"title":"Types"},"description":"Comma-separated change types to return, e.g. `document.created,document.updated`. Default: all."},{"name":"companyIds","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated company IDs: only changes to these companies and their documents. A document moved to another company comes through for both, as `document.updated` with `companyId` in `changedFields`.","examples":["77848abe-a215-41b7-8950-86e89ea1fadc"],"title":"Companyids"},"description":"Comma-separated company IDs: only changes to these companies and their documents. A document moved to another company comes through for both, as `document.updated` with `companyId` in `changedFields`."},{"name":"documentCategories","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated document category codes: only document changes in these categories (before or after the change). Company changes are not affected; use `types` to leave them out.","examples":["earnings-release,earnings-call-transcript"],"title":"Documentcategories"},"description":"Comma-separated document category codes: only document changes in these categories (before or after the change). Company changes are not affected; use `types` to leave them out."}],"responses":{"200":{"description":"A page of changes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangesResponse"},"example":{"changes":[{"sequence":1312,"id":"6f1d9c1e-2b7a-4d0e-9d5f-0c9a7e2b41a3","type":"document.updated","changedAt":"2026-11-04T18:02:11.514Z","changedFields":["fiscalQuarter","markdownFileUrl"],"previous":{},"document":{"id":"97ac0c55-7349-46ec-8670-92f8524f5294","documentCategory":"interim-financial-report","title":"Third Quarter Report","description":"Santos Limited third quarter report for the period ending 30 September 2026, summarising record quarterly production and free cash flow, operational performance across assets (including Barossa, Pikka and PNG LNG), sales and pricing, updated 2026 guidance and project developments.","date":"2026-10-22","fiscalQuarter":3,"fiscalYear":2026,"fiscalPeriod":"quarter","language":"en","companyId":"77848abe-a215-41b7-8950-86e89ea1fadc","companyName":"Santos Ltd.","companyTickers":["STO.AX"],"metadata":{}}},{"sequence":1315,"id":"0b8e4f52-7c33-4a61-a9d2-5e1f0c6d7b88","type":"company.updated","changedAt":"2026-11-04T18:03:40.027Z","changedFields":["permId"],"previous":{},"company":{"id":"77848abe-a215-41b7-8950-86e89ea1fadc","name":"Santos Ltd.","tickers":["STO.AX"],"countries":["AU"],"filesWithSec":false,"permId":"4295857141","listings":[{"ticker":"STO.AX","exchangeMic":"XASX","isin":"AU000000STO6"}]}}],"nextCursor":1315,"hasMore":false,"latestCursor":1315}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Invalid request parameters","content":{"application/json":{"examples":{"unknown_type":{"summary":"Unknown change type(s): document.moved. Valid types: document.created, document.updated, document.deleted, company.created, company.updated, company.deleted","value":{"detail":"Unknown change type(s): document.moved. Valid types: document.created, document.updated, document.deleted, company.created, company.updated, company.deleted"}},"invalid_company_id":{"summary":"Invalid companyIds: each value must be a UUID","value":{"detail":"Invalid companyIds: each value must be a UUID"}},"invalid_category":{"summary":"Invalid document categories: quarterly-letter","value":{"detail":"Invalid document categories: quarterly-letter"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"less_than_equal","loc":["query","limit"],"msg":"Input should be less than or equal to 1000","input":"5000","ctx":{"le":1000}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}}}},"/api/v3/changes/snapshot":{"get":{"tags":["Changes"],"summary":"Snapshot for the changes feed","description":"Every document or company the changes feed covers, as it is now: the starting copy to keep up to date with `GET /changes`.\n\n    Page through it with `pageToken` (each response's `nextPageToken`, until it is null), then follow the feed from `cursor`. Load companies first, then documents, and follow the feed from the `cursor` of the first page you loaded. Changes made while you load come through the feed again; apply them as upserts and deletes.\n\n    Unlike `/documents/list`, paging can't skip anything when documents are added or removed meanwhile, and documents dated in the future are included, as the feed includes them. Documents come without file links; get those from `GET /documents/{id}`.","operationId":"changes_snapshot_api_v3_changes_snapshot_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"type","in":"query","required":true,"schema":{"enum":["document","company"],"type":"string","description":"`document` or `company`","examples":["document"],"title":"Type"},"description":"`document` or `company`"},{"name":"pageToken","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`nextPageToken` from the previous page; omit for the first page","title":"Pagetoken"},"description":"`nextPageToken` from the previous page; omit for the first page"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Maximum number of items to return","examples":[100],"default":100,"title":"Limit"},"description":"Maximum number of items to return"},{"name":"companyIds","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated company IDs: only these companies, or only their documents","examples":["77848abe-a215-41b7-8950-86e89ea1fadc"],"title":"Companyids"},"description":"Comma-separated company IDs: only these companies, or only their documents"}],"responses":{"200":{"description":"A page of documents","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangesSnapshotResponse"},"example":{"items":[{"id":"97ac0c55-7349-46ec-8670-92f8524f5294","documentCategory":"interim-financial-report","title":"Third Quarter Report","description":"Santos Limited third quarter report for the period ending 30 September 2026, summarising record quarterly production and free cash flow, operational performance across assets (including Barossa, Pikka and PNG LNG), sales and pricing, updated 2026 guidance and project developments.","date":"2026-10-22","fiscalQuarter":3,"fiscalYear":2026,"fiscalPeriod":"quarter","language":"en","companyId":"77848abe-a215-41b7-8950-86e89ea1fadc","companyName":"Santos Ltd.","companyTickers":["STO.AX"],"metadata":{}}],"nextPageToken":"MTMxNS4wMDBhNmU1Yy0xYjJkLTRlNGYtOGE5Yy0zZDJlMWYwYTliN2M","cursor":1315}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Invalid request parameters","content":{"application/json":{"examples":{"invalid_page_token":{"summary":"Invalid pageToken","value":{"detail":"Invalid pageToken"}},"invalid_company_id":{"summary":"Invalid companyIds: each value must be a UUID","value":{"detail":"Invalid companyIds: each value must be a UUID"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"less_than_equal","loc":["query","limit"],"msg":"Input should be less than or equal to 1000","input":"5000","ctx":{"le":1000}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}}}},"/api/v3/datasets":{"get":{"tags":["Datasets"],"summary":"List datasets","description":"The datasets Captide builds from the documents it collects, such as institutional holdings from Form 13F filings: what each covers, how fresh it is, its licence, and the endpoints that serve it.\n\n    Every data point in a dataset links to the document it was read from (`sources[].documentId`), so you can fetch it with `GET /documents/{id}` and show the exact page.","operationId":"list_datasets_api_v3_datasets_get","responses":{"200":{"description":"The datasets","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DatasetResponse"},"type":"array","title":"Response List Datasets Api V3 Datasets Get"},"example":[{"key":"ownership","title":"US institutional holdings (SEC Form 13F)","description":"Quarter-end holdings that institutional investment managers report on Form 13F: shares, principal amounts and options in US-listed 13(f) securities, their market value and voting authority, per manager, security and filing, from filings dated 2020 onward. …","endpoints":["GET /api/v3/datasets/ownership/holdings"],"completeFrom":"2020-01-01T05:00:00Z","freshness":"New 13F filings are extracted every 15 minutes once ingested from EDGAR and appear within 15 minutes of extraction; history comes from the SEC's quarterly Form 13F data sets.","license":"Form 13F filings are US government records in the public domain. Cite the filing.","docsUrl":"https://docs.captide.ai/datasets/ownership"}]}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}}}}}},"security":[{"APIKeyHeader":[]}]}},"/api/v3/datasets/{key}":{"get":{"tags":["Datasets"],"summary":"Get dataset","description":"One dataset's coverage, freshness, licence and endpoints, by its key (`ownership`).","operationId":"get_dataset_api_v3_datasets__key__get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","description":"Dataset key","examples":["ownership"],"title":"Key"},"description":"Dataset key"}],"responses":{"200":{"description":"The dataset","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetResponse"},"example":{"key":"ownership","title":"US institutional holdings (SEC Form 13F)","description":"Quarter-end holdings that institutional investment managers report on Form 13F: shares, principal amounts and options in US-listed 13(f) securities, their market value and voting authority, per manager, security and filing, from filings dated 2020 onward. …","endpoints":["GET /api/v3/datasets/ownership/holdings"],"completeFrom":"2020-01-01T05:00:00Z","freshness":"New 13F filings are extracted every 15 minutes once ingested from EDGAR and appear within 15 minutes of extraction; history comes from the SEC's quarterly Form 13F data sets.","license":"Form 13F filings are US government records in the public domain. Cite the filing.","docsUrl":"https://docs.captide.ai/datasets/ownership"}}}},"404":{"description":"Resource not found","content":{"application/json":{"examples":{"not_found":{"summary":"Dataset not found","value":{"detail":"Dataset not found"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v3/datasets/ownership/holdings":{"get":{"tags":["Datasets"],"summary":"List 13F holdings","description":"Positions that US institutional investment managers report on SEC Form 13F at a quarter end: who holds a company's securities, or what a manager holds. Each position is a manager's shares (or principal amount) and market value in one security, summed over its 13F lines, with the filings it was read from in `sources`.\n\n    Filter by the security (`companyIds`, `companyTickers` or `cusips`), by the manager (`holderCompanyIds` or `holderCiks`), or both. Without `periodEnd`, positions are for the latest quarter end whose 13F filing deadline (45 days) has passed. Positions are current values; with `asOf`, they are what had been published by that time (a filing counts from the end of its filing date in New York). Results are largest market value first; page through them with `pageToken`. If the holdings change while you page (a new or corrected filing is published), the next page returns `409`: start again without `pageToken`, so you never mix two versions of the data.\n\n    Option positions (puts and calls) are left out unless `include=options`; their underlying shares never add to `shares`. 13F reports long positions only, with no shares outstanding, so positions carry no percentage of a company.","operationId":"list_ownership_holdings_api_v3_datasets_ownership_holdings_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"companyIds","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated Captide company IDs of the issuers held: who holds these companies","examples":["91f6c6da-478f-4161-b451-aa5177cc7fb9"],"title":"Companyids"},"description":"Comma-separated Captide company IDs of the issuers held: who holds these companies"},{"name":"companyTickers","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated tickers of the issuers held, as in `/companies/list`","examples":["AAPL"],"title":"Companytickers"},"description":"Comma-separated tickers of the issuers held, as in `/companies/list`"},{"name":"cusips","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated CUSIPs of the securities held","examples":["037833100"],"title":"Cusips"},"description":"Comma-separated CUSIPs of the securities held"},{"name":"holderCompanyIds","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated Captide company IDs of the managers: what these managers hold","examples":["58703e09-9c45-4fde-92a1-ab22a06f28d7"],"title":"Holdercompanyids"},"description":"Comma-separated Captide company IDs of the managers: what these managers hold"},{"name":"holderCiks","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated SEC CIKs of the managers (leading zeros optional)","examples":["1067983"],"title":"Holderciks"},"description":"Comma-separated SEC CIKs of the managers (leading zeros optional)"},{"name":"periodEnd","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Quarter end (e.g. `2026-06-30`). Default: the latest quarter end whose filing deadline has passed","examples":["2026-06-30"],"title":"Periodend"},"description":"Quarter end (e.g. `2026-06-30`). Default: the latest quarter end whose filing deadline has passed"},{"name":"asOf","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Point in time (ISO 8601): positions as published by then. Default: current","examples":["2026-08-31T00:00:00Z"],"title":"Asof"},"description":"Point in time (ISO 8601): positions as published by then. Default: current"},{"name":"include","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`options` to add put and call positions","examples":["options"],"title":"Include"},"description":"`options` to add put and call positions"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Positions per page (up to 100)","examples":[50],"default":50,"title":"Limit"},"description":"Positions per page (up to 100)"},{"name":"pageToken","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`nextPageToken` from the previous page; omit for the first page","title":"Pagetoken"},"description":"`nextPageToken` from the previous page; omit for the first page"}],"responses":{"200":{"description":"Positions, largest market value first","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnershipHoldingsResponse"},"example":{"periodEnd":"2026-06-30","items":[{"holder":{"companyId":"58703e09-9c45-4fde-92a1-ab22a06f28d7","name":"Berkshire Hathaway Inc.","cik":"1067983"},"security":{"cusip":"037833100","issuerName":"APPLE INC","titleOfClass":"COM","companyId":"91f6c6da-478f-4161-b451-aa5177cc7fb9","ticker":"AAPL"},"periodEnd":"2026-06-30","shares":227917808,"marketValue":65950296923,"votingAuthority":{"sole":227917808,"shared":0,"none":0},"publishedAt":"2026-08-15T04:00:00Z","sources":[{"documentId":"31932647-dea0-4c89-8fc1-3c3c5aec89d2","accessionNumber":"0001193125-26-352200","lineNumber":15,"pageNumber":3,"excerpt":"037833100 200,237,120 692,000 SH DFND 4 692,000 0 0"},{"documentId":"31932647-dea0-4c89-8fc1-3c3c5aec89d2","accessionNumber":"0001193125-26-352200","lineNumber":16,"pageNumber":3,"excerpt":"037833100 1,111,142,400 3,840,000 SH DFND 1,2,4,11 3,840,000 0 0"},{"documentId":"31932647-dea0-4c89-8fc1-3c3c5aec89d2","accessionNumber":"0001193125-26-352200","lineNumber":17,"pageNumber":3,"excerpt":"037833100 9,838,240 34,000 SH DFND 2,4,11 34,000 0 0"},{"documentId":"31932647-dea0-4c89-8fc1-3c3c5aec89d2","accessionNumber":"0001193125-26-352200","lineNumber":18,"pageNumber":3,"excerpt":"037833100 10,047,736,640 34,724,000 SH DFND 4,5 34,724,000 0 0"},{"documentId":"31932647-dea0-4c89-8fc1-3c3c5aec89d2","accessionNumber":"0001193125-26-352200","lineNumber":19,"pageNumber":3,"excerpt":"037833100 788,216,640 2,724,000 SH DFND 4,6 2,724,000 0 0"},{"documentId":"31932647-dea0-4c89-8fc1-3c3c5aec89d2","accessionNumber":"0001193125-26-352200","lineNumber":20,"pageNumber":3,"excerpt":"037833100 4,494,339,520 15,532,000 SH DFND 4,7 15,532,000 0 0"},{"documentId":"31932647-dea0-4c89-8fc1-3c3c5aec89d2","accessionNumber":"0001193125-26-352200","lineNumber":21,"pageNumber":3,"excerpt":"037833100 17,808,079,008 61,542,988 SH DFND 4,8,11 61,542,988 0 0"},{"documentId":"31932647-dea0-4c89-8fc1-3c3c5aec89d2","accessionNumber":"0001193125-26-352200","lineNumber":22,"pageNumber":3,"excerpt":"037833100 2,084,549,440 7,204,000 SH DFND 4,5,9 7,204,000 0 0"},{"documentId":"31932647-dea0-4c89-8fc1-3c3c5aec89d2","accessionNumber":"0001193125-26-352200","lineNumber":23,"pageNumber":3,"excerpt":"037833100 4,187,617,920 14,472,000 SH DFND 4,10 14,472,000 0 0"},{"documentId":"31932647-dea0-4c89-8fc1-3c3c5aec89d2","accessionNumber":"0001193125-26-352200","lineNumber":24,"pageNumber":3,"excerpt":"037833100 23,341,172,315 80,664,820 SH DFND 4,11 80,664,820 0 0"},{"documentId":"31932647-dea0-4c89-8fc1-3c3c5aec89d2","accessionNumber":"0001193125-26-352200","lineNumber":25,"pageNumber":3,"excerpt":"037833100 784,744,320 2,712,000 SH DFND 4,12 2,712,000 0 0"},{"documentId":"31932647-dea0-4c89-8fc1-3c3c5aec89d2","accessionNumber":"0001193125-26-352200","lineNumber":26,"pageNumber":3,"excerpt":"037833100 1,092,623,360 3,776,000 SH DFND 4,14 3,776,000 0 0"}]}],"nextPageToken":"WyIyMDI2LTA2LTMwIixudWxsLDE4NDEsIjY1OTUwMjk2OTIzLjAwIiwiMTA2Nzk4MyIsIjAzNzgzMzEwMCIsIiJd"}}}},"400":{"description":"Invalid request parameters","content":{"application/json":{"examples":{"missing_filter":{"summary":"Filter by the security (companyIds, companyTickers or cusips) or the manager (holderCompanyIds or holderCiks)","value":{"detail":"Filter by the security (companyIds, companyTickers or cusips) or the manager (holderCompanyIds or holderCiks)"}},"invalid_period":{"summary":"periodEnd must be a quarter end (e.g. 2026-06-30)","value":{"detail":"periodEnd must be a quarter end (e.g. 2026-06-30)"}},"invalid_company_id":{"summary":"Invalid companyIds: each value must be a UUID","value":{"detail":"Invalid companyIds: each value must be a UUID"}},"invalid_page_token":{"summary":"Invalid pageToken","value":{"detail":"Invalid pageToken"}},"page_token_mismatch":{"summary":"pageToken belongs to a read with another periodEnd or asOf","value":{"detail":"pageToken belongs to a read with another periodEnd or asOf"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The holdings changed since the first page","content":{"application/json":{"examples":{"stale_page_token":{"summary":"The holdings changed while you were paging (a new or corrected filing was published). Start again without pageToken.","value":{"detail":"The holdings changed while you were paging (a new or corrected filing was published). Start again without pageToken."}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The holdings were updated twice while this page was read","content":{"application/json":{"examples":{"updating":{"summary":"The holdings are being updated; try again in a few seconds","value":{"detail":"The holdings are being updated; try again in a few seconds"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"less_than_equal","loc":["query","limit"],"msg":"Input should be less than or equal to 1000","input":"5000","ctx":{"le":1000}}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}}}},"/api/v3/rag/chunks":{"post":{"tags":["Retrieval Augmented Generation"],"summary":"Search document chunks","description":"Find the passages in corporate disclosures that answer a natural-language question, without generating an answer.\n\n    Captide works out which companies and documents the question is about, then returns the most relevant chunks of text, each with its page number and source document. Use it to give your own LLM grounded context, or to combine Captide content with other sources.\n\n    To search specific documents only, pass their IDs in `documentIds`.","operationId":"search_chunks_api_v3_rag_chunks_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRequest"}}},"required":true},"responses":{"200":{"description":"Chunks relevant to the query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChunksResponse"},"example":{"relevantChunks":[{"content":"please join us at our upcoming Investor Day on October 6 in New York City. I want to thank our employees, customers and\npartners for their continued support. With that, operator, you may now open the call for questions. …","pageNumber":5,"documentMetadata":{"id":"a0dcd3e7-7985-4fbc-9c77-371b4232e242","title":"Zscaler, Inc. Earnings Call Transcript Q4 2026 (2026-09-03)","documentCategory":"earnings-call-transcript","date":"2026-09-03","fiscalQuarter":4,"fiscalYear":2026,"companyName":"Zscaler, Inc.","companyTickers":["ZS"]}}]}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}}}}},"402":{"description":"Not enough API credits for this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"insufficient_credits":{"summary":"Insufficient credits. Required: 10 cents, Available: 4 cents","value":{"detail":"Insufficient credits. Required: 10 cents, Available: 4 cents"}}}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"},"example":{"detail":[{"type":"missing","loc":["body"],"msg":"Field required"}]}}}}},"security":[{"APIKeyHeader":[]}]}},"/api/v3/rag/company-retrieval":{"post":{"tags":["Retrieval Augmented Generation"],"summary":"Retrieve companies from a query","description":"Identify the companies a natural-language request refers to, by name, ticker or informal reference, and return their details.\n\n    Use it to turn free text such as \"Give me Estée Lauder and Louis Vuitton\" or \"AAPL and MSFT\" into Captide company IDs before calling other endpoints.","operationId":"company_retrieval_api_v3_rag_company_retrieval_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRequest","description":"Natural language query to find companies","examples":[{"query":"Give me Estee Lauder and Louis Vuitton"}]}}},"required":true},"responses":{"200":{"description":"Companies the query refers to","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CompanyResponse"},"type":"array","title":"Response Company Retrieval Api V3 Rag Company Retrieval Post"},"example":[{"id":"081224fb-308b-41a9-ae77-6763e97191ea","name":"LVMH Moët Hennessy Louis Vuitton SE","tickers":["MC.PA"],"countries":["FR"],"filesWithSec":false,"permId":"4295866862","listings":[{"ticker":"MC.PA","exchangeMic":"XPAR","isin":"FR0000121014"}]},{"id":"20944e0e-f557-4900-a8a7-0ee88af4c898","name":"The Estée Lauder Companies Inc.","tickers":["EL"],"countries":["US"],"filesWithSec":true,"cik":"1001250","permId":"4295903171","listings":[{"ticker":"EL","exchangeMic":"XNYS","isin":"US5184391044"}]}]}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"},"example":{"detail":[{"type":"missing","loc":["body"],"msg":"Field required"}]}}}},"402":{"description":"Not enough API credits for this request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"insufficient_credits":{"summary":"Insufficient credits. Required: 10 cents, Available: 4 cents","value":{"detail":"Insufficient credits. Required: 10 cents, Available: 4 cents"}}}}}}},"security":[{"APIKeyHeader":[]}]}},"/api/v3/rag/agent-response":{"post":{"tags":["Retrieval Augmented Generation (v3)"],"summary":"Get agent response (agentic)","description":"Answer a natural-language question from corporate disclosures with an agent that chooses its own steps: finding the companies, listing their filings and searching passages.\n\n    Returns a cited Markdown answer in `content` and its `sourceMap`, plus `traceId` and `budgetHit` (true when the agent hit its limit of 20 turns or 5 minutes and answered with what it had; a turn can run several tool calls). Pass `include_transcript=true` to also get the agent's tool calls and results.","operationId":"agent_response_v3_api_v3_rag_agent_response_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"include_transcript","in":"query","required":false,"schema":{"type":"boolean","description":"Include the agent's tool-call/result transcript in the response.","default":false,"title":"Include Transcript"},"description":"Include the agent's tool-call/result transcript in the response."},{"name":"X-Langfuse-Trace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Langfuse-Trace-Id"}},{"name":"X-Langfuse-Parent-Span-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Langfuse-Parent-Span-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponseV3"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Not enough API credits for this request","content":{"application/json":{"examples":{"insufficient_credits":{"summary":"Insufficient credits. Required: 10 cents, Available: 4 cents","value":{"detail":"Insufficient credits. Required: 10 cents, Available: 4 cents"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"missing","loc":["body"],"msg":"Field required"}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}}}},"/api/v3/rag/agent-response-stream":{"post":{"tags":["Retrieval Augmented Generation (v3)"],"summary":"Stream agent response (agentic)","description":"Answer a natural-language question with the agent that chooses its own steps, streamed as Server-Sent Events.\n\n    Each event is a `data:` line holding a JSON object. Its `type` is one of:\n    - `thinking`: a progress update\n    - `tool_call` and `tool_result`: a step the agent takes and a short summary of its result\n    - `reasoning`: a summary of the model's reasoning, when available\n    - `message`: the next piece of the answer\n    - `content_final`: the complete answer; when present, it replaces the text built from `message` events\n    - `sources`: the `sourceMap`, mapping each citation to its passage, page and excerpt\n    - `warning`: a non-fatal issue, such as no relevant documents or the agent hitting its limit of 20 turns or 5 minutes\n    - `error`: a fatal error\n    - `done`: the end of the stream","operationId":"agent_response_stream_v3_api_v3_rag_agent_response_stream_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"X-Langfuse-Trace-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Langfuse-Trace-Id"}},{"name":"X-Langfuse-Parent-Span-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Langfuse-Parent-Span-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"examples":{"missing_key":{"summary":"Missing API key","value":{"detail":"Missing API key"}},"invalid_key":{"summary":"Invalid or expired API key","value":{"detail":"Invalid or expired API key"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Your organization doesn't have access to this endpoint","content":{"application/json":{"examples":{"forbidden":{"summary":"Access to this endpoint is not allowed for your organization","value":{"detail":"Access to this endpoint is not allowed for your organization"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"examples":{"rate_limited":{"summary":"Rate limit exceeded: 100 requests per minute","value":{"detail":"Rate limit exceeded: 100 requests per minute"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"examples":{"database_error":{"summary":"Database error occurred","value":{"detail":"Database error occurred"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Not enough API credits for this request","content":{"application/json":{"examples":{"insufficient_credits":{"summary":"Insufficient credits. Required: 10 cents, Available: 4 cents","value":{"detail":"Insufficient credits. Required: 10 cents, Available: 4 cents"}}},"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error: a parameter or body field is missing, has the wrong type or is out of range","content":{"application/json":{"example":{"detail":[{"type":"missing","loc":["body"],"msg":"Field required"}]},"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}}}},"/":{"get":{"tags":["Health"],"summary":"Root","description":"Health check endpoint.","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health":{"get":{"tags":["Health"],"summary":"Health","description":"Simple health check endpoint for Kubernetes probes.","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health/redis":{"get":{"tags":["Health"],"summary":"Redis Health","description":"Redis health check endpoint.","operationId":"redis_health_health_redis_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AgentRequest":{"properties":{"query":{"type":"string","minLength":1,"title":"Query","description":"The natural language query"},"documentIds":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Documentids","description":"Comma-separated string of document file IDs. If provided and non-empty, skips document and company selection and goes directly to retrieval."}},"type":"object","required":["query"],"title":"AgentRequest","description":"Request model for agent queries."},"AgentResponse":{"properties":{"content":{"type":"string","title":"Content","description":"The agent's response in markdown format"},"sourceMap":{"additionalProperties":{"$ref":"#/components/schemas/Chunk"},"type":"object","title":"Sourcemap","description":"Mapping of citation reference IDs to chunk metadata. Empty when no relevant documents are found."}},"type":"object","required":["content","sourceMap"],"title":"AgentResponse","description":"Response model for agent queries."},"AgentResponseV3":{"properties":{"content":{"type":"string","title":"Content","description":"The agent's response in markdown format."},"sourceMap":{"additionalProperties":{"$ref":"#/components/schemas/Chunk"},"type":"object","title":"Sourcemap","description":"Citation reference_id → Chunk. Empty when no documents matched."},"traceId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Traceid","description":"Langfuse trace_id for this request (debug / observability)."},"transcript":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/ToolCallRecord"},{"$ref":"#/components/schemas/ToolResultRecord"}]},"type":"array"},{"type":"null"}],"title":"Transcript","description":"Ordered list of tool_call + tool_result records the agent produced this request. Only populated when `?include_transcript=true`."},"budgetHit":{"type":"boolean","title":"Budgethit","description":"True if the agent hit its limit of 20 turns (a turn can run several tool calls) or 300 seconds.","default":false}},"type":"object","required":["content","sourceMap"],"title":"AgentResponseV3","description":"v3 non-streaming response. Adds optional `transcript` to the v2 shape."},"Change":{"properties":{"sequence":{"type":"integer","title":"Sequence","description":"Position in the feed. Changes are in this order, without gaps in what Captide publishes; pass the last one you processed as `after`."},"id":{"type":"string","title":"Id","description":"Unique ID of this change"},"type":{"type":"string","title":"Type","description":"`document.created`, `document.updated`, `document.deleted`, `company.created`, `company.updated` or `company.deleted`"},"changedAt":{"type":"string","format":"date-time","title":"Changedat","description":"When the change was made (UTC)"},"changedFields":{"items":{"type":"string"},"type":"array","title":"Changedfields","description":"For `updated`: the fields that changed. `originalFileUrl`, `markdownFileUrl` or `layoutJsonFileUrl` means a new version of that file: fetch fresh links from `GET /documents/{id}`."},"previous":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Previous","description":"For `updated`: the old value of each changed field (file links aside)"},"document":{"anyOf":[{"$ref":"#/components/schemas/ChangedDocument"},{"type":"null"}],"description":"For document changes: the document after the change; for `document.deleted`, as it was last shown"},"company":{"anyOf":[{"$ref":"#/components/schemas/CompanyResponse"},{"type":"null"}],"description":"For company changes: the company after the change; for `company.deleted`, as it was last shown"}},"type":"object","required":["sequence","id","type","changedAt","changedFields"],"title":"Change","description":"One change to a document or company the API shows."},"ChangedDocument":{"properties":{"id":{"type":"string","title":"Id","description":"Document ID, as used by `GET /documents/{id}`. A new version of the document's file has a new ID; the old one is in `previous.id`."},"documentCategory":{"type":"string","title":"Documentcategory","description":"Document category code. See [Coverage](/coverage)."},"secFormType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secformtype","description":"SEC form type, for SEC filings"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Captide-generated document title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Captide-generated document description"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date","description":"Date of the document, as in `/documents/list`"},"fiscalQuarter":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fiscalquarter","description":"Fiscal quarter (1 to 4)"},"fiscalYear":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fiscalyear","description":"Fiscal year"},"fiscalPeriod":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fiscalperiod","description":"`year`, `multi-year`, `month`, `half-year`, `quarter` or null"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","description":"ISO 639-1 language code"},"companyId":{"type":"string","title":"Companyid","description":"ID of the company the document belongs to"},"companyName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Companyname","description":"The company's name now"},"companyTickers":{"items":{"type":"string"},"type":"array","title":"Companytickers","description":"The company's tickers now"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","description":"As in `GET /documents/{id}`"}},"type":"object","required":["id","documentCategory","companyId"],"title":"ChangedDocument","description":"A document as the API shows it, without file links (they expire; fetch them from `GET /documents/{id}`)."},"ChangesResponse":{"properties":{"changes":{"items":{"$ref":"#/components/schemas/Change"},"type":"array","title":"Changes","description":"Changes after `after`, oldest first"},"nextCursor":{"type":"integer","title":"Nextcursor","description":"Pass as `after` to get the next page. It can move forward even when `changes` is empty, past changes your filters skip."},"hasMore":{"type":"boolean","title":"Hasmore","description":"Whether more changes may follow `nextCursor` right now"},"latestCursor":{"type":"integer","title":"Latestcursor","description":"The newest position in the feed"}},"type":"object","required":["changes","nextCursor","hasMore","latestCursor"],"title":"ChangesResponse","description":"A page of changes."},"ChangesSnapshotResponse":{"properties":{"items":{"items":{"anyOf":[{"$ref":"#/components/schemas/ChangedDocument"},{"$ref":"#/components/schemas/CompanyResponse"}]},"type":"array","title":"Items","description":"Documents or companies, as the changes feed shows them"},"nextPageToken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nextpagetoken","description":"Pass as `pageToken` for the next page; null on the last page"},"cursor":{"type":"integer","title":"Cursor","description":"The feed position this snapshot started at, the same on every page: call `GET /changes` with it as `after` once the snapshot is loaded"}},"type":"object","required":["items","nextPageToken","cursor"],"title":"ChangesSnapshotResponse","description":"A page of the snapshot."},"Chunk":{"properties":{"content":{"type":"string","title":"Content","description":"Text content of the chunk"},"pageNumber":{"type":"integer","title":"Pagenumber","description":"Page number in the document"},"excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Excerpt","description":"Specific part of the chunk that the agent used to answer the user's question. Used for source linking and highlighting. Each citation occurrence has its own sourceMap entry, so the same underlying chunk cited for different metrics yields a distinct excerpt per citation."},"documentMetadata":{"$ref":"#/components/schemas/SourceDocument","description":"Metadata for the chunk's document"}},"type":"object","required":["content","pageNumber","documentMetadata"],"title":"Chunk","description":"A chunk of document content with metadata."},"ChunksResponse":{"properties":{"relevantChunks":{"items":{"$ref":"#/components/schemas/Chunk"},"type":"array","title":"Relevantchunks","description":"List of relevant document chunks"}},"type":"object","required":["relevantChunks"],"title":"ChunksResponse","description":"Response model for chunk search results."},"CompanyListing":{"properties":{"ticker":{"type":"string","title":"Ticker","description":"Ticker with its exchange suffix, as in `tickers` (e.g. 'STO.AX')"},"exchangeMic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exchangemic","description":"ISO 10383 Market Identifier Code of the exchange (e.g. 'XASX')"},"isin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Isin","description":"ISIN of the listed security, when known"}},"type":"object","required":["ticker"],"title":"CompanyListing","description":"One listing of the company: a ticker on an exchange."},"CompanyResponse":{"properties":{"id":{"type":"string","title":"Id","description":"Unique company ID"},"name":{"type":"string","title":"Name","description":"Company name"},"tickers":{"items":{"type":"string"},"type":"array","title":"Tickers","description":"List of ticker symbols with exchange suffixes (e.g., 'ASML', 'ASML.AS')"},"countries":{"items":{"type":"string"},"type":"array","title":"Countries","description":"Company's country of domicile (ISO 3166-1 alpha-2)"},"filesWithSec":{"type":"boolean","title":"Fileswithsec","description":"Whether the company files reports with the SEC"},"cik":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cik","description":"Central Index Key (CIK) assigned by the SEC"},"permId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permid","description":"PermID (Permanent Identifier) assigned by Refinitiv"},"listings":{"items":{"$ref":"#/components/schemas/CompanyListing"},"type":"array","title":"Listings","description":"The company's listings: each ticker with its exchange's MIC and the security's ISIN"}},"type":"object","required":["id","name","tickers","countries","filesWithSec"],"title":"CompanyResponse","description":"Response model for single company retrieval."},"DatasetResponse":{"properties":{"key":{"type":"string","title":"Key","description":"Dataset key, as used in its endpoints' paths (`ownership`)"},"title":{"type":"string","title":"Title","description":"Dataset name"},"description":{"type":"string","title":"Description","description":"What the dataset covers"},"endpoints":{"items":{"type":"string"},"type":"array","title":"Endpoints","description":"The endpoints that serve the dataset"},"completeFrom":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completefrom","description":"Point-in-time reads (`asOf`) are complete from this time; earlier history was loaded in bulk"},"freshness":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Freshness","description":"How soon new data appears"},"license":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License","description":"Licence and attribution terms"},"docsUrl":{"type":"string","title":"Docsurl","description":"The dataset's guide on docs.captide.ai"}},"type":"object","required":["key","title","description","endpoints","docsUrl"],"title":"DatasetResponse","description":"A dataset Captide builds from the documents it collects."},"DocumentCategory":{"type":"string","enum":["annual-report","interim-report","supplemental-financial-information","earnings-release","current-report","shareholder-meetings-notice","earnings-call-slides","special-events-slides","earnings-call-transcript","sustainability-report","initial-registration-statement","follow-on-registration-statement","merger-registration-statement","compensation-registration-statement","tender-offer-statement","going-private-statement","insider-shares-transactions","other","annual-financial-report","interim-financial-report","financial-attachments","shareholder-meeting-circular","earnings-presentation","investor-event-presentation","investor-event-transcript","annual-activity-report","interim-activity-report","compliance-report","historical-performance-summary","letter-to-shareholders","shareholder-meeting-resolutions","governance-report","compensation-report","governance-policies","shareholder-dealing-disclosure","share-issuance-notice","share-buyback-notice","share-capital-disclosure","initial-offering-prospectus","follow-on-offering-prospectus","merger-offering-prospectus","employee-share-plan-prospectus","tender-offer-disclosure","insider-share-transactions","esg-report","esg-assessment"],"title":"DocumentCategory","description":"Enum for document categories with their descriptions."},"DocumentListResponse":{"properties":{"id":{"type":"string","title":"Id","description":"Document ID. Use it with `GET /documents/{id}`; chunks, agent sources and webhooks return the same ID."},"documentCategory":{"type":"string","title":"Documentcategory","description":"Document category code as stored in the database. For detailed category descriptions, please refer to [this page](/coverage)."},"secFormType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secformtype","description":"Document SEC form type (only applicable if the document is an SEC filing)"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Captide-generated document title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Captide-generated document description"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date","description":"Date of the document: the EDGAR filing date for SEC filings, otherwise the date the document was issued or published. When the document has no date of its own, the date it was published online."},"fiscalQuarter":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fiscalquarter","description":"Fiscal quarter the document relates to (from 1 to 4)"},"fiscalYear":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fiscalyear","description":"Fiscal year the document relates to (e.g., 2024)"},"fiscalPeriod":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fiscalperiod","description":"Fiscal period the document relates to. Valid values: `year`, `multi-year`, `month`, `half-year`, `quarter`, or null"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","description":"Language of the document in ISO 639-1 code"},"companyId":{"type":"string","title":"Companyid","description":"Unique ID of the company filing the document"},"companyName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Companyname","description":"Name of the company filing the document"},"companyTickers":{"items":{"type":"string"},"type":"array","title":"Companytickers","description":"Tickers of the company filing the document"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","description":"Additional document metadata: `accessionNumber` and `8kItems` for SEC filings, and `sourceUrl`, the document's original address, for SEC filings and investor-relations documents"}},"type":"object","required":["id","documentCategory","companyId"],"title":"DocumentListResponse","description":"Response model for document list results."},"DocumentResponse":{"properties":{"id":{"type":"string","title":"Id","description":"Document ID. Use it with `GET /documents/{id}`; chunks, agent sources and webhooks return the same ID."},"documentCategory":{"$ref":"#/components/schemas/DocumentCategory","description":"Document categories. For detailed category descriptions, please refer to [this page](/coverage)."},"formType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Formtype","description":"Document SEC form type (only applicable if the document is an SEC filing)"},"tickers":{"items":{"type":"string"},"type":"array","title":"Tickers","description":"Tickers of the company filing the document"},"companyName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Companyname","description":"Name of the company filing the document"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date","description":"Date of the document: the EDGAR filing date for SEC filings, otherwise the date the document was issued or published. When the document has no date of its own, the date it was published online."},"fiscalQuarter":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fiscalquarter","description":"Fiscal quarter the document relates to (from 1 to 4)"},"fiscalYear":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fiscalyear","description":"Fiscal year the document relates to (e.g., 2024)"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Captide-generated document title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Captide-generated document description"},"originalFileUrl":{"type":"string","title":"Originalfileurl","description":"Secure and temporary URL providing access to the original document file"},"markdownFileUrl":{"type":"string","title":"Markdownfileurl","description":"Secure and temporary URL providing access to the pre-processed, machine-readable document file"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","description":"Additional document metadata as stored (snake_case keys such as `accession_number` and `8k_items` for SEC filings), plus `sourceURL`, the document's original address, for SEC filings and investor-relations documents"}},"type":"object","required":["id","documentCategory","tickers","originalFileUrl","markdownFileUrl"],"title":"DocumentResponse","description":"Response model for document retrieval by ID."},"DocumentResponseV2":{"properties":{"id":{"type":"string","title":"Id","description":"Document ID. Use it with `GET /documents/{id}`; chunks, agent sources and webhooks return the same ID."},"documentCategory":{"type":"string","title":"Documentcategory","description":"Document category code as stored in the database. For detailed category descriptions, please refer to [this page](/coverage)."},"secFormType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secformtype","description":"Document SEC form type (only applicable if the document is an SEC filing)"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Captide-generated document title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Captide-generated document description"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date","description":"Date of the document: the EDGAR filing date for SEC filings, otherwise the date the document was issued or published. When the document has no date of its own, the date it was published online."},"fiscalQuarter":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fiscalquarter","description":"Fiscal quarter the document relates to (from 1 to 4)"},"fiscalYear":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fiscalyear","description":"Fiscal year the document relates to (e.g., 2024)"},"fiscalPeriod":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fiscalperiod","description":"Fiscal period the document relates to. Valid values: `year`, `multi-year`, `month`, `half-year`, `quarter`, or null"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","description":"Language of the document in ISO 639-1 code"},"companyId":{"type":"string","title":"Companyid","description":"Unique ID of the company filing the document"},"companyName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Companyname","description":"Name of the company filing the document"},"companyTickers":{"items":{"type":"string"},"type":"array","title":"Companytickers","description":"Tickers of the company filing the document"},"originalFileUrl":{"type":"string","title":"Originalfileurl","description":"Secure and temporary URL providing access to the original document file"},"markdownFileUrl":{"type":"string","title":"Markdownfileurl","description":"Secure and temporary URL providing access to the pre-processed, machine-readable document file"},"layoutJsonFileUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Layoutjsonfileurl","description":"Secure and temporary URL to the document's OCR layout as JSON: each page's blocks (text, section headers, tables, pictures, footnotes and lists) with their type, position on the page (`bbox`, `polygon`), HTML content and section hierarchy. `null` when the document wasn't processed by Captide's OCR pipeline."},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","description":"Additional document metadata: `accessionNumber` and `8kItems` for SEC filings, and `sourceUrl`, the document's original address, for SEC filings and investor-relations documents"}},"type":"object","required":["id","documentCategory","companyId","originalFileUrl","markdownFileUrl"],"title":"DocumentResponseV2","description":"V2 response model for document retrieval by ID. Uses database category codes directly."},"ErrorResponse":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorResponse","description":"Standard error response model for all API endpoints."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HoldingSource":{"properties":{"documentId":{"type":"string","title":"Documentid","description":"The 13F filing the line was read from, as used by `GET /documents/{id}`"},"accessionNumber":{"type":"string","title":"Accessionnumber","description":"The filing's SEC accession number"},"lineNumber":{"type":"integer","title":"Linenumber","description":"The line's position in the filing's information table"},"pageNumber":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pagenumber","description":"The page of the filing's PDF the line is on; null when the line couldn't be located"},"excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Excerpt","description":"The line as it appears on the page, to highlight it"}},"type":"object","required":["documentId","accessionNumber","lineNumber"],"title":"HoldingSource"},"OwnershipHolder":{"properties":{"companyId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Companyid","description":"The manager's Captide company ID, as used by `GET /companies/{id}`"},"name":{"type":"string","title":"Name","description":"The manager's name"},"cik":{"type":"string","title":"Cik","description":"The manager's SEC Central Index Key, without leading zeros"}},"type":"object","required":["name","cik"],"title":"OwnershipHolder"},"OwnershipHoldingsResponse":{"properties":{"periodEnd":{"type":"string","format":"date","title":"Periodend","description":"The quarter end of the positions"},"asOf":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Asof","description":"The point in time read, when you passed `asOf`; null for current values"},"items":{"items":{"$ref":"#/components/schemas/OwnershipPosition"},"type":"array","title":"Items","description":"Positions, largest market value first"},"nextPageToken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nextpagetoken","description":"Pass as `pageToken` for the next page; null on the last page"}},"type":"object","required":["periodEnd","items"],"title":"OwnershipHoldingsResponse","description":"A page of 13F positions."},"OwnershipPosition":{"properties":{"holder":{"$ref":"#/components/schemas/OwnershipHolder"},"security":{"$ref":"#/components/schemas/OwnershipSecurity"},"periodEnd":{"type":"string","format":"date","title":"Periodend","description":"The quarter end the position is reported at"},"putCall":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Putcall","description":"`Put` or `Call` for an option position; null for the long position"},"shares":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Shares","description":"Shares held (long position)"},"principalAmount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Principalamount","description":"Face value of debt held, in US dollars"},"marketValue":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Marketvalue","description":"Market value in US dollars. For an option position, the market value of the underlying securities, as Form 13F reports it, not the value of the options"},"optionUnderlyingShares":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Optionunderlyingshares","description":"For an option position: shares underlying the options. Never part of `shares`"},"optionUnderlyingPrincipalAmount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Optionunderlyingprincipalamount","description":"For an option position on debt: principal amount underlying the options"},"votingAuthority":{"$ref":"#/components/schemas/VotingAuthority","description":"Voting authority, in shares"},"publishedAt":{"type":"string","format":"date-time","title":"Publishedat","description":"When the latest filing behind the position was public (end of its filing date, New York time)"},"sources":{"items":{"$ref":"#/components/schemas/HoldingSource"},"type":"array","title":"Sources","description":"The 13F lines the position sums, each with the filing it was read from. Usually one filing; a NEW HOLDINGS amendment adds lines from a second"}},"type":"object","required":["holder","security","periodEnd","votingAuthority","publishedAt","sources"],"title":"OwnershipPosition","description":"A manager's position in a security at a quarter end, summed over its 13F lines."},"OwnershipSecurity":{"properties":{"cusip":{"type":"string","title":"Cusip","description":"CUSIP as the manager filed it"},"issuerName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issuername","description":"Issuer name as the manager filed it"},"titleOfClass":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Titleofclass","description":"Class of the security as filed (e.g. `COM`)"},"companyId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Companyid","description":"The issuer's Captide company ID, when the CUSIP maps to one company; null for funds, unlisted securities and CUSIPs that aren't valid as filed"},"ticker":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticker","description":"The issuer's ticker whose ISIN carries this CUSIP, when there is one"}},"type":"object","required":["cusip"],"title":"OwnershipSecurity"},"SourceDocument":{"properties":{"id":{"type":"string","title":"Id","description":"Document ID. Use it with `GET /documents/{id}`."},"title":{"type":"string","title":"Title","description":"Document title"},"documentCategory":{"type":"string","title":"Documentcategory","description":"Document categories. For detailed category descriptions, please refer to [this page](/coverage)"},"secFormType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secformtype","description":"Document SEC form type (only applicable if the document is an SEC filing)"},"date":{"type":"string","title":"Date","description":"Date of the document: the EDGAR filing date for SEC filings, otherwise the date the document was issued or published. When the document has no date of its own, the date it was published online."},"fiscalQuarter":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fiscalquarter","description":"Fiscal quarter the document relates to (from 1 to 4)"},"fiscalYear":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fiscalyear","description":"Fiscal year the document relates to (e.g., 2024)"},"companyName":{"type":"string","title":"Companyname","description":"Name of the company filing the document"},"companyTickers":{"items":{"type":"string"},"type":"array","title":"Companytickers","description":"Tickers of the company filing the document"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"Metadata for the document"}},"type":"object","required":["id","title","documentCategory","date","companyName","companyTickers"],"title":"SourceDocument","description":"Source document metadata model."},"ToolCallRecord":{"properties":{"type":{"type":"string","title":"Type","default":"tool_call"},"callId":{"type":"string","title":"Callid"},"toolName":{"type":"string","title":"Toolname"},"arguments":{"additionalProperties":true,"type":"object","title":"Arguments"}},"type":"object","required":["callId","toolName","arguments"],"title":"ToolCallRecord"},"ToolResultRecord":{"properties":{"type":{"type":"string","title":"Type","default":"tool_result"},"callId":{"type":"string","title":"Callid"},"toolName":{"type":"string","title":"Toolname"},"summary":{"type":"string","title":"Summary"},"output":{"type":"string","title":"Output","default":""},"truncated":{"type":"boolean","title":"Truncated","default":false},"isError":{"type":"boolean","title":"Iserror","default":false},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["callId","toolName","summary"],"title":"ToolResultRecord"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"ValidationErrorItem":{"properties":{"type":{"type":"string","title":"Type"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Loc"},"msg":{"type":"string","title":"Msg"},"input":{"anyOf":[{},{"type":"null"}],"title":"Input"},"ctx":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Ctx"}},"type":"object","required":["type","loc","msg"],"title":"ValidationErrorItem","description":"One invalid field, as FastAPI reports it."},"ValidationErrorResponse":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationErrorItem"},"type":"array","title":"Detail"}},"type":"object","required":["detail"],"title":"ValidationErrorResponse","description":"422 body: every invalid field of the request."},"VotingAuthority":{"properties":{"sole":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sole","description":"Shares over which the manager has sole voting authority"},"shared":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Shared","description":"Shares with shared voting authority"},"none":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"None","description":"Shares with no voting authority"}},"type":"object","title":"VotingAuthority"},"WebhookCreate":{"properties":{"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url","description":"URL to receive POST requests when a new document is created"},"documentCategories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Documentcategories","description":"Only send webhooks for these document category codes. Omit or null = all document types. See /coverage for valid codes."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Optional description for this webhook"}},"type":"object","required":["url"],"title":"WebhookCreate","description":"Payload to create a webhook endpoint."},"WebhookResponse":{"properties":{"id":{"type":"string","title":"Id","description":"Webhook endpoint ID"},"url":{"type":"string","title":"Url","description":"URL that receives the webhook payload"},"documentCategories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Documentcategories","description":"Document categories this webhook is filtered to; null = all"},"enabled":{"type":"boolean","title":"Enabled","description":"Whether the webhook is active"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Optional description"},"createdAt":{"type":"string","title":"Createdat","description":"ISO 8601 creation time"}},"type":"object","required":["id","url","enabled","createdAt"],"title":"WebhookResponse","description":"Webhook endpoint as returned by the API."},"WebhookUpdate":{"properties":{"url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Url","description":"New URL for the webhook"},"documentCategories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Documentcategories","description":"Only send webhooks for these document category codes. Empty list or null = all."},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled","description":"Enable or disable the webhook"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Optional description"}},"type":"object","title":"WebhookUpdate","description":"Payload to update a webhook endpoint."}},"securitySchemes":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key"}}}}