Query parameters
-
The timesheet type to filter timesheets by.
Values are
companyorproject. -
One or more statuses to filter the timesheets by.
Values are
draft,submitted,approved, orrejected. -
Filter by one or more people. This is the org's
people[].person._idvalue -
Filter project timesheets by one or more projects. This is the
project._idvalue. -
Filter project timesheets by one or more plan items. This is the
planItem._idvalue. -
A date query to filter the results by the
weekStartvalue. Format isweekStart=<operator> <date>, e.g.weekStart=gt 2025-02-24T00:00:00.000Z. Acceptable operations arelt= lower than,lte= lower than or equal,gt= greater than,gte= greater than or equal,eq= equal. The date is in ISOString. -
A date query to filter the results by the
weekEndvalue. Format isweekEnd=<operator> <date>, e.g.weekEnd=gt 2025-02-24T00:00:00.000Z. Acceptable operations arelt= lower than,lte= lower than or equal,gt= greater than,gte= greater than or equal,eq= equal. The date is in ISOString. -
Filter project timesheets by one or more project departments. This is the
org.departments[]._idvalue that is assigned to the timesheet's plan item projectdepartments[]array. -
Filter project timesheets by one or more project offices. This is the
org.offices[]._idvalue that is assigned to the timesheet's plan item projectoffices[]array. -
Filter project timesheets by one or more plan item roles. This is the
org.roles[]._idvalue that is assigned to the timesheet's plan itemrolefield. -
One or more IDs to filter the response by. Compares against the document's
_idvalue. -
If true, only archived documents will be returned. Defaults to false. If you need both archived and non-archived, use
withArchivedinstead.Values are
false,true,0, or1. -
If true, both archived and non-archived documents will be returned. Defaults to false.
Values are
false,true,0, or1. -
A date query to filter the results by the last
updatedAtvalue. Format isupdatedAt=<operator> <date>, e.g.updatedAt=gt 2025-02-24T00:00:00.000Z. Acceptable operations arelt= lower than,lte= lower than or equal,gt= greater than,gte= greater than or equal,eq= equal. The date is in ISOString. -
One or more properties to be included in the response, instead of the full payload. E.g.
select=endDate,projectStatus. You can also exclude fields by prefixing with a minus sign, e.g.select=-endDate,-projectStatus, but you cannot mix both. -
Optionally, the field to sort the results by. By default, results are sorted by created date. Only
updatedAtis supported at this moment (Note:updatedAtequals tocreatedAtfor documents that have never been updated).Value is
updatedAt. -
Optionally, the direction to sort the documents by. For ascending (oldest first) use either
1orasc. By default sorting is descending (latest first),-1ordesc.Values are
1,asc,-1, ordesc. -
Optionally, change the default document response limit of
40.Minimum value is
1, maximum value is100. Default value is40. -
Includes a
countproperty which holds the total number of results matching the query. The value does not change between pages and represents the accurate number of results to be expected.Note: The use of this parameter will have a performance impact on the request of the first page.
Values are
false,true,0, or1.
curl \
--request GET 'https://open.api.missionx.ai/v2/timesheets' \
--header "Authorization: Bearer $ACCESS_TOKEN"
{
"value": [
{
"_id": "string",
"createdBy": "string",
"createdAt": "2025-05-04T09:42:00Z",
"updatedAt": "2025-05-04T09:42:00Z",
"type": "company",
"status": "draft",
"customId": "string",
"weekOfDate": "string",
"weekStart": "string",
"weekEnd": "string",
"person": "string",
"entries": [
{
"description": "string",
"hours": [
{
"day": "MON",
"value": 42.0
}
],
"codeId": "string"
}
]
}
],
"nextLink": "string"
}