Developers

Authmarks verification API: check a sealed file or hash with no account needed

Public endpoints, no sign-in required, 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 newer; not yet published to npm)

What you get: ways for anyone, with no account and no token, to check whether a file or a passage of text was sealed by Authmarks. That might be a marker checking an assessment task, an academic integrity officer looking at a submission, or a student confirming their own receipt. You can send a SHA-256 hash (the file never leaves your computer), look up the 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 only answer 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.

Endpoints at a glance

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

All four sit on https://www.authmarks.com, need no authentication and reply with Cache-Control: no-store. Past 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 (holding only the hash, the verdict and the record id).

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 at all gives 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()) does the hashing 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 accepted).
record_idsstring[]noRecord ids found in the file's bytes (up to 4). These let the service tell an altered copy of a genuine seal apart from an unknown file.
curl -sS https://www.authmarks.com/api/verify/file \
  -H "Content-Type: application/json" \
  -d '{"sha256":"5d41402abc4b2a76b9719d911017c592ae8b6f0c7a4b8f2e1d3c5b7a9e0f1d2c"}'

Response

FieldTypeNotes
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

FieldTypeNotes
record_idstringThe record's id.
sealed_atstringISO 8601, in UTC.
seal_seqnumberWhich seal of the document this one 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 (as 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

StatusBodyCause
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 a hash but 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 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 there is no match. Otherwise:

FieldTypeNotes
verdictstringsealed.
matchstringWhat matched: document_pdf, sealed_copy, manifest or text.
current_signaturebooleanfalse when the file carries an earlier signature from a seal that has since been re-signed. It is still genuine.
sealed_atstringISO 8601, in 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 }, 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 travel without its file, this answer deliberately leaves out 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 answer gives the earliest one (or the published one).

Errors

StatusBodyCause
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 can learn that the seal exists, when it was sealed, that Authmarks signed it and which files were signed. They learn 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).

StatusBodyCause
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 re-checks the certificate's C2PA signature and replies with a verdict:

verdictWhat it means
validThe signature is intact and chains to an Authmarks trust anchor.
legacyIntact, but signed outside the current trust chain.
unverifiedIntact, but the signer did not report trust.
invalidThe signature check failed.

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, among 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 do not need 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 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 is a question of list membership, not of whether the file was altered. 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, no API keys. It needs Node.js 22 or newer. It has not been published to npm yet; once it is, you will run it with:

npx @authmarks/verifier-cli ./sealed.pdf

Given a sealed PDF, it checks the content hash (that 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, with its SHA-256 fingerprint 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 every failed check.

CommandWhat it does
authmarks-verify ./sealed.pdfRuns the complete check and prints it as text.
authmarks-verify ./sealed.pdf --jsonGives the same report as JSON (authmarks-verify-report-1).
authmarks-verify ./sealed.pdf --onlineAlso checks certificate revocation by downloading the CRLs the certificates name. Nothing from the file is sent anywhere.
authmarks-verify --show-rootPrints the embedded Authmarks root and its fingerprint.
authmarks-verify --timestamp ./sealed.pdfChecks 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.pemChecks a reviewer sign-off: its entry, ES256 signature and timestamp (JSON).
authmarks-verify --realtime ./session-events.ndjsonChecks a hash-chained event log to confirm 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 with no 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 written up in its SPEC.md, so anyone can build an independent implementation.

Sources

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.