[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-workday\u002Fdaily-reports\u002Flist":3,"docs-tabs-workday\u002Fdaily-reports\u002Flist":6},{"content":4,"lastmod":5},"## List daily reports\n\n`GET \u002Fv1\u002Fworkday\u002Fdaily-reports`\n\nReturns an employee's daily reports, paginated.\n\nRequires the `timeman` scope and the credential owner's Bitrix24 right to read the time records of employee `userId`. READONLY keys can read reports.\n\n## Parameters\n\n| Parameter | Type | Required | Default | Description |\n|----------|-----|:-----:|-----------|----------|\n| `userId` (query) | integer | yes | — | ID of the employee whose reports you need. List: [`GET \u002Fv1\u002Fusers`](\u002Fdocs\u002Fentities\u002Fusers\u002Flist) |\n| `recordId` (query) | integer | no | — | Work time record ID — return only the report for this record. If the record does not exist, has no report from the employee, or belongs to another employee, `data` is an empty array. List: [`GET \u002Fv1\u002Fworkday\u002Frecords`](\u002Fdocs\u002Fworkday\u002Frecords) |\n| `withAi` (query) | boolean | no | `false` | `true` or `1` adds to each report the report written for the same record by AI or an automation rule: its type goes to `type`, its text to `reportExtended`. Saved reports are read; no new ones are generated. A record without an employee's report is not listed, even if AI or an automation rule has written a report for the record |\n| `limit` (query) | integer | no | `50` | How many reports to return, from 1 to 50 |\n| `offset` (query) | integer | no | `0` | How many reports to skip. Cannot be combined with `page` |\n| `page` (query) | integer | no | `1` | Page number, with `limit` reports per page. Cannot be combined with `offset` |\n| `order` (query) | string | no | `{\"id\":\"desc\"}` | Sort order — a JSON object with `asc` or `desc` directions, for example `{\"id\":\"asc\"}`; in the URL it is URL-encoded: `order=%7B%22id%22%3A%22asc%22%7D`. Only `id` sets the order: other fields, including unknown ones, are accepted without an error and do not change the order |\n| `select` (query) | string | no | — | Comma-separated report fields, for example `report,timestamp`. `id` is always returned, even if it is not listed. For the list, see [Report fields](\u002Fdocs\u002Fworkday\u002Fdaily-reports\u002Ffields) |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fworkday\u002Fdaily-reports?userId=101\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fworkday\u002Fdaily-reports?userId=101\" \\\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\u002Fworkday\u002Fdaily-reports?userId=101', {\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n  },\n})\nconst { data, meta } = await res.json()\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fworkday\u002Fdaily-reports?userId=101', {\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n  },\n})\nconst { data, meta } = await res.json()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|----------|\n| `success` | boolean | `true` when the request succeeds |\n| `data` | array | Array of daily reports. Field details — [Report fields](\u002Fdocs\u002Fworkday\u002Fdaily-reports\u002Ffields) |\n| `data[].id` | integer | Daily report ID |\n| `data[].recordId` | integer | Work time record ID. List: [`GET \u002Fv1\u002Fworkday\u002Frecords`](\u002Fdocs\u002Fworkday\u002Frecords) |\n| `data[].userId` | integer | ID of the employee the report belongs to. List: [`GET \u002Fv1\u002Fusers`](\u002Fdocs\u002Fentities\u002Fusers\u002Flist) |\n| `data[].type` | string | Report type: `REPORT` — the employee's report. With `withAi=true` — `AI_REPORT` or `ROBOT_REPORT` if AI or an automation rule has written a report for the record. `id`, `report`, `reportPlain`, and `timestamp` still come from the employee's report |\n| `data[].report` | string | The employee's report text with BB code markup |\n| `data[].reportPlain` | string | Report text without markup |\n| `data[].timestamp` | string \\| null | When the report was last saved |\n| `data[].reportExtended` | string \\| null | Text of the report written by AI or an automation rule. Present with `withAi=true` if such a report exists, otherwise `null` |\n| `meta.limit` | integer | Page size |\n| `meta.offset` | integer | How many reports were skipped |\n| `meta.hasMore` | boolean | `true` when the page holds `limit` reports and more may follow |\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 379,\n      \"recordId\": 185,\n      \"userId\": 101,\n      \"type\": \"REPORT\",\n      \"report\": \"[b]Done:[\u002Fb] daily summary\",\n      \"reportPlain\": \"Done: daily summary\",\n      \"timestamp\": \"2026-10-07T08:19:18.000Z\",\n      \"reportExtended\": null\n    },\n    {\n      \"id\": 377,\n      \"recordId\": 183,\n      \"userId\": 101,\n      \"type\": \"REPORT\",\n      \"report\": \"Daily summary for autofill check\",\n      \"reportPlain\": \"Daily summary for autofill check\",\n      \"timestamp\": \"2026-10-07T06:56:12.000Z\",\n      \"reportExtended\": null\n    }\n  ],\n  \"meta\": {\n    \"limit\": 50,\n    \"offset\": 0,\n    \"hasMore\": false\n  }\n}\n```\n\n## Error response example\n\n400 — `userId` was not passed:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"INVALID_PARAMS\",\n    \"message\": \"Expected a positive integer\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 400 | `WORKDAY_REPORT_LIMIT_EXCEEDED` | `limit` is greater than 50 |\n| 400 | `INVALID_PARAMS` | `userId` was not passed; `userId`, `recordId`, `limit`, or `page` is not a positive integer; `offset` is not a non-negative integer; `offset` and `page` were passed together; `withAi` is not `true`, `false`, `1`, or `0`; `order` is not a JSON object or a direction is neither `asc` nor `desc`; `select` contains an unknown field; an unknown parameter is passed, or a parameter is passed twice |\n| 403 | `BITRIX_ACCESS_DENIED` | The credential owner lacks the right to read the time records of employee `userId`. Also returned when `userId` is the credential owner's own ID |\n| 409 | `TIMEMAN_MODULE_NOT_ENABLED` | Time Management is not available on this portal |\n| 422 | `BITRIX_ERROR` | Bitrix24 refused the operation |\n| 502 | `BITRIX_UNAVAILABLE` | Bitrix24 is unavailable or returned a response of an unexpected shape |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header was not passed |\n| 401 | `TOKEN_MISSING` | An app key was sent without a session token in `Authorization: Bearer` |\n| 401 | `INVALID_SESSION` | The session token is invalid or has expired |\n| 403 | `SCOPE_DENIED` | The key lacks the `timeman` scope |\n| 429 | `RATE_LIMITED` | The report read limit (30 requests per minute per key–user pair) or the general request limit was exceeded. The effective report read limit is in the `x-ratelimit-limit` header |\n\nFor the full list of common API errors, see [Errors](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [Read a daily report](\u002Fdocs\u002Fworkday\u002Fdaily-reports\u002Fget)\n- [Save a daily report](\u002Fdocs\u002Fworkday\u002Fdaily-reports\u002Fsave)\n- [Report fields](\u002Fdocs\u002Fworkday\u002Fdaily-reports\u002Ffields)\n- [Workday history](\u002Fdocs\u002Fworkday\u002Frecords)\n- [Daily reports](\u002Fdocs\u002Fworkday\u002Fdaily-reports)\n- [Workday](\u002Fdocs\u002Fworkday)\n","2026-10-23",{},1795415522979]