WorkSchedule > Schedule

Reads all Schedules

Changed on

Reads all Schedules

get/api/2026-10-01/resources/work_schedule/schedules

Request

  • Base URL
    https://api.factorialhr.com
  • URL
    https://api.factorialhr.com/api/2026-10-01/resources/work_schedule/schedules
  • Auth
    • OAuth 2
      Authorization code: https://id.factorialhr.com/oauth/authorize
      Token URL: https://id.factorialhr.com/api/oauth/token scopes: time_tracking
    • or API key in header x-api-key

Query parameters

ids[]string[]
with_employee_idsboolean required
with_periodsboolean required

Response

OK

Example response

{
  "data": [
    {
      "id": "1",
      "name": "Morning shift",
      "company_id": "1",
      "created_at": "2024-01-01T00:00:00.000Z",
      "updated_at": "2024-01-01T00:00:00.000Z",
      "employee_ids": [
        "1",
        "2"
      ],
      "periods": [
        {
          "id": 1,
          "schedule_id": 1,
          "default": false,
          "start_day": 15,
          "start_month": 12,
          "end_day": 31,
          "end_month": 12,
          "schedule_type": "flexible"
        }
      ]
    }
  ]
}

Changes