Verification
Check that a PDF is a document this server sealed and that nothing changed since. Public: no API key, like the certificate page inside every sealed file. Limited per client address.
The verification object
Attributes
valid boolean
The file is exactly what this server sealed, unchanged since.
reason string or null
The first check that failed; null when valid. unreadable: the file could not be read as a PDF. unknown_document: no sealed document has this SHA-256. More values may be added.
One of not_sealed multiple_signatures signature_invalid earlier_signature_invalid content_between_signatures not_whole_document untrusted_signer unreadable unknown_document null
sha256 string
SHA-256 of the file that was checked.
Matches ^[0-9a-f]{64}$
checks object
Each check in the order it is made. true passed, false failed, null was not reached because an earlier one failed.
Attributes of checks
sealed boolean or null
The file carries a seal.
singleSignature boolean or null
It carries exactly one signature.
intact boolean or null
The signature is intact; no byte it covers was changed.
coversWholeDocument boolean or null
The signature covers the whole file; nothing was added after sealing.
trustedCertificate boolean or null
The seal was made with this server's certificate, or one it trusts.
signer object or null
Who the seal's certificate was issued to.
Attributes of signer
commonName string or null
organization string or null
signedAt string (date-time) or null
When the file was sealed, from the signature.
certificateSha256 string or null
SHA-256 of the certificate the seal was made with.
Matches ^[0-9a-f]{64}$
seal string
operator: the file ends with this server's seal. provider_only: an eSign provider locked the file against further signatures, so it is kept as the provider signed it and recognised by its SHA-256 in the audit trail.
One of operator provider_only
earlierSignatures array of objects
Signatures made before the seal, earliest first. Empty for most files.
Attributes of earlierSignatures
valid boolean
The signature matches the bytes it covers.
signerCommonName string or null
Who the signing certificate was issued to.
issuerCommonName string or null
The authority that issued the signing certificate.
signedAt string (date-time) or null
envelope object or null
The envelope of a valid file; null otherwise, or when it is no longer held.
Attributes of envelope
id string
Not empty
title string
documentId string
Not empty
documentName string
sentAt string (date-time) or null
completedAt string (date-time) or null
recipients array of objects
Attributes of recipients
name string
contact string or null
The email or phone, masked, for example a****@example.com.
role string
Signers fill fields, approvers approve without fields, viewers get a copy.
One of signer approver viewer
status string
One of pending notified viewed signed approved declined
auth string
How the recipient proves who they are. email_otp, the default, asks for the link and a code sent by email; email_link needs only the link.
One of email_link email_otp sms_otp aadhaar
actedAt string (date-time) or null
esign object
Present for a recipient who signed, or is to sign, with Aadhaar eSign.
Attributes of esign
provider string
The eSign provider, for example leegality.
sandbox boolean
The provider's test environment was used; for testing only.
events array of objects
Attributes of events
seq integer
At least 1
action string
One of envelope.created envelope.updated envelope.sent envelope.completed envelope.declined envelope.expired envelope.voided recipient.notified recipient.reminded recipient.viewed recipient.authenticated recipient.signed recipient.approved recipient.declined recipient.link_shared recipient.corrected recipient.esign_started recipient.esign_failed recipient.esign_name_differs envelope.recalled envelope.revised document.sealed
at string (date-time)
recipient string or null
Name of the recipient the event is about.
chain object
Attributes of chain
valid boolean
The audit hash chain is intact.
head string or null
The last hash of the chain, as printed on the certificate page.
events integer
{
"valid": true,
"reason": null,
"sha256": "1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d",
"checks": {
"sealed": true,
"singleSignature": true,
"intact": true,
"coversWholeDocument": true,
"trustedCertificate": true
},
"signer": {
"commonName": "Codevibe Sign Seal",
"organization": null
},
"signedAt": "2026-03-02T09:14:31.000Z",
"certificateSha256": "9f2c1a7b3e4d5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8",
"seal": "operator",
"earlierSignatures": [],
"envelope": {
"id": "7f3c9a2e-5b1d-4e8a-9c6f-2d4b8e1a0c37",
"title": "Offer letter",
"documentId": "1b8e4f60-2c3a-4d7e-8f91-a5c2e6b3d048",
"documentName": "offer.pdf",
"sentAt": "2026-03-02T09:00:00.000Z",
"completedAt": "2026-03-02T09:14:30.000Z",
"recipients": [
{
"name": "Asha Rao",
"contact": "a****@example.com",
"role": "signer",
"status": "signed",
"auth": "email_otp",
"actedAt": "2026-03-02T09:14:30.000Z"
}
],
"events": [
{
"seq": 1,
"action": "envelope.created",
"at": "2026-03-02T09:00:00.000Z",
"recipient": null
},
{
"seq": 2,
"action": "envelope.sent",
"at": "2026-03-02T09:00:00.000Z",
"recipient": null
},
{
"seq": 3,
"action": "recipient.signed",
"at": "2026-03-02T09:14:30.000Z",
"recipient": "Asha Rao"
},
{
"seq": 4,
"action": "envelope.completed",
"at": "2026-03-02T09:14:30.000Z",
"recipient": null
},
{
"seq": 5,
"action": "document.sealed",
"at": "2026-03-02T09:14:31.000Z",
"recipient": null
}
],
"chain": {
"valid": true,
"head": "8e7d6c5b4a39281706f5e4d3c2b1a09f8e7d6c5b4a39281706f5e4d3c2b1a09f",
"events": 5
}
}
}Verify a PDF
POST/v1/verify
Upload a PDF to learn whether it is exactly a document this server sealed. The file is read in memory, checked against the server's seal certificate and dropped: nothing about it is stored. Send it as a multipart upload in a form field named file, or as the raw body with Content-Type: application/pdf.
checks lists each check in order; the first that fails is the reason, and the ones after it are null because they were not reached. For a valid file the answer also names its envelope with the signers and the audit trail: the same facts the certificate page inside the file prints, with contacts masked.
No API key is needed. Each client address may make 30 checks in 10 minutes by default, and a file may be up to 20 MB.
Auth None. This route is public.
Request body
The file itself as the body, with Content-Type: application/pdf, or as multipart/form-data in a form field named file.
Returns
200 OK. The result of the check, whether the file is valid or not. A verification object.
Errors
| Status | When |
|---|---|
| 400 | VALIDATION: the request is malformed. details.issues lists each problem. |
| 409 | INVALID_STATE: this server has no seal certificate to compare files with. |
| 413 | DOCUMENT_TOO_LARGE: a PDF or the whole request is over the limit (details.maxBytes). |
| 422 | DOCUMENT_INVALID: the file is not a PDF. |
| 429 | RATE_LIMITED: too many requests. Wait Retry-After seconds. |
curl -X POST https://sign.codevibe.in/api/v1/verify \
-H "Content-Type: application/pdf" \
--data-binary @sealed.pdfimport { readFile } from 'node:fs/promises';
import { createVerifyClient } from '@codevibe_technology/sign-client';
// No API key: verification is public.
const verify = createVerifyClient({ baseUrl: 'https://sign.codevibe.in/api' });
const result = await verify.pdf(await readFile('sealed.pdf'));
console.log(result.valid, result.reason, result.envelope?.title);import requests
with open("sealed.pdf", "rb") as file:
pdf = file.read()
response = requests.post(
"https://sign.codevibe.in/api/v1/verify",
headers={
"Content-Type": "application/pdf",
},
data=pdf,
timeout=30,
)
response.raise_for_status()
print(response.json())package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
file, err := os.Open("sealed.pdf")
if err != nil {
panic(err)
}
defer file.Close()
req, err := http.NewRequest("POST", "https://sign.codevibe.in/api/v1/verify", file)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/pdf")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println(res.Status, string(out))
}{
"valid": true,
"reason": null,
"sha256": "1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d",
"checks": {
"sealed": true,
"singleSignature": true,
"intact": true,
"coversWholeDocument": true,
"trustedCertificate": true
},
"signer": {
"commonName": "Codevibe Sign Seal",
"organization": null
},
"signedAt": "2026-03-02T09:14:31.000Z",
"certificateSha256": "9f2c1a7b3e4d5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8",
"seal": "operator",
"earlierSignatures": [],
"envelope": {
"id": "7f3c9a2e-5b1d-4e8a-9c6f-2d4b8e1a0c37",
"title": "Offer letter",
"documentId": "1b8e4f60-2c3a-4d7e-8f91-a5c2e6b3d048",
"documentName": "offer.pdf",
"sentAt": "2026-03-02T09:00:00.000Z",
"completedAt": "2026-03-02T09:14:30.000Z",
"recipients": [
{
"name": "Asha Rao",
"contact": "a****@example.com",
"role": "signer",
"status": "signed",
"auth": "email_otp",
"actedAt": "2026-03-02T09:14:30.000Z"
}
],
"events": [
{
"seq": 1,
"action": "envelope.created",
"at": "2026-03-02T09:00:00.000Z",
"recipient": null
},
{
"seq": 2,
"action": "envelope.sent",
"at": "2026-03-02T09:00:00.000Z",
"recipient": null
},
{
"seq": 3,
"action": "recipient.signed",
"at": "2026-03-02T09:14:30.000Z",
"recipient": "Asha Rao"
},
{
"seq": 4,
"action": "envelope.completed",
"at": "2026-03-02T09:14:30.000Z",
"recipient": null
},
{
"seq": 5,
"action": "document.sealed",
"at": "2026-03-02T09:14:31.000Z",
"recipient": null
}
],
"chain": {
"valid": true,
"head": "8e7d6c5b4a39281706f5e4d3c2b1a09f8e7d6c5b4a39281706f5e4d3c2b1a09f",
"events": 5
}
}
}Verify by SHA-256
GET/v1/verify/{sha256}
The same answer without uploading the file: send the SHA-256 of the PDF you hold. The server looks for a document it sealed with exactly that hash and checks its own stored copy. A hash it never sealed answers valid: false with unknown_document, which is also what a changed file gets, since any change gives another hash.
No API key is needed. It shares the per-address limit of the upload.
Auth None. This route is public.
Path parameters
sha256 string Required
SHA-256 of the sealed PDF, 64 hexadecimal characters.
Matches ^[0-9a-f]{64}$
Returns
200 OK. The result of the check. A verification object.
Errors
| Status | When |
|---|---|
| 400 | VALIDATION: the request is malformed. details.issues lists each problem. |
| 409 | INVALID_STATE: this server has no seal certificate to compare files with. |
| 429 | RATE_LIMITED: too many requests. Wait Retry-After seconds. |
curl https://sign.codevibe.in/api/v1/verify/1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2dimport { createVerifyClient } from '@codevibe_technology/sign-client';
// No API key: verification is public.
const verify = createVerifyClient({ baseUrl: 'https://sign.codevibe.in/api' });
const result = await verify.sha256('1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d');
console.log(result.valid, result.reason);import requests
response = requests.get(
"https://sign.codevibe.in/api/v1/verify/1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d",
timeout=30,
)
response.raise_for_status()
print(response.json())package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://sign.codevibe.in/api/v1/verify/1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d", nil)
if err != nil {
panic(err)
}
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println(res.Status, string(out))
}{
"valid": true,
"reason": null,
"sha256": "1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d",
"checks": {
"sealed": true,
"singleSignature": true,
"intact": true,
"coversWholeDocument": true,
"trustedCertificate": true
},
"signer": {
"commonName": "Codevibe Sign Seal",
"organization": null
},
"signedAt": "2026-03-02T09:14:31.000Z",
"certificateSha256": "9f2c1a7b3e4d5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8",
"seal": "operator",
"earlierSignatures": [],
"envelope": {
"id": "7f3c9a2e-5b1d-4e8a-9c6f-2d4b8e1a0c37",
"title": "Offer letter",
"documentId": "1b8e4f60-2c3a-4d7e-8f91-a5c2e6b3d048",
"documentName": "offer.pdf",
"sentAt": "2026-03-02T09:00:00.000Z",
"completedAt": "2026-03-02T09:14:30.000Z",
"recipients": [
{
"name": "Asha Rao",
"contact": "a****@example.com",
"role": "signer",
"status": "signed",
"auth": "email_otp",
"actedAt": "2026-03-02T09:14:30.000Z"
}
],
"events": [
{
"seq": 1,
"action": "envelope.created",
"at": "2026-03-02T09:00:00.000Z",
"recipient": null
},
{
"seq": 2,
"action": "envelope.sent",
"at": "2026-03-02T09:00:00.000Z",
"recipient": null
},
{
"seq": 3,
"action": "recipient.signed",
"at": "2026-03-02T09:14:30.000Z",
"recipient": "Asha Rao"
},
{
"seq": 4,
"action": "envelope.completed",
"at": "2026-03-02T09:14:30.000Z",
"recipient": null
},
{
"seq": 5,
"action": "document.sealed",
"at": "2026-03-02T09:14:31.000Z",
"recipient": null
}
],
"chain": {
"valid": true,
"head": "8e7d6c5b4a39281706f5e4d3c2b1a09f8e7d6c5b4a39281706f5e4d3c2b1a09f",
"events": 5
}
}
}