Skip to main content
POST
/
v1
/
proof-of-work
/
screenshot
Fetch Screenshot
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({
    startDate: '2026-02-08 00:00:00',
    endDate: '2026-02-08 23:59:59',
    timeZone: 'Asia/Kolkata',
    userId: ['ab7c4f30-1024-471a-a767-739df0dc53fd'],
    offset: 0,
    limit: 15,
    teamId: []
  })
};

fetch('https://api.trackpilots.com/v1/proof-of-work/screenshot', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true,
  "statusCode": 200,
  "statusMessage": "Fetched screenshots successfully",
  "error": {},
  "data": [
    {
      "user": {
        "userId": "ab7c4f30-1024-471a-a767-739df0dc53fd",
        "userName": "Sakthivel Govinthan",
        "profilePicUrl": "https://trackpilots.s3.amazonaws.com/profile-pic/sample.png"
      },
      "screenshot": {
        "thumbnailUrl": "https://trackpilots.s3.amazonaws.com/screenshots/thumbnails/2026/February/07/sample.png",
        "imageUrl": "https://trackpilots.s3.amazonaws.com/screenshots/images/2026/February/07/sample.png"
      },
      "time": {
        "capturedAt": "2026-02-07T16:43:08.364Z"
      },
      "application": {
        "name": "Google Chrome",
        "iconUrl": "https://trackpilots.s3.us-east-1.amazonaws.com/app-icon/world-icon.png",
        "type": "website",
        "category": "Developer Tools",
        "domain": "chatgpt.com",
        "fullUrl": "https://chatgpt.com",
        "productivityStatus": "productive"
      },
      "isIdle": false
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Request payload to fetch screenshots. Either userId or teamId must be provided. Both cannot be empty.

startDate
string<date-time>
required
Example:

"2026-02-08 00:00:00"

endDate
string<date-time>
required
Example:

"2026-02-08 23:59:59"

timeZone
string
required

IANA timezone of the requester

Example:

"Asia/Kolkata"

userId
string<uuid>[]
required

List of user UUIDs to fetch screenshots for

offset
integer
required
Required range: x >= 0
Example:

0

limit
integer
required
Required range: 1 <= x <= 100
Example:

15

teamId
string<uuid>[]

List of team UUIDs to fetch screenshots for

Example:
[]

Response

Fetched screenshots successfully.

success
boolean
Example:

true

statusCode
integer
Example:

200

statusMessage
string
Example:

"Fetched screenshots successfully"

error
object

Error object if request fails, null if successful

data
object[]

List of screenshots captured in the requested time interval