JavaScript
const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: JSON.stringify({ timeZone: 'Asia/Kolkata', userId: ['ab7c4f30-1024-471a-a767-739df0dc53fd'], teamId: [] }) }; fetch('https://api.trackpilots.com/v1/my-team', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
200
Example
{ "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 } } ] }
Fetch my team details
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Either userId or teamId must be provided. Both cannot be empty.
IANA timezone of the requester
"Asia/Kolkata"
List of user UUIDs to fetch screenshots for
List of team UUIDs to fetch screenshots for
[]
Fetched my team details successfully.
true
"Fetched user work summary successfully"
null
Show child attributes