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)

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.

Beispiele
bash
curl -X GET "https://my.offisy.at/api/oauth/v2/resource/locations?offset=0&limit=50" \
  -H "Authorization: Bearer {access_token}"
Parameter
Zuerst Token anfordern

Possible errors

StatusCodeDescription
401invalid_clientInvalid or missing access token
403insufficient_scopeScope locations not present

Offisy GmbH