{"openapi":"3.1.0","info":{"title":"SEV SEC Discovery","description":"Find companies and original SEC passage references. Rankings indicate research relevance, not investment merit.","version":"1.0.0"},"servers":[{"url":"https://etsquare.ai"}],"paths":{"/v1/sec/discover-companies":{"post":{"summary":"Discover Companies","operationId":"discover_companies_v1_sec_discover_companies_post","requestBody":{"content":{"application/json":{"schema":{"properties":{"tickers":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Tickers"},"sic_codes":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Sic Codes"},"filed_since":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filed Since"},"question":{"type":"string","maxLength":4000,"minLength":1,"title":"Question"},"max_companies":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Max Companies","default":10}},"additionalProperties":false,"type":"object","required":["question"],"title":"DiscoveryRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/sec/passages/{passage_id}":{"get":{"summary":"Passage Context","description":"Retrieve an original discovered passage and adjacent section context; supporting plumbing for discovery.","operationId":"passage_context_v1_sec_passages__passage_id__get","parameters":[{"name":"passage_id","in":"path","required":true,"schema":{"type":"string","title":"Passage Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/account/usage":{"get":{"summary":"Account Usage","operationId":"account_usage_v1_account_usage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/account/agreements":{"post":{"summary":"Accept Agreement","operationId":"accept_agreement_v1_account_agreements_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/account/keys":{"post":{"summary":"Create Key","operationId":"create_key_v1_account_keys_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/account/keys/{key_id}":{"delete":{"summary":"Revoke Key","operationId":"revoke_key_v1_account_keys__key_id__delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/account/checkout":{"post":{"summary":"Checkout","operationId":"checkout_v1_account_checkout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/account/billing-portal":{"post":{"summary":"Portal","operationId":"portal_v1_account_billing_portal_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}