[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-sign-b2e\u002Ftail-template-folders":3,"docs-tabs-sign-b2e\u002Ftail-template-folders":6},{"content":4,"lastmod":5},"# List template bundles\n\n> Available starting with the **sign 26.1300.0** module. On older self-hosted installations the method may be unavailable: the platform returns `422 METHOD_NOT_YET_AVAILABLE` with `error.release`.\n\n`POST \u002Fv1\u002Fsign-b2e\u002Ftemplate-folders\u002Ftail`\n\nReturns bundles whose templates are all available to the key owner for sending. Requires permission to read documents. Keep paginating until `hasMore=false`, even when intermediate pages are empty.\n\n**Scopes:** `sign.b2e`, `crm`.\n\n## Request body fields\n\n| Parameter | Type | Required | Description |\n|---|---|---|---|\n| `cursor` | object \\| null | no | The entire cursor from meta.cursor of the previous response. Omit it in the first request; null is allowed. |\n| `cursor.field` | string | no | Cursor field: id. |\n| `cursor.value` | integer \\| string | no | Last seen ID; 0 at the start of pagination. |\n| `cursor.order` | string | no | Sort direction: ASC, case-insensitive. |\n| `cursor.limit` | integer \\| string | no | Defaults to 50; minimum 1. The core reduces values above 50 to 50. |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X POST 'https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fsign-b2e\u002Ftemplate-folders\u002Ftail' \\\n  -H 'X-Api-Key: YOUR_API_KEY' \\\n  -H 'Content-Type: application\u002Fjson' \\\n  -d '{}'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X POST 'https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fsign-b2e\u002Ftemplate-folders\u002Ftail' \\\n  -H 'X-Api-Key: YOUR_APP_KEY' \\\n  -H 'Authorization: Bearer USER_SESSION_TOKEN' \\\n  -H 'Content-Type: application\u002Fjson' \\\n  -d '{}'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst response = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fsign-b2e\u002Ftemplate-folders\u002Ftail', {\n  \"method\": \"POST\",\n  \"headers\": {\n    \"X-Api-Key\": \"YOUR_API_KEY\",\n    \"Content-Type\": \"application\u002Fjson\"\n  },\n  body: JSON.stringify({})\n});\nconst result = await response.json();\nif (!response.ok || !result.success) throw new Error(result.error?.message);\nconsole.log(result.data);\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst response = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fsign-b2e\u002Ftemplate-folders\u002Ftail', {\n  \"method\": \"POST\",\n  \"headers\": {\n    \"X-Api-Key\": \"YOUR_APP_KEY\",\n    \"Authorization\": \"Bearer USER_SESSION_TOKEN\",\n    \"Content-Type\": \"application\u002Fjson\"\n  },\n  body: JSON.stringify({})\n});\nconst result = await response.json();\nif (!response.ok || !result.success) throw new Error(result.error?.message);\nconsole.log(result.data);\n```\n\n## Response fields\n\n| Field | Type | Description |\n|---|---|---|\n| `success` | boolean | Whether the request succeeded. |\n| `data` | array\u003Cobject> | Operation data. |\n| `data[].id` | integer | Object ID. |\n| `data[].title` | string | Object name. |\n| `data[].companyId` | integer | CRM company ID. |\n| `data[].companyName` | string | Company name. |\n| `data[].templateCount` | integer | Number of templates. |\n| `data[].templates` | array | Bundle templates. |\n| `data[].templates[].uid` | string | Template UID. |\n| `data[].templates[].title` | string | Object name. |\n| `data[].templates[].companyId` | integer \\| null | CRM company ID. |\n| `data[].templates[].companyName` | string \\| null | Company name. |\n| `data[].templates[].regionDocumentType` | string \\| null | Regional document type. |\n| `data[].templates[].providerCode` | string \\| null | Stored provider code; null if unknown. |\n| `meta.cursor` | object | Cursor for the next request. |\n| `meta.hasMore` | boolean | Whether there is a next page; can be true even when data is empty. |\n| `meta.redacted` | array\u003Cstring> | Present when credentials are hidden; contains the paths of the replaced values. |\n\n## Response example\n\nShape of a successful response; the data depends on the Bitrix24 account and the request.\n\n```json\n{\n  \"success\": true,\n  \"data\": [],\n  \"meta\": {\n    \"cursor\": {\n      \"field\": \"id\",\n      \"value\": \"7\",\n      \"order\": \"ASC\",\n      \"limit\": 50\n    },\n    \"hasMore\": false\n  }\n}\n```\n\n## Error response example\n\n403 — the key lacks a required scope:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"SCOPE_DENIED\",\n    \"message\": \"This endpoint requires 'sign.b2e' scope\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Reason |\n|---|---|---|\n| 400 | `INVALID_PARAMS` | Invalid request shape: types, required fields or an unknown query string parameter. |\n| 401 | `TOKEN_MISSING` | No credentials for the Bitrix24 connection. |\n| 403 | `SCOPE_DENIED` | One of the required scopes is not granted. |\n| 422 | `BITRIX_ERROR` | Bitrix24 rejected the operation; the code is in error.b24Code, the text in error.message. |\n| 422 | `METHOD_NOT_YET_AVAILABLE` | The method is not yet available on the Bitrix24 account; the release is in error.release. |\n\n[Common API errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\nBitrix24 checks user permissions, HR e-signature availability, business rules, page sizes and field contents. Values are passed through without local correction. Response text is JSON-encoded; credential-bearing links are hidden.\n\n## See also\n\n- [Employee signatures](\u002Fdocs\u002Fsign-b2e)\n- [API errors](\u002Fdocs\u002Ferrors)\n","2026-11-18",{},1795344085485]