cURL
curl --request GET \ --url https://api.shiftkeeper.io/schedules/{schedule_id}/shifts/ \ --header 'x-api-key: <api-key>'
{ "shifts": [ { "users": [ { "id": "<string>", "name": "<string>", "email": "[email protected]", "role": "owner", "seat": "viewer", "time_zone": "<string>", "slack_id": "<string>" } ], "start": "2023-11-07T05:31:56Z", "end": "2023-11-07T05:31:56Z" } ], "meta": { "total": 123, "page": 123, "per_page": 123 } }
List all shifts for a schedule within a given time interval.
Enter your API key which starts with 'keeper_'
The ID of the schedule.
The number of items per page.
1 <= x <= 100
The page number of the results to return.
x >= 1
Default Response
Show child attributes
The users on-call for this shift.
The ID of the user.
The name of the user.
The email of the user.
The role of the user. Learn more about roles in our docs.
owner
standard
The seat of the user. Learn more about seat in our docs.
viewer
member
The preferred time zone of the user. If not set, the organization's time zone will be used.
The Slack ID of the user.
The start time of the on-call shift.
The end time of the on-call shift.
The total number of items in the collection.
The current page number.