GET
/
timetracking
/
list
Filter time tracking entries
curl --request GET \
  --url http:localhost:3000/v2/timetracking/list \
  --header 'x-API-Key: <api-key>'
[
  {
    "_id": "<string>",
    "number": 123,
    "companyId": "<string>",
    "status": {
      "status": 123,
      "createdAt": "2023-11-07T05:31:56Z",
      "createdBy": "<string>",
      "lastModifiedAt": "2023-11-07T05:31:56Z",
      "lastModifiedBy": "<string>"
    },
    "chatId": "<string>",
    "userId": "<string>",
    "jobId": "<string>",
    "objectId": "<string>",
    "timeStart": "2023-11-07T05:31:56Z",
    "timeEnd": "2023-11-07T05:31:56Z",
    "workingTime": 1,
    "targetTime": 1,
    "break": 1,
    "requiredBreakTime": 1,
    "type": "default",
    "location": {
      "latitude": 123,
      "longitude": 123
    },
    "logOutLocation": {
      "latitude": 123,
      "longitude": 123
    },
    "approved": true,
    "cancelled": true,
    "offline": true,
    "generatedByUser": true,
    "editedByManager": true,
    "trackingJobDate": "2023-11-07T05:31:56Z",
    "comment": "<string>",
    "reason": "<string>",
    "errors": [
      "<string>"
    ],
    "allFoundErrors": [
      "<string>"
    ],
    "salaryIds": [
      "<string>"
    ],
    "objectManagerId": "<string>",
    "signingId": "<string>",
    "activityTypeId": "<string>",
    "assignmentId": "<string>"
  }
]

Authorizations

x-API-Key
string
header
required

Query Parameters

limit
integer
default:50

Maximum number of entries to return

Required range: x <= 500
offset
integer
default:0

Number of entries to skip for pagination

Required range: x >= 0
sort
string
default:timeStart

Field to sort by

userId
string<objectid>

Filter by user ID

from
integer

Filter by creation date from (timestamp)

to
integer

Filter by creation date to (timestamp)

objectId
string<objectid>

Filter by object ID

activityTypeId
string<objectId>[]

Filter to search jobs by activity type IDs. It can handle multiple activity type IDs and also includes checks for assignments, jobs, and salaries.

Activity Type ID to filter by

status
string

Filter by status (single value or comma-separated list)

timeTrackingNotApproved
object

Filter for time tracking entries that are not approved

Response

200
application/json

Time tracking entries retrieved successfully

The response is of type Time Tracking Entry · object[].