Skip to content

API routes

Every REST route the versioned API serves — method, path, view, access rule, parameters and summary — read from the DRF router and src/api/v1/urls.py.

Paths are relative to the API host. The canonical base is /api/v1/. The root URLconf also mounts the same URLconf at /api/ as a legacy alias. The router also accepts a format suffix (for example .json) on each route; those variants are not listed. Access names the permission classes DRF applies (public: none). Params lists the query parameters and body fields the handler itself reads; list routes also take the filters and search fields in Resources.

Resources

Prefix ViewSet Lookup Filters Search Summary
/api/v1/companies/ CompanyViewSet pk ticker, cik, industry, sic_code, hq_state name, ticker, cik CRUD for Company plus EDGAR resolution, sync, and read-only analytics helpers.
/api/v1/company-metadata/ CompanyMetadataViewSet pk industry, industry__icontains, sic_code, sic_code__icontains, sic_description__icontains, naics_code, naics_code__icontains, hq_state, hq_country, customer_class, customer_class__icontains, customer_type, customer_type__icontains, customer_vertical, customer_vertical__icontains, contract_status, contract_status__icontains name, ticker, cik, industry, sic_description, headquarters, sic_code, naics_code, crm_external_key, customer_vertical, customer_class, contract_status, hq_city Paginated company metadata for filtering, sorting, and dashboard-style facets.
/api/v1/filings/ FilingViewSet pk form_type, company form_type, accession_number Read-only filing data; writes happen via sync/ingest (admin-gated actions).
/api/v1/facts/ FactViewSet pk company, taxonomy, unit, concept, period_end_after, period_end_before concept XBRL facts, filterable by company, taxonomy, unit, concept and period (FactFilterSet).
/api/v1/sections/ SectionViewSet pk filing, name — Sections parsed from ingested filings.
/api/v1/tables/ TableViewSet pk filing — Tables parsed from ingested filings.
/api/v1/derived-metrics/ DerivedMetricViewSet pk company, key — Derived metrics computed from facts (compute-metrics, sync_derived_metrics).
/api/v1/peer-groups/ PeerGroupViewSet pk — name Peer groups of companies, with a cross-member fact comparison.
/api/v1/enrichment-datasets/ EnrichmentDatasetViewSet slug — — Enrichment datasets, with a coverage/trust report per dataset.
/api/v1/enrichment-records/ EnrichmentRecordViewSet pk dataset__slug, status, company source_key Enriched party records: the resolved golden values, and the claims behind them.
/api/v1/public-series/ ExternalSeriesViewSet pk provider, external_id — The external time-series catalog (FRED and other providers).
/api/v1/public-observations/ SeriesObservationViewSet pk series — Observations of the external time series.
/api/v1/series-bundles/ SeriesBundleViewSet slug — — Named series bundles (by slug), with a snapshot of their observations.

Routes

Method Path View Access Params Summary
GET /api/v1/health/ HealthView public — Liveness probe (/healthz, alias /api/v1/health/); touches no dependency.
GET /api/v1/health/ready/ HealthReadyView public — Readiness probe (/readyz, alias /api/v1/health/ready/): database, cache and Celery broker.
GET /api/v1/reference/sic-codes/ SicCodesReferenceView public query limit, code, q SEC SIC master list (from data/reference/sic_codes.json) for lookup and autocomplete.
GET /api/v1/tasks/{task_id}/ TaskStatusView IsAdminUser — Celery task state for an async job dispatched by a sync action.
GET /api/v1/schema/ SpectacularAPIView AllowAny — Provided by drf_spectacular.
GET /api/v1/docs/ SpectacularSwaggerView AllowAny — Provided by drf_spectacular.
GET /api/v1/ APIRootView public — The router's browsable index of the resources above (DefaultRouter).
GET POST /api/v1/companies/ CompanyViewSet.list/create IsAdminOrReadOnly — —
POST /api/v1/companies/bulk-from-edgar-tickers/ CompanyViewSet.bulk_from_edgar_tickers IsAdminOrReadOnly body update_existing, refresh_sec_json Insert missing Company rows from SEC company_tickers.json (bulk, no per-CIK API).
GET /api/v1/companies/compare/ CompanyViewSet.compare IsAdminOrReadOnly query group_by, concept, taxonomy Compare a concept across a cohort grouped by industry/region/size.
GET /api/v1/companies/edgar-search/ CompanyViewSet.edgar_search IsAdminOrReadOnly query q, limit, force_refresh Search listed issuers (DB-backed ListedIssuer; optional force_refresh refetches SEC file).
POST /api/v1/companies/from-edgar/ CompanyViewSet.from_edgar IsAdminOrReadOnly body ticker, cik, name Create or return a warehouse Company from EDGAR directory (DB first, then SEC).
GET /api/v1/companies/leadership-compare/ CompanyViewSet.leadership_compare IsAdminOrReadOnly query cik, ciks Compare leadership footprint + stakeholder orientation across companies (by CIK).
GET PUT PATCH DELETE /api/v1/companies/{pk}/ CompanyViewSet.retrieve/update/partial_update/destroy IsAdminOrReadOnly — —
GET /api/v1/companies/{pk}/analytics/latest-by-concepts/ CompanyViewSet.analytics_latest_by_concepts IsAdminOrReadOnly query concepts, taxonomy Latest fact per requested concept (concepts is comma-separated).
GET /api/v1/companies/{pk}/analytics/timeseries/ CompanyViewSet.analytics_timeseries IsAdminOrReadOnly query concepts, concept, taxonomy, annual, limit Time series for one concept, or a priority chain of concepts across XBRL tag changes.
POST /api/v1/companies/{pk}/analyze-leadership/ CompanyViewSet.analyze_leadership IsAdminOrReadOnly — Run the optional LLM narrative analysis of leadership (admin only).
POST /api/v1/companies/{pk}/compute-metrics/ CompanyViewSet.compute_metrics IsAdminOrReadOnly — Compute/refresh DerivedMetric rows from this company's Facts (admin only).
GET /api/v1/companies/{pk}/edgar-sync-status/ CompanyViewSet.edgar_sync_status IsAdminOrReadOnly — Last EDGAR sync timestamps for this company, with the latest error snippet.
GET /api/v1/companies/{pk}/leadership/ CompanyViewSet.leadership IsAdminOrReadOnly — Officers/directors extracted from this company's SEC ownership filings.
GET /api/v1/companies/{pk}/leadership-analysis/ CompanyViewSet.leadership_analysis IsAdminOrReadOnly — Most recent stored LLM leadership analysis for this company (if any).
GET /api/v1/companies/{pk}/macro-overlay/ CompanyViewSet.macro_overlay IsAdminOrReadOnly query metric, concept, series, agg, taxonomy, annual, limit A company metric or XBRL fact aligned with a stored FRED series per fiscal period, with Pearson r.
GET /api/v1/companies/{pk}/profile/ CompanyViewSet.profile IsAdminOrReadOnly — Consolidated Company-360 view: identity, financials, filings, documents, CRM.
GET /api/v1/companies/{pk}/stakeholder-assessment/ CompanyViewSet.stakeholder_assessment IsAdminOrReadOnly — Transparent people-vs-profits orientation index (heuristic; see caveats).
GET /api/v1/companies/{pk}/statements/ CompanyViewSet.statements IsAdminOrReadOnly query statement_type, taxonomy Curated financial-statement view (balance/income/cash-flow) from Facts.
POST /api/v1/companies/{pk}/suggest-schema/ CompanyViewSet.suggest_schema IsAdminOrReadOnly — Return static CRM-style field hints until filing-driven schema inference exists.
POST /api/v1/companies/{pk}/sync-facts/ CompanyViewSet.sync_facts IsAdminOrReadOnly query async; body async Sync this company's SEC companyfacts into Fact rows.
POST /api/v1/companies/{pk}/sync-submissions/ CompanyViewSet.sync_submissions IsAdminOrReadOnly query async; body async Sync this company's filing index from SEC submissions into Filing rows.
GET /api/v1/company-metadata/ CompanyMetadataViewSet.list IsAdminOrReadOnly — —
GET /api/v1/company-metadata/facets/ CompanyMetadataViewSet.facets IsAdminOrReadOnly — Aggregate counts for SIC, state, industry, and coverage stats.
GET /api/v1/company-metadata/{pk}/ CompanyMetadataViewSet.retrieve IsAdminOrReadOnly — —
GET /api/v1/filings/ FilingViewSet.list IsAdminOrReadOnly — —
POST /api/v1/filings/ingest-htm/ FilingViewSet.ingest_htm IsAdminOrReadOnly body url, ticker, cik Parse one HTM filing URL into Filing / related rows (same service as ingest_htm command).
POST /api/v1/filings/ingest-submission/ FilingViewSet.ingest_submission IsAdminOrReadOnly body url, ticker, cik Ingest a full SEC submission (.txt) into Filing + FilingDocument rows.
GET /api/v1/filings/search/ FilingViewSet.search_documents IsAdminOrReadOnly query q, form_type, cik Full-text search across ingested FilingDocument text, optionally narrowed by form_type and cik; 400 when q is shorter than 2 characters or cik is not a valid SEC CIK.
GET /api/v1/filings/{pk}/ FilingViewSet.retrieve IsAdminOrReadOnly — —
GET /api/v1/facts/ FactViewSet.list IsAdminOrReadOnly — —
GET /api/v1/facts/facets/ FactViewSet.facets IsAdminOrReadOnly query company Per-company fact aggregates: taxonomies, top concepts and years (company required).
GET /api/v1/facts/{pk}/ FactViewSet.retrieve IsAdminOrReadOnly — —
GET /api/v1/sections/ SectionViewSet.list IsAdminOrReadOnly — —
GET /api/v1/sections/{pk}/ SectionViewSet.retrieve IsAdminOrReadOnly — —
GET /api/v1/tables/ TableViewSet.list IsAdminOrReadOnly — —
GET /api/v1/tables/{pk}/ TableViewSet.retrieve IsAdminOrReadOnly — —
GET /api/v1/derived-metrics/ DerivedMetricViewSet.list IsAdminOrReadOnly — —
GET /api/v1/derived-metrics/{pk}/ DerivedMetricViewSet.retrieve IsAdminOrReadOnly — —
GET POST /api/v1/peer-groups/ PeerGroupViewSet.list/create IsAdminOrReadOnly — —
GET PUT PATCH DELETE /api/v1/peer-groups/{pk}/ PeerGroupViewSet.retrieve/update/partial_update/destroy IsAdminOrReadOnly — —
GET /api/v1/peer-groups/{pk}/analytics/peer-fact-compare/ PeerGroupViewSet.analytics_peer_fact_compare IsAdminOrReadOnly query concept, taxonomy Latest fact for concept across members of this peer group.
GET /api/v1/enrichment-datasets/ EnrichmentDatasetViewSet.list IsAdminOrReadOnly — —
GET /api/v1/enrichment-datasets/{slug}/ EnrichmentDatasetViewSet.retrieve IsAdminOrReadOnly — —
GET /api/v1/enrichment-datasets/{slug}/report/ EnrichmentDatasetViewSet.report IsAdminOrReadOnly — Coverage, validation tiers and per-provider outcomes for this dataset.
GET /api/v1/enrichment-records/ EnrichmentRecordViewSet.list IsAdminOrReadOnly — —
GET /api/v1/enrichment-records/contested/ EnrichmentRecordViewSet.contested IsAdminOrReadOnly — The review queue: records where comparable sources disagreed closely.
GET /api/v1/enrichment-records/{pk}/ EnrichmentRecordViewSet.retrieve IsAdminOrReadOnly — —
GET /api/v1/enrichment-records/{pk}/evidence/ EnrichmentRecordViewSet.evidence IsAdminOrReadOnly — Every claim for this record, with its provider, confidence and source.
GET /api/v1/public-series/ ExternalSeriesViewSet.list IsAdminOrReadOnly — —
GET /api/v1/public-series/{pk}/ ExternalSeriesViewSet.retrieve IsAdminOrReadOnly — —
GET /api/v1/public-observations/ SeriesObservationViewSet.list IsAdminOrReadOnly — —
GET /api/v1/public-observations/{pk}/ SeriesObservationViewSet.retrieve IsAdminOrReadOnly — —
GET /api/v1/series-bundles/ SeriesBundleViewSet.list IsAdminOrReadOnly — —
GET /api/v1/series-bundles/{slug}/ SeriesBundleViewSet.retrieve IsAdminOrReadOnly — —
GET /api/v1/series-bundles/{slug}/observations/ SeriesBundleViewSet.observations IsAdminOrReadOnly query units, frequency, aggregation, vintage_date, per_series, limit Recent observations + series metadata for every series in this bundle.