Skip to main content
GET
/
api
/
public
/
v1
/
schedules
List Schedules
curl --request GET \
  --url https://api.example.com/api/public/v1/schedules
{
  "data": [
    {
      "id": "sch_123...",
      "name": "Standard Mon-Fri (9-5)",
      "type": "FIXED",
      "isActive": true,
      "pattern": {
        "monday": { "start": "09:00", "end": "17:00" },
        "tuesday": { "start": "09:00", "end": "17:00" }
      }
    }
  ]
}

Query Parameters

type
string
Filter schedules by their type (e.g., FIXED, FLEXIBLE, ROTATING).
isActive
boolean
Filter active vs inactive schedules. Defaults to true.

Response

{
  "data": [
    {
      "id": "sch_123...",
      "name": "Standard Mon-Fri (9-5)",
      "type": "FIXED",
      "isActive": true,
      "pattern": {
        "monday": { "start": "09:00", "end": "17:00" },
        "tuesday": { "start": "09:00", "end": "17:00" }
      }
    }
  ]
}