Skip to main content
cURL

Authorizations

Authorization
string
header
required

Authorize using an API key. Send it in the Authorization: Bearer <api-key> header. Only API keys are accepted — session tokens are rejected. Create your first API key in the Circularo web app; further keys can be managed through this API.

Body

multipart/form-data

The file to upload and optional processing options.

convertToPdfA
boolean
default:false

Convert the uploaded file to PDF/A for long-term archiving; a file that is not a PDF is converted to PDF first. A PDF that already carries a signature is left unconverted, because converting it would destroy that signature. The conversion may slightly change the file's visual appearance.

Example:

false

file
file

The file to upload, sent as multipart/form-data.

fileName
string | null

Name for the file, without extension. If omitted, the uploaded file's name is used. Markup-like text, such as a tag in angle brackets, and characters not allowed in file names, such as / or :, are removed.

Maximum string length: 255
Example:

"Client agreement"

signatureAnchors
object[]

Anchors that locate text in the uploaded file and return the positions where signature fields should be placed. Use these positions later when you place signature fields for a transaction. Anchors are located only in a PDF — an uploaded PDF, or a file converted with convertToPdfA; in any other file they find no positions. Send them as indexed form fields, one per property — signatureAnchors[0][id], signatureAnchors[0][text], signatureAnchors[0][offset][x] and so on.

Maximum array length: 100

Response

The file was uploaded. Returns the file's identifier and metadata, plus any calculated signature anchor positions.

A freshly uploaded file: its identifier and metadata, plus any calculated signature anchor positions.

anchorPositions
object[]
required

Calculated signature field positions — one entry for each anchor you supplied, in the same order. Empty when no anchors were provided.

checksum
string | null
required

SHA-512 hash (hex) of the file's contents. Compute it over your local file to verify the upload was not corrupted, or to recognize a file you have already uploaded.

Example:

"f898ee89406adbb65fffcf08bc19e3b70d27ae189510077c394d382c578ee074a26a3ca24a35f3bd8898ac0951ae63e5e0e3654184b956d86707c925d697f730"

createdAt
string<date-time> | null
required

When the file was uploaded.

Example:

"2024-11-02T09:15:30.000Z"

createdBy
object | null
required

The person who uploaded the file. Null when it was not uploaded by a person.

fileName
string | null
required

Name of the file.

Example:

"Client agreement"

hasPassword
boolean | null
required

Whether the file is a password-protected PDF. Null when this could not be determined.

Example:

false

id
string
required

Unique identifier of the file.

Minimum string length: 1
Pattern: ^[a-z0-9]+$
Example:

"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj"

mimeType
string | null
required

Media type of the file.

Example:

"application/pdf"

pageCount
integer | null
required

Number of pages, when the file is a PDF. Null for a file that has no pages.

Example:

12

size
integer | null
required

Size of the file in bytes.

Example:

248173