Authmarks verification API: check a sealed file or hash without an account
Public, no-auth endpoints to verify an Authmarks seal by file hash, text fingerprint, record id or certificate id, plus the published C2PA root certificate and the offline verifier CLI (not published yet).
Objavljeno 2026-11-26 · Ažurirano 2026-11-28 · 7 min čitanja
| 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 newer; not published to npm yet) |
What you get: ways for anyone, with no account and no token, to check whether a file or a piece of text was sealed by Authmarks. You can send a SHA-256 hash (the file 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 touch Authmarks at all, there is the published C2PA root certificate for C2PA tools such as c2patool, and a free offline verifier that is not published yet. These endpoints answer only what is safe to say publicly: that a seal exists, when it was sealed, 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 | Per-address limit |
|---|---|---|
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 in the path | 120 requests a minute |
GET /api/verify/by-cert/{certId} | A certificate id in the path |
All four live at https://www.authmarks.com, need no authentication and answer with Cache-Control: no-store. Over the limit, the hash, file and record endpoints answer 429 with { "error": "too_many_requests" }; wait a minute and retry. Every hash and file check is written to an append-only verification log (the hash, the verdict and the record id only).
The hash and file endpoints are also in the OpenAPI document. AI agents with an Authmarks token can run the hash check through the MCP tool verify_hash (MCP server).
Compute a SHA-256
Hash the exact file bytes. Do not open and re-save the file first: any change produces 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()) hashes locally, so the document is never uploaded.
Verify a file: POST /api/verify/file
Answers 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 accepted). |
record_ids | string[] | no | Record ids found in the file's bytes (up to 4). Lets the service tell an altered copy of a real seal from an unknown file. |
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 names a real 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. Otherwise null. |
seal | object or null | The public seal summary (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 UTC. |
seal_seq | number | Which seal of the document this is (1 for the first). |
seal_count | number | How many seals the document has. |
signed | boolean | Authmarks signed a C2PA manifest for this seal. |
files | object | Which kinds of file were signed: document_pdf, sealed_copy, manifest (booleans). |
document_pdf_provenance | string or null | How the signed document PDF was made: server_export_google_drive, server_render_client_docx or server_render_sealed_text. null when 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 missing or not 64 hex characters. |
| 429 | { "error": "too_many_requests" } | Over 60 a minute from your address. |
| 502 | { "error": "verify_failed" } | A temporary problem. Retry later. |
Verify a hash: POST /api/verify/hash
For when you hold only a hash and not the file. 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 dots ... also work).
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 nothing matches. Otherwise:
| Field | Type | Notes |
|---|---|---|
verdict | string | sealed. |
match | string | What matched: document_pdf, sealed_copy, manifest or text. |
current_signature | boolean | false when the file carries an earlier signature of a seal that was re-signed since. Still genuine. |
sealed_at | string | ISO 8601 UTC. |
signed | boolean | Authmarks signed the seal. |
timestamp | object or null | { authority, independent, time }. independent is true only when a time-stamp authority independent of Authmarks issued it. |
record | object or null | { record_id, verify_href, writer_page }, set only when the writer 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
}
A hash can travel without its file, so this answer deliberately leaves out the record id, the writer, the organisation, the title and the number of seals, unless the writer already made the record public. When a text fingerprint matches several seals of the same text, the answer is the earliest one (or the published one).
Errors
| Status | Body | Cause |
|---|---|---|
| 400 | { "error": "invalid_hash", "code": "invalid_hash", "message": "..." } | Not 64 hex characters or a fingerprint. |
| 429 | { "error": "too_many_requests" } | Over 20 a minute from your address. |
| 502 | { "error": "verify_failed" } | A temporary problem. Retry later. |
Look up a record: GET /api/records/{recordId}/public
Every sealed PDF prints its record id (rec_…). Anyone holding it may learn that the seal exists, when it was sealed, that Authmarks signed it and which files were signed. 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 on its own (not wrapped in data).
| Status | Body | Cause |
|---|---|---|
| 404 | { "error": "not_found" } | Not a record id, or no such record. |
| 429 | { "error": "too_many_requests" } | Over 120 a minute from your address. |
| 500 | { "error": "server_error" } | A temporary problem. |
People can do the same 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 issued with a certificate id. Authmarks re-checks the certificate's C2PA signature and answers 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 failed. |
The response also carries cert_id, issued_at, is_valid, trusted, signature_alg, signature_issuer, signature_time, timestamp details (timestamped, timestamp_trusted, timestamp_authority) and rekor_log_id, among other signature fields. A 404 has 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 do not have to trust 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 with the open-source c2patool against that root:
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: the Authmarks root is not on the public C2PA trust lists. That is about list membership, not about whether the file was 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 runs fully offline: no network, no API keys. It needs Node.js 22 or newer. It is not published to npm yet; once it is, 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 to the Authmarks root (embedded in the package; its 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 with the reason for each failed check.
| Command | What it does |
|---|---|
authmarks-verify ./sealed.pdf | The complete check, printed as text. |
authmarks-verify ./sealed.pdf --json | The same report as JSON (authmarks-verify-report-1). |
authmarks-verify ./sealed.pdf --online | Also checks certificate revocation by downloading the CRLs the certificates name. 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 only: 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 timestamp (JSON). |
authmarks-verify --realtime ./session-events.ndjson | A hash-chained event log: the links are unbroken (JSON). |
Exit codes: 0 verified, 1 not verified (or the file could not be read), 2 bad arguments:
authmarks-verify ./sealed.pdf --json > report.json
jq '{outcome, reasons}' report.json
Offline, revocation is not checked; the report says so. A seal without a time-stamp still verifies and is reported as resting on the signer's own clock. To confirm the embedded root is the published one, compare authmarks-verify --show-root with openssl x509 -in authmarks-c2pa-root.pem -noout -fingerprint -sha256.
The verifier's checks are written down in its SPEC.md, so 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
Izvori
- C2PA Technical Specification — stanje na dan 2026-11-26
- c2patool (Content Authenticity Initiative) — stanje na dan 2026-11-26
- RFC 3161, Time-Stamp Protocol — stanje na dan 2026-11-26
Bilješke o promjenama
- 2026-11-26 — First published.
- 2026-11-28 — The offline verifier section describes the complete seal check (content hash, signature, chain to the embedded Authmarks root, time-stamp).
Uočili ste pogrešku? Pišite na sales@authmarks.com i ispravit ćemo stranicu te navesti datum ispravka.