API documentation

Certificates & JWS verification

Every certified translation Verdacert issues - live or sandbox - ships with a compact JWS receipt signed Ed25519. Any party can verify it offline by fetching the public JWKS once. No phone-home, no API key, no centralized trust call.

Why a cryptographic receipt?

The whole point of certified translation is downstream trust. We make that trust independently checkable.

A USCIS reviewer, an opposing lawyer, a university registrar, or anyone else handed a Verdacert-certified PDF can verify the signature without contacting Verdacert. The page that holds their hand is verdacert.com/verify/<id>; the API call backing it is /api/v1/verify/<id>; the cryptographic primitive is a JWS over a deterministic JSON payload, signed Ed25519, verifiable against /.well-known/jwks.json.

Anatomy of a Verdacert certificate

What gets returned by /result and embedded in every PDF QR code. Names and credentials in the examples are illustrative.

{
  "certificateId":         "k7m2p9x4q1rt",
  "translatorName":        "Roya Khan",
  "translatorCredentials": "MA Translation Studies, FA→EN",
  "issuedAt":              "2026-05-22T18:00:00.000Z",
  "publicVerifyUrl":       "https://www.verdacert.com/verify/k7m2p9x4q1rt",
  "jws":                   "eyJhbGciOiJFZERTQSIsImtpZCI6Imt1MSJ9.eyJjZXJ0SWQiOiJ2Y3J0XzAxaCJ9.AbCdEf…"
}
FieldNotes
certificateIdStable opaque id. Lookup key for the public verify endpoint and the QR-coded link in the PDF.
translatorNameName of the reviewer who signed off, as recorded at sign-off.
translatorCredentialsFree-text credential and language pair as recorded at sign-off (the example is illustrative, not a claim of a specific accreditation). May be absent.
issuedAtServer-clock UTC ISO 8601.
publicVerifyUrlHuman-friendly verification URL. Print on the certificate; embed in the PDF QR.
jwsCompact JWS. Header carries kid (key id) and alg=EdDSA. Payload is a deterministic JSON object.

One certificate per document. An order with several documents certifies each one on its own: each PDF carries its own certificate id and QR, possibly naming a different translator, and /result returns them in certifications, one per artifact. Re-certifying one document (a customer revision, a second review) supersedes only that document's certificate; the others stay valid.

JWS payload

The decoded payload (base64url middle segment of the JWS) is a deterministic JSON object. Illustrative example - the hash fields are present only when a document hash was recorded at issue time:

{
  "iss":            "https://www.verdacert.com",
  "sub":            "k7m2p9x4q1rt",
  "iat":            1779300000,
  "orderNumber":    "VC-2026-47019385",
  "translator":     { "name": "Roya Khan", "credentials": "MA Translation Studies, FA→EN" },
  "sourceLanguage": "fa",
  "targetLanguage": "en",
  "pageCount":      2,
  "document":       { "type": "birth_certificate", "pageCount": 2, "documentsInOrder": 1 },
  "useCase":        "uscis",
  "acceptanceGuarantee": { "uscis": true, "refundPolicyUrl": "https://www.verdacert.com/quality#acceptance-guarantee" },
  "documentSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4…",
  "isSandbox":      false
}

document names the one document of the order the certificate covers; top-level pageCount is the order's total. A valid signature proves that Verdacert issued a certificate for this document and signer; the /verify endpoint adds whether it is still valid (not revoked). When a document hash is present in the receipt (documentSha256 / translatedDocumentSha256) it binds the certified PDF: hash the file you hold and compare. Receipts without a hash verify issuance and status only - they do not bind the PDF bytes.

Two optional claims bind names the PDF prints. applicant is the end client the translation was certified for, when the order named one. issuedFor is the reselling agency an agency-led certificate was issued for: its PDF leads with that agency's letterhead and says Verdacert certified it for the agency. Both are absent when they don't apply.

Sandbox certs are real certificates
Sandbox-issued JWS receipts validate against the same JWKS and have isSandbox: true in the payload. Your verification code path doesn't branch - your policy code might (e.g. “don't accept sandbox for production filings”).

Online verification (the easy path)

One unauthenticated GET. Returns valid/invalid plus the decoded payload and revocation status.

curl https://www.verdacert.com/api/v1/verify/k7m2p9x4q1rt
{
  "valid":         true,
  "certificateId": "k7m2p9x4q1rt",
  "issuedAt":      "2026-05-22T18:00:00.000Z",
  "revokedAt":     null,
  "revokedReason": null,
  "translator":    { "name": "Roya Khan", "credentials": "MA Translation Studies, FA→EN" },
  "documentHash":  null,
  "isSandbox":     false,
  "acceptanceGuarantee": { "uscis": true },
  "jws":           "eyJhbGciOiJFZERTQSIsImtpZCI6Imt1MSJ9…"
}

valid combines two checks: the row isn't revoked, and we re-verified the stored JWS against the active JWKS at request time (defence in depth against the row being tampered with at rest).

Offline verification (zero phone-home)

Recommended for high-volume verifiers and air-gapped contexts. Fetch /.well-known/jwks.json once, cache for ~1 hour, and verify any JWS locally.

The JWKS

curl https://www.verdacert.com/.well-known/jwks.json
{
  "keys": [
    {
      "kty": "OKP",
      "crv": "Ed25519",
      "alg": "EdDSA",
      "kid": "ku1",
      "use": "sig",
      "x":   "…base64url public key bytes…"
    }
  ]
}

Keys rotate periodically. The JWS header carries the kid claim so a verifier can pick the right key even mid-rotation.

TypeScript / Node (jose)

npm install jose
import { jwtVerify, createRemoteJWKSet } from "jose";

const jwks = createRemoteJWKSet(
  new URL("https://www.verdacert.com/.well-known/jwks.json"),
  { cooldownDuration: 60 * 60 * 1000 }, // refresh at most hourly
);

export async function verifyVerdacertJws(jws: string) {
  const { payload, protectedHeader } = await jwtVerify(jws, jwks, {
    algorithms: ["EdDSA"],
  });
  return { payload, header: protectedHeader };
}

const result = await verifyVerdacertJws("eyJhbGciOiJFZERTQSIsImtpZCI6Imt1MSJ9…");
console.log(result.payload.certificateId, result.payload.documentSha256);

Python (PyJWT)

pip install pyjwt[crypto] requests
import functools, jwt, requests
from jwt import PyJWKClient

jwks_client = PyJWKClient("https://www.verdacert.com/.well-known/jwks.json", cache_keys=True)

def verify_verdacert_jws(token: str) -> dict:
    signing_key = jwks_client.get_signing_key_from_jwt(token)
    return jwt.decode(token, signing_key.key, algorithms=["EdDSA"])

payload = verify_verdacert_jws("eyJhbGciOiJFZERTQSIsImtpZCI6Imt1MSJ9…")
print(payload["certificateId"], payload["documentSha256"])

Go (golang-jwt + jwk)

import (
    "context"
    "github.com/golang-jwt/jwt/v5"
    "github.com/lestrrat-go/jwx/v2/jwk"
)

var keySet = func() jwk.Set {
    s, err := jwk.Fetch(context.Background(), "https://www.verdacert.com/.well-known/jwks.json")
    if err != nil { panic(err) }
    return s
}()

func verifyVerdacertJws(tok string) (jwt.MapClaims, error) {
    parsed, err := jwt.Parse(tok, func(t *jwt.Token) (any, error) {
        kid, _ := t.Header["kid"].(string)
        k, ok := keySet.LookupKeyID(kid)
        if !ok { return nil, jwt.ErrTokenSignatureInvalid }
        var raw any
        if err := k.Raw(&raw); err != nil { return nil, err }
        return raw, nil
    }, jwt.WithValidMethods([]string{"EdDSA"}))
    if err != nil { return nil, err }
    return parsed.Claims.(jwt.MapClaims), nil
}
Check documentSha256 when it is present
A valid JWS proves we issued a cert for that document and signer. When the payload carries documentSha256, compute the SHA-256 of the PDF the user is holding and compare - one hash + one signature verification, milliseconds. When it is absent (documentHash: null from /verify), the receipt verifies issuance and status only; treat the file itself as unbound.

Revocation

We retain the right to revoke a certificate (e.g. on a confirmed-fraud finding). Revocation flips revokedAt on the certificate row.

Offline verification can detect revocation in two ways:

  • Recommended: hit /api/v1/verify/<id> for the authoritative answer (DB revocation + live signature). Costs one request, no auth.
  • Pure offline: verifiers that can't phone home should treat any cert older than their cache window as “unconfirmed” and degrade gracefully. We don't publish a revocation list yet; if you need one, email hello@verdacert.com.

QR codes on the printed certificate

Every certified PDF carries a QR code linking to publicVerifyUrl. A reviewer can scan it from paper with any phone and land on the verification page - no Verdacert account required.

You don't need to do anything to use the QR; it's baked in. If you're embedding the certificate in your own UI, link to publicVerifyUrl alongside any download CTA so end-users have a one-click way to confirm authenticity.

Where to next

Get instant quotePricing