Skip to main content
GET
/
v1
/
auth
/
schedule
Get employee schedule
curl --request GET \
  --url http://localhost:3000/v1/auth/schedule
{
  "shifts": [
    {
      "id": 123,
      "employee_id": 123,
      "date": "<string>",
      "start_time": 123,
      "end_time": 123,
      "start_time_localized": "<string>",
      "end_time_localized": "<string>",
      "operational_unit": 123,
      "operational_unit_name": "<string>",
      "company_name": "<string>",
      "location_label": "<string>",
      "is_open": true,
      "is_published": true,
      "is_locked": true,
      "comment": "<string>"
    }
  ],
  "deputy_employee_id": 123,
  "deputy_configured": true,
  "message": "<string>",
  "staff_id": "<string>",
  "error": "<string>",
  "error_details": "<string>"
}

Query Parameters

staff_id
string<uuid>

Staff ID for service accounts with PIN auth

Example:

"123e4567-e89b-12d3-a456-426614174000"

Response

200 - application/json

Schedule response

shifts
object[]
required
deputy_employee_id
number | null
deputy_configured
boolean
message
string
staff_id
string
error
string
error_details
string