Developers

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

Public endpoints with no authentication for verifying an Authmarks seal by file hash, text fingerprint, record id or certificate id, along 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

AuthNone (the endpoints are public)
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 an instructor, a program coordinator or an academic integrity office at a Canadian college or university, or a developer building a check into a campus system. You can send a SHA-256 hash (the file stays on 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, plus 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 the sealing happened, 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 are hosted at https://www.authmarks.com, require 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, then retry. Each 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 with 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 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()) 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

FieldTypeRequiredNotes
sha256stringYes64 hex characters (upper case accepted).
record_idsstring[]NoRecord ids found in the file's bytes (up to 4). They let 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

FieldTypeNotes
verdictstringverified (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).
filestring or nullWith verified: document_pdf, sealed_copy or manifest. In every other case, null.
sealobject or nullThe public seal summary (see below). null when the verdict is 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 id of the record.
sealed_atstringISO 8601, in UTC.
seal_seqnumberWhich seal of the document this one is (1 for the first).
seal_countnumberThe number of seals the document has.
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 no document PDF exists.
demobooleanThe record belongs to a demonstration organization (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 problem; try again later.

Verify a hash: POST /api/verify/hash

Use this when you have only a hash and not the file itself. 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 plain dots ... 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
verdictstringAlways sealed.
matchstringWhat was 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, 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 the time-stamp.
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 circulate without its file, this answer intentionally omits the record id, the writer, the organization, 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 problem; try again later.

Look up a record: GET /api/records/{recordId}/public

Each sealed PDF prints its record id (rec_…). Anyone who has it 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).

StatusBodyCause
404{ "error": "not_found" }This is 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 problem on our side.

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 issued with a certificate id. Authmarks checks the certificate's C2PA signature again and replies with a verdict:

verdictWhat it means
validThe signature is intact and chains to an Authmarks trust anchor.
legacyThe signature is intact, but was made outside the current trust chain.
unverifiedThe signature is intact, but the signer did not report trust.
invalidThe 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, 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 in order 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 membership of a list, 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; when it is, you will 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), each assertion in the manifest, the ES256 seal signature, the certificate chain up to the Authmarks root (built into 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 every check that failed.

CommandWhat it does
authmarks-verify ./sealed.pdfRuns the full check and prints it as text.
authmarks-verify ./sealed.pdf --jsonProduces the same report as JSON (authmarks-verify-report-1).
authmarks-verify ./sealed.pdf --onlineAlso checks certificate revocation by downloading the CRLs that the certificates name. Nothing from the file is sent.
authmarks-verify --show-rootPrints the built-in Authmarks root and its fingerprint.
authmarks-verify --timestamp ./sealed.pdfChecks the signing time only: the claim signature, its 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 time-stamp (JSON).
authmarks-verify --realtime ./session-events.ndjsonChecks a hash-chained event log to confirm the links are unbroken (JSON).

Exit codes: 0 means verified, 1 means not verified (or the file could not be read), and 2 means bad arguments:

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

When run 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 built-in 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 write 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.