Developers

Authmarks verification API (UK): check a sealed file or hash without an account

Public endpoints, no authentication needed, 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).

Published 2026-11-26 · Updated 2026-11-28 · 7 min read

AuthNone (public endpoints)
Hash checkPOST https://www.authmarks.com/api/verify/hash
File checkPOST https://www.authmarks.com/api/verify/file
Record checkGET https://www.authmarks.com/api/records/{recordId}/public
C2PA roothttps://www.authmarks.com/.well-known/authmarks-c2pa-root.pem
Offline verifierauthmarks-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 lecturer, a module leader, an external examiner or an academic misconduct panel at a UK university, or a developer building such a check into an internal tool. 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 never touch Authmarks, 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 reveal only what is safe to say in public: 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, which keeps personal data out of public responses.

Endpoints at a glance

EndpointInputPer-address limit
POST /api/verify/hash{ "hash": "<64 hex>" } or a text fingerprint20 requests per minute
POST /api/verify/file{ "sha256": "<64 hex>", "record_ids"?: [...] }60 requests per minute
GET /api/records/{recordId}/publicA record id in the path120 requests per minute
GET /api/verify/by-cert/{certId}A certificate id in the path

All four sit at https://www.authmarks.com, require no authentication and reply with Cache-Control: no-store. Beyond the limit, the hash, file and record endpoints reply 429 with { "error": "too_many_requests" }; wait a minute and try again. Every hash and file check is written to an append-only verification log (the hash, the verdict and the record id, nothing more).

The hash and file endpoints also appear 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 exact bytes of the file. Do not open and re-save it 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

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

FieldTypeRequiredNotes
sha256stringyes64 hex characters (upper case is accepted).
record_idsstring[]noRecord ids found in the file's bytes (up to 4). Lets the service distinguish an altered copy of a genuine seal from an unknown file.
curl -sS https://www.authmarks.com/api/verify/file \
  -H "Content-Type: application/json" \
  -d '{"sha256":"5d41402abc4b2a76b9719d911017c592ae8b6f0c7a4b8f2e1d3c5b7a9e0f1d2c"}'

Response

FieldTypeDetails
verdictstringverified (this is the sealed file, byte for byte), altered (the file names a genuine seal but is not one of its signed files) or unknown (no seal matches).
filestring or nullFor verified: document_pdf, sealed_copy or manifest. Otherwise null.
sealobject or nullThe 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

FieldTypeDetails
record_idstringThe record id.
sealed_atstringISO 8601 UTC.
seal_seqnumberWhich seal of the document this is (1 for the first).
seal_countnumberHow many seals the document has in total.
signedbooleanAuthmarks signed a C2PA manifest for this seal.
filesobjectWhich kinds of file were signed: document_pdf, sealed_copy, manifest (booleans).
document_pdf_provenancestring or nullHow the signed document PDF was produced: server_export_google_drive, server_render_client_docx or server_render_sealed_text. null when there is no document PDF.
demobooleanThe record belongs to a demonstration organisation (sample data).

Errors

StatusBodyReason
400{ "error": "invalid_sha256" }sha256 is missing 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 when you have 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 full stops ... work too).

Request

FieldTypeRequiredNotes
hashstringyes64 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:

FieldTypeDetails
verdictstringsealed.
matchstringWhat matched: document_pdf, sealed_copy, manifest or text.
current_signaturebooleanfalse when the file carries an earlier signature of a seal that has since been re-signed. It is still genuine.
sealed_atstringISO 8601 UTC.
signedbooleanAuthmarks signed the seal.
timestampobject or null{ authority, independent, time }. independent is true only when a time-stamp authority independent of Authmarks issued it.
recordobject or null{ record_id, verify_href, writer_page }, set 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 travel without its file, this answer 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. Where a text fingerprint matches several seals of the same text, the answer is the earliest one (or the published one).

Errors

StatusBodyReason
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 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 is disclosed.

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).

StatusBodyReason
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 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 replies with a verdict:

verdictMeaning
validThe signature is intact and links up to an Authmarks trust anchor.
legacyIntact, but signed outside the current trust chain.
unverifiedIntact, but the signer did not report trust.
invalidThe signature did not pass the check.

The response also includes cert_id, issued_at, is_valid, trusted, signature_alg, signature_issuer, signature_time, timestamp details (timestamped, timestamp_trusted, timestamp_authority) and rekor_log_id, alongside other signature fields. A 404 carries 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 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 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 is not on the public C2PA trust lists. That concerns list membership, not 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 entirely offline: no network and no API keys. It requires Node.js 22 or newer. It has not been 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, giving the reason for each failed check.

CommandWhat it does
authmarks-verify ./sealed.pdfThe complete check, printed as text.
authmarks-verify ./sealed.pdf --jsonThe same report in JSON (authmarks-verify-report-1).
authmarks-verify ./sealed.pdf --onlineAdditionally checks certificate revocation by downloading the CRLs the certificates name. Nothing from the file is sent.
authmarks-verify --show-rootPrints the embedded Authmarks root and its fingerprint.
authmarks-verify --timestamp ./sealed.pdfThe 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.pemA reviewer sign-off: its entry, ES256 signature and timestamp (JSON).
authmarks-verify --realtime ./session-events.ndjsonA 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 bad arguments:

authmarks-verify ./sealed.pdf --json > report.json
jq '{outcome, reasons}' report.json

Offline, revocation is not checked, and the report says so. 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 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 anyone can build an independent implementation, for instance a university IT team that prefers to run its own.

Sources

Change notes

  • 2026-11-26 — First published.
  • 2026-11-28 — The offline verifier section now describes the complete 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.