curl --request POST \
--url https://sandbox.circularo.com/api/v1/verify/document \
--header 'Authorization: Bearer <token>' \
--form 'file=@document.pdf'{
"createDate": "2026-03-14T09:12:44.318Z",
"documentId": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"documentTitle": "Contract Agreement",
"dss": {
"detailedReport": "<string>",
"diagnosticData": "<string>",
"simpleReport": "<string>",
"validationReport": "<string>"
},
"file": {
"additionalInfo": "<string>",
"checksum": "<string>",
"pages": 21,
"size": 724158
},
"foundInHistory": true,
"foundInSystem": true,
"modified": true,
"shareStateName": "inprogress",
"signatures": [
{
"certificate": {
"issuer": "CN=Example Qualified CA,O=Example Trust Services,C=CZ",
"subject": "CN=John Doe,O=Example Ltd,C=CZ",
"validFrom": "2023-11-07T05:31:56Z",
"validTo": "2023-11-07T05:31:56Z"
},
"component": "signature",
"coverAll": true,
"date": "2023-11-07T05:31:56Z",
"isLTV": true,
"isVerified": true,
"location": {
"ip": "203.0.113.42",
"location": "Czechia, Prague, Prague"
},
"signatureId": "29326ml64lg2tjf8cz2ka7edcmpb3u2m7os5af3r09fquo6sbegzgsyebannd4yz",
"signee": {
"fullname": "John Doe",
"mail": "john.doe@example.com"
},
"signeeInPerson": "John Doe",
"trustedBy": [
"EUTL"
],
"tsaEnabled": true,
"tsaProvider": "CN=Example TSA,O=Example Trust Services,C=CZ",
"tsaServer": "<string>"
}
]
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 500,
"type": "SYSTEM:INTERNAL_ERROR",
"message": "Internal error",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Verify an uploaded file
POST /verify/document
Returns what the platform can say about a file the caller already holds, without needing to know any identifier. The uploaded bytes are read for their signatures and looked for in the tenant, and how much comes back depends on what they match:
- They are the current file of a document that is still here - the full answer, the same one verifying by id gives, with
foundInSystemset. - They are not, but the signatures inside them belong to a document that is still here - that document is answered with, flagged as
modifiedunless every signature the document is known to carry is present in the upload, in that order. - Nothing is here any more, but the tenant’s audit log records a document whose file had exactly this checksum -
foundInHistorysays the file was once a genuine document of this tenant, andmodifiedsays whether it was its last recorded state. Nothing about the deleted document itself is disclosed. - Nothing matches - only what can be read out of the file itself: its size, page count, checksum and the signatures it carries.
Signing in is optional. Without a token the tenant is worked out from the address the request arrived at, or it can be named with tenant. The signer’s IP address and approximate location are the exception: they are only included for a signed-in caller of the same tenant who is allowed to read the matched document. Where the signer chose to keep them private, they were recorded as redacted at signing time and read that way for everybody.
Asking for dss additionally runs the uploaded file through the DSS validation service and returns its reports; that run is written to the audit log.
Optional authorization: Authorize using a token, or by specifying the tenant, to call this endpoint.
curl --request POST \
--url https://sandbox.circularo.com/api/v1/verify/document \
--header 'Authorization: Bearer <token>' \
--form 'file=@document.pdf'{
"createDate": "2026-03-14T09:12:44.318Z",
"documentId": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"documentTitle": "Contract Agreement",
"dss": {
"detailedReport": "<string>",
"diagnosticData": "<string>",
"simpleReport": "<string>",
"validationReport": "<string>"
},
"file": {
"additionalInfo": "<string>",
"checksum": "<string>",
"pages": 21,
"size": 724158
},
"foundInHistory": true,
"foundInSystem": true,
"modified": true,
"shareStateName": "inprogress",
"signatures": [
{
"certificate": {
"issuer": "CN=Example Qualified CA,O=Example Trust Services,C=CZ",
"subject": "CN=John Doe,O=Example Ltd,C=CZ",
"validFrom": "2023-11-07T05:31:56Z",
"validTo": "2023-11-07T05:31:56Z"
},
"component": "signature",
"coverAll": true,
"date": "2023-11-07T05:31:56Z",
"isLTV": true,
"isVerified": true,
"location": {
"ip": "203.0.113.42",
"location": "Czechia, Prague, Prague"
},
"signatureId": "29326ml64lg2tjf8cz2ka7edcmpb3u2m7os5af3r09fquo6sbegzgsyebannd4yz",
"signee": {
"fullname": "John Doe",
"mail": "john.doe@example.com"
},
"signeeInPerson": "John Doe",
"trustedBy": [
"EUTL"
],
"tsaEnabled": true,
"tsaProvider": "CN=Example TSA,O=Example Trust Services,C=CZ",
"tsaServer": "<string>"
}
]
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 500,
"type": "SYSTEM:INTERNAL_ERROR",
"message": "Internal error",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Query Parameters
Body
Response
Returns what could be established about the uploaded file.
Indicates that the file is no longer in the system, but the tenant's audit log records a document whose file had exactly this checksum. It confirms the upload as having been a genuine document of this tenant and says nothing else about it - no title, no dates and nobody's identity.
Indicates that the verified file is not the state the platform has on record - signatures the matched document is known to carry are missing from it, or the last state the audit log recorded for it had a different checksum. It can only be raised for an uploaded file; asking by identifier always reports the document as it stands.