Get a list of signed documents for the user sign.b2e.personal.tail
Scope:
sign.b2eWho can execute the method: a user with access to their signed documents
The method sign.b2e.personal.tail returns a list of signed documents for the user from the e-Signature for HR section.
The method works only in the context of authorization of the application.
Method Parameters
Required parameters are marked with *
|
Name |
Description |
|
limit |
Number of records per page. The parameter accepts a value from 1 to 50. By default, 20 records are displayed per page |
|
offset |
This parameter is used for pagination control. It is similar to the standard parameter start. The page size of results depends on the limit parameter |
Code Examples
How to Use Examples in Documentation
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"limit":2,"offset":0,"auth":"**put_access_token_here**"}' \
https://**put_your_bitrix24_address**/rest/sign.b2e.personal.tail
try
{
const response = await $b24.callMethod(
'sign.b2e.personal.tail',
{
// Number of records per page. Value from 1 to 50. Default is 20.
limit: 2,
// Parameter for pagination control.
// Used to specify the offset from the start of the list.
offset: 0
}
);
const result = response.getData().result;
console.dir(result);
}
catch( error )
{
console.error(error);
}
try {
$response = $b24Service
->core
->call(
'sign.b2e.personal.tail',
[
'limit' => 2,
'offset' => 0
]
);
$result = $response
->getResponseData()
->getResult();
echo 'Success: ' . print_r($result, true);
// Your logic for processing data
processData($result);
} catch (Throwable $e) {
error_log($e->getMessage());
echo 'Error: ' . $e->getMessage();
}
BX24.callMethod(
'sign.b2e.personal.tail',
{
// Number of records per page. Value from 1 to 50. Default is 20.
limit: 2,
// Parameter for pagination control.
// Used to specify the offset from the start of the list.
offset: 0
},
result => {
if (result.error()) {
console.error(result.error());
} else {
console.dir(result.data());
}
}
);
require_once('crest.php');
$result = CRest::call(
'sign.b2e.personal.tail',
[
'limit' => 2, // Number of records per page
'offset' => 0 // Offset from the start of the list
]
);
if (isset($result['error'])) {
echo 'Error: ' . $result['error_description'];
} else {
echo '<PRE>';
print_r($result['result']);
echo '</PRE>';
}
Response Handling
HTTP status: 200
{
"result": [
{
"id": 59,
"title": "test-pdf e",
"signed_date": "2024-06-28T19:34:58+02:00",
"file_url": "https://your-domain.bitrix24.com/rest/download.json?auth=6348b3670000071b0075444600000001f0f1073855cfba3bff42f043e2c1c26a46cb93&token=sign.b2e%7CaWQ9NTkmXz1udzlucFJBVHUxM2JjcUV2YncyY0tQbTZNSTNzT0Z3MA%3D%3D%7CImRvd25sb2FkfHNpZ24uYjJlfGFXUTlOVGttWHoxdWR6bHVjRkpCVkhVeE0ySmpjVVYyWW5jeVkwdFFiVFpOU1ROelQwWjNNQT09fDYzNDhiMzY3MDAwMDA3MWIwMDc1NDQ0NjAwMDAwMDAxZjBmMTA3Mzg1NWNmYmEzYmZmNDJmMDQzZTJjMWMyNmE0NmNiOTMi.AoYFUXxsuvEjW9ipqBndwej6EvcjBWJTXMh9QQ3O6BU%3D"
},
{
"id": 55,
"title": "test-pdf 778484",
"signed_date": "2024-06-28T18:39:47+02:00",
"file_url": "https://your-domain.bitrix24.com/rest/download.json?auth=6348b3670000071b0075444600000001f0f1073855cfba3bff42f043e2c1c26a46cb93&token=sign.b2e%7CaWQ9NTUmXz04eDU2VkhCUU9hZ0xQQzA3eDJLNWRuYmJ4dTFYOWgzOA%3D%3D%7CImRvd25sb2FkfHNpZ24uYjJlfGFXUTlOVFVtWHowNGVEVTJWa2hDVVU5aFoweFFRekEzZURKTE5XUnVZbUo0ZFRGWU9XZ3pPQT09fDYzNDhiMzY3MDAwMDA3MWIwMDc1NDQ0NjAwMDAwMDAxZjBmMTA3Mzg1NWNmYmEzYmZmNDJmMDQzZTJjMWMyNmE0NmNiOTMi.PYj60eOODc0X4n0pbwMFwIJKV3uZTlSpZBGCmPaj%2F7A%3D"
}
],
"time": {
"start": 1739799244.3062601,
"finish": 1739799244.3473959,
"duration": 0.04113578796386719,
"processing": 0.01007699966430664,
"date_start": "2025-02-17T16:34:04+02:00",
"date_finish": "2025-02-17T16:34:04+02:00",
"operating_reset_at": 1739799844,
"operating": 0
}
}
Returned Data
|
Name |
Description |
|
result |
The root element of the response. Contains information about the user's signed documents |
|
time |
Information about the request execution time |
Response Element result
|
Name |
Description |
|
id |
Identifier of the signed document |
|
title |
Title of the document |
|
signed_date |
Date of signing the document |
|
file_url |
Link to download the signed document |
Error Handling
HTTP status: 401
{
"error": "WRONG_AUTH_TYPE",
"error_description": "Current authorization type is denied for this method Application context required"
}
|
Name |
Description |
|
error |
String error code. It may consist of digits, Latin letters, and underscores |
|
error_description |
Textual description of the error. The description is not intended to be shown to the end user in its raw form |
Possible Error Codes
Statuses and System Error Codes
HTTP Status: 20x, 40x, 50x
The errors described below may occur when calling any method.
|
Status |
Code |
Description |
|
|
|
An internal server error has occurred, please contact the server administrator or Bitrix24 technical support |
|
|
|
An internal server error has occurred, please contact the server administrator or Bitrix24 technical support |
|
|
|
The request intensity limit has been exceeded |
|
|
|
The current method is not allowed to be called using batch |
|
|
|
The maximum length of parameters passed to the batch method has been exceeded |
|
|
|
Invalid access token or webhook code |
|
|
|
The methods must be called using the HTTPS protocol |
|
|
|
The REST API is blocked due to overload. This is a manual individual block, to remove it you need to contact Bitrix24 technical support |
|
|
|
The REST API is available only on commercial plans |
|
|
|
The user whose access token or webhook was used to call the method lacks permissions |
|
|
|
The manifest is not available |
|
|
|
The request requires higher privileges than those provided by the webhook token |
|
|
|
The provided access token has expired |
|
|
|
The user does not have access to the application. This means that the application is installed, but the account administrator has allowed access to this application only for specific users |
|
|
|
The public part of the site is closed. To open the public part of the site on an on-premise installation, disable the option "Temporary closure of the public part of the site". Path to the setting: Desktop > Settings > Product Settings > Module Settings > Main Module > Temporary closure of the public part of the site |
Continue Learning
- Signature: Overview of Methods
- Get a list of signed documents in the company's safe sign.b2e.mysafe.tail