API Reference
Log In
API Reference

Create file(s)

Adds one or more files in a Drawer (sidedrawer) and Folder (record) using the Drawer identifier (sidedrawerId) and Folder identifier (recordId). Supply the file in the request body. Specify the file name, upload title, file type, and file extension as query parameters. A checksum can be calculated using the SHA256 algorithm to guarantee integrity control using the checkSum parameter. Add multiple files by setting the boolean query parameter multipleFiles = true.

For documents that require signatures, the parameter envelopeId tracks the signatures added to the document and which document version has all required signatures.

ℹ️

Versions

This endpoint also has a v1 version. Understand the difference here.

Path Params
string
required

Unique Drawer (sidedrawer) identifier.

string
required

Unique Folder (record) identifier.

Query Params
string

This is the unique name that the binary will have in the SideDrawer Database. It has to be unique. This is mandatory, and it can be set by the App. In order to do so, add the timestamp when EACH file is posted (YYMMDDHHMMSS_*), all timestamps for each file will be different.

string

Used as an ID to connect/combine different files that will be part of a sequence of signatures. The objective is to have the envelopeId to track all signatures and which one is the latest one that combines them all.

string

This is the details of the upload instance. It is not mandatory.

string

This is what should be listed in the "File History" list.

string

The front-end application will interpret (or ignore, in older versions) this parameter and display the file on screen using different versions of PDFTron. Based on that, the PDFTron widget will present the end user the ability to insert a signature, text fields, annotations, comments, or just preview the contents.

string

Enum that determines what kind of file is being pushed.

string

Original extension of the file being uploaded.

string

Optional checksum calculated with the SHA256 algorithm. This guarantees integrity control over the uploaded file.

boolean

Set multipleFiles = true if you want to create multiple files.

Body Params

File to be uploaded.

file
required

File to be uploaded.

metadata
object

Metadata key-value pairs.

externalKeys
array of objects

External key-value pairs.

externalKeys
blocks
array

Blocks hashes.

blocks
recordFilesData
array of objects

If ?multipleFiles=true, input the files (recordFiles) data array.

recordFilesData
Response

record) has been successfully created.

Language
Credentials