cURL
curl --request GET \ --url https://api-{region}.sesametime.com/schedule/v1/reports/worked-night-hours \ --header 'Authorization: Bearer <token>'
{ "data": [ { "employeeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "secondsWorkedNight": 123 } ], "meta": { "currentPage": 1, "lastPage": 1, "total": 1, "perPage": 1 } }
API token obtained from Sesame HR Dashboard > Settings > Integrations > API
Array of employee ids
true or false
Y-m-d
Limit employees
Request a specific page
Array of Objects
Show child attributes
Suggestions