Skip to main content
GET
/
v1
/
shifts
Get Shifts
curl --request GET \
  --url https://app.untetherlabs.com/api/v1/shifts \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "createdAt": "2024-11-20T07:43:34+0000",
      "startDate": "2024-11-20T07:43:34+0000",
      "endDate": "2024-11-20T07:43:34+0000",
      "segments": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "createdAt": "2024-11-20T07:43:34+0000",
          "role": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "isBreak": false,
          "isOnCall": false,
          "type": "working",
          "startDate": "2024-11-20T07:43:34+0000",
          "endDate": "2024-11-20T07:43:34+0000",
          "labels": [
            "<string>"
          ],
          "importedId": "<string>",
          "roleImportedId": "<string>",
          "additionalInfo": "<unknown>",
          "skillRequirement": {
            "type": "equal",
            "skill": "<string>",
            "value": "<string>"
          }
        }
      ],
      "workRuleOverride": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "provider": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "team": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "note": "<string>",
      "isExternal": true
    }
  ],
  "cursor": "<string>"
}
Get shifts within a given time range.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

provider
string<uuid>
team
string<uuid>
startDate
string

Used to inclusively filter shifts whose startDate is later than the provided start time, in yyyy-MM-dd format. Defaults to current date - 1 month.

Example:

"2024-11-20T07:43:34+0000"

endDate
string

Used to exclusively filter shifts whose endDate is earlier than the provided end time, in yyyy-MM-dd format. Defaults to current date + 1 month.

Example:

"2024-11-20T07:43:34+0000"

includeOpen
boolean
default:false
pageSize
number
default:20
Required range: 1 <= x <= 200
cursor
string

Response

items
object[]
required
cursor
string