Accessibility
16 operations in the WP Waterfall API.
- getRead the Accessibility add-on of a site
- putChange the pages per scan and the weekly scan of a site
- postTurn the Accessibility add-on off for a site
- postTurn the Accessibility add-on on for a site
- getList the pages a scan will take
- postAdd pages to the page list
- postFind the pages of the live site again
- deleteRemove a page from the page list
- getList the accessibility scans of a site
- postScan the live site for accessibility issues
- getRead one accessibility scan
- getExport the report or the issue list
- getList the issues of a scan with their selectors
- getList the pages of a scan with their scores
- getGet a short lived link to the picture of a scanned page
- getList the failing rules of a scan
Read the Accessibility add-on of a site
get/sites/{id}/accessibilityPermalink to Read the Accessibility add-on of a site
- Scope:
sites:read - Permission:
sites.read
Whether the add-on is on for the site, whether the site can be scanned (it needs a live environment), the pages per scan setting, the weekly scheduled scan, the page scans left this month (7,500 a month for each site, counted per calendar month in UTC), the price (volume priced for the whole company: $10 a month for each of the first 2 sites with it on, $5 a month for each site after that), the page list state, the running scan if there is one, the latest scan with its score, and the score formula in plain words. Reads the database only.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
Responses
| Status | Body | Description |
|---|---|---|
200 | AccessibilityState | The add-on state |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
site_id required | string (uuid) | |
enabled required | boolean | |
eligible required | boolean | False while the site has no live environment to scan. |
ineligible_reason required | string or null | |
pages_per_scan required | integer | Range: 1 to 2500. |
max_pages_per_scan required | integer | |
scheduled_weekly required | boolean | |
next_scheduled_at required | string or null (date-time) | |
allowance required | object | |
allowance.month required | string | |
allowance.cap required | integer | |
allowance.used required | integer | Range: 0 to any. |
allowance.left required | integer | Range: 0 to any. |
pricing required | object | |
pricing.lookup_key required | string | |
pricing.first_tier_sites required | integer | |
pricing.first_tier_cents required | integer | |
pricing.next_tier_cents required | integer | |
pricing.sites_on required | integer | Sites of this company that have it on. Range: 0 to any. |
pricing.monthly_cents required | integer | What the company pays a month now. Range: 0 to any. |
pricing.next_site_cents required | integer | What turning it on for one more site adds a month. |
pricing.text required | string | |
page_list required | object | |
page_list.count required | integer | Pages that will be scanned, the removed ones left out. Range: 0 to any. |
Change the pages per scan and the weekly scan of a site
put/sites/{id}/accessibilityPermalink to Change the pages per scan and the weekly scan of a site
- Scope:
sites:write - Permission:
tools.run
pages_per_scan sets how many pages a scan takes when the request names no number (1 to 2,500, default 25). scheduled_weekly turns on a scan every week (off by default); each scheduled scan uses pages of the same monthly allowance. The add-on must be on (409 accessibility_not_enabled). It does no node work and costs nothing, so there is no confirm.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
Idempotency-Key | header | string | Optional on PUT and PATCH. When the call starts a job, a retry with the same key, path, and body within 24 hours returns that job instead of starting another. A different path or body starts a new job. |
Request body application/json, required, PutAccessibilitySettingsRequest
Fields
| Name | Type | Description |
|---|---|---|
pages_per_scan | integer | Range: 1 to 2500. |
scheduled_weekly | boolean |
Responses
| Status | Body | Description |
|---|---|---|
200 | AccessibilityState | The saved state |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
site_id required | string (uuid) | |
enabled required | boolean | |
eligible required | boolean | False while the site has no live environment to scan. |
ineligible_reason required | string or null | |
pages_per_scan required | integer | Range: 1 to 2500. |
max_pages_per_scan required | integer | |
scheduled_weekly required | boolean | |
next_scheduled_at required | string or null (date-time) | |
allowance required | object | |
allowance.month required | string | |
allowance.cap required | integer | |
allowance.used required | integer | Range: 0 to any. |
allowance.left required | integer | Range: 0 to any. |
pricing required | object | |
pricing.lookup_key required | string | |
pricing.first_tier_sites required | integer | |
pricing.first_tier_cents required | integer | |
pricing.next_tier_cents required | integer | |
pricing.sites_on required | integer | Sites of this company that have it on. Range: 0 to any. |
pricing.monthly_cents required | integer | What the company pays a month now. Range: 0 to any. |
pricing.next_site_cents required | integer | What turning it on for one more site adds a month. |
pricing.text required | string | |
page_list required | object | |
page_list.count required | integer | Pages that will be scanned, the removed ones left out. Range: 0 to any. |
Turn the Accessibility add-on off for a site
post/sites/{id}/accessibility/disablePermalink to Turn the Accessibility add-on off for a site
- Scope:
billing:write - Permission:
billing.write
Turns the add-on off. The monthly charge drops by one site and the unused days are credited. The reports already made stay readable until they are removed by the retention rules (the last 10 scans of the site, pictures 90 days). A scan that is running finishes.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Responses
| Status | Body | Description |
|---|---|---|
200 | AccessibilityState | The state with the add-on off |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
site_id required | string (uuid) | |
enabled required | boolean | |
eligible required | boolean | False while the site has no live environment to scan. |
ineligible_reason required | string or null | |
pages_per_scan required | integer | Range: 1 to 2500. |
max_pages_per_scan required | integer | |
scheduled_weekly required | boolean | |
next_scheduled_at required | string or null (date-time) | |
allowance required | object | |
allowance.month required | string | |
allowance.cap required | integer | |
allowance.used required | integer | Range: 0 to any. |
allowance.left required | integer | Range: 0 to any. |
pricing required | object | |
pricing.lookup_key required | string | |
pricing.first_tier_sites required | integer | |
pricing.first_tier_cents required | integer | |
pricing.next_tier_cents required | integer | |
pricing.sites_on required | integer | Sites of this company that have it on. Range: 0 to any. |
pricing.monthly_cents required | integer | What the company pays a month now. Range: 0 to any. |
pricing.next_site_cents required | integer | What turning it on for one more site adds a month. |
pricing.text required | string | |
page_list required | object | |
page_list.count required | integer | Pages that will be scanned, the removed ones left out. Range: 0 to any. |
Turn the Accessibility add-on on for a site
post/sites/{id}/accessibility/enablePermalink to Turn the Accessibility add-on on for a site
- Scope:
billing:write - Permission:
billing.write - Needs a confirmation
Turns the add-on on and adds one site to the company's monthly charge: $10 a month for each of the first 2 sites, $5 a month for each site after that, charged to the saved card with the unused days of the month prorated. Send confirm: true. Any account type may buy it. It needs a card on file (402) and a live environment (409 accessibility_live_only). The scan works on the live site only (409 accessibility_live_only for a site with no live environment, a sandbox, or a test site).
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
confirm | query | string | An API key must say yes to this change: confirm=true here, or confirm: true in the JSON body. Without it the call answers 422 and changes nothing. One of: true. |
Request body application/json, required, EnableAccessibilityRequest
Fields
| Name | Type | Description |
|---|---|---|
confirm required | boolean | Turning the add-on on adds to the monthly charge. Send true to agree. |
pages_per_scan | integer | Range: 1 to 2500. |
Responses
| Status | Body | Description |
|---|---|---|
200 | AccessibilityState | The state with the add-on on |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
site_id required | string (uuid) | |
enabled required | boolean | |
eligible required | boolean | False while the site has no live environment to scan. |
ineligible_reason required | string or null | |
pages_per_scan required | integer | Range: 1 to 2500. |
max_pages_per_scan required | integer | |
scheduled_weekly required | boolean | |
next_scheduled_at required | string or null (date-time) | |
allowance required | object | |
allowance.month required | string | |
allowance.cap required | integer | |
allowance.used required | integer | Range: 0 to any. |
allowance.left required | integer | Range: 0 to any. |
pricing required | object | |
pricing.lookup_key required | string | |
pricing.first_tier_sites required | integer | |
pricing.first_tier_cents required | integer | |
pricing.next_tier_cents required | integer | |
pricing.sites_on required | integer | Sites of this company that have it on. Range: 0 to any. |
pricing.monthly_cents required | integer | What the company pays a month now. Range: 0 to any. |
pricing.next_site_cents required | integer | What turning it on for one more site adds a month. |
pricing.text required | string | |
page_list required | object | |
page_list.count required | integer | Pages that will be scanned, the removed ones left out. Range: 0 to any. |
List the pages a scan will take
get/sites/{id}/accessibility/pagesPermalink to List the pages a scan will take
- Scope:
sites:read - Permission:
sites.read
The page list of the site: the home page first, then the pages found in the sitemap and in the links of the home page (only the site's own live hostnames), and the addresses you added. A page you removed is not listed. The list is found by the scanner machine, not by the control plane: it is refreshed by a scan when it is older than 24 hours, or by POST /sites/{id}/accessibility/pages/refresh.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
limit | query | integer | How many rows to return in one page: 1 to 200, and 50 when left out. Default: 50. Range: 1 to 200. |
cursor | query | string | The next_cursor of the page before. Leave it out for the first page. |
Responses
| Status | Body | Description |
|---|---|---|
200 | AccessibilityPageList | The pages |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
data required | array of object | |
data[].id required | string (uuid) | |
data[].url required | string | |
data[].source required | string | One of: home, sitemap, link, added. |
data[].last_seen_at required | string (date-time) | |
next_cursor required | string or null | |
total required | integer | Pages in the list, the removed ones left out. Range: 0 to any. |
discovered_at required | string or null (date-time) | |
discovery required | string | One of: idle, running, failed. |
hosts required | array of string | The site's own live hostnames. Only these can be scanned. |
Add pages to the page list
post/sites/{id}/accessibility/pagesPermalink to Add pages to the page list
- Scope:
sites:write - Permission:
tools.run
Adds up to 100 addresses to the page list. Each must be https and on one of the site's own live hostnames (422 accessibility_not_same_site for any other host). Addresses are normalized (no fragment, no tracking parameters) and a repeat is ignored. Costs nothing until a scan takes them.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Request body application/json, required, AddAccessibilityPagesRequest
Fields
| Name | Type | Description |
|---|---|---|
urls required | array of string |
Responses
| Status | Body | Description |
|---|---|---|
200 | AccessibilityPageList | The page list |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
data required | array of object | |
data[].id required | string (uuid) | |
data[].url required | string | |
data[].source required | string | One of: home, sitemap, link, added. |
data[].last_seen_at required | string (date-time) | |
next_cursor required | string or null | |
total required | integer | Pages in the list, the removed ones left out. Range: 0 to any. |
discovered_at required | string or null (date-time) | |
discovery required | string | One of: idle, running, failed. |
hosts required | array of string | The site's own live hostnames. Only these can be scanned. |
Find the pages of the live site again
post/sites/{id}/accessibility/pages/refreshPermalink to Find the pages of the live site again
- Scope:
sites:write - Permission:
tools.run
Queues a scanner run that reads the sitemap and the links of the home page and updates the page list. It scans no page and uses no page of the allowance. It runs as a job (accessibility_scan, kind discover). The scan works on the live site only (409 accessibility_live_only for a site with no live environment, a sandbox, or a test site).
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Responses
| Status | Body | Description |
|---|---|---|
202 | AccessibilityScan | Accepted. The body is the scan record of the discovery. |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
202 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | |
site_id required | string (uuid) | |
kind required | string | One of: audit, discover. |
status required | string | One of: queued, discovering, running, done, partial, failed. |
trigger required | string | One of: manual, scheduled. |
requested_by required | string | Who started it: a person's name, a key's name, or Schedule. |
month required | string | The calendar month (UTC) the pages count toward. |
pages_requested required | integer | Range: 0 to any. |
pages_total required | integer | Pages in this scan once the list is known. Range: 0 to any. |
pages_done required | integer | Range: 0 to any. |
pages_failed required | integer | Range: 0 to any. |
batches_total required | integer | Range: 0 to any. |
batches_done required | integer | Range: 0 to any. |
progress_percent required | integer | Range: 0 to 100. |
score required | integer or null | Range: 0 to 100. |
label required | string or null | Excellent, Good, Needs work, or Poor. |
counts required | object | Issues (failing elements) by impact. |
counts.critical required | integer | Range: 0 to any. |
counts.serious required | integer | Range: 0 to any. |
counts.moderate required | integer | Range: 0 to any. |
counts.minor required | integer | Range: 0 to any. |
issue_count required | integer | Range: 0 to any. |
rule_count required | integer | Range: 0 to any. |
error required | string or null |
Remove a page from the page list
delete/sites/{id}/accessibility/pages/{page_id}Permalink to Remove a page from the page list
- Scope:
sites:write - Permission:
tools.run
A page you added is deleted. A page the scanner found is marked removed, so the next discovery does not bring it back. The home page cannot be removed.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
page_id required | path | string (uuid) | The id of the page in the accessibility page list. |
Responses
| Status | Body | Description |
|---|---|---|
200 | AccessibilityPageList | The page list |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
data required | array of object | |
data[].id required | string (uuid) | |
data[].url required | string | |
data[].source required | string | One of: home, sitemap, link, added. |
data[].last_seen_at required | string (date-time) | |
next_cursor required | string or null | |
total required | integer | Pages in the list, the removed ones left out. Range: 0 to any. |
discovered_at required | string or null (date-time) | |
discovery required | string | One of: idle, running, failed. |
hosts required | array of string | The site's own live hostnames. Only these can be scanned. |
List the accessibility scans of a site
get/sites/{id}/accessibility/scansPermalink to List the accessibility scans of a site
- Scope:
sites:read - Permission:
sites.read
The last 10 scans of the site, newest first, each with its status, progress, score and label, the issue counts by impact, and the page counts. Discovery runs are not listed.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
limit | query | integer | How many rows to return in one page: 1 to 200, and 50 when left out. Default: 50. Range: 1 to 200. |
cursor | query | string | The next_cursor of the page before. Leave it out for the first page. |
Responses
| Status | Body | Description |
|---|---|---|
200 | AccessibilityScanList | The scans |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
data required | array of AccessibilityScan | The rows of this page. |
data[].id required | string (uuid) | |
data[].site_id required | string (uuid) | |
data[].kind required | string | One of: audit, discover. |
data[].status required | string | One of: queued, discovering, running, done, partial, failed. |
data[].trigger required | string | One of: manual, scheduled. |
data[].requested_by required | string | Who started it: a person's name, a key's name, or Schedule. |
data[].month required | string | The calendar month (UTC) the pages count toward. |
data[].pages_requested required | integer | Range: 0 to any. |
data[].pages_total required | integer | Pages in this scan once the list is known. Range: 0 to any. |
data[].pages_done required | integer | Range: 0 to any. |
data[].pages_failed required | integer | Range: 0 to any. |
data[].batches_total required | integer | Range: 0 to any. |
data[].batches_done required | integer | Range: 0 to any. |
data[].progress_percent required | integer | Range: 0 to 100. |
data[].score required | integer or null | Range: 0 to 100. |
data[].label required | string or null | Excellent, Good, Needs work, or Poor. |
data[].counts required | object | Issues (failing elements) by impact. |
data[].issue_count required | integer | Range: 0 to any. |
data[].rule_count required | integer | Range: 0 to any. |
data[].error required | string or null | |
data[].job_id required | string or null (uuid) | |
data[].created_at required | string (date-time) | |
data[].started_at required | string or null (date-time) |
Scan the live site for accessibility issues
post/sites/{id}/accessibility/scansPermalink to Scan the live site for accessibility issues
- Scope:
sites:write - Permission:
tools.run
Starts a scan of the live site. It takes max_pages pages (default: the pages per scan setting, 25 unless changed; at most 2,500) from the page list, the home page first, or exactly the urls you send. Each page is opened in a browser on a scanner machine, shot after its animations and fonts settle, and checked with axe-core. A big scan runs in batches of about 25 pages and takes hours for 2,500 pages: poll GET /sites/{id}/accessibility/scans/{scan_id} for progress. It uses pages of the site's allowance of 7,500 a month: a scan that asks for more than remain runs the remaining pages, and with none left it is refused with 409 accessibility_monthly_cap_reached. One scan runs at a time for a site (409 accessibility_scan_running). The add-on must be on (409 accessibility_not_enabled). The scan works on the live site only (409 accessibility_live_only for a site with no live environment, a sandbox, or a test site). There is no cancel.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Request body application/json, required, CreateAccessibilityScanRequest
Fields
| Name | Type | Description |
|---|---|---|
max_pages | integer | Pages to scan. Default: the site's pages per scan setting. Range: 1 to 2500. |
urls | array of string | Scan exactly these pages of the live site instead of the page list. |
Responses
| Status | Body | Description |
|---|---|---|
202 | AccessibilityScan | Accepted. The body is the scan record. Poll it until its status is done, partial, or failed. |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
202 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | |
site_id required | string (uuid) | |
kind required | string | One of: audit, discover. |
status required | string | One of: queued, discovering, running, done, partial, failed. |
trigger required | string | One of: manual, scheduled. |
requested_by required | string | Who started it: a person's name, a key's name, or Schedule. |
month required | string | The calendar month (UTC) the pages count toward. |
pages_requested required | integer | Range: 0 to any. |
pages_total required | integer | Pages in this scan once the list is known. Range: 0 to any. |
pages_done required | integer | Range: 0 to any. |
pages_failed required | integer | Range: 0 to any. |
batches_total required | integer | Range: 0 to any. |
batches_done required | integer | Range: 0 to any. |
progress_percent required | integer | Range: 0 to 100. |
score required | integer or null | Range: 0 to 100. |
label required | string or null | Excellent, Good, Needs work, or Poor. |
counts required | object | Issues (failing elements) by impact. |
counts.critical required | integer | Range: 0 to any. |
counts.serious required | integer | Range: 0 to any. |
counts.moderate required | integer | Range: 0 to any. |
counts.minor required | integer | Range: 0 to any. |
issue_count required | integer | Range: 0 to any. |
rule_count required | integer | Range: 0 to any. |
error required | string or null |
Read one accessibility scan
get/sites/{id}/accessibility/scans/{scan_id}Permalink to Read one accessibility scan
- Scope:
sites:read - Permission:
sites.read
The status and progress of the scan, its score out of 100 and the label (Excellent, Good, Needs work, or Poor), the issue counts by impact, and the page counts. The score formula is on GET /sites/{id}/accessibility.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
scan_id required | path | string (uuid) | The id of the accessibility scan. |
Responses
| Status | Body | Description |
|---|---|---|
200 | AccessibilityScan | The scan |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | |
site_id required | string (uuid) | |
kind required | string | One of: audit, discover. |
status required | string | One of: queued, discovering, running, done, partial, failed. |
trigger required | string | One of: manual, scheduled. |
requested_by required | string | Who started it: a person's name, a key's name, or Schedule. |
month required | string | The calendar month (UTC) the pages count toward. |
pages_requested required | integer | Range: 0 to any. |
pages_total required | integer | Pages in this scan once the list is known. Range: 0 to any. |
pages_done required | integer | Range: 0 to any. |
pages_failed required | integer | Range: 0 to any. |
batches_total required | integer | Range: 0 to any. |
batches_done required | integer | Range: 0 to any. |
progress_percent required | integer | Range: 0 to 100. |
score required | integer or null | Range: 0 to 100. |
label required | string or null | Excellent, Good, Needs work, or Poor. |
counts required | object | Issues (failing elements) by impact. |
counts.critical required | integer | Range: 0 to any. |
counts.serious required | integer | Range: 0 to any. |
counts.moderate required | integer | Range: 0 to any. |
counts.minor required | integer | Range: 0 to any. |
issue_count required | integer | Range: 0 to any. |
rule_count required | integer | Range: 0 to any. |
error required | string or null |
Export the report or the issue list
get/sites/{id}/accessibility/scans/{scan_id}/exportPermalink to Export the report or the issue list
- Scope:
sites:read - Permission:
sites.read
format json, csv, or pdf; scope report (the whole report: score, pages, rules, issues) or issues (the issue list only, json or csv). The csv of the report is the page table. A spreadsheet cell that starts with =, +, -, or @ gets a leading apostrophe so it cannot run as a formula. The json report is the AccessibilityReport object. An export holds at most 20,000 issues.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
scan_id required | path | string (uuid) | The id of the accessibility scan. |
format | query | string | One of: json, csv, pdf. Default: json. |
scope | query | string | report is the whole report. issues is the issue list only (json or csv). report is the whole report. issues is the issue list only (json or csv). One of: report, issues. Default: report. |
Responses
| Status | Body | Description |
|---|---|---|
200 | AccessibilityReport | The file. json is the AccessibilityReport; csv is text/csv; pdf is application/pdf. |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
site_id required | string (uuid) | |
site_name required | string | |
generated_at required | string (date-time) | |
scan required | AccessibilityScan | |
scan.id required | string (uuid) | |
scan.site_id required | string (uuid) | |
scan.kind required | string | One of: audit, discover. |
scan.status required | string | One of: queued, discovering, running, done, partial, failed. |
scan.trigger required | string | One of: manual, scheduled. |
scan.requested_by required | string | Who started it: a person's name, a key's name, or Schedule. |
scan.month required | string | The calendar month (UTC) the pages count toward. |
scan.pages_requested required | integer | Range: 0 to any. |
scan.pages_total required | integer | Pages in this scan once the list is known. Range: 0 to any. |
scan.pages_done required | integer | Range: 0 to any. |
scan.pages_failed required | integer | Range: 0 to any. |
scan.batches_total required | integer | Range: 0 to any. |
scan.batches_done required | integer | Range: 0 to any. |
scan.progress_percent required | integer | Range: 0 to 100. |
scan.score required | integer or null | Range: 0 to 100. |
scan.label required | string or null | Excellent, Good, Needs work, or Poor. |
scan.counts required | object | Issues (failing elements) by impact. |
scan.issue_count required | integer | Range: 0 to any. |
scan.rule_count required | integer | Range: 0 to any. |
scan.error required | string or null |
List the issues of a scan with their selectors
get/sites/{id}/accessibility/scans/{scan_id}/issuesPermalink to List the issues of a scan with their selectors
- Scope:
sites:read - Permission:
sites.read
One row for each failing element: the page address, the rule id, the impact, the CSS selector of the element, its HTML (cut to 500 characters; page content, show it as plain text only), what failed, how to fix it, the WCAG criteria, the help link, and the box of the element in the page picture. Filter by impact, page_id, or rule_id. Most serious first.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
scan_id required | path | string (uuid) | The id of the accessibility scan. |
impact | query | string | One of: critical, serious, moderate, minor. |
page_id | query | string (uuid) | |
rule_id | query | string | |
limit | query | integer | How many rows to return in one page: at most 200, and 50 when left out. Default: 50. Range: 1 to 200. |
cursor | query | string | The next_cursor of the page before. Leave it out for the first page. |
Responses
| Status | Body | Description |
|---|---|---|
200 | AccessibilityIssueList | The issues |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
data required | array of object | The rows of this page. |
data[].id required | string (uuid) | |
data[].scan_id required | string (uuid) | |
data[].page_id required | string (uuid) | |
data[].page_url required | string | |
data[].rule_id required | string | |
data[].impact required | string | One of: critical, serious, moderate, minor. |
data[].help required | string | |
data[].description required | string | |
data[].help_url required | string | |
data[].wcag required | array of string | WCAG success criteria such as 1.4.3. |
data[].wcag_level required | string or null | One of: A, AA, AAA. |
data[].tags required | array of string | |
data[].selector required | string | The CSS selector of the failing element (iframes and shadow roots joined with ' >>> '). |
data[].html required | string | The element's HTML, cut to 500 characters. Page content: show it as plain text, never as HTML. |
data[].failure_summary required | string | What failed, from axe. Page content: plain text only. |
data[].fix_hint required | string | |
data[].box required | object or null | The element's box in pixels of the page picture: x and y from its top left corner. |
next_cursor required | string or null | Send it as cursor to get the next page. Null on the last page. |
List the pages of a scan with their scores
get/sites/{id}/accessibility/scans/{scan_id}/pagesPermalink to List the pages of a scan with their scores
- Scope:
sites:read - Permission:
sites.read
One row for each page of the scan: its address, status, score out of 100, label, issue counts by impact, whether its picture is still kept, and the reason a failed page failed.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
scan_id required | path | string (uuid) | The id of the accessibility scan. |
limit | query | integer | How many rows to return in one page: 1 to 200, and 50 when left out. Default: 50. Range: 1 to 200. |
cursor | query | string | The next_cursor of the page before. Leave it out for the first page. |
Responses
| Status | Body | Description |
|---|---|---|
200 | AccessibilityScanPageList | The pages |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
data required | array of AccessibilityScanPage | The rows of this page. |
data[].id required | string (uuid) | |
data[].scan_id required | string (uuid) | |
data[].url required | string | |
data[].home required | boolean | |
data[].status required | string | One of: pending, scanned, failed. |
data[].http_status required | integer or null | |
data[].error required | string or null | |
data[].score required | integer or null | Range: 0 to 100. |
data[].label required | string or null | |
data[].counts required | object | |
data[].issue_count required | integer | Range: 0 to any. |
data[].screenshot required | object or null | Present while the picture is kept (90 days). |
data[].duration_ms required | integer or null | |
next_cursor required | string or null | Send it as cursor to get the next page. Null on the last page. |
Get a short lived link to the picture of a scanned page
get/sites/{id}/accessibility/scans/{scan_id}/pages/{page_id}/screenshotPermalink to Get a short lived link to the picture of a scanned page
- Scope:
sites:read - Permission:
sites.read
A link to the full page picture, valid for 5 minutes, with its size. The issue boxes are in pixels of this picture. Pictures are kept 90 days (404 after). The link is signed and works for this one picture.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
scan_id required | path | string (uuid) | The id of the accessibility scan. |
page_id required | path | string (uuid) | The id of the page in the accessibility page list. |
Responses
| Status | Body | Description |
|---|---|---|
200 | AccessibilityScreenshotLink | The picture link |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
url required | string (uri) | |
expires_in_seconds required | integer | |
width required | integer | |
height required | integer |
List the failing rules of a scan
get/sites/{id}/accessibility/scans/{scan_id}/rulesPermalink to List the failing rules of a scan
- Scope:
sites:read - Permission:
sites.read
The issues grouped by axe rule: the rule id, its impact, what it checks, the WCAG criteria, a one sentence fix, and how many elements on how many pages fail it. Most serious first.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the site. |
scan_id required | path | string (uuid) | The id of the accessibility scan. |
limit | query | integer | How many rows to return in one page: 1 to 200, and 50 when left out. Default: 50. Range: 1 to 200. |
cursor | query | string | The next_cursor of the page before. Leave it out for the first page. |
Responses
| Status | Body | Description |
|---|---|---|
200 | AccessibilityRuleList | The rules |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
data required | array of object | The rows of this page. |
data[].rule_id required | string | |
data[].impact required | string | One of: critical, serious, moderate, minor. |
data[].help required | string | |
data[].description required | string | |
data[].help_url required | string | |
data[].wcag required | array of string | |
data[].fix_hint required | string | |
data[].node_count required | integer | Range: 0 to any. |
data[].page_count required | integer | Range: 0 to any. |
next_cursor required | string or null | Send it as cursor to get the next page. Null on the last page. |