Get a Users Appointments
GET /api/portal/appointment
Section titled “ /api/portal/appointment”This endpoint retrieves a list of upcoming appointments for a user.
Security
Section titled “Security”This endpoint requires authentication. You must include a valid API key in the request header.
Permission(s) Required: IMPERSONATE_PORTAL_USER
You must also include these headers to identify the registered user making the request:
X-IMPERSONATED-USER-FIRST-NAME: <first-name>X-IMPERSONATED-USER-LAST-NAME: <last-name>X-IMPERSONATED-USER-EMAIL: <email>
Response Body
Section titled “Response Body”[ { "id": string, "startTimestamp": timestamp, "hoursLength": number, "isApproved": boolean, "isCreator": boolean, }, {...}]
id
UUID of the appointment.
startTimestamp
Unix Epoch format (millis). This is the start time of the appointment.
hoursLength
Length of the appointment in hours.
isApproved
If the appointment has been approved or not.
isCreator
If the user making the request is the creator of the appointment.