Skip to main content
GET
List Documents

Авторизации

X-API-Key
string
header
обязательно

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

limit
integer<int32>

Maximum items to return. Default 100, capped at 1000.

page_token
string

Opaque continuation token from a previous response.

status
enum<string>

Filter by status.

Доступные опции:
DOCUMENT_STATUS_UNSPECIFIED,
DOCUMENT_STATUS_DRAFT,
DOCUMENT_STATUS_ON_APPROVAL,
DOCUMENT_STATUS_ON_SIGN,
DOCUMENT_STATUS_COMPLETED,
DOCUMENT_STATUS_REJECTED,
DOCUMENT_STATUS_ARCHIVED,
DOCUMENT_STATUS_CHANGE_REQUESTED,
DOCUMENT_STATUS_REVOKED
type_id
string

Filter by document type id.

initiator_employee_id
string

Filter by initiator employee id.

created_after
string

Inclusive lower bound on the creation date, YYYY-MM-DD.

created_before
string

Inclusive upper bound on the creation date, YYYY-MM-DD.

Case-insensitive match against the document title or number.

updated_since
string<date-time>

Return only documents changed at or after this instant. Pair it with order_by: DOCUMENT_ORDER_UPDATED_AT_ASC to walk changes from a checkpoint; unlike the creation-date filters, it also catches documents that moved status long after they were created.

order_by
enum<string>

Result order. Defaults to newest created first.

Доступные опции:
DOCUMENT_ORDER_UNSPECIFIED,
DOCUMENT_ORDER_CREATED_AT_DESC,
DOCUMENT_ORDER_UPDATED_AT_ASC

Ответ

OK

documents
object[]
read-only

Documents without files or route — call GetDocument for the full object.

next_page_token
string
read-only

Continuation token for the next page; empty when there are no more results.