Documentation Index
Fetch the complete documentation index at: https://docs.secapi.ai/llms.txt
Use this file to discover all available pages before exploring further.
API conventions
Request correlation
- every response includes
Request-Id - callers can provide
x-request-idto make local benchmarking and smoke output deterministic
Metering
- API responses include
Omni-Meter-Class - this is the canonical hint for billing/quota classification in logs, smoke output, and reconciliation jobs
Cost and token headers
- every
/v1/*response includesOmni-Token-CountandOmni-Estimated-Costso agents can budget natively without re-reading the pricing page Omni-Token-Countis an approximate output-token count computed with theo200k_basetokenizer (gpt-4o / o1 / modern-frontier encoding) as a portable proxy; consumer-model token usage may vary 10–30%Omni-Estimated-Costis a dollar string at 4-decimal precision (e.g.$0.0042) reflecting the plan-discounted per-call rate pre-grant-offset- grant and credit balance are communicated separately via
Omni-Free-Grant-RemainingandOmni-Budget-Used— the final billed amount reflects grant offsets on top of the per-call estimate Omni-Token-Count-Estimated: trueis emitted wheneverOmni-Token-Countfalls back to aceil(bytes / 4)approximation — either because the response body exceeded 512 KB (and was not fully tokenized to protect p95 latency) or because the response is a non-JSON billable payload (filing downloads, csv/markdown/pdf exports). Absence of this header means the count is an exact tokenizer result from the JSON body- counts flagged as estimated are advisory for budget planning only; do not use them for exact tokenizer-equivalence math
- error responses (4xx, 5xx), rate-limit 429, billing-required 402, and budget-gate 402 all emit
Omni-Token-Count: 0andOmni-Estimated-Cost: $0.0000— agents should treat failed requests as free
Response formats
- every response-shape endpoint accepts
?view=default | compact | agentdefault(implicit): human-readable shape with full provenance, freshness, materialization, and validation metadatacompact: trimmed subset of top-level fields — suitable for UI consumers that only need identifiers + datesagent: agent-optimized shape that keeps essentials and citation pointers (e.g.filingUrl,accessionNumber, offsets) and drops provenance chains, freshness metadata, and pagination context not needed for retrieval
?view=agentand?view=compactcoexist as distinct shapes; agent is not a strict subset of compact — it ships the richer “essentials + citations” shape while compact ships a UI-friendly top-level skim- token-count and cost headers naturally shrink in agent mode (agents pay less for compact responses). No client changes are required — header values reflect the final serialized body
- agent-mode responses preserve camelCase field names — agent mode is a projection of the default shape, not a rename. See the per-endpoint API reference for the exact agent-mode field set
- unknown values of
?view=fall back silently todefault, so accidental typos never surface as a 4xx
Endpoints that support ?view=agent
Agent mode is live on 15 endpoints as of OMNI-3084. Expect 30–95% byte-size reduction depending on endpoint shape (endpoints that carry large prose summaries see the biggest wins).
OMNI-3075 (first tranche):
GET /v1/filings/latest— single filing essentials +filingUrlGET /v1/entities/resolve— entity with primary identifiers + match metadataGET /v1/statements— statement with rows/periods, provenance droppedGET /v1/facts— fact point items + liftedaccessionNumber/filingUrlGET /v1/sections/search— section items + liftedstartOffset/endOffset
GET /v1/insiders— insider trade items with trade essentials, ownership flags droppedGET /v1/forms/144— Form 144 filings with citation pointersGET /v1/offerings— offering records (S-1 / 424) with prospectus URLGET /v1/events/ma— M&A events with deal structure + counterpartyGET /v1/events/enforcement— enforcement actions with release metadataGET /v1/events/voting-results— voting results events with proposals array (shaped)GET /v1/compensation— executive compensation breakdownGET /v1/owners/13f— 13F report with nestedholdings[](shaped)GET /v1/funds/nport/holdings— N-PORT holdings with nestedholdings[](shaped)GET /v1/companies/subsidiaries— subsidiary list with citation envelope (API-consistency, byte-neutral)
Versioning
- production clients should send
omni-versionand pin to a dated release - additive fields can ship within a pinned version without requiring a client rebuild
- breaking behavior changes should land behind a new dated version and be called out in
/docs/changelog - migration guides should be updated in the same change when a compatibility seam is moved or removed
Error model
Error responses use a stable JSON shape:Auth conventions
- machine access uses
x-api-key - MCP protected-resource metadata is available before WorkOS is fully configured
- OAuth authorization-server metadata intentionally returns an explicit
503 workos_authorization_server_unavailableuntil real WorkOS values are present