For AI agents: markdown of this page — /docs-content-en/sign-b2e/list-templates.md documentation index — /llms.txt
List templates
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_AVAILABLEwitherror.release.
GET /v1/sign-b2e/templates
Returns completed company templates available to the key owner, newest first. Requires permission to read documents and access to templates.
Scopes: sign.b2e, crm.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
Parameterlimit |
Typeinteger | string | Requiredno | DescriptionDefaults to 50; positive number. The effective page maximum is 50: Bitrix24 reduces larger values to 50. The page value is calculated from the capped page size. |
Parameteroffset |
Typeinteger | string | Requiredno | DescriptionOffset from the start of the list; 0 by default. |
Parameterpage |
Typeinteger | string | Requiredno | DescriptionPage number. The offset is calculated based on the capped page size. |
Examples
curl — personal key
curl -X GET 'https://vibecode.bitrix24.com/v1/sign-b2e/templates' \
-H 'X-Api-Key: YOUR_API_KEY'
curl — OAuth application
curl -X GET 'https://vibecode.bitrix24.com/v1/sign-b2e/templates' \
-H 'X-Api-Key: YOUR_APP_KEY' \
-H 'Authorization: Bearer USER_SESSION_TOKEN'
JavaScript — personal key
const response = await fetch('https://vibecode.bitrix24.com/v1/sign-b2e/templates', {
"method": "GET",
"headers": {
"X-Api-Key": "YOUR_API_KEY"
}
});
const result = await response.json();
if (!response.ok || !result.success) throw new Error(result.error?.message);
console.log(result.data);
JavaScript — OAuth application
const response = await fetch('https://vibecode.bitrix24.com/v1/sign-b2e/templates', {
"method": "GET",
"headers": {
"X-Api-Key": "YOUR_APP_KEY",
"Authorization": "Bearer USER_SESSION_TOKEN"
}
});
const result = await response.json();
if (!response.ok || !result.success) throw new Error(result.error?.message);
console.log(result.data);
Response fields
| Field | Type | Description |
|---|---|---|
Fieldsuccess |
Typeboolean | DescriptionWhether the request succeeded. |
Fielddata |
Typearray | DescriptionOperation data. |
Fielddata[].uid |
Typestring | DescriptionTemplate UID. |
Fielddata[].title |
Typestring | DescriptionObject name. |
Fielddata[].companyId |
Typeinteger | null | DescriptionCRM company ID. |
Fielddata[].companyName |
Typestring | null | DescriptionCompany name. |
Fielddata[].regionDocumentType |
Typestring | null | DescriptionRegional document type. |
Fielddata[].providerCode |
Typestring | null | DescriptionStored provider code; null if unknown. |
Fieldmeta.redacted |
Typearray | DescriptionPresent when credentials are hidden; contains the paths of the replaced values. |
Response example
Shape of a successful response; the data depends on the Bitrix24 account and the request.
{
"success": true,
"data": []
}
Error response example
403 — the key lacks a required scope:
{
"success": false,
"error": {
"code": "SCOPE_DENIED",
"message": "This endpoint requires 'sign.b2e' scope"
}
}
Errors
| HTTP | Code | Reason |
|---|---|---|
| HTTP400 | CodeINVALID_PARAMS |
ReasonInvalid request shape: types, required fields or an unknown query string parameter. |
| HTTP401 | CodeTOKEN_MISSING |
ReasonNo credentials for the Bitrix24 connection. |
| HTTP403 | CodeSCOPE_DENIED |
ReasonOne of the required scopes is not granted. |
| HTTP422 | CodeBITRIX_ERROR |
ReasonBitrix24 rejected the operation; the code is in error.b24Code, the text in error.message. |
| HTTP422 | CodeMETHOD_NOT_YET_AVAILABLE |
ReasonThe method is not yet available on the Bitrix24 account; the release is in error.release. |
Known specifics
Bitrix24 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.
At most 50 items, no total count. Use limit/offset or page; page recalculates the offset based on the capped limit.