For AI agents: markdown of this page — /docs-content-en/entities/tasks/time/get.md documentation index — /llms.txt
Get a time-tracking entry
GET /v1/tasks/:taskId/time/:itemId
Returns a single time-tracking entry by its identifier.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
taskId (path) |
number | yes | Task ID |
itemId (path) |
number | yes | Time-tracking entry ID (from GET /v1/tasks/:taskId/time or the response of POST /v1/tasks/:taskId/time) |
Examples
curl — personal key
curl "https://vibecode.bitrix24.com/v1/tasks/289/time/161" \
-H "X-Api-Key: YOUR_API_KEY"
curl — OAuth application
curl "https://vibecode.bitrix24.com/v1/tasks/289/time/161" \
-H "X-Api-Key: YOUR_APP_KEY" \
-H "Authorization: Bearer USER_SESSION_TOKEN"
JavaScript — personal key
const res = await fetch('https://vibecode.bitrix24.com/v1/tasks/289/time/161', {
headers: {
'X-Api-Key': 'YOUR_API_KEY',
},
})
const { success, data } = await res.json()
console.log(`Minutes spent: ${data.minutes}`)
JavaScript — OAuth application
const res = await fetch('https://vibecode.bitrix24.com/v1/tasks/289/time/161', {
headers: {
'X-Api-Key': 'YOUR_APP_KEY',
'Authorization': 'Bearer USER_SESSION_TOKEN',
},
})
const { success, data } = await res.json()
Response fields
| Field | Type | Description |
|---|---|---|
success |
boolean | Always true on success |
data.id |
string | Entry identifier |
data.taskId |
string | Parent task ID |
data.userId |
string | Author. Profile: GET /v1/users/:userId |
data.seconds |
string | Duration in seconds |
data.minutes |
string | Duration in minutes (derived from seconds) |
data.commentText |
string | Comment for the entry |
data.source |
string | Source: 2 — REST API |
data.createdDate |
datetime | When the entry was created |
data.dateStart |
datetime | Start of the tracked interval |
data.dateStop |
datetime | End of the tracked interval |
Response example
{
"success": true,
"data": {
"id": "161",
"taskId": "289",
"userId": "1",
"commentText": "Draft preparation",
"seconds": "900",
"minutes": "15",
"source": "2",
"createdDate": "2026-05-13T16:15:41+00:00",
"dateStart": "2026-05-13T17:15:41+00:00",
"dateStop": "2026-05-13T17:15:41+00:00"
}
}
Error response example
422 — the entry was not found or is inaccessible:
{
"success": false,
"error": {
"code": "BITRIX_ERROR",
"message": "TASKS_ERROR_EXCEPTION_#512; Check listitem not found or not accessible; 512/TE/ITEM_NOT_FOUND_OR_NOT_ACCESSIBLE"
}
}
Errors
| HTTP | Code | Description |
|---|---|---|
| 422 | BITRIX_ERROR |
An entry with this itemId was not found or the parent task is inaccessible |
| 403 | SCOPE_DENIED |
The API key lacks the task scope |
| 401 | TOKEN_MISSING |
The API key has no configured tokens |
Full list of common API errors — Errors.
See also
- List entries — find the
itemIdof the entry you need - Update an entry — change the duration or comment
- Delete an entry — remove an entry
- Tasks — parent entity