[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Ftasks\u002Ftime\u002Fget":3,"docs-tabs-entities\u002Ftasks\u002Ftime\u002Fget":6},{"content":4,"lastmod":5},"\n## Get a time-tracking entry\n\n`GET \u002Fv1\u002Ftasks\u002F:taskId\u002Ftime\u002F:itemId`\n\nReturns a single time-tracking entry by its identifier.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|---------|\n| `taskId` (path) | number | yes | Task ID |\n| `itemId` (path) | number | yes | Time-tracking entry ID (from [`GET \u002Fv1\u002Ftasks\u002F:taskId\u002Ftime`](.\u002Flist.md) or the response of [`POST \u002Fv1\u002Ftasks\u002F:taskId\u002Ftime`](.\u002Fcreate.md)) |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Ftasks\u002F289\u002Ftime\u002F161\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Ftasks\u002F289\u002Ftime\u002F161\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\"\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Ftasks\u002F289\u002Ftime\u002F161', {\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\n\nconst { success, data } = await res.json()\nconsole.log(`Minutes spent: ${data.minutes}`)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Ftasks\u002F289\u002Ftime\u002F161', {\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\n\nconst { success, data } = await res.json()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | Always `true` on success |\n| `data.id` | number | Entry identifier |\n| `data.taskId` | number | Parent task ID |\n| `data.userId` | number | Author. Profile: `GET \u002Fv1\u002Fusers\u002F:userId` |\n| `data.seconds` | number | Duration in seconds |\n| `data.minutes` | number | Duration in minutes (derived from `seconds`) |\n| `data.commentText` | string | Comment for the entry |\n| `data.source` | string | Source: `2` — REST API |\n| `data.createdDate` | datetime | When the entry was created |\n| `data.dateStart` | datetime | Start of the tracked interval |\n| `data.dateStop` | datetime | End of the tracked interval |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"id\": 161,\n    \"taskId\": 289,\n    \"userId\": 1,\n    \"commentText\": \"Draft preparation\",\n    \"seconds\": 900,\n    \"minutes\": 15,\n    \"source\": \"2\",\n    \"createdDate\": \"2026-05-13T16:15:41+00:00\",\n    \"dateStart\": \"2026-05-13T17:15:41+00:00\",\n    \"dateStop\": \"2026-05-13T17:15:41+00:00\"\n  }\n}\n```\n\n## Error response example\n\n404 — the entry was not found or is inaccessible:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"NOT_FOUND\",\n    \"message\": \"Time entry not found\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 404 | `NOT_FOUND` | An entry with this `itemId` was not found or the parent task is inaccessible |\n| 403 | `SCOPE_DENIED` | The API key lacks the `task` scope |\n| 401 | `TOKEN_MISSING` | The API key has no configured tokens |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [List time-tracking entries](.\u002Flist.md)\n- [Update a time-tracking entry](.\u002Fupdate.md)\n- [Delete a time-tracking entry](.\u002Fdelete.md)\n- [Tasks](\u002Fdocs\u002Fentities\u002Ftasks)\n","2026-10-09",{},1794739438967]