oneapi
Sign in
Locations v1 / Referință & business

Version

The API version plus the data edition (the most recent import).

GET
https://oneapi.ro/api/locations/v1/versiune

Query parameters

This route accepts no query parameters.

How it behaves

  • The API version plus the data edition (the most recent import). It requires no particular feature.

What it is for

  • Showing the API version and data edition in a footer or an „about" page.
  • Telemetry: logging which data edition a response was based on.
  • Detecting a new data edition in order to invalidate client caches.

Response structure

All fields below live inside data.

FieldTypeDescription
api string The API version.
modul string The version of the Locations module.
editie_date string | null The label of the most recent import (the data edition); null if unknown.

Response examples

GEThttps://oneapi.ro/api/locations/v1/versiune
{
    "data": {
        "api": "v1",
        "modul": "locations",
        "editie_date": "2026-10-06T16: 33: 40+03: 00"
    }
}

Error codes

CodeSlugWhen it occurs
401neautentificatToken missing, invalid, expired or revoked.
403modul_interzisThe token has no access to the route's module.
422validareThe route takes no parameters apart from lang: any other parameter returns 422 instead of being ignored.
429cota_depasitaThe 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": "The route takes no parameters apart from lang: any other parameter returns 422 instead of being ignored."
    }
}