curl --request POST \
--url https://sandbox.circularo.com/api/v2/documents/seal \
--header 'Authorization: Bearer <token>' \
--form 'file=@document.pdf' \
--form 'fileName=Client agreement' \
--form 'sealProvider=internal' \
--form 'tsaServer=internal' \
--form 'useCertificate=false' \
--form 'useTimestamp=false'{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 402,
"type": "SUBSCRIPTION:NOT_ACTIVE",
"message": "Subscription not active",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 429,
"type": "SYSTEM:RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Seal a document on the fly
POST /documents/seal
Seals a submitted PDF with a digital certificate and/or a trusted timestamp and returns the sealed file directly in the response. Enable at least one of the two.
Unlike the regular sealing flow, the document is processed transiently — it is never stored in Circularo. This makes the endpoint suitable for system-to-system integrations that only need the sealed output, without managing a document lifecycle through separate upload, seal, download and delete calls.
Although the file is not stored, the operation is fully auditable: an audit log record with the checksum of the received file and another with the checksum of the sealed result are persisted before the response is returned. Together with the operation identifier from the Document-Id response header, both the original and the sealed file can later be recognized and the sealing proven. If those records cannot be stored, the call fails rather than returning an unprovable seal.
Sealing consumes transaction capacity from your subscription. GET /me reports the seal providers your account can use, and which of them is the default, in settings.availableSealProviders. Because the sealed file exists only in the response, this endpoint does not support Idempotency-Key — a retry after a lost response seals the file again and consumes capacity again. Keep the returned file, and use the audit log records to tell a repeated attempt from the original.
Response headers
Document-Id— Unique identifier assigned to the sealing operation. The document itself is not stored, but the audit log records of the operation can be looked up by this identifier.Original-Checksum— Checksum of the file as it was received, before sealing, as<algorithm>:<hex>(e.g.sha512:...). The hexadecimal digest matches the checksum stored in the “created” audit log record.Sealed-Checksum— Checksum of the sealed file returned in the response body, as<algorithm>:<hex>(e.g.sha512:...). The hexadecimal digest matches the checksum stored in the “sealed” audit log record.
curl --request POST \
--url https://sandbox.circularo.com/api/v2/documents/seal \
--header 'Authorization: Bearer <token>' \
--form 'file=@document.pdf' \
--form 'fileName=Client agreement' \
--form 'sealProvider=internal' \
--form 'tsaServer=internal' \
--form 'useCertificate=false' \
--form 'useTimestamp=false'{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 402,
"type": "SUBSCRIPTION:NOT_ACTIVE",
"message": "Subscription not active",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 429,
"type": "SYSTEM:RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Body
The PDF file to seal and the sealing options.
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.
200^[A-Za-z0-9._-]+$"internal"
Response
The file was sealed. Returns the sealed PDF, with the operation metadata in the Document-Id, Original-Checksum and Sealed-Checksum response headers.