Locations v1 / Jurisdictii
Jurisdictions of an administrative unit (commune/town/city), by SIRUTA code
Which court, which prosecutor's office and which other authorities have jurisdiction over a unit, with the act that assigns it. For knowing where to file, not what is nearest.
GET
https://oneapi.ro/api/locations/v1/uat/{cod}/jurisdictii
Path parameters
NameTypeDescriptionExample
codrequired
string
SIRUTA code of the administrative-territorial unit (e.g.
54975 for Cluj-Napoca).
Query parameters
NameTypeDescriptionAccepted values
domeniuoptional
string | null
Narrows to one domain (e.g.
justitie).
e.g. justitie
How it behaves
- The territorial assignment comes from Government Decision 1217/2023 (Official Gazette 1102/2023), issued under art. 42(2) of Law 304/2022 — the act that establishes which localities fall in each district court's jurisdiction. It is not published as a dataset; it is the annex to a piece of legislation.
jurisdictiiis a LIST, not an object with fixed keys: institutions get added over time, and a fixed-key shape would change the contract with every addition. Filter with?domeniu=.nivelsays how precise the jurisdiction is:uat= established per locality by the legislation (the hard-to-obtain part),judet= the county's institution,localitate= an assignment finer than the unit (Bucharest's districts).temeigives the act, so you can cite the source.- The prosecutor's office is not stored separately: the act treats it together with the court, and its name invariably follows the pattern
Parchetul de pe lângă <court>.
What it is for
- Finding out which district court an action against someone from that commune or town is filed with.
- Routing cases automatically to the competent court, without a hand-maintained table.
- Checking which prosecutor's office a locality falls under, before filing a complaint.
Response structure
All fields below live inside data.
FieldTypeDescription
uat
object
The administrative unit the place belongs to (SIRUTA code, name, type).
uat.cod_siruta
integer
SIRUTA code of the territorial unit.
uat.nume
string
The name, exactly as the source publishes it.
uat.tip
string
The type of unit (municipality/town/commune).
judet
object
The county (SIRUTA code, name, registration prefix).
judet.cod_siruta
integer
SIRUTA code of the territorial unit.
judet.nume
string
The name, exactly as the source publishes it.
judet.cod_auto
string
Vehicle registration prefix of the county.
jurisdictii[]
array
The list of competent institutions:
{domeniu, tip, denumire, nivel, sediu?, temei?}.
jurisdictii[].domeniu
string
jurisdictii[].tip
string
jurisdictii[].denumire
string
The name, exactly as the source publishes it.
jurisdictii[].nivel
string
uat / judet / localitate — how finely the jurisdiction is established.
jurisdictii[].sediu.nume
string
The name, exactly as the source publishes it.
jurisdictii[].sediu.cod_siruta
integer
SIRUTA code of the territorial unit.
jurisdictii[].temei
string
The legislation the assignment comes from (e.g.
HG 1217/2023).
Response examples
GEThttps://oneapi.ro/api/locations/v1/uat/54975/jurisdictii
{
"data": {
"uat": {
"cod_siruta": 54975,
"nume": "Cluj-Napoca",
"tip": "municipiu"
},
"judet": {
"cod_siruta": 127,
"nume": "Cluj",
"cod_auto": "CJ"
},
"jurisdictii": [
{
"domeniu": "justitie",
"tip": "judecatorie",
"denumire": "Judecătoria Cluj-Napoca",
"nivel": "uat",
"sediu": {
"nume": "Cluj-Napoca",
"cod_siruta": 54975
},
"temei": "HG 1217/2023"
}
]
}
}
GEThttps://oneapi.ro/api/locations/v1/uat/155243/jurisdictii
{
"data": {
"uat": {
"cod_siruta": 155243,
"nume": "Timișoara",
"tip": "municipiu"
},
"judet": {
"cod_siruta": 350,
"nume": "Timiș",
"cod_auto": "TM"
},
"jurisdictii": [
{
"domeniu": "justitie",
"tip": "judecatorie",
"denumire": "Judecătoria Timișoara",
"nivel": "uat",
"sediu": {
"nume": "Timișoara",
"cod_siruta": 155243
},
"temei": "HG 1217/2023"
}
]
}
}
GEThttps://oneapi.ro/api/locations/v1/uat/54975/jurisdictii?domeniu=justitie
{
"data": {
"uat": {
"cod_siruta": 54975,
"nume": "Cluj-Napoca",
"tip": "municipiu"
},
"judet": {
"cod_siruta": 127,
"nume": "Cluj",
"cod_auto": "CJ"
},
"jurisdictii": [
{
"domeniu": "justitie",
"tip": "judecatorie",
"denumire": "Judecătoria Cluj-Napoca",
"nivel": "uat",
"sediu": {
"nume": "Cluj-Napoca",
"cod_siruta": 54975
},
"temei": "HG 1217/2023"
}
]
}
}
Error codes
| Code | Slug | When it occurs |
|---|---|---|
| 401 | neautentificat | Token missing, invalid, expired or revoked. |
| 403 | feature_indisponibil | The current plan does not include the feature the route depends on. |
| 404 | negasit | No administrative unit exists for the given SIRUTA code. |
| 422 | validare | A parameter failed validation (domeniu); detalii says which and why. |
| 429 | cota_depasita | The plan's monthly quota has been exceeded (see Retry-After). |
All errors share the same shape. eroare.cod is stable and is the value you should branch on in code — not the text in mesaj, which may change.
{
"eroare": {
"cod": "validare",
"mesaj": "A parameter failed validation (domeniu); detalii says which and why.",
"detalii": {
"cod": [
"The value sent does not satisfy the parameter rule."
]
}
}
}