AI Solutions
Generate Accessibility Fix
Use AI (Gemini 2.0 Flash) to generate a code fix for an accessibility issue.
POST
POST
The
issue_id maps to an Axe rule ID (e.g. image-alt, color-contrast). Get these from Get Accessibility Data.Request Body
string
required
Axe rule ID of the accessibility issue (e.g.
image-alt, button-name).string
required
The HTML element(s) that contain the accessibility violation.
string
Additional context about the issue to improve the fix quality.
string
URL of the page where the issue was found (used for context).
Response
boolean
true when a fix was generated successfully.string
The original HTML snippet with the violation.
string
The AI-corrected HTML snippet.
string
Plain-language explanation of what was fixed and why.
string
Presigned S3 URL linking to the cached solution (valid 180 days).
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json