Discovery

Real-time inventory of the indexed corpus

Returns the current state of the case-law corpus: number of tables, total documents, jurisdiction inferred per table, date range and top sources with counts. AUTO-DISCOVERABLE: when a new jurisprudencia_<iso> table with embeddings is added to Supabase, it shows up here with no code changes. Useful for clients (dashboards, MCP, agents) to build coverage UIs without hardcoding anything. Cache: 5 min server-side + Cache-Control 5 min on the response. Requires an API key with any valid scope (does not consume credits).

get/api/v1/corpus/coverage

Request

  • Base URL: https://legal.nexusquantum.legal
  • URL: https://legal.nexusquantum.legal/api/v1/corpus/coverage
  • Auth: HTTP bearer

Response

Corpus inventory.

generatedAtstring date-time required
cacheTtlSecondsinteger required
totalDocsinteger required

Sum of docs across ALL tables.

totalTablesinteger required

Example response

{
  "tables": [
    {
      "table": "jurisprudencia_docs",
      "inferredJurisdiction": "ES"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.