List Documents
This endpoint will let you list and search for the documents.
Here you can find how to filter, search and order documents.
Query parameters
Filters by parent template. This Parameter can't be used with form_id.
Filters by parent form. This parameter can't be used with template_id.
Filters by the folder where the documents are stored.
Filters by recipient or approver with this 'contact_id'.
Limits the size of the response. Default is 50 documents, maximum is 100 documents.
Paginates the search result. Increase value to get the next page of results.
Defines the sorting of the result. Use date_created for ASC and -date_created for DESC sorting.
Limits results to the documents with the date_created greater than or equal to this value.
Limits results to the documents with the date_created less than this value.
Returns only the deleted documents.
Searches for document by it's id.
Limits results to the documents with the date_completed greater than or equal to this value.
Limits results to the documents with the date_completed less than this value.
Filter documents by the owner's 'membership_id'.
Filters documents by metadata. Pass metadata in the format of metadata_{metadata-key}={metadata-value} such as metadata_opportunity_id=2181432. The metadata_ prefix is always required.
Limits results to the documents with the date_modified greater than or equal to this value.
Limits results to the documents with the date_modified less than this value.
Filters documents by name or reference number (stored on the template level).
Filters documents by the status.
- 0: document.draft
- 1: document.sent
- 2: document.completed
- 3: document.uploaded
- 4: document.error
- 5: document.viewed
- 6: document.waiting_approval
- 7: document.approved
- 8: document.rejected
- 9: document.waiting_pay
- 10: document.paid
- 11: document.voided
- 12: document.declined
- 13: document.external_review
- 14: document.scheduled
Exludes documents with this status.
- 0: document.draft
- 1: document.sent
- 2: document.completed
- 3: document.uploaded
- 4: document.error
- 5: document.viewed
- 6: document.waiting_approval
- 7: document.approved
- 8: document.rejected
- 9: document.waiting_pay
- 10: document.paid
- 11: document.voided
- 12: document.declined
- 13: document.external_review
- 14: document.scheduled
Filters documents by tag.
Response
OK
Example response
{
"results": [
{
"id": "ZsiBHUyksDoKActQNGz542",
"name": "Sample Document",
"status": "document.draft",
"date_created": "2021-10-08T11:06:32.337395Z",
"date_modified": "2021-10-08T11:06:32.337395Z",
"date_completed": "2021-10-08T11:06:32.337395Z",
"expiration_date": "2021-10-08T11:06:32.337395Z",
"version": "2"
}
]
}