Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.case.dev/llms.txt

Use this file to discover all available pages before exploring further.

Search SEC EDGAR filings with a single legal research primitive. legal.secFiling() supports both full-text filing search via efts.sec.gov and structured company filing history via data.sec.gov.
Endpoint
POST /legal/v1/sec-filing
Use type: 'search' to search across the text of filings and exhibits.
curl -X POST https://api.case.dev/legal/v1/sec-filing \
  -H "Authorization: Bearer $CASEDEV_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "search",
    "query": "\"material weakness\" internal controls",
    "formTypes": ["10-K", "10-Q"],
    "ticker": "AAPL",
    "dateAfter": "2020-01-01",
    "dateBefore": "2025-01-01",
    "limit": 10,
    "offset": 0
  }'

Entity filing history

Use type: 'entity' when you already know the filer by CIK or ticker.
curl -X POST https://api.case.dev/legal/v1/sec-filing \
  -H "Authorization: Bearer $CASEDEV_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "entity",
    "ticker": "AAPL",
    "formTypes": ["10-K", "8-K"],
    "dateAfter": "2022-01-01",
    "limit": 20,
    "offset": 0
  }'

Response fields

  • total: total filings matching the request
  • filings[].accessionNumber: SEC accession number for the filing
  • filings[].documents[]: direct sec.gov/Archives URLs for the matched or primary filing document
  • filings[].snippet: highlighted text excerpt from the SEC full-text search result; null for type: 'entity'
  • filings[].secUrl: canonical EDGAR filing index page

Notes

  • type: 'search' uses SEC full-text search and supports boolean queries, phrases, and exhibit matches.
  • type: 'entity' uses the filer submissions API and resolves tickers to CIKs automatically.
  • formTypes passes through directly to the SEC APIs; no restricted enum is enforced.
  • limit is capped at 100 and offset uses standard offset pagination.
  • This endpoint is free and uses only SEC-operated infrastructure.