Returns all configured work periods / shift definitions for the authenticated company. The returned shift IDs can be used together with the shift query parameter on most report endpoints.
Authentication
Requires the X-API-Key header.
Query parameters
None.
Response (200 OK)
| Field | Type | Description |
|---|---|---|
data[].id | integer | Work period / shift identifier. |
data[].name | string | Name of the shift (e.g. "Early Shift"). |
data[].id_company | integer | ID of the owning company. |
data[].timezone | string | IANA time zone identifier (e.g. "Europe/Berlin"). |
Example response
{
"data": [
{ "id": 1, "name": "Early Shift", "id_company": 42, "timezone": "Europe/Berlin" }
]
}