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
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| jur | query | yes | string | jurisdiction, e.g. ru |
| code | query | yes | string | act 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
| Status | Meaning | Schema |
|---|---|---|
| 200 | {act, units: [{no, title, kind}], articles, articles_indexed} | object |
| 400 | bad request — see error_code (missing_parameter, invalid_parameter, invalid_body, invalid_cursor, empty_batch, batch_too_large, unsupported) | Error |
| 401 | missing/invalid API key (when auth is enabled) — error_code=unauthorized | Error |
| 413 | body too large — error_code=payload_too_large | Error |
| 429 | rate limit exceeded (per-key, per-minute window) — error_code=rate_limited | Error |
Errors use one envelope everywhere: error, error_code, hint, http_status. The full list of codes is served by GET /v1/errors.