PDF/UA validator

Send a PDF and get every PDF/UA-1 or PDF/UA-2 failure in it, each with its veraPDF rule id.

To fix a PDF, use Remediate.

POST https://api.fare.dev/v1/pdf/validate

2¢per successful call

Failed calls
not billed
MCP tool
validate_pdf_ua
Billed
monthly, by Stripe
Get an API key

Request

Send your key in the X-API-Key header and the PDF as the raw request body, up to 50 MB.

Request parameters
NameRequiredWhat it is
profileNooptionalua1 for PDF/UA-1, ua2 for PDF/UA-2, or auto. Without one, we use the part the file claims in its metadata, and PDF/UA-1 if it claims none.
bodyYesrequiredThe PDF file itself, sent as the request body with Content-Type: application/pdf.

Try it

Each successful call costs 2¢. A call that fails isn't billed.

Validate a PDFcurl · 2¢
curl -X POST "https://api.fare.dev/v1/pdf/validate?profile=ua1" \
  -H "X-API-Key: $FARE_KEY" \
  -H "Content-Type: application/pdf" \
  --data-binary @report.pdf
{
  "profile": "PDF/UA-1",
  "compliant": false,
  "failed_rules": ["7.1-t03", "7.3-t01"],
  "violations": [
    { "rule": "7.1-t03", "message": "Content is neither tagged nor marked as an Artifact." },
    { "rule": "7.3-t01", "message": "Figure has no Alt or ActualText." }
  ],
  "rule_set": "veraPDF validation profiles"
}

What you get back

Response fields
FieldWhat it is
profileThe part checked: PDF/UA-1 or PDF/UA-2.
complianttrue when no rule failed.
failed_rulesThe ids of the rules that failed, each listed once.
violationsEach failure, with its rule id and a message. Repeats of one rule stop at 50.
rule_setWhere the rule ids come from: the veraPDF validation profiles.

How validation works

Our own engine reads the file's structure and checks it against the PDF/UA rules. Rule ids follow the veraPDF validation profiles, so results compare directly with veraPDF. A file gets 60 seconds.

Profile and Checks
ProfileChecks
ua1PDF/UA-1 (ISO 14289-1)
ua2PDF/UA-2 (ISO 14289-2)
autoThe part the file claims

Errors

Errors
StatusCodeMessage
400not_pdfSend the PDF file as the request body.
400invalid_profileprofile must be ua1, ua2 or auto
413file_too_largeThe body is larger than 50 MB.
422unreadable_pdfThe file could not be read as a PDF.
504timeoutValidation took longer than 60 seconds.
401missing_keySend your API key in the X-API-Key header.
401invalid_keyThat API key is not valid.
402payment_requiredAdd a card at https://fare.dev/app/billing to use this key.
429rate_limitedThis key allows 10 requests per second.

None of these are billed. Branch on the code, not the message: codes never change meaning within /v1.

For agents

The MCP tool validate_pdf_ua takes a public https url or pdf_base64, and an optional profile. It runs this same call on the key your agent connects with, and it's billed the same way.

Add Fare to Claude CodeStreamable HTTPHTTP
claude mcp add --transport http fare https://api.fare.dev/mcp