Skip to content

List Users

Returns a paginated list of all users.

Request

GET /api/oauth/v2/resource/users

HeaderValue
AuthorizationBearer {access_token}

Query parameters

ParameterTypeRequiredDescription
offsetintegerNoStart position (default: 0)
limitintegerNoNumber of results (default: 50, max: 200)

Required scope: users

Response

Success (200 OK)

json
{
  "data": [
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "title": "Dr.",
      "firstName": "Maria",
      "lastName": "Muster",
      "abbreviation": "MM",
      "sex": 1,
      "email": "maria.muster@example.com",
      "color": "#74AFAD",
      "isDoctor": true,
      "showBookingWeeks": 6,
      "sort": 0,
      "isBookable": true,
      "tenancies": [
        {
          "id": "f0e1d2c3-b4a5-6789-fedc-ba9876543210",
          "name": "Ordination Muster",
          "abbreviation": "OM",
          "color": "#00adba"
        }
      ]
    }
  ],
  "meta": {
    "total": 5,
    "offset": 0,
    "limit": 50
  }
}

Response fields

FieldTypeDescription
dataArrayList of users
data[].idstring (UUID)Unique user ID
data[].titlestring | nullAcademic title (e.g. Dr.)
data[].firstNamestringFirst name
data[].lastNamestringLast name
data[].abbreviationstring | nullAbbreviation
data[].sexinteger | nullSex (0 = male, 1 = female)
data[].emailstring | nullEmail address
data[].colorstringColor as hex code (e.g. #74AFAD)
data[].isDoctorbooleanWhether the user is a doctor
data[].showBookingWeeksintegerHow many weeks ahead are bookable
data[].sortintegerSort order
data[].isBookablebooleanWhether the user 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 users
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/users?offset=0&limit=50" \
  -H "Authorization: Bearer {access_token}"
Parameter
Zuerst Token anfordern

Possible errors

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

Offisy GmbH