Skip to main content
POST
Corte Suprema de Justicia de El Salvador Laws Search

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
query
string
default:""

Optional search terms matched against the act's name, the documentation center's summary and the full text.

Maximum string length: 300
type
string
default:""

Optional kind of document as type names it: Decretos Legislativos, Decretos Ejecutivos, Decretos Institucionales, Acuerdos, Reglamentos, Ordenanzas Municipales or Documentos Generales, matched from the start. Case and accents are ignored.

Maximum string length: 80
status
enum<string>
default:""

Optional status: vigente (in force), caducada (expired) or derogada (repealed).

Available options:
,
vigente,
caducada,
derogada
subject
string
default:""

Optional area of law as subject names it, e.g. Penal, Tributaria, Laboral, matched from the start. Case and accents are ignored.

Maximum string length: 80
number
string
default:""

Optional decree or agreement number, e.g. 1030. Case, spaces and punctuation are ignored.

Maximum string length: 40
municipality
string
default:""

Optional municipality of an ordinance, e.g. San Salvador Centro, matched from the start. Case and accents are ignored.

Maximum string length: 120
department
string
default:""

Optional department of an ordinance, e.g. La Libertad, matched from the start. Case and accents are ignored.

Maximum string length: 80
year
integer
default:0

Optional year of publication in the Diario Oficial. 0 searches every year.

Required range: 0 <= x <= 2100
from_date
string<date>
default:""

Optional date filter in yyyy-mm-dd format.

to_date
string<date>
default:""

Optional date filter in yyyy-mm-dd format.

page
integer
default:1

1-based page number for paginated results.

Required range: 1 <= x <= 1000
per_page
integer
default:20

Results per page (1-50).

Required range: 1 <= x <= 50

Response

Successful response

data
object
required