List Shifts
curl --request GET \
--url https://api.conduit.ai/v1/shifts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.conduit.ai/v1/shifts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.conduit.ai/v1/shifts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.conduit.ai/v1/shifts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.conduit.ai/v1/shifts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.conduit.ai/v1/shifts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.conduit.ai/v1/shifts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "<string>",
"worker": {
"member_id": "<string>",
"name": "<string>"
},
"status": "open",
"timezone": "<string>",
"clock_in_at": "<string>",
"clock_out_at": "<string>",
"breaks": [
{
"start_at": "<string>",
"end_at": "<string>",
"duration_secs": 123
}
],
"duration_secs": 123,
"break_secs": 123,
"working_secs": 123,
"created_at": "<string>",
"updated_at": "<string>"
}
],
"next_cursor": "<string>",
"has_more": true,
"sync_started_at": "<string>"
}{
"error": "Invalid workspace id"
}{
"error": "Invalid workspace id"
}{
"error": "Invalid workspace id"
}{
"error": "Invalid workspace id"
}{
"error": "Invalid workspace id"
}{
"error": "Invalid workspace id"
}Shifts
List shifts
List shifts by worker, date, or status.
GET
/
v1
/
shifts
List Shifts
curl --request GET \
--url https://api.conduit.ai/v1/shifts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.conduit.ai/v1/shifts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.conduit.ai/v1/shifts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.conduit.ai/v1/shifts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.conduit.ai/v1/shifts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.conduit.ai/v1/shifts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.conduit.ai/v1/shifts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "<string>",
"worker": {
"member_id": "<string>",
"name": "<string>"
},
"status": "open",
"timezone": "<string>",
"clock_in_at": "<string>",
"clock_out_at": "<string>",
"breaks": [
{
"start_at": "<string>",
"end_at": "<string>",
"duration_secs": 123
}
],
"duration_secs": 123,
"break_secs": 123,
"working_secs": 123,
"created_at": "<string>",
"updated_at": "<string>"
}
],
"next_cursor": "<string>",
"has_more": true,
"sync_started_at": "<string>"
}{
"error": "Invalid workspace id"
}{
"error": "Invalid workspace id"
}{
"error": "Invalid workspace id"
}{
"error": "Invalid workspace id"
}{
"error": "Invalid workspace id"
}{
"error": "Invalid workspace id"
}Shifts are ordered by clock-in time, newest first by default.
member_id is the same member ID used for task assignees.
Pagination
Follownext_cursor until has_more is false. Keep the filters unchanged between pages. Pages can be short or empty.
Sync changes (optional)
Use this when your integration keeps its own copy of shift data. For ordinary reads, ignoresync_started_at.
sync_started_at is when the first page started loading. Every page returns the same value.
- Fetch every page.
- Save
sync_started_atafter the final page succeeds. - Pass it as
updated_afteron your next request. Update your stored records by shift ID.
Authorizations
Query Parameters
Was this page helpful?