Locations v1 / Jurisdictii
Jurisdictions of a locality — resolved to its administrative unit, unless the act assigns the locality itself
A locality's jurisdictions. Where the act assigns the locality itself, that is used; otherwise it falls back to its unit, and the answer says which one it resolved on.
GET
https://oneapi.ro/api/locations/v1/localitati/{cod}/jurisdictii
Path parameters
NameTypeDescriptionExample
codrequired
string
SIRUTA code of the locality (e.g.
54984).
Query parameters
NameTypeDescriptionAccepted values
domeniuoptional
string | null
Narrows to one domain (e.g.
justitie).
e.g. justitie
How it behaves
- Jurisdiction is established at unit level, so a locality inherits it from its commune or town — except where the act assigns the locality itself (Bucharest's districts), in which case the locality-level row takes precedence.
- The assignment comes from Government Decision 1217/2023, issued under art. 42(2) of Law 304/2022.
nivelandtemeisay how precise each entry is and which act it comes from.
What it is for
- Starting from the locality in the address rather than from the unit — it resolves upwards on its own.
- Finding the competent court for a Bucharest district, where jurisdiction is set per district.
Response structure
All fields below live inside data.
FieldTypeDescription
localitate
object
The locality queried (SIRUTA code, name).
localitate.cod_siruta
integer
SIRUTA code of the territorial unit.
localitate.nume
string
The name, exactly as the source publishes it.
uat
object
The administrative unit the locality belongs to.
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.
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
Level in the classification hierarchy — the deeper, the more detailed.
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/localitati/54984/jurisdictii
{
"data": {
"localitate": {
"cod_siruta": 54984,
"nume": "Cluj-Napoca"
},
"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/localitati/179196/jurisdictii
{
"data": {
"localitate": {
"cod_siruta": 179196,
"nume": "București Sectorul 6"
},
"uat": {
"cod_siruta": 179132,
"nume": "București",
"tip": "municipiu"
},
"judet": {
"cod_siruta": 403,
"nume": "București",
"cod_auto": "B"
},
"jurisdictii": [
{
"domeniu": "justitie",
"tip": "judecatorie",
"denumire": "Judecătoria Sectorului 6",
"nivel": "uat",
"temei": "HG 1217/2023"
}
]
}
}
GEThttps://oneapi.ro/api/locations/v1/localitati/155252/jurisdictii
{
"data": {
"localitate": {
"cod_siruta": 155252,
"nume": "Timișoara"
},
"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/localitati/54984/jurisdictii?domeniu=justitie
{
"data": {
"localitate": {
"cod_siruta": 54984,
"nume": "Cluj-Napoca"
},
"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 locality 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."
]
}
}
}