ae9d64e51a99
Get a list of documents
Gets a paginated and filtered list of documents.
This endpoint supports cursor-based pagination. To fetch several pages of documents, repeat the following steps:
-
fetch a page of documents, without specifying a cursor value,
-
if there's a next page, the response will contain a non-empty cursor value:
{ "documents": [...], "pagination_meta": { "cursor": "c3RyaW5nCg" } } -
make a subsequent GET /v3/documents request while including a parameter cursor=c3RyaW5nCg, e.g.
GET /v3/documents?cursor=c3RyaW5nCg
Repeat steps 2 and 3 until you fetch all documents. Use page_size parameter to control the number of items in the response list.
Query parameters
Filters contracts by context.
Possible values:
- my_documents - returns only contracts that are directly accessible by the user (contracts owned by the user, contracts directly shared with the user or contracts where the user is a signee).
- team_documents - returns contracts that are accessible by the user's team members.
- workspace - returns contracts that are accessible to the user through contract spaces.
Default value is my_documents.
If you wish to get all available contracts, just pass all 3 values.
Adds extra document data to the response, such as data_fields and full party details
Filter by document title (case insensitive partial match)
Filter by document states
Filter by document types
Filter by tags
Whether to look for documents owned by the requester or not
Page identifier. The next page identifier will be found in the response body
Filter by maximum date when the documents were signed (non-inclusive)
Filter by minimum date when the documents were signed (inclusive)
Filter by maximum date when the documents were updated (non-inclusive)
Filter by minimum date when the documents were updated (inclusive)
Page size. The default is 25 and the max value is 100
Column to use for sorting the documents (defaults to created_at)
Order direction when sorting the documents
Filter by the ID of the integration object which the document is related to (e.g. Salesforce Opportunity ID)
Workspace ID where documents are contained. It should be used in combination with context parameter with value workspace
Response
Paginated list of documents
Example response
{
"documents": [
{
"ocr_status": "pending",
"owner": {
"full_name": "Jane Doe"
},
"parties": [
{
"address": "123 Main Street",
"name": "Jane Doe",
"reference": "Recipient",
"signees": [
{
"full_name": "Jane Doe",
"signature_verification_methods": [
"sms",
"basic",
"wet_signature"
],
"title": "Software Engineer"
}
]
}
],
"signing_order_mode": "strict",
"tags": [
"tags"
],
"visibilities": [
{
"full_name": "Jane Doe"
}
]
}
]
}