---
title: "Retrieve accessibility violations for latest test runs in a workspace"
method: POST
path: "/workspaces/{workspace_id}/reports/accessibilityRuleViolations"
tags: ["Report"]
---

# Retrieve accessibility violations for latest test runs in a workspace

`POST /workspaces/{workspace_id}/reports/accessibilityRuleViolations`

Used to retrieve accessibility violations for latest test runs in a workspace

## Path parameters

- `workspace_id` string, required

## Query parameters

- `limit` integer
- `cursor` string

## Request body

- AccessibilityDashboardFilterOptions
  - `severity_level` 'critical' | 'serious' | 'moderate' | 'minor' — Violation severity level to filter by
  - `rule_ids` string[] — Rule IDs to filter by
  - `test_labels` string[] — Test labels to filter by
  - `application_ids` string[] — Application IDs to filter by
  - `environment_ids` string[] — Environment IDs to filter by
  - `start_time` integer — The start time of the time period (in epoch milliseconds)
  - `end_time` integer — The end time of the time period (in epoch milliseconds)

## Response `200`

Array of accessibility rule violations

- AccessibilityRuleViolationResult
  - `accessibility_rule_violations` AccessibilityRuleViolation[] — All outstanding rule violations that match the filters
    - `impact` string — The impact of the rule
    - `rule_id` string — The rule ID associated with the check
    - `path_pattern` string — The path pattern associated with the check
    - `test_run_ids` string[] — The test run IDs associated with the check
    - `test_names` string[] — The test names associated with test runs
  - `cursor` string — Cursor used for pagination

## Other responses

- `400` — Invalid or missing parameter
- `401` — User not authenticated
- `403` — User not authorized
- `default` — Unexpected error

---

[API](https://skmtc.net/mabl/apis/mabl-api.md) · [All operations](https://skmtc.net/mabl/apis/mabl-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mabl/mabl-api/revisions/d0fc0114da66/schema)
