API reference

Reference as of September 2026.

Download the OpenAPI 3.1 specification. It describes the requests and responses for this reference. The downloadable reference has been lightly edited for wording; its schemas, enums and paths are unchanged.

Overview

This reference covers eight endpoints. An integration submits a document, waits for the scan to finish, reads the compliance report, exports the accessible deliverables, and can optionally run the AI drafting pass or hand the job to the Atrium review interface for a person to finish. Our WordPress plugin uses this same API.

Base URL. API access is arranged during a pilot; we provide the base URL and a scoped key.

Authentication. Every call carries a per-tenant API key, sent either as an x-api-key: acs_... header or as Authorization: Bearer acs_.... Keys carry scopes, and each endpoint below says which scope it needs:

  • scan:submit: uploading documents
  • scan:read: job status, compliance report, exports, key introspection
  • ai-enhance:run: the AI drafting pass, and generate_descriptions at upload
  • handoff:mint: review-handoff tokens
  • audit:read: the tenant audit log

Retries. Upload and AI enhancement accept an Idempotency-Key header. Sending the same key again returns the original result instead of doing the work twice.

Plan gates. Export and AI enhancement are paid-plan features. On a plan without them the API returns 403 with code FEATURE_GATED. The check runs on every call.

The workflow

  1. POST /api/v1/scan/upload with the file. Returns a job record with an id.
  2. GET /api/v1/scan/jobs/{job_id} until status is completed (or partial or failed). Webhooks for scan completed, scan failed, and report updated are set up in the Atrium application if you would rather not poll.
  3. GET /api/v1/scan/jobs/{job_id}/compliance for the scored issue list.
  4. Optionally, POST /api/v1/scan/jobs/{job_id}/ai-enhance to draft fixes, then POST /api/v1/handoff/tokens to send a reviewer to the issues that need a human decision.
  5. GET /api/v1/scan/jobs/{job_id}/export?format=pdf (or accessible_html) for the deliverable.

Endpoints

POST /api/v1/scan/upload — submit a document

Multipart form. Fields: file (required, up to 50 MB) and generate_descriptions (boolean, default false; asks for AI-drafted image descriptions during the scan and needs the ai-enhance:run scope). Optional header: Idempotency-Key. Returns the job record. Scope scan:submit.

GET /api/v1/scan/jobs/{job_id} — job status

Returns id, filename, status (pending, processing, completed, partial, failed), progress_message, error_message, page_count, created_at, and completed_at. For PDF inputs it also returns native_scan_report, the pre-scan structural report: the tagging classification (untagged, tagged_inconsistent, tagged_deficient, tagged_clean, inconclusive, unsupported), the PDF/UA validator status, and which structural checks were covered. Scope scan:read.

GET /api/v1/scan/jobs/{job_id}/compliance — compliance report

Returns the stored report for a completed job: the 0 to 100 score (100 means no errors or warnings were reported), the version of the checking engine that produced it, every issue with its rule, severity, WCAG criterion, and element path, and the per-category summary. A score is not an accessibility guarantee. This is a read; nothing is re-checked. Returns 400 if the job is not completed and 404 if it is not in your tenant. Scope scan:read.

GET /api/v1/scan/jobs/{job_id}/export — deliverables

Query format: accessible_html (the remediated HTML), pdf (the tagged PDF for PDF and image inputs; it declares PDF/UA-1 only when validation passes), html (plain HTML rendering), markdown, or json (structured document data). disposition=original with format=pdf returns the untouched source PDF as a labeled diagnostic download. It is never a conformance claim.

When the tagged PDF cannot be produced for a document, the response is 409 with the verdict, the basis for it, and the available choices: download the original as a diagnostic, or retry with force_raster=true to export through the raster route. Paid plan required. Scope scan:read.

POST /api/v1/scan/jobs/{job_id}/ai-enhance — AI drafting pass

Drafts fixes for the job's AI-fixable issues (image descriptions, table captions, long descriptions), applies them as tracked edits, regenerates the accessible HTML, and re-runs the compliance check. Query only: a comma-separated list of issue IDs to limit the pass. Headers: If-Match (the report revision you last read; the request is refused if the report has changed since), Idempotency-Key, and the optional X-Parent-Operation-Id and X-Attempt-Id correlation IDs.

The response lists each issue as succeeded (with the applied edit and its provenance), failed, or skipped with a reason. Slots holding text recovered from the source or written by a person are skipped, not overwritten; the reasons are source_document_explicit_target_required and human_edit_protected. The response also carries report_revision, the cost summary, the AI usage-cap status, the updated accessible HTML, and the updated compliance report. Paid plan with AI enhancement required. Scope ai-enhance:run.

POST /api/v1/handoff/tokens — review handoff

JSON body: job_id, connector (wordpress for the WordPress plugin), and optional reviewer identity fields (asserted_display_name, asserted_email, asserted_external_subject, site_url). These are recorded as asserted by the caller and are not verified. Returns a single-use token bound to that job which opens the Atrium review interface without a separate login. The raw token is returned once and is never logged. Returns 503 while the review-interface origin is not configured for the deployment. Scope handoff:mint; the key must also hold scan:read.

GET /api/v1/auth/me — key introspection

Returns the tenant and key you are authenticated as, the key's scopes, and the usage, limits, and entitlement envelope, so an integration can check remaining quota without a dashboard. Scope scan:read.

GET /api/v1/audit/events — audit log

Newest first. Filters: event_type (repeatable), resource_type, resource_id, actor_type, actor_user_id, actor_api_key_id, from, to. Page with limit and the returned cursor. Send Accept: text/csv for CSV instead of JSON. Every row is scoped to your tenant. Scope audit:read.

Provenance on every edit

Each edit the API returns carries source (human, auto_fix, vlm, llm, or source_document), confidence, reasoning, updated_at, and, once a person has reviewed it, reviewed_at and reviewed_by. This is the same record the review interface labels, so an integration and a reviewer see the same answer to who wrote what.

Errors

Validation failures return 422 with the offending field. Authentication failures return 401. A key without the required scope returns 403. Plan gates return 403 with code FEATURE_GATED and the feature name.