Skip to main content

API reference · v1.0.0

PDF Tagger API reference

Tag PDFs for PDF/UA accessibility from your own code. Authenticate with an API key, upload a PDF, submit a tagging job, then poll the job or receive a signed webhook when it finishes. To tag many PDFs at once, submit up to 100 uploads as one batch. Jobs draw from the same credit balance as the web app (1 credit per page).

Download the OpenAPI spec
Base URL
https://api.pdf-tagger.com

Authentication

Send your key as Authorization: Bearer sk_live_….

Header
Authorization: Bearer sk_live_...

Account

Your account and credit balance.

Get account

The authenticated account, its plan, and its current credit balance.

Responses

  • 200Account info
    • account_idstring
    • planstring | null
    • subscription_statusstring | null
    • credits_availableinteger
    • request_idstring
  • 401Missing, invalid, or revoked API key
    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
  • 429Rate limit exceeded (see the Retry-After header)
    • Retry-Afterheader · integer

      Seconds until the window resets.

    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
GEThttps://api.pdf-tagger.com/v1/me
Request
curl -X GET https://api.pdf-tagger.com/v1/me \
  -H "Authorization: Bearer sk_live_..."
Response 200
{
  "account_id": "string",
  "plan": "string",
  "subscription_status": "string",
  "credits_available": 0,
  "request_id": "string"
}
Response 401, 429
{
  "error": {
    "type": "string",
    "message": "string",
    "request_id": "string",
    "errors": [
      {
        "index": 0,
        "type": "string",
        "message": "string"
      }
    ]
  }
}

Jobs

Upload a PDF, submit a tagging job, and download the result.

Create upload

Returns a presigned POST. Upload the PDF straight to storage as multipart/form-data, including every field in fields plus the file, then pass key to POST /v1/jobs (one file) or POST /v1/batches (many files).

Request body (JSON)

  • filenamestring

    The original filename (optional).

Responses

  • 201Presigned upload
    • upload_urlstring
    • fieldsobject
    • keystring
    • request_idstring
  • 401Missing, invalid, or revoked API key
    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
  • 429Rate limit exceeded (see the Retry-After header)
    • Retry-Afterheader · integer

      Seconds until the window resets.

    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
POSThttps://api.pdf-tagger.com/v1/uploads
Request
curl -X POST https://api.pdf-tagger.com/v1/uploads \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "filename": "string"
  }'
Response 201
{
  "upload_url": "string",
  "fields": {
    "property1": "string",
    "property2": "string"
  },
  "key": "string",
  "request_id": "string"
}
Response 401, 429
{
  "error": {
    "type": "string",
    "message": "string",
    "request_id": "string",
    "errors": [
      {
        "index": 0,
        "type": "string",
        "message": "string"
      }
    ]
  }
}

Submit job

Submit a tagging job for an uploaded PDF. Charges one credit per page.

Parameters

  • Idempotency-Keyheader · string

    A repeat with the same key returns the first job and never double-charges.

Request body (JSON, required)

  • keystringrequired

    The key from POST /v1/uploads.

  • filenamestring
  • optionsobject
    • ocrboolean, default false

      Force OCR on image-only pages.

    • embed_fontsboolean, default false

      Embed a non-embedded font when safe.

Responses

  • 202Job accepted
    • idstring
    • statusstring: processing, completed, failed
    • filenamestring | null
    • credits_usedinteger
    • optionsobject | null
    • created_atstring (date-time)
    • request_idstring
  • 400Invalid request
    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
  • 401Missing, invalid, or revoked API key
    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
  • 402Not enough credits
    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
  • 409Idempotency conflict or a job still being created
    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
  • 429Rate limit exceeded (see the Retry-After header)
    • Retry-Afterheader · integer

      Seconds until the window resets.

    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
POSThttps://api.pdf-tagger.com/v1/jobs
Request
curl -X POST https://api.pdf-tagger.com/v1/jobs \
  -H "Authorization: Bearer sk_live_..." \
  -H "Idempotency-Key: <Idempotency-Key>" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "string",
    "filename": "string",
    "options": {
      "ocr": false,
      "embed_fonts": false
    }
  }'
Response 202
{
  "id": "string",
  "status": "processing",
  "filename": "string",
  "credits_used": 0,
  "options": {},
  "created_at": "2026-01-01T12:00:00Z",
  "request_id": "string"
}
Response 400, 401, 402, 409, 429
{
  "error": {
    "type": "string",
    "message": "string",
    "request_id": "string",
    "errors": [
      {
        "index": 0,
        "type": "string",
        "message": "string"
      }
    ]
  }
}

Get job

A job's current status — processing, completed, or failed.

Parameters

  • idpath · stringrequired

Responses

  • 200Job
    • idstring
    • statusstring: processing, completed, failed
    • filenamestring | null
    • credits_usedinteger
    • optionsobject | null
    • created_atstring (date-time)
    • request_idstring
  • 401Missing, invalid, or revoked API key
    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
  • 404No such resource for this account
    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
  • 429Rate limit exceeded (see the Retry-After header)
    • Retry-Afterheader · integer

      Seconds until the window resets.

    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
GEThttps://api.pdf-tagger.com/v1/jobs/{id}
Request
curl -X GET https://api.pdf-tagger.com/v1/jobs/{id} \
  -H "Authorization: Bearer sk_live_..."
Response 200
{
  "id": "string",
  "status": "processing",
  "filename": "string",
  "credits_used": 0,
  "options": {},
  "created_at": "2026-01-01T12:00:00Z",
  "request_id": "string"
}
Response 401, 404, 429
{
  "error": {
    "type": "string",
    "message": "string",
    "request_id": "string",
    "errors": [
      {
        "index": 0,
        "type": "string",
        "message": "string"
      }
    ]
  }
}

Get result

A short-lived download URL for the tagged PDF, once the job is completed.

Parameters

  • idpath · stringrequired

Responses

  • 200A presigned download URL
    • result_urlstring
    • expires_ininteger

      Seconds the URL is valid.

    • request_idstring
  • 401Missing, invalid, or revoked API key
    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
  • 404No such resource for this account
    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
  • 409The job is not completed yet
    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
  • 429Rate limit exceeded (see the Retry-After header)
    • Retry-Afterheader · integer

      Seconds until the window resets.

    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
GEThttps://api.pdf-tagger.com/v1/jobs/{id}/result
Request
curl -X GET https://api.pdf-tagger.com/v1/jobs/{id}/result \
  -H "Authorization: Bearer sk_live_..."
Response 200
{
  "result_url": "string",
  "expires_in": 0,
  "request_id": "string"
}
Response 401, 404, 409, 429
{
  "error": {
    "type": "string",
    "message": "string",
    "request_id": "string",
    "errors": [
      {
        "index": 0,
        "type": "string",
        "message": "string"
      }
    ]
  }
}

Get report

The job's report, once the job is completed: the result and evidence for each of the accessibility requirements in PDF/UA-1, in the standard's order; the result for each WCAG 2.2 Level A and AA success criterion (wcag); and a short-lived download URL for the report PDF.

Parameters

  • idpath · stringrequired

Responses

  • 200The report
    • job_idstring
    • standardstring

      For example "PDF/UA-1 (ISO 14289-1:2014)".

    • total_requirementsinteger
    • summaryobject

      How many requirements have each result.

      • handledinteger
      • failedinteger
      • needs_reviewinteger
      • for_informationinteger
      • not_applicableinteger
    • requirementsarray
      • idstring
      • referencestring

        The ISO clause, for example "ISO 14289-1 section 7.5".

      • namestring
      • levelstring | null

        "shall" or "should".

      • sectionobject
        • idstring
        • titlestring
      • categorystring

        The report category, for example "Tables".

      • resultstring: handled, failed, needs_review, for_information, not_applicable

        handled: passed, or PDF Tagger met or fixed it. failed: a validator found it failing in the file. needs_review: a person must confirm it. for_information: a limit from the source file that you cannot act on. not_applicable: the document has no content of this kind.

      • evidencestring | null

        The evidence behind the result, as the web report shows it. Null for a plain pass.

    • wcagobject

      Beta: the fields and the result names may change. Every WCAG 2.2 Level A and AA success criterion, and 4.1.1 from WCAG 2.0 and 2.1. Most results come from the PDF/UA-1 requirements behind the criterion (see requirements); contrast, target size and required fields are also measured on the file. wcag is null for a report made before the WCAG view existed.

      • standardstring

        "WCAG 2.2".

      • levelsstring

        "A and AA".

      • summariesarray

        The counts for WCAG 2.2 and for WCAG 2.1, each at Level AA (which includes Level A).

        • versionstring

          "2.2" or "2.1".

        • levelstring

          "AA".

        • total_criteriainteger
        • summaryobject

          How many of that version's criteria have each result.

          • handledinteger
          • failedinteger
          • needs_reviewinteger
          • for_informationinteger
          • not_applicableinteger
      • criteriaarray
        • idstring

          The success criterion, for example "1.1.1".

        • levelstring: A, AA
        • versionsarray

          The WCAG versions it is in, for example ["2.0", "2.1", "2.2"].

        • titlestring

          The W3C title, for example "Non-text Content".

        • namestring

          Our plain statement of the criterion.

        • principleobject
          • idstring
          • titlestring
        • guidelineobject
          • idstring
          • titlestring
        • resultstring: handled, failed, needs_review, for_information, not_applicable

          The same results as a requirement. needs_review also covers a criterion that only a person can judge.

        • evidencestring | null

          The evidence behind the result, as the web report shows it.

        • pdfua_requirementsarray

          The ids of the PDF/UA-1 requirements the result comes from.

    • report_pdf_urlstring | null

      A presigned URL for the report PDF, or null when the file is no longer stored.

    • expires_ininteger

      Seconds the URL is valid.

    • request_idstring
  • 401Missing, invalid, or revoked API key
    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
  • 404No job with that id (not_found), or the job has no PDF/UA-1 report (report_unavailable).
    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
  • 409The job is not completed yet
    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
  • 429Rate limit exceeded (see the Retry-After header)
    • Retry-Afterheader · integer

      Seconds until the window resets.

    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
GEThttps://api.pdf-tagger.com/v1/jobs/{id}/report
Request
curl -X GET https://api.pdf-tagger.com/v1/jobs/{id}/report \
  -H "Authorization: Bearer sk_live_..."
Response 200
{
  "job_id": "string",
  "standard": "string",
  "total_requirements": 0,
  "summary": {
    "handled": 0,
    "failed": 0,
    "needs_review": 0,
    "for_information": 0,
    "not_applicable": 0
  },
  "requirements": [
    {
      "id": "string",
      "reference": "string",
      "name": "string",
      "level": "string",
      "section": {
        "id": "string",
        "title": "string"
      },
      "category": "string",
      "result": "handled",
      "evidence": "string"
    }
  ],
  "wcag": {
    "standard": "string",
    "levels": "string",
    "summaries": [
      {
        "version": "string",
        "level": "string",
        "total_criteria": 0,
        "summary": {
          "handled": 0,
          "failed": 0,
          "needs_review": 0,
          "for_information": 0,
          "not_applicable": 0
        }
      }
    ],
    "criteria": [
      {
        "id": "string",
        "level": "A",
        "versions": [
          "string"
        ],
        "title": "string",
        "name": "string",
        "principle": {
          "id": "string",
          "title": "string"
        },
        "guideline": {
          "id": "string",
          "title": "string"
        },
        "result": "handled",
        "evidence": "string",
        "pdfua_requirements": [
          "string"
        ]
      }
    ]
  },
  "report_pdf_url": "string",
  "expires_in": 0,
  "request_id": "string"
}
Response 401, 404, 409, 429
{
  "error": {
    "type": "string",
    "message": "string",
    "request_id": "string",
    "errors": [
      {
        "index": 0,
        "type": "string",
        "message": "string"
      }
    ]
  }
}

Batches

Submit up to 100 uploaded PDFs in one request, follow them as one batch, and get one batch.completed webhook when every job has finished. Each job's result downloads with GET /v1/jobs/{id}/result.

Submit batch

Submit 1 to 100 uploaded PDFs as one batch. All or nothing: the API first checks every job (the key, the options, a valid PDF, 750 pages or fewer). If any job fails a check, the answer is 400 with one entry in error.errors for each bad job, and nothing is created or charged. If the credits do not cover every page, the answer is 402 and nothing is charged. Otherwise it charges 1 credit per page for all the jobs at once and starts each job. A job that cannot be started is marked failed and its credits are refunded; the others continue. Each job sends its own job.completed or job.failed webhook, and the batch sends one batch.completed when every job has finished. The API reads every file before it answers, so a batch takes longer to accept than one job; allow a long client timeout.

Parameters

  • Idempotency-Keyheader · string

    A repeat with the same key and body returns the first batch and never double-charges.

Request body (JSON, required)

  • namestring

    A name for the batch. The default is like "3 documents, Oct 14, 2026".

  • jobsarrayrequired

    One entry for each uploaded PDF. Each key can appear once.

    • keystringrequired

      The key from POST /v1/uploads.

    • filenamestring
    • optionsobject
      • ocrboolean, default false

        Force OCR on image-only pages.

      • embed_fontsboolean, default false

        Embed a non-embedded font when safe.

Responses

  • 200The batch this Idempotency-Key already created
    • idstring
    • namestring
    • statusstring: processing, completed

      completed once every job has finished.

    • countsobject
      • totalinteger
      • processinginteger
      • completedinteger
      • failedinteger
    • credits_usedinteger

      Credits charged for the batch. A failed job's credits are refunded.

    • created_atstring (date-time)
    • completed_atstring | null (date-time)
    • jobsarray

      The jobs, in the order of the request.

      • idstring

        The job id. Use it with GET /v1/jobs/{id} and GET /v1/jobs/{id}/result.

      • statusstring: processing, completed, failed
      • filenamestring | null
      • credits_usedinteger
      • optionsobject | null
      • created_atstring (date-time)
      • error_codestring | null

        Why the job failed, when it failed.

      • error_messagestring | null
    • request_idstring
  • 202Batch accepted
    • idstring
    • namestring
    • statusstring: processing, completed

      completed once every job has finished.

    • countsobject
      • totalinteger
      • processinginteger
      • completedinteger
      • failedinteger
    • credits_usedinteger

      Credits charged for the batch. A failed job's credits are refunded.

    • created_atstring (date-time)
    • completed_atstring | null (date-time)
    • jobsarray

      The jobs, in the order of the request.

      • idstring

        The job id. Use it with GET /v1/jobs/{id} and GET /v1/jobs/{id}/result.

      • statusstring: processing, completed, failed
      • filenamestring | null
      • credits_usedinteger
      • optionsobject | null
      • created_atstring (date-time)
      • error_codestring | null

        Why the job failed, when it failed.

      • error_messagestring | null
    • request_idstring
  • 400Invalid request. When one or more jobs are bad, error.errors lists each one with its index in jobs. Nothing was created or charged.
    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
  • 401Missing, invalid, or revoked API key
    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
  • 402Not enough credits for every page in the batch. Nothing was charged.
    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
  • 409Idempotency conflict or a batch still being created
    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
  • 429Rate limit exceeded (see the Retry-After header)
    • Retry-Afterheader · integer

      Seconds until the window resets.

    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
POSThttps://api.pdf-tagger.com/v1/batches
Request
curl -X POST https://api.pdf-tagger.com/v1/batches \
  -H "Authorization: Bearer sk_live_..." \
  -H "Idempotency-Key: <Idempotency-Key>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "jobs": [
      {
        "key": "string",
        "filename": "string",
        "options": {
          "ocr": false,
          "embed_fonts": false
        }
      }
    ]
  }'
Response 200, 202
{
  "id": "string",
  "name": "string",
  "status": "processing",
  "counts": {
    "total": 0,
    "processing": 0,
    "completed": 0,
    "failed": 0
  },
  "credits_used": 0,
  "created_at": "2026-01-01T12:00:00Z",
  "completed_at": "2026-01-01T12:00:00Z",
  "jobs": [
    {
      "id": "string",
      "status": "processing",
      "filename": "string",
      "credits_used": 0,
      "options": {},
      "created_at": "2026-01-01T12:00:00Z",
      "error_code": "string",
      "error_message": "string"
    }
  ],
  "request_id": "string"
}
Response 400, 401, 402, 409, 429
{
  "error": {
    "type": "string",
    "message": "string",
    "request_id": "string",
    "errors": [
      {
        "index": 0,
        "type": "string",
        "message": "string"
      }
    ]
  }
}

Get batch

A batch's status, counts and every job. status is completed once every job has finished, whether each job completed or failed; the counts say which.

Parameters

  • idpath · stringrequired

Responses

  • 200Batch
    • idstring
    • namestring
    • statusstring: processing, completed

      completed once every job has finished.

    • countsobject
      • totalinteger
      • processinginteger
      • completedinteger
      • failedinteger
    • credits_usedinteger

      Credits charged for the batch. A failed job's credits are refunded.

    • created_atstring (date-time)
    • completed_atstring | null (date-time)
    • jobsarray

      The jobs, in the order of the request.

      • idstring

        The job id. Use it with GET /v1/jobs/{id} and GET /v1/jobs/{id}/result.

      • statusstring: processing, completed, failed
      • filenamestring | null
      • credits_usedinteger
      • optionsobject | null
      • created_atstring (date-time)
      • error_codestring | null

        Why the job failed, when it failed.

      • error_messagestring | null
    • request_idstring
  • 401Missing, invalid, or revoked API key
    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
  • 404No such resource for this account
    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
  • 429Rate limit exceeded (see the Retry-After header)
    • Retry-Afterheader · integer

      Seconds until the window resets.

    • errorobject
      • typestring
      • messagestring
      • request_idstring
      • errorsarray

        Only on POST /v1/batches with bad jobs. One entry for each bad job.

        • indexinteger

          The job's place in jobs, from 0.

        • typestring
        • messagestring
GEThttps://api.pdf-tagger.com/v1/batches/{id}
Request
curl -X GET https://api.pdf-tagger.com/v1/batches/{id} \
  -H "Authorization: Bearer sk_live_..."
Response 200
{
  "id": "string",
  "name": "string",
  "status": "processing",
  "counts": {
    "total": 0,
    "processing": 0,
    "completed": 0,
    "failed": 0
  },
  "credits_used": 0,
  "created_at": "2026-01-01T12:00:00Z",
  "completed_at": "2026-01-01T12:00:00Z",
  "jobs": [
    {
      "id": "string",
      "status": "processing",
      "filename": "string",
      "credits_used": 0,
      "options": {},
      "created_at": "2026-01-01T12:00:00Z",
      "error_code": "string",
      "error_message": "string"
    }
  ],
  "request_id": "string"
}
Response 401, 404, 429
{
  "error": {
    "type": "string",
    "message": "string",
    "request_id": "string",
    "errors": [
      {
        "index": 0,
        "type": "string",
        "message": "string"
      }
    ]
  }
}

Webhooks

Signed job and batch events delivered to your server. Register and manage endpoints in the dashboard (the Developers page); this section documents the event you receive and how to verify it.

Job event

POSTed to every enabled endpoint. Verify the X-PDFTagger-Signature header before trusting the body: it is t=<unixSeconds>,v1=<hmac>, where the HMAC is SHA-256 over <t>.<rawBody> keyed by the endpoint secret. Reject a timestamp older than a few minutes (replay). Delivery is at least once — dedupe on data.job.id. The event carries no result URL; fetch it with GET /v1/jobs/{id}/result.

Parameters

  • X-PDFTagger-Signatureheader · stringrequired

Request body (JSON)

  • idstring
  • typestring: job.completed, job.failed
  • createdinteger
  • dataobject
    • jobobject

      A job with its failure details, as in a batch and in job webhook events.

      • idstring

        The job id. Use it with GET /v1/jobs/{id} and GET /v1/jobs/{id}/result.

      • statusstring: processing, completed, failed
      • filenamestring | null
      • credits_usedinteger
      • optionsobject | null
      • created_atstring (date-time)
      • error_codestring | null

        Why the job failed, when it failed.

      • error_messagestring | null

Responses

  • 2XXAny 2xx acknowledges receipt. Non-2xx is retried with backoff.
POSTYour webhook endpoint
Payload you receive
{
  "id": "string",
  "type": "job.completed",
  "created": 0,
  "data": {
    "job": {
      "id": "string",
      "status": "processing",
      "filename": "string",
      "credits_used": 0,
      "options": {},
      "created_at": "2026-01-01T12:00:00Z",
      "error_code": "string",
      "error_message": "string"
    }
  }
}

Batch event

POSTed once to every enabled endpoint when every job in a batch has finished, completed or failed. Each job's own job.completed or job.failed event is sent as well. Verify the X-PDFTagger-Signature header as for a job event. Delivery is at least once — dedupe on data.batch.id. The event carries counts, not result URLs; read the jobs with GET /v1/batches/{id}.

Parameters

  • X-PDFTagger-Signatureheader · stringrequired

Request body (JSON)

  • idstring
  • typestring: batch.completed
  • createdinteger
  • dataobject
    • batchobject
      • idstring
      • namestring
      • statusstring: completed
      • totalinteger
      • completedinteger
      • failedinteger
      • created_atstring (date-time)
      • completed_atstring (date-time)

Responses

  • 2XXAny 2xx acknowledges receipt. Non-2xx is retried with backoff.
POSTYour webhook endpoint
Payload you receive
{
  "id": "string",
  "type": "batch.completed",
  "created": 0,
  "data": {
    "batch": {
      "id": "string",
      "name": "string",
      "status": "completed",
      "total": 0,
      "completed": 0,
      "failed": 0,
      "created_at": "2026-01-01T12:00:00Z",
      "completed_at": "2026-01-01T12:00:00Z"
    }
  }
}

Schemas

Job

  • idstring
  • statusstring: processing, completed, failed
  • filenamestring | null
  • credits_usedinteger
  • optionsobject | null
  • created_atstring (date-time)
  • request_idstring
Example
{
  "id": "string",
  "status": "processing",
  "filename": "string",
  "credits_used": 0,
  "options": {},
  "created_at": "2026-01-01T12:00:00Z",
  "request_id": "string"
}

JobReport

  • job_idstring
  • standardstring

    For example "PDF/UA-1 (ISO 14289-1:2014)".

  • total_requirementsinteger
  • summaryobject

    How many requirements have each result.

    • handledinteger
    • failedinteger
    • needs_reviewinteger
    • for_informationinteger
    • not_applicableinteger
  • requirementsarray
    • idstring
    • referencestring

      The ISO clause, for example "ISO 14289-1 section 7.5".

    • namestring
    • levelstring | null

      "shall" or "should".

    • sectionobject
      • idstring
      • titlestring
    • categorystring

      The report category, for example "Tables".

    • resultstring: handled, failed, needs_review, for_information, not_applicable

      handled: passed, or PDF Tagger met or fixed it. failed: a validator found it failing in the file. needs_review: a person must confirm it. for_information: a limit from the source file that you cannot act on. not_applicable: the document has no content of this kind.

    • evidencestring | null

      The evidence behind the result, as the web report shows it. Null for a plain pass.

  • wcagobject

    Beta: the fields and the result names may change. Every WCAG 2.2 Level A and AA success criterion, and 4.1.1 from WCAG 2.0 and 2.1. Most results come from the PDF/UA-1 requirements behind the criterion (see requirements); contrast, target size and required fields are also measured on the file. wcag is null for a report made before the WCAG view existed.

    • standardstring

      "WCAG 2.2".

    • levelsstring

      "A and AA".

    • summariesarray

      The counts for WCAG 2.2 and for WCAG 2.1, each at Level AA (which includes Level A).

      • versionstring

        "2.2" or "2.1".

      • levelstring

        "AA".

      • total_criteriainteger
      • summaryobject

        How many of that version's criteria have each result.

        • handledinteger
        • failedinteger
        • needs_reviewinteger
        • for_informationinteger
        • not_applicableinteger
    • criteriaarray
      • idstring

        The success criterion, for example "1.1.1".

      • levelstring: A, AA
      • versionsarray

        The WCAG versions it is in, for example ["2.0", "2.1", "2.2"].

      • titlestring

        The W3C title, for example "Non-text Content".

      • namestring

        Our plain statement of the criterion.

      • principleobject
        • idstring
        • titlestring
      • guidelineobject
        • idstring
        • titlestring
      • resultstring: handled, failed, needs_review, for_information, not_applicable

        The same results as a requirement. needs_review also covers a criterion that only a person can judge.

      • evidencestring | null

        The evidence behind the result, as the web report shows it.

      • pdfua_requirementsarray

        The ids of the PDF/UA-1 requirements the result comes from.

  • report_pdf_urlstring | null

    A presigned URL for the report PDF, or null when the file is no longer stored.

  • expires_ininteger

    Seconds the URL is valid.

  • request_idstring
Example
{
  "job_id": "string",
  "standard": "string",
  "total_requirements": 0,
  "summary": {
    "handled": 0,
    "failed": 0,
    "needs_review": 0,
    "for_information": 0,
    "not_applicable": 0
  },
  "requirements": [
    {
      "id": "string",
      "reference": "string",
      "name": "string",
      "level": "string",
      "section": {
        "id": "string",
        "title": "string"
      },
      "category": "string",
      "result": "handled",
      "evidence": "string"
    }
  ],
  "wcag": {
    "standard": "string",
    "levels": "string",
    "summaries": [
      {
        "version": "string",
        "level": "string",
        "total_criteria": 0,
        "summary": {
          "handled": 0,
          "failed": 0,
          "needs_review": 0,
          "for_information": 0,
          "not_applicable": 0
        }
      }
    ],
    "criteria": [
      {
        "id": "string",
        "level": "A",
        "versions": [
          "string"
        ],
        "title": "string",
        "name": "string",
        "principle": {
          "id": "string",
          "title": "string"
        },
        "guideline": {
          "id": "string",
          "title": "string"
        },
        "result": "handled",
        "evidence": "string",
        "pdfua_requirements": [
          "string"
        ]
      }
    ]
  },
  "report_pdf_url": "string",
  "expires_in": 0,
  "request_id": "string"
}

Requirement

  • idstring
  • referencestring

    The ISO clause, for example "ISO 14289-1 section 7.5".

  • namestring
  • levelstring | null

    "shall" or "should".

  • sectionobject
    • idstring
    • titlestring
  • categorystring

    The report category, for example "Tables".

  • resultstring: handled, failed, needs_review, for_information, not_applicable

    handled: passed, or PDF Tagger met or fixed it. failed: a validator found it failing in the file. needs_review: a person must confirm it. for_information: a limit from the source file that you cannot act on. not_applicable: the document has no content of this kind.

  • evidencestring | null

    The evidence behind the result, as the web report shows it. Null for a plain pass.

Example
{
  "id": "string",
  "reference": "string",
  "name": "string",
  "level": "string",
  "section": {
    "id": "string",
    "title": "string"
  },
  "category": "string",
  "result": "handled",
  "evidence": "string"
}

WcagReport

  • standardstring

    "WCAG 2.2".

  • levelsstring

    "A and AA".

  • summariesarray

    The counts for WCAG 2.2 and for WCAG 2.1, each at Level AA (which includes Level A).

    • versionstring

      "2.2" or "2.1".

    • levelstring

      "AA".

    • total_criteriainteger
    • summaryobject

      How many of that version's criteria have each result.

      • handledinteger
      • failedinteger
      • needs_reviewinteger
      • for_informationinteger
      • not_applicableinteger
  • criteriaarray
    • idstring

      The success criterion, for example "1.1.1".

    • levelstring: A, AA
    • versionsarray

      The WCAG versions it is in, for example ["2.0", "2.1", "2.2"].

    • titlestring

      The W3C title, for example "Non-text Content".

    • namestring

      Our plain statement of the criterion.

    • principleobject
      • idstring
      • titlestring
    • guidelineobject
      • idstring
      • titlestring
    • resultstring: handled, failed, needs_review, for_information, not_applicable

      The same results as a requirement. needs_review also covers a criterion that only a person can judge.

    • evidencestring | null

      The evidence behind the result, as the web report shows it.

    • pdfua_requirementsarray

      The ids of the PDF/UA-1 requirements the result comes from.

Example
{
  "standard": "string",
  "levels": "string",
  "summaries": [
    {
      "version": "string",
      "level": "string",
      "total_criteria": 0,
      "summary": {
        "handled": 0,
        "failed": 0,
        "needs_review": 0,
        "for_information": 0,
        "not_applicable": 0
      }
    }
  ],
  "criteria": [
    {
      "id": "string",
      "level": "A",
      "versions": [
        "string"
      ],
      "title": "string",
      "name": "string",
      "principle": {
        "id": "string",
        "title": "string"
      },
      "guideline": {
        "id": "string",
        "title": "string"
      },
      "result": "handled",
      "evidence": "string",
      "pdfua_requirements": [
        "string"
      ]
    }
  ]
}

WcagCriterion

  • idstring

    The success criterion, for example "1.1.1".

  • levelstring: A, AA
  • versionsarray

    The WCAG versions it is in, for example ["2.0", "2.1", "2.2"].

  • titlestring

    The W3C title, for example "Non-text Content".

  • namestring

    Our plain statement of the criterion.

  • principleobject
    • idstring
    • titlestring
  • guidelineobject
    • idstring
    • titlestring
  • resultstring: handled, failed, needs_review, for_information, not_applicable

    The same results as a requirement. needs_review also covers a criterion that only a person can judge.

  • evidencestring | null

    The evidence behind the result, as the web report shows it.

  • pdfua_requirementsarray

    The ids of the PDF/UA-1 requirements the result comes from.

Example
{
  "id": "string",
  "level": "A",
  "versions": [
    "string"
  ],
  "title": "string",
  "name": "string",
  "principle": {
    "id": "string",
    "title": "string"
  },
  "guideline": {
    "id": "string",
    "title": "string"
  },
  "result": "handled",
  "evidence": "string",
  "pdfua_requirements": [
    "string"
  ]
}

BatchJob

  • idstring

    The job id. Use it with GET /v1/jobs/{id} and GET /v1/jobs/{id}/result.

  • statusstring: processing, completed, failed
  • filenamestring | null
  • credits_usedinteger
  • optionsobject | null
  • created_atstring (date-time)
  • error_codestring | null

    Why the job failed, when it failed.

  • error_messagestring | null
Example
{
  "id": "string",
  "status": "processing",
  "filename": "string",
  "credits_used": 0,
  "options": {},
  "created_at": "2026-01-01T12:00:00Z",
  "error_code": "string",
  "error_message": "string"
}

Batch

  • idstring
  • namestring
  • statusstring: processing, completed

    completed once every job has finished.

  • countsobject
    • totalinteger
    • processinginteger
    • completedinteger
    • failedinteger
  • credits_usedinteger

    Credits charged for the batch. A failed job's credits are refunded.

  • created_atstring (date-time)
  • completed_atstring | null (date-time)
  • jobsarray

    The jobs, in the order of the request.

    • idstring

      The job id. Use it with GET /v1/jobs/{id} and GET /v1/jobs/{id}/result.

    • statusstring: processing, completed, failed
    • filenamestring | null
    • credits_usedinteger
    • optionsobject | null
    • created_atstring (date-time)
    • error_codestring | null

      Why the job failed, when it failed.

    • error_messagestring | null
  • request_idstring
Example
{
  "id": "string",
  "name": "string",
  "status": "processing",
  "counts": {
    "total": 0,
    "processing": 0,
    "completed": 0,
    "failed": 0
  },
  "credits_used": 0,
  "created_at": "2026-01-01T12:00:00Z",
  "completed_at": "2026-01-01T12:00:00Z",
  "jobs": [
    {
      "id": "string",
      "status": "processing",
      "filename": "string",
      "credits_used": 0,
      "options": {},
      "created_at": "2026-01-01T12:00:00Z",
      "error_code": "string",
      "error_message": "string"
    }
  ],
  "request_id": "string"
}

BatchEvent

  • idstring
  • namestring
  • statusstring: completed
  • totalinteger
  • completedinteger
  • failedinteger
  • created_atstring (date-time)
  • completed_atstring (date-time)
Example
{
  "id": "string",
  "name": "string",
  "status": "completed",
  "total": 0,
  "completed": 0,
  "failed": 0,
  "created_at": "2026-01-01T12:00:00Z",
  "completed_at": "2026-01-01T12:00:00Z"
}

Error

  • errorobject
    • typestring
    • messagestring
    • request_idstring
    • errorsarray

      Only on POST /v1/batches with bad jobs. One entry for each bad job.

      • indexinteger

        The job's place in jobs, from 0.

      • typestring
      • messagestring
Example
{
  "error": {
    "type": "string",
    "message": "string",
    "request_id": "string",
    "errors": [
      {
        "index": 0,
        "type": "string",
        "message": "string"
      }
    ]
  }
}