Docs / REST API

POST /v1/citecheck

Check ALL legal references in a text against the corpus

Finds citations that are not in the corpus or are no longer in force; each finding carries the date the corpus last checked the source. Body: EITHER application/json {text, jur} OR text/plain. Malformed JSON or JSON without a non-empty `text` returns 400 — never a silent zero: a quiet {total:0} on a broken document would look exactly like 'no violations found'.

Endpoint

POST https://api.lexatlas.creatora.app/v1/citecheck

Parameters

NameInRequiredTypeDescription
default_jurquerynostringjurisdiction assumed for bare citations

Request body

JSON object.

FieldTypeDescription
textstring
jurstring

Example

curl -X POST -H "X-API-Key: lxa_YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"cites": ["ru:gk_rf_1:196"]}' \
  "https://api.lexatlas.creatora.app/v1/citecheck"

Responses and error codes

StatusMeaningSchema
200per-citation verdicts: ok / repealed / not_foundobject
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.