Docs / REST API

GET /v1/act/toc

Table of contents of an act: its structure as we hold it

Sections and articles of one act, in source order, with the article count we actually indexed — so a gap in the corpus is visible as a gap, not as a shorter list.

Endpoint

GET https://api.lexatlas.creatora.app/v1/act/toc

Parameters

NameInRequiredTypeDescription
jurqueryyesstringjurisdiction, e.g. ru
codequeryyesstringact code, e.g. gk_rf_1

Example

curl -H "X-API-Key: lxa_YOUR_KEY" \
  "https://api.lexatlas.creatora.app/v1/act/toc?jur=ru&code=gk_rf_1"

Responses and error codes

StatusMeaningSchema
200{act, units: [{no, title, kind}], articles, articles_indexed}object
400bad request — see error_code (missing_parameter, invalid_parameter, invalid_body, invalid_cursor, empty_batch, batch_too_large, unsupported)Error
401missing/invalid API key (when auth is enabled) — error_code=unauthorizedError
413body too large — error_code=payload_too_largeError
429rate limit exceeded (per-key, per-minute window) — error_code=rate_limitedError

Errors use one envelope everywhere: error, error_code, hint, http_status. The full list of codes is served by GET /v1/errors.