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 PDF file to seal and the sealing options.

file
file

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

fileName
string | null

Name for the sealed file, without extension. If omitted, the uploaded file's name is used. Markup-like text, such as a tag in angle brackets, is removed from the name.

Maximum string length: 255
Example:

"Client agreement"

sealProvider
string

Name of the seal provider that seals the file when a certificate is applied, one of the providers available to your account. Without it your account's default seal provider is used.

Maximum string length: 100
Pattern: ^[A-Za-z0-9._-]+$
Example:

"internal"

tsaServer
string | null

Name of the Time Stamping Authority server to use, as advertised by GET /me in settings.availableTsaServers. Leave it out to use your environment's default server — naming one requires the set_tsa right, leaving it out does not. Rejected when the request adds no timestamp at all — which is not the same as useTimestamp being off, since a certificate seal is itself timestamped on an environment configured for it.

Maximum string length: 200
Pattern: ^[A-Za-z0-9._-]+$
Example:

"internal"

useCertificate
boolean
default:false

Apply a digital certificate, cryptographically sealing the document as proof of its authenticity and integrity.

Example:

false

useTimestamp
boolean
default:false

Add a trusted timestamp from a Time Stamping Authority, proving when the document was sealed.

Example:

false

Response

The file was sealed. Returns the sealed PDF, with the operation metadata in the Document-Id, Original-Checksum and Sealed-Checksum response headers.