Skip to content

User Details

Returns the details of a single user.

Request

GET /api/oauth/v2/resource/users/{uuid}

HeaderValue
AuthorizationBearer {access_token}

URL parameters

ParameterTypeRequiredDescription
uuidstring (UUID)YesUnique user ID

Required scope: users

Response

Success (200 OK)

json
{
  "data": {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "title": null,
    "firstName": "Maria",
    "lastName": "Muster",
    "abbreviation": "MM",
    "sex": 1,
    "email": "maria.muster@example.com",
    "color": "#00adba",
    "sort": 0,
    "isBookable": true,
    "isDoctor": false,
    "showBookingWeeks": 4,
    "tenancies": [
      {
        "id": "f0e1d2c3-b4a5-6789-fedc-ba9876543210",
        "name": "Ordination Muster",
        "abbreviation": "OM",
        "color": "#00adba"
      }
    ]
  }
}

Response fields

FieldTypeDescription
data.idstring (UUID)Unique user ID
data.titlestring | nullTitle (e.g. "Dr.")
data.firstNamestring | nullFirst name
data.lastNamestring | nullLast name
data.abbreviationstring | nullAbbreviation
data.sexinteger | nullSex (0 = male, 1 = female)
data.emailstring | nullEmail address
data.colorstring | nullColor as hex code (e.g. #00adba)
data.sortintegerSort order
data.isBookablebooleanWhether the user is bookable
data.isDoctorbooleanWhether the user is marked as a doctor
data.showBookingWeeksinteger | nullNumber of weeks displayed in the booking calendar
data.tenanciesArrayAssigned tenants
data.tenancies[].idstring (UUID)Tenant ID
data.tenancies[].namestringName of the tenant
data.tenancies[].abbreviationstringAbbreviation
data.tenancies[].colorstringColor as hex code

Note: The API returns additional internal fields not documented here. Only use the fields described here — all others may change without notice.

Beispiele
bash
curl -X GET "https://my.offisy.at/api/oauth/v2/resource/users/b2c3d4e5-f6a7-8901-bcde-f01234567890" \
  -H "Authorization: Bearer {access_token}"
Parameter
Zuerst Token anfordern

Possible errors

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

Offisy GmbH