POST
/
documents
Create a document
curl --request POST \
  --url https://api-sandbox.synctera.com/v0/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'description=<string>' \
  --form encryption=NOT_REQUIRED \
  --form 'metadata={"key": "value"}' \
  --form 'name=<string>' \
  --form related_resource_id=3c90c3cc-0d44-4b50-8888-8dd25736052a \
  --form related_resource_type=ACCOUNT \
  --form type=ADDRESS_VERIFICATION \
  --form file=@example-file
{
  "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.

Body

multipart/form-data

Response

201
application/json

Created document representation.

The response is of type object.