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
ParametertaskId (path) Typenumber Requiredyes DescriptionTask ID
ParameteritemId (path) Typenumber Requiredyes DescriptionTime-tracking entry ID (from GET /v1/tasks/:taskId/time or the response of POST /v1/tasks/:taskId/time)

Examples

curl — personal key

Terminal
curl "https://vibecode.bitrix24.com/v1/tasks/289/time/161" \
  -H "X-Api-Key: YOUR_API_KEY"

curl — OAuth application

Terminal
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

javascript
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

javascript
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
Fieldsuccess Typeboolean DescriptionAlways true on success
Fielddata.id Typenumber DescriptionEntry identifier
Fielddata.taskId Typenumber DescriptionParent task ID
Fielddata.userId Typenumber DescriptionAuthor. Profile: GET /v1/users/:userId
Fielddata.seconds Typenumber DescriptionDuration in seconds
Fielddata.minutes Typenumber DescriptionDuration in minutes (derived from seconds)
Fielddata.commentText Typestring DescriptionComment for the entry
Fielddata.source Typestring DescriptionSource: 2 — REST API
Fielddata.createdDate Typedatetime DescriptionWhen the entry was created
Fielddata.dateStart Typedatetime DescriptionStart of the tracked interval
Fielddata.dateStop Typedatetime DescriptionEnd of the tracked interval

Response example

JSON
{
  "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

404 — the entry was not found or is inaccessible:

JSON
{
  "success": false,
  "error": {
    "code": "NOT_FOUND",
    "message": "Time entry not found"
  }
}

Errors

HTTP Code Description
HTTP404 CodeNOT_FOUND DescriptionAn entry with this itemId was not found or the parent task is inaccessible
HTTP403 CodeSCOPE_DENIED DescriptionThe API key lacks the task scope
HTTP401 CodeTOKEN_MISSING DescriptionThe API key has no configured tokens

Full list of common API errors — Errors.

See also