Fetch Time Logs
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.trackpilots.com/v1/my-team/time-logs/{userId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.trackpilots.com/v1/my-team/time-logs/{userId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.trackpilots.com/v1/my-team/time-logs/{userId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"statusCode": 200,
"statusMessage": "Fetched user work summary successfully",
"error": null,
"data": {
"user": {
"userId": "ab7c4f30-1024-471a-a767-739df0dc53fd",
"name": "Sakthivel Govinthan",
"profilePicUrl": "https://trackpilots.s3.amazonaws.com/profile-pic/sample.png"
},
"timeSummary": {
"totalWorkedTimeInSeconds": 1660,
"activeWorkedTimeInSeconds": 1660,
"idleWorkedTimeInSeconds": 0,
"productiveWorkedTimeInSeconds": 1485,
"unproductiveWorkedTimeInSeconds": 0,
"neutralWorkedTimeInSeconds": 175
},
"session": {
"inTime": "2026-02-12T04:32:01.676Z",
"outTime": null,
"isWorking": true
}
}
}My Team
Fetch Time Logs
GET
/
v1
/
my-team
/
time-logs
/
{userId}
Fetch Time Logs
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.trackpilots.com/v1/my-team/time-logs/{userId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.trackpilots.com/v1/my-team/time-logs/{userId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.trackpilots.com/v1/my-team/time-logs/{userId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"statusCode": 200,
"statusMessage": "Fetched user work summary successfully",
"error": null,
"data": {
"user": {
"userId": "ab7c4f30-1024-471a-a767-739df0dc53fd",
"name": "Sakthivel Govinthan",
"profilePicUrl": "https://trackpilots.s3.amazonaws.com/profile-pic/sample.png"
},
"timeSummary": {
"totalWorkedTimeInSeconds": 1660,
"activeWorkedTimeInSeconds": 1660,
"idleWorkedTimeInSeconds": 0,
"productiveWorkedTimeInSeconds": 1485,
"unproductiveWorkedTimeInSeconds": 0,
"neutralWorkedTimeInSeconds": 175
},
"session": {
"inTime": "2026-02-12T04:32:01.676Z",
"outTime": null,
"isWorking": true
}
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
User ID of the team member
Example:
"ab7c4f30-1024-471a-a767-739df0dc53fd"
Query Parameters
Timezone for logs calculation
Example:
"Asia/Kolkata"
