Перейти к основному содержанию
GET
/
v2
/
documents
cURL
curl --request GET \
  --url https://api.example.com/v2/documents/
{
  "count": 123,
  "results": [
    {
      "id": 123,
      "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created_by": 123,
      "signed": true,
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "files": [
        {
          "id": 123,
          "file": "<string>",
          "type": 0,
          "extra": "<unknown>"
        }
      ],
      "signs": [
        {
          "id": 123,
          "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "signer": {
            "id": 123,
            "name": "<string>",
            "phone": "<string>",
            "email": "jsmith@example.com",
            "type": "company",
            "outer_id": 0
          },
          "created_at": "2023-11-07T05:31:56Z",
          "updated_at": "2023-11-07T05:31:56Z",
          "stages": [
            {
              "id": 123,
              "status_from": 0,
              "status_to": 0,
              "created_at": "2023-11-07T05:31:56Z",
              "meta": "<unknown>"
            }
          ],
          "method": 0,
          "method_allowed": [
            16383
          ],
          "status": 0
        }
      ],
      "name": "<string>",
      "source": 0,
      "template": 123,
      "type": "html",
      "content_type": "<string>",
      "object_id": 123,
      "regenerate": false,
      "resign": false
    }
  ],
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2"
}

Параметры запроса

page
integer

A page number within the paginated result set.

pageSize
integer

Number of results to return per page.

A search term.

Ответ

200 - application/json
count
integer
обязательно
Пример:

123

results
object[]
обязательно
next
string<uri> | null
Пример:

"http://api.example.org/accounts/?page=4"

previous
string<uri> | null
Пример:

"http://api.example.org/accounts/?page=2"