List of shifts
Retrieve a paginated list of shifts with details such as start and end times, breaks, metadata, and summary metrics. Supports pagination through limit and offset query parameters and filtering by contractId, date range (fromDate and toDate).
Token scopes: time-tracking:read
Authentication
AuthorizationBearer
## Authentication
The Deel API uses bearer tokens to authenticate requests. All API calls must be made over HTTPS — calls over plain HTTP or without authentication will fail.
```curl
curl -X GET 'https://api.letsdeel.com/rest/v2/contracts' \
-H 'Authorization: Bearer YOUR-TOKEN-HERE'
```
[Learn more about authentication](/api/authentication)
OR
AuthorizationBearer
Standard OAuth2 security scheme based on https://swagger.io/docs/specification/authentication/
Query parameters
limit
Maximum number of records to return.
offset
Offset/index of record for the next page of records to return.
from_date
Filter shifts from this date (YYYY-MM-DD).
to_date
Filter shifts until this date (YYYY-MM-DD).
contract_id[]
Filter shifts by one or more contract IDs.
Response
Successful response with paginated shifts.
data
List of shift records.
page
Pagination information for the response.
Errors
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error