The GET projects endpoint allows you to retrieve information about all active projects associated with your company, including their related tasks.
When you send a GET request to this endpoint, the server will respond with a JSON object containing an array of project objects, each with a unique identifier, name, creation date, and any related tasks.
Note that only active projects (not archived) will be included in the response.
GET
https://desktime.com/api/v2/json/projects
Authenticate by sending your API key in the X-API-Key request header.
HEADER
X-API-Key: {apiKey}- X-API-Key: user api key (required)
Response example:
{
"projects": [
{
"id": 104211,
"name": "Meeting with the clients",
"created_at": "1539883088",
"created_at_iso": "2018-10-18T17:18:08+00:00",
"tasks": [
{
"id": 2907131,
"name": "Meeting with the clients task",
"created_at": "1629201786",
"created_at_iso": "2021-08-17T12:03:06+00:00"
}
]
},
{
"id": 68009,
"name": "Project 404",