Skip to main content
POST
Planalto Law

Authorizations

Authorization
string
header
required

Use Authorization: Bearer YOUR_API_KEY

Headers

Idempotency-Key
string

Optional client-chosen key for this request (any string up to 255 characters, e.g. a UUID). Every Croma operation is an idempotent lookup: repeating a request with the same body returns the same result and creates nothing, so retrying after a timeout or network failure is always safe. The key is echoed back in the Idempotency-Key response header so you can correlate a retry with its first attempt. Each attempt that reaches the API counts against the rate limit.

Maximum string length: 255
Example:

"0f8e9a42-6b7c-4d1e-9a3f-2c5d7e8f9a0b"

Body

application/json
law_id
string
required

Id del acto, p. ej. lei-13105-2015 o cf-1988, como lo devuelve la búsqueda.

Pattern: ^(?:cf-\d{4}|(?:lei|lcp|ldl|del|emc|ecr|mpv|dec)-[0-9a-z]+(?:-[0-9a-z]+)*-\d{4})$
article
string
default:""

Número de un artículo, p. ej. 12, 1.029 u 8-A, para devolver solo ese artículo (opcional).

Pattern: ^(?:\d[\d.]{0,6}\s*[º°o]?\s*(?:-?\s*[A-Za-z]{1,2})?)?$
offset
integer
default:0

First character of the range to return. Pass the previous response's next_offset to continue reading.

Required range: 0 <= x <= 10000000
limit
integer
default:200000

Maximum characters to return (1000-1000000).

Required range: 1000 <= x <= 1000000

Response

Successful response

data
object
required