Authmarks verification API (India): check a sealed file or hash without an account
Public endpoints, with no authentication, for verifying an Authmarks seal by file hash, text fingerprint, record id or certificate id, together with the published C2PA root certificate and the offline verifier CLI (not published yet).
Published 2026-11-26 · Updated 2026-11-28 · 7 min read
| Auth | None (public endpoints) |
|---|---|
| Hash check | POST https://www.authmarks.com/api/verify/hash |
| File check | POST https://www.authmarks.com/api/verify/file |
| Record check | GET https://www.authmarks.com/api/records/{recordId}/public |
| C2PA root | https://www.authmarks.com/.well-known/authmarks-c2pa-root.pem |
| Offline verifier | authmarks-verify (Node.js 22 or later; not yet published to npm) |
What you get: ways for anyone, without an account or a token, to check whether a file or a passage of text was sealed by Authmarks. That might be a faculty member checking a sealed PDF handed in for internal assessment, an examination cell, or a developer building a check into a college portal. You can send a SHA-256 hash (the file itself never leaves your machine), look up a record id printed on a sealed PDF, or check an older certificate id. For checks that do not involve Authmarks at all, there is the published C2PA root certificate for C2PA tools such as c2patool, and a free offline verifier that has not been published yet. These endpoints reveal only what is safe to say in public: that a seal exists, when it was made, and whether it was signed and timestamped. They never return the document, the writer, or anything about how it was written.
Endpoints at a glance
| Endpoint | Input | Limit per address |
|---|---|---|
POST /api/verify/hash | { "hash": "<64 hex>" } or a text fingerprint | 20 requests a minute |
POST /api/verify/file | { "sha256": "<64 hex>", "record_ids"?: [...] } | 60 requests a minute |
GET /api/records/{recordId}/public | A record id within the path | 120 requests a minute |
GET /api/verify/by-cert/{certId} | A certificate id within the path |
All four are served from https://www.authmarks.com, require no authentication and respond with Cache-Control: no-store. Beyond the limit, the hash, file and record endpoints return 429 with { "error": "too_many_requests" }; wait a minute and try again. Each hash and file check is entered in an append-only verification log (holding only the hash, the verdict and the record id).
The hash and file endpoints are also described in the OpenAPI document. AI agents holding an Authmarks token can run the hash check through the MCP tool verify_hash (MCP server).
Compute a SHA-256
Hash the file's exact bytes. Do not open and save the file again beforehand: any change at all yields a different hash.
# macOS
shasum -a 256 sealed.pdf
# Linux
sha256sum sealed.pdf
# Windows PowerShell
(Get-FileHash sealed.pdf -Algorithm SHA256).Hash.ToLower()
// Node.js
import { createHash } from "node:crypto";
import { readFile } from "node:fs/promises";
const sha256 = createHash("sha256").update(await readFile("sealed.pdf")).digest("hex");
import hashlib
with open("sealed.pdf", "rb") as f:
sha256 = hashlib.sha256(f.read()).hexdigest()
In a browser, crypto.subtle.digest("SHA-256", await file.arrayBuffer()) computes the hash locally, so the document is never uploaded.
Verify a file: POST /api/verify/file
Tells you whether a hash is exactly one of the files Authmarks signed for a seal: the document PDF, the Authmarks sealed copy or the detached .c2pa manifest.
Request
| Field | Type | Required | Notes |
|---|---|---|---|
sha256 | string | yes | 64 hex characters (upper case is also accepted). |
record_ids | string[] | no | Record ids found within the file's bytes (up to 4). These let the service distinguish an altered copy of a genuine seal from a file it does not know. |
curl -sS https://www.authmarks.com/api/verify/file \
-H "Content-Type: application/json" \
-d '{"sha256":"5d41402abc4b2a76b9719d911017c592ae8b6f0c7a4b8f2e1d3c5b7a9e0f1d2c"}'
Response
| Field | Type | Notes |
|---|---|---|
verdict | string | verified (this is the sealed file, byte for byte), altered (the file refers to a genuine seal but is not one of its signed files) or unknown (no seal matches). |
file | string or null | For verified: document_pdf, sealed_copy or manifest. In every other case, null. |
seal | object or null | The public seal summary (see below). null for unknown. |
{
"verdict": "verified",
"file": "document_pdf",
"seal": {
"record_id": "rec_k9x2_a1_4f8e2c1d9b7a6e5f",
"sealed_at": "2026-11-25T18:02:44.000Z",
"seal_seq": 2,
"seal_count": 2,
"signed": true,
"files": { "document_pdf": true, "sealed_copy": true, "manifest": true },
"document_pdf_provenance": "server_render_client_docx",
"demo": false
}
}
The public seal summary
| Field | Type | Notes |
|---|---|---|
record_id | string | The record id. |
sealed_at | string | ISO 8601, in UTC. |
seal_seq | number | Which of the document's seals this is (1 for the first). |
seal_count | number | The number of seals the document has. |
signed | boolean | Authmarks signed a C2PA manifest for this seal. |
files | object | The kinds of file that were signed: document_pdf, sealed_copy, manifest (booleans). |
document_pdf_provenance | string or null | How the signed document PDF was produced: server_export_google_drive, server_render_client_docx or server_render_sealed_text. null where there is no document PDF. |
demo | boolean | The record belongs to a demonstration organisation (sample data). |
Errors
| Status | Body | Cause |
|---|---|---|
| 400 | { "error": "invalid_sha256" } | sha256 is absent or is not 64 hex characters. |
| 429 | { "error": "too_many_requests" } | More than 60 a minute from your address. |
| 502 | { "error": "verify_failed" } | A temporary fault. Try again later. |
Verify a hash: POST /api/verify/hash
For situations where you hold only a hash and not the file. It accepts the SHA-256 of a sealed file, the SHA-256 of the sealed text, or the short text fingerprint printed on records (sha256:<16 hex>…<4 hex>; three full stops ... work as well).
Request
| Field | Type | Required | Notes |
|---|---|---|---|
hash | string | yes | 64 hex characters, or a text fingerprint. |
curl -sS https://www.authmarks.com/api/verify/hash \
-H "Content-Type: application/json" \
-d '{"hash":"sha256:9f2c4a1b0e8d7c6b…3c2b"}'
Response
{ "verdict": "unknown" } when there is no match. Otherwise:
| Field | Type | Notes |
|---|---|---|
verdict | string | sealed. |
match | string | What was matched: document_pdf, sealed_copy, manifest or text. |
current_signature | boolean | false when the file carries an earlier signature of a seal that has since been re-signed. It is still genuine. |
sealed_at | string | ISO 8601, in UTC. |
signed | boolean | Authmarks signed the seal. |
timestamp | object or null | { authority, independent, time }. independent is true only when the time-stamp was issued by an authority independent of Authmarks. |
record | object or null | { record_id, verify_href, writer_page }, filled in only when the writer has published this record on their public page. Otherwise null. |
{
"verdict": "sealed",
"match": "text",
"current_signature": true,
"sealed_at": "2026-11-25T18:02:44.000Z",
"signed": true,
"timestamp": { "authority": "DigiCert SHA256 RSA4096 Timestamp Responder 2025 1", "independent": true, "time": "2026-11-25T18:02:45.000Z" },
"record": null
}
Because a hash can circulate without its file, this response deliberately omits the record id, the writer, the organisation, the title and the number of seals, unless the writer has already made the record public. When a text fingerprint matches several seals of the same text, the response gives the earliest of them (or the published one).
Errors
| Status | Body | Cause |
|---|---|---|
| 400 | { "error": "invalid_hash", "code": "invalid_hash", "message": "..." } | Neither 64 hex characters nor a fingerprint. |
| 429 | { "error": "too_many_requests" } | More than 20 a minute from your address. |
| 502 | { "error": "verify_failed" } | A temporary fault. Try again later. |
Look up a record: GET /api/records/{recordId}/public
Every sealed PDF prints its record id (rec_…). Anyone holding that id may learn that the seal exists, when it was sealed, that Authmarks signed it and which files were signed, and nothing about the document or the writer.
curl -sS https://www.authmarks.com/api/records/rec_k9x2_a1_4f8e2c1d9b7a6e5f/public
The response is the public seal summary by itself (not wrapped in data).
| Status | Body | Cause |
|---|---|---|
| 404 | { "error": "not_found" } | Not a record id, or no such record exists. |
| 429 | { "error": "too_many_requests" } | More than 120 a minute from your address. |
| 500 | { "error": "server_error" } | A temporary fault. |
People can do the same thing in a browser at https://www.authmarks.com/r/<recordId> or at https://www.authmarks.com/verify.
Check a certificate: GET /api/verify/by-cert/{certId}
For certificates that were issued with a certificate id. Authmarks checks the certificate's C2PA signature again and replies with a verdict:
verdict | Meaning |
|---|---|
valid | The signature is intact and chains to an Authmarks trust anchor. |
legacy | Intact, but signed outside the current trust chain. |
unverified | Intact, but the signer did not report trust. |
invalid | The signature check did not pass. |
The response also includes cert_id, issued_at, is_valid, trusted, signature_alg, signature_issuer, signature_time, time-stamp details (timestamped, timestamp_trusted, timestamp_authority) and rekor_log_id, along with other signature fields. A 404 carries the code not_found, no_manifest or no_certificate_pdf.
curl -sS https://www.authmarks.com/api/verify/by-cert/7b1e4c2a-0d9f-4a3b-8c6e-2f5a1d0b9e8c
Verify offline, without Authmarks
You need not rely on our servers to check a seal.
The C2PA root certificate
Authmarks publishes the root of its C2PA signing chain:
curl -O https://www.authmarks.com/.well-known/authmarks-c2pa-root.pem
Check a sealed PDF against that root with the open-source c2patool:
c2patool sealed.pdf
c2patool sealed.pdf trust --trust_anchors authmarks-c2pa-root.pem
Without the Authmarks root, C2PA validators report the signature as cryptographically valid but not trusted, because the Authmarks root does not appear on the public C2PA trust lists. That concerns membership of a list, not whether the file has been changed. Seals are signed with ES256 (ECDSA P-256).
The verifier CLI (authmarks-verify)
@authmarks/verifier-cli is an open-source (Apache-2.0) verifier that works entirely offline: no network and no API keys. It requires Node.js 22 or later. It has not been published to npm yet; once it has, run it with:
npx @authmarks/verifier-cli ./sealed.pdf
Given a sealed PDF, it checks the content hash (the PDF bytes match the sealed hash), every assertion in the manifest, the ES256 seal signature, the certificate chain up to the Authmarks root (which is embedded in the package, and whose SHA-256 fingerprint is printed on every run) and the RFC 3161 time-stamp, against the DigiCert, Sectigo and GlobalSign roots and the Authmarks root. It prints Result: VERIFIED or Result: NOT VERIFIED, giving the reason for each check that failed.
| Command | What it does |
|---|---|
authmarks-verify ./sealed.pdf | The complete check, printed as text. |
authmarks-verify ./sealed.pdf --json | The same report in JSON (authmarks-verify-report-1). |
authmarks-verify ./sealed.pdf --online | Additionally checks certificate revocation by downloading the CRLs named in the certificates. Nothing from the file is sent. |
authmarks-verify --show-root | Prints the embedded Authmarks root and its fingerprint. |
authmarks-verify --timestamp ./sealed.pdf | The signing time alone: claim signature, binding to the PDF bytes and the RFC 3161 token (JSON). |
authmarks-verify --signoff ./signoff.json --roots ./authmarks-c2pa-root.pem | A reviewer sign-off: its entry, ES256 signature and time-stamp (JSON). |
authmarks-verify --realtime ./session-events.ndjson | A hash-chained event log: confirms the links are unbroken (JSON). |
Exit codes: 0 verified, 1 not verified (or the file could not be read), 2 invalid arguments:
authmarks-verify ./sealed.pdf --json > report.json
jq '{outcome, reasons}' report.json
When offline, revocation is not checked, and the report states this. A seal without a time-stamp still verifies and is reported as relying on the signer's own clock. To confirm that the embedded root is the published one, compare the output of authmarks-verify --show-root with openssl x509 -in authmarks-c2pa-root.pem -noout -fingerprint -sha256.
The verifier's checks are documented in its SPEC.md, so that anyone can build an independent implementation.
Related pages
- API reference: the token-protected
GET /records/{recordId}withcontent_sha256. - Connect AI agents with MCP:
verify_hashfor agents. - Security for integrations
Sources
- C2PA Technical Specification — as of 2026-11-26
- c2patool (Content Authenticity Initiative) — as of 2026-11-26
- RFC 3161, Time-Stamp Protocol — as of 2026-11-26
Change notes
- 2026-11-26 — First published.
- 2026-11-28 — The offline verifier section now describes the full seal check (content hash, signature, chain to the embedded Authmarks root, time-stamp).
Spotted an error? Email sales@authmarks.com and we will correct the page and date the correction.