Skip to content

List Locations ​

Returns a paginated list of all locations.

Request ​

GET /api/oauth/v2/resource/locations

HeaderValue
AuthorizationBearer {access_token}

Query parameters ​

ParameterTypeRequiredDescription
offsetintegerNoStart position (default: 0)
limitintegerNoNumber of results (default: 50, max: 200)
viewstringNodefault (default value) or slim for the slim response

Required scope: locations

Response ​

Success (200 OK) ​

json
{
  "data": [
    {
      "id": "b2c3d4e5-f6a7-8901-bcde-f01234567890",
      "name": "Hauptordination Wien",
      "bookingName": "Wien – 1. Bezirk",
      "abbreviation": "WI1",
      "street": "Musterstraße 1",
      "zip": "1010",
      "city": "Wien",
      "country": "AT",
      "description": "Barrierefrei zugänglich",
      "color": "#74AFAD",
      "email": "wien@example.com",
      "tel": "1234567",
      "telCode": "+43",
      "lat": 48.2082,
      "lng": 16.3738,
      "sort": 0,
      "bookable": true,
      "tenancies": [
        {
          "id": "f0e1d2c3-b4a5-6789-fedc-ba9876543210",
          "name": "Ordination Muster",
          "abbreviation": "OM",
          "color": "#00adba"
        }
      ]
    }
  ],
  "meta": {
    "total": 3,
    "offset": 0,
    "limit": 50
  }
}

Response fields ​

FieldTypeDescription
dataArrayList of locations
data[].idstring (UUID)Unique location ID
data[].namestringInternal name of the location
data[].bookingNamestring | nullDisplay name for booking
data[].abbreviationstring | nullAbbreviation
data[].streetstring | nullStreet and house number
data[].zipstring | nullPostal code
data[].citystring | nullCity
data[].countrystring | nullCountry code (ISO 3166-1 alpha-2)
data[].descriptionstring | nullDescription text
data[].colorstringColor as hex code (e.g. #74AFAD)
data[].emailstring | nullEmail address of the location
data[].telstring | nullPhone number
data[].telCodestring | nullDialing code
data[].latnumber | nullLatitude
data[].lngnumber | nullLongitude
data[].sortintegerSort order
data[].bookablebooleanWhether the location is bookable
data[].tenanciesArrayAssigned tenants
data[].tenancies[].idstring (UUID)Tenant ID
data[].tenancies[].namestringName of the tenant
data[].tenancies[].abbreviationstringAbbreviation
data[].tenancies[].colorstringColor as hex code
meta.totalintegerTotal number of locations
meta.offsetintegerCurrent start position
meta.limitintegerNumber of returned entries

Note: The id is returned as a UUID and is required for querying available slots and booking appointments.

Slim response (?view=slim) ​

With ?view=slim, the endpoint returns only the most important fields per location. Without the parameter, the response stays unchanged — existing integrations don't need to change anything.

If view is given more than once, the last value wins — ?view=default&view=slim returns the slim response.

The slim response omits contact details (email, tel, telCode), geo coordinates (lat, lng), bookingName, color, description, and the tenant assignment (tenancies).

json
{
  "data": [
    {
      "id": "b2c3d4e5-f6a7-8901-bcde-f01234567890",
      "name": "Hauptordination Wien",
      "abbreviation": "WI1",
      "street": "Musterstraße 1",
      "zip": "1010",
      "city": "Wien",
      "country": "AT",
      "bookable": true,
      "sort": 0
    }
  ],
  "meta": {
    "total": 3,
    "offset": 0,
    "limit": 50
  }
}
Beispiele
bash
curl -X GET "https://my.offisy.at/api/oauth/v2/resource/locations?offset=0&limit=50&view=default" \
  -H "Authorization: Bearer {access_token}"
Parameter
Zuerst Token anfordern

Possible errors ​

StatusCodeDescription
400validation_errorInvalid value for view
401invalid_clientInvalid or missing access token
403insufficient_scopeScope locations not present

Offisy GmbH