GET
/
documents
List documents
curl --request GET \
  --url https://api-sandbox.synctera.com/v0/documents \
  --header 'Authorization: Bearer <token>'
{
  "next_page_token": "a8937a0d",
  "documents": [
    {
      "available_versions": [
        123
      ],
      "available_versions_info": [
        {
          "creation_time": "2010-05-06T12:23:34.321Z",
          "file_name": "<string>",
          "last_updated_time": "2010-05-06T12:23:34.321Z",
          "version": 123
        }
      ],
      "creation_time": "2010-05-06T12:23:34.321Z",
      "deletion_reason": "<string>",
      "description": "<string>",
      "encryption": "NOT_REQUIRED",
      "file_name": "<string>",
      "id": "b01db9c7-78f2-4a99-8aca-1231d32f9b96",
      "last_updated_time": "2010-05-06T12:23:34.321Z",
      "metadata": {},
      "name": "<string>",
      "related_resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "related_resource_type": "ACCOUNT",
      "tenant": "abcdef_ghijkl",
      "type": "ADDRESS_VERIFICATION",
      "version": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

Return documents that are related to resources with the specified ID

Example:

"b01db9c7-78f2-4a99-8aca-1231d32f9b96"

type
enum<string>[]

The type of documents. Multiple types can be provided as a comma-separated list.

encryption
enum<string>

Whether the file should be encrypted and access restricted, e.g. if the file contains PII

Available options:
NOT_REQUIRED,
REQUIRED
page_token
string

Optional pagination token to be provided to retrieve subsequent pages, returned from previous get

Example:

"a8937a0d"

id
string<uuid>[]

Unique resource identifier

Return documents that are related to resources of the specified type

Available options:
ACCOUNT,
BUSINESS,
CUSTOMER,
EDD,
INVOICE,
REVENUE_STATEMENT
limit
integer
default:100

Maximum number of objects to return per page. If the limit is greater than 100, then it will be set to 100.

Required range: x >= 1
Example:

100

Response

200
application/json

List documents.

The response is of type object.