> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# RunAccessibilityScan

# Package: accessibility

# Namespace: AccessibilityScansService

# Method link: https://dev.wix.com/docs/api-reference/site/accessibility/accessibility-scans-v1/run-accessibility-scan.md

## Permission Scopes:
Manage Accessibility Scans: SCOPE.ACCESSIBILITY.SCANS_MANAGE

## Introduction

Queues an asynchronous accessibility scan.

Retrying with the same `idempotencyKey` for the same site returns the
original scan. Reusing the key with a different target fails.

Fails if the target is invalid or unavailable, another scan for the same
target is active, the idempotency key was reused for another target, or
the supported scan size is exceeded. Multi-page targets are never silently
sampled or truncated. Run requests are limited to 5 per minute per Wix
site and can return HTTP 429. Retry the same intended scan with the same
idempotency key.

---

## REST API

### Schema

```
 Method: runAccessibilityScan
 Description: Queues an asynchronous accessibility scan.  Retrying with the same `idempotencyKey` for the same site returns the original scan. Reusing the key with a different target fails.  Fails if the target is invalid or unavailable, another scan for the same target is active, the idempotency key was reused for another target, or the supported scan size is exceeded. Multi-page targets are never silently sampled or truncated. Run requests are limited to 5 per minute per Wix site and can return HTTP 429. Retry the same intended scan with the same idempotency key.
 URL: https://www.wixapis.com/accessibility/v1/accessibility-scans/run
 Method: POST
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  target, idempotencyKey
 Method parameters: 
   param name: idempotencyKey | type: idempotencyKey | description: Caller-generated UUGUID used to safely retry this request. Generate a new key for every intended scan and reuse it only when retrying that same request. | required: true | validation: minLength 1, maxLength 36, format GUID
   param name: target | type: AccessibilityScanTarget | description: Selects exactly one scan target on the authenticated Wix site: the full site, one page, or every page in a supported Wix page collection. | required: true 
    - ONE-OF: - required: true
     - name: scope | type: AccessibilityScanScope | description: Multi-page scope to scan. Currently supports the complete site.  
         - enum:
         -     ACCESSIBILITY_SCAN_SCOPE_FULL_SITE: Checks every supported page and site-level rule on the site.
     - name: page | type: PageScanTarget | description: One page to scan.  
        - ONE-OF: 
           - name: pageId | type: string | description: Wix page GUID when it uniquely identifies the page to scan. Use `pageUrl` for a generated page such as a specific product or blog post.  | validation: minLength 1, maxLength 100
           - name: pageUrl | type: string | description: Absolute page URL belonging to the selected Wix site.  | validation: minLength 1, maxLength 2048, format WEB_URL
     - name: pageCollection | type: PageCollectionScanTarget | description: Every page in one supported Wix page collection.  
        - name: collectionId | type: string | description: Stable public collection GUID, for example "wix.stores.products".  | validation: minLength 1, maxLength 200
        - name: targetType | type: TargetType | description: Discriminator for the target variant. It must match the populated target field.  
             - enum: SCOPE, PAGE, PAGE_COLLECTION
 Return type: RunAccessibilityScanResponse
  - name: accessibilityScan | type: AccessibilityScan | description: Created or deduplicated scan in its current lifecycle state. An idempotent retry can return a running or terminal scan.  
     - name: id | type: string | description: Server-generated scan GUID.  | read-only: true | validation: format GUID
     - name: target | type: AccessibilityScanTarget | description: What this scan checks. Immutable after the scan is created.  | validation: immutable
        - ONE-OF: 
           - name: scope | type: AccessibilityScanScope | description: Multi-page scope to scan. Currently supports the complete site.  
                 - enum:
                 -     ACCESSIBILITY_SCAN_SCOPE_FULL_SITE: Checks every supported page and site-level rule on the site.
           - name: page | type: PageScanTarget | description: One page to scan.  
              - ONE-OF: 
                 - name: pageId | type: string | description: Wix page GUID when it uniquely identifies the page to scan. Use `pageUrl` for a generated page such as a specific product or blog post.  | validation: minLength 1, maxLength 100
                 - name: pageUrl | type: string | description: Absolute page URL belonging to the selected Wix site.  | validation: minLength 1, maxLength 2048, format WEB_URL
           - name: pageCollection | type: PageCollectionScanTarget | description: Every page in one supported Wix page collection.  
              - name: collectionId | type: string | description: Stable public collection GUID, for example "wix.stores.products".  | validation: minLength 1, maxLength 200
        - name: targetType | type: TargetType | description: Discriminator for the target variant. It must match the populated target field.  
             - enum: SCOPE, PAGE, PAGE_COLLECTION
     - name: status | type: AccessibilityScanStatus | description: Current asynchronous lifecycle state.  | read-only: true 
         - enum:
         -     ACCESSIBILITY_SCAN_STATUS_QUEUED: Accepted and waiting for capacity.
         -     ACCESSIBILITY_SCAN_STATUS_RUNNING: Actively checking the selected site or page.
         -     ACCESSIBILITY_SCAN_STATUS_COMPLETED: Finished successfully. Findings are available.
         -     ACCESSIBILITY_SCAN_STATUS_PARTIALLY_COMPLETED: Finished with one or more pages that could not be checked. Available findings and the failed-page count are still returned.
         -     ACCESSIBILITY_SCAN_STATUS_FAILED: No usable result was produced.
     - name: progress | type: AccessibilityScanProgress | description: Page-processing progress. Updated throughout the scan and retained when the scan reaches a terminal state.  | read-only: true 
        - name: discoveredPageCount | type: integer | description: Pages discovered for this scan. At every point in the scan, this equals `processedPageCount + failedPageCount + pendingPageCount`.  | read-only: true | validation: minimum 0
        - name: processedPageCount | type: integer | description: Pages processed successfully.  | read-only: true | validation: minimum 0
        - name: failedPageCount | type: integer | description: Pages that could not be processed.  | read-only: true | validation: minimum 0
        - name: pendingPageCount | type: integer | description: Discovered pages that are queued or currently being processed. Zero in a terminal scan.  | read-only: true | validation: minimum 0
     - name: summary | type: AccessibilityScanSummary | description: Aggregate results. Populated for completed and partially completed scans.  | read-only: true 
        - name: findingCount | type: integer | description: Total actionable findings, including page-scoped and site-level findings. In a terminal scan, this equals `siteLevelFindingCount` plus the finding counts from all page summaries.  | read-only: true | validation: minimum 0
        - name: scannedPageCount | type: integer | description: Pages checked successfully. In a terminal scan, this equals `progress.processedPageCount`.  | read-only: true | validation: minimum 0
        - name: affectedPageCount | type: integer | description: Successfully scanned pages containing at least one finding.  | read-only: true | validation: minimum 0
        - name: findingsBySeverity | type: array<AccessibilitySeverityCount> | description: Findings grouped by severity.  | read-only: true | validation: maxItems 5
           - name: severity | type: AccessibilitySeverity | description: Severity represented by this count.  | read-only: true 
                 - enum: ACCESSIBILITY_SEVERITY_CRITICAL, ACCESSIBILITY_SEVERITY_SERIOUS, ACCESSIBILITY_SEVERITY_MODERATE, ACCESSIBILITY_SEVERITY_MINOR, ACCESSIBILITY_SEVERITY_INFO
           - name: count | type: integer | description: Number of findings.  | read-only: true | validation: minimum 0
        - name: findingsByCategory | type: array<AccessibilityFindingCategoryCount> | description: Findings grouped into stable user-intent categories. One finding can contribute to more than one category, so counts may overlap.  | read-only: true | validation: maxItems 20
           - name: category | type: AccessibilityFindingCategory | description: Category represented by this count.  | read-only: true 
                 - enum: ACCESSIBILITY_FINDING_CATEGORY_ALTERNATIVE_TEXT, ACCESSIBILITY_FINDING_CATEGORY_HEADING_STRUCTURE, ACCESSIBILITY_FINDING_CATEGORY_COLOR_CONTRAST, ACCESSIBILITY_FINDING_CATEGORY_SCREEN_READER, ACCESSIBILITY_FINDING_CATEGORY_KEYBOARD, ACCESSIBILITY_FINDING_CATEGORY_OTHER
           - name: count | type: integer | description: Number of findings.  | read-only: true | validation: minimum 0
        - name: coverage | type: AccessibilityScanCoverage | description: What the scan actually evaluated, including checks with no findings.  | read-only: true 
           - name: checkedCategories | type: array<AccessibilityFindingCategory> | description: User-intent categories covered by at least one executed rule.  | read-only: true | validation: maxItems 20
           - name: checkedRuleIds | type: array<string> | description: Stable public rule GUIDs that were executed, including rules that passed.  | read-only: true | validation: maxItems 500, minLength 1, maxLength 200
        - name: siteLevelFindingCount | type: integer | description: Findings that apply to the site rather than to one specific page.  | read-only: true | validation: minimum 0
     - name: failure | type: AccessibilityScanFailure | description: Public, sanitized failure details. Populated only when status is FAILED.  | read-only: true 
        - name: code | type: AccessibilityScanFailureCode | description: Stable failure category.  | read-only: true 
             - enum: ACCESSIBILITY_SCAN_FAILURE_CODE_SITE_UNAVAILABLE, ACCESSIBILITY_SCAN_FAILURE_CODE_PAGE_NOT_FOUND, ACCESSIBILITY_SCAN_FAILURE_CODE_PAGE_NOT_ACCESSIBLE, ACCESSIBILITY_SCAN_FAILURE_CODE_ANALYSIS_FAILED
        - name: message | type: string | description: Human-readable recovery guidance. Never contains raw page content or internal service details.  | read-only: true | validation: maxLength 1000
     - name: createdDate | type: string | description: Date and time the scan was queued.  | read-only: true | validation: format date-time
     - name: startedDate | type: string | description: Date and time processing started.  | read-only: true | validation: format date-time
     - name: completedDate | type: string | description: Date and time the scan reached a terminal state.  | read-only: true | validation: format date-time
     - name: resultsExpirationDate | type: string | description: Date and time the stored scan results expire.  | read-only: true | validation: format date-time
     - name: updatedDate | type: string | description: Date and time this resource last changed.  | read-only: true | validation: format date-time
     - name: revision | type: string | description: Revision number used for optimistic concurrency.  | read-only: true 
  - name: suggestedPollIntervalSeconds | type: integer | description: Suggested delay before polling. Zero when the returned scan is terminal.  | read-only: true | validation: minimum 0, maximum 60

 Possible Errors:
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: INVALID_SCAN_TARGET | Description: The target is missing, malformed, or doesn't match `targetType`.
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: SCAN_TARGET_NOT_AVAILABLE | Description: The requested page or collection is not available on the selected site.
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: IDEMPOTENCY_KEY_REUSED | Description: The idempotency key belongs to another target. Use a new key.
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: SCAN_ALREADY_IN_PROGRESS | Description: The same target already has an active scan. Poll the returned scan GUID.
   HTTP Code: 429 | Status Code: RESOURCE_EXHAUSTED | Application Code: SCAN_SIZE_LIMIT_EXCEEDED | Description: Number of pages exceeds the server's limit. Specify a narrower target.
   HTTP Code: 503 | Status Code: UNAVAILABLE | Application Code: SCAN_STATE_UNKNOWN | Description: The scan state could not be confirmed. Read the returned scan GUID before deciding whether to start another scan.


```

### Examples

### Run a full-site accessibility scan
Queues an asynchronous scan for every supported page and site-level rule. Replace <IDEMPOTENCY_KEY> with a new UUID for each intended scan.

```curl
curl -X POST \
'https://www.wixapis.com/accessibility/v1/accessibility-scans/run' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json' \
-d '{
  "target": {
    "targetType": "SCOPE",
    "scope": "ACCESSIBILITY_SCAN_SCOPE_FULL_SITE"
  },
  "idempotencyKey": "<IDEMPOTENCY_KEY>"
}'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.accessibility.accessibilityScans.runAccessibilityScan(target, options)
 Description: Queues an asynchronous accessibility scan.  Retrying with the same `idempotencyKey` for the same site returns the original scan. Reusing the key with a different target fails.  Fails if the target is invalid or unavailable, another scan for the same target is active, the idempotency key was reused for another target, or the supported scan size is exceeded. Multi-page targets are never silently sampled or truncated. Run requests are limited to 5 per minute per Wix site and can return HTTP 429. Retry the same intended scan with the same idempotency key.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  target, options.idempotencyKey, options
 Method parameters: 
   param name: target | type: AccessibilityScanTarget | description: Selects exactly one scan target on the authenticated Wix site: the full site, one page, or every page in a supported Wix page collection. | required: true 
    - ONE-OF: - required: true
     - name: scope | type: AccessibilityScanScope | description: Multi-page scope to scan. Currently supports the complete site.  
         - enum:
         -     ACCESSIBILITY_SCAN_SCOPE_FULL_SITE: Checks every supported page and site-level rule on the site.
     - name: page | type: PageScanTarget | description: One page to scan.  
        - ONE-OF: 
           - name: pageId | type: string | description: Wix page GUID when it uniquely identifies the page to scan. Use `pageUrl` for a generated page such as a specific product or blog post.  | validation: minLength 1, maxLength 100
           - name: pageUrl | type: string | description: Absolute page URL belonging to the selected Wix site.  | validation: minLength 1, maxLength 2048, format WEB_URL
     - name: pageCollection | type: PageCollectionScanTarget | description: Every page in one supported Wix page collection.  
        - name: collectionId | type: string | description: Stable public collection GUID, for example "wix.stores.products".  | validation: minLength 1, maxLength 200
        - name: targetType | type: TargetType | description: Discriminator for the target variant. It must match the populated target field.  
             - enum: SCOPE, PAGE, PAGE_COLLECTION
   param name: options | type: RunAccessibilityScanOptions  none | required: true 
        - name: idempotencyKey | type: string | description: Caller-generated UUGUID used to safely retry this request. Generate a new key for every intended scan and reuse it only when retrying that same request. | required: true | validation: minLength 1, maxLength 36, format GUID
 Return type: PROMISE<RunAccessibilityScanResponse>
  - name: accessibilityScan | type: AccessibilityScan | description: Created or deduplicated scan in its current lifecycle state. An idempotent retry can return a running or terminal scan.  
     - name: _id | type: string | description: Server-generated scan GUID.  | read-only: true | validation: format GUID
     - name: target | type: AccessibilityScanTarget | description: What this scan checks. Immutable after the scan is created.  | validation: immutable
        - ONE-OF: 
           - name: scope | type: AccessibilityScanScope | description: Multi-page scope to scan. Currently supports the complete site.  
                 - enum:
                 -     ACCESSIBILITY_SCAN_SCOPE_FULL_SITE: Checks every supported page and site-level rule on the site.
           - name: page | type: PageScanTarget | description: One page to scan.  
              - ONE-OF: 
                 - name: pageId | type: string | description: Wix page GUID when it uniquely identifies the page to scan. Use `pageUrl` for a generated page such as a specific product or blog post.  | validation: minLength 1, maxLength 100
                 - name: pageUrl | type: string | description: Absolute page URL belonging to the selected Wix site.  | validation: minLength 1, maxLength 2048, format WEB_URL
           - name: pageCollection | type: PageCollectionScanTarget | description: Every page in one supported Wix page collection.  
              - name: collectionId | type: string | description: Stable public collection GUID, for example "wix.stores.products".  | validation: minLength 1, maxLength 200
        - name: targetType | type: TargetType | description: Discriminator for the target variant. It must match the populated target field.  
             - enum: SCOPE, PAGE, PAGE_COLLECTION
     - name: status | type: AccessibilityScanStatus | description: Current asynchronous lifecycle state.  | read-only: true 
         - enum:
         -     ACCESSIBILITY_SCAN_STATUS_QUEUED: Accepted and waiting for capacity.
         -     ACCESSIBILITY_SCAN_STATUS_RUNNING: Actively checking the selected site or page.
         -     ACCESSIBILITY_SCAN_STATUS_COMPLETED: Finished successfully. Findings are available.
         -     ACCESSIBILITY_SCAN_STATUS_PARTIALLY_COMPLETED: Finished with one or more pages that could not be checked. Available findings and the failed-page count are still returned.
         -     ACCESSIBILITY_SCAN_STATUS_FAILED: No usable result was produced.
     - name: progress | type: AccessibilityScanProgress | description: Page-processing progress. Updated throughout the scan and retained when the scan reaches a terminal state.  | read-only: true 
        - name: discoveredPageCount | type: integer | description: Pages discovered for this scan. At every point in the scan, this equals `processedPageCount + failedPageCount + pendingPageCount`.  | read-only: true | validation: minimum 0
        - name: processedPageCount | type: integer | description: Pages processed successfully.  | read-only: true | validation: minimum 0
        - name: failedPageCount | type: integer | description: Pages that could not be processed.  | read-only: true | validation: minimum 0
        - name: pendingPageCount | type: integer | description: Discovered pages that are queued or currently being processed. Zero in a terminal scan.  | read-only: true | validation: minimum 0
     - name: summary | type: AccessibilityScanSummary | description: Aggregate results. Populated for completed and partially completed scans.  | read-only: true 
        - name: findingCount | type: integer | description: Total actionable findings, including page-scoped and site-level findings. In a terminal scan, this equals `siteLevelFindingCount` plus the finding counts from all page summaries.  | read-only: true | validation: minimum 0
        - name: scannedPageCount | type: integer | description: Pages checked successfully. In a terminal scan, this equals `progress.processedPageCount`.  | read-only: true | validation: minimum 0
        - name: affectedPageCount | type: integer | description: Successfully scanned pages containing at least one finding.  | read-only: true | validation: minimum 0
        - name: findingsBySeverity | type: array<AccessibilitySeverityCount> | description: Findings grouped by severity.  | read-only: true | validation: maxItems 5
           - name: severity | type: AccessibilitySeverity | description: Severity represented by this count.  | read-only: true 
                 - enum: ACCESSIBILITY_SEVERITY_CRITICAL, ACCESSIBILITY_SEVERITY_SERIOUS, ACCESSIBILITY_SEVERITY_MODERATE, ACCESSIBILITY_SEVERITY_MINOR, ACCESSIBILITY_SEVERITY_INFO
           - name: count | type: integer | description: Number of findings.  | read-only: true | validation: minimum 0
        - name: findingsByCategory | type: array<AccessibilityFindingCategoryCount> | description: Findings grouped into stable user-intent categories. One finding can contribute to more than one category, so counts may overlap.  | read-only: true | validation: maxItems 20
           - name: category | type: AccessibilityFindingCategory | description: Category represented by this count.  | read-only: true 
                 - enum: ACCESSIBILITY_FINDING_CATEGORY_ALTERNATIVE_TEXT, ACCESSIBILITY_FINDING_CATEGORY_HEADING_STRUCTURE, ACCESSIBILITY_FINDING_CATEGORY_COLOR_CONTRAST, ACCESSIBILITY_FINDING_CATEGORY_SCREEN_READER, ACCESSIBILITY_FINDING_CATEGORY_KEYBOARD, ACCESSIBILITY_FINDING_CATEGORY_OTHER
           - name: count | type: integer | description: Number of findings.  | read-only: true | validation: minimum 0
        - name: coverage | type: AccessibilityScanCoverage | description: What the scan actually evaluated, including checks with no findings.  | read-only: true 
           - name: checkedCategories | type: array<AccessibilityFindingCategory> | description: User-intent categories covered by at least one executed rule.  | read-only: true | validation: maxItems 20
           - name: checkedRuleIds | type: array<string> | description: Stable public rule GUIDs that were executed, including rules that passed.  | read-only: true | validation: maxItems 500, minLength 1, maxLength 200
        - name: siteLevelFindingCount | type: integer | description: Findings that apply to the site rather than to one specific page.  | read-only: true | validation: minimum 0
     - name: failure | type: AccessibilityScanFailure | description: Public, sanitized failure details. Populated only when status is FAILED.  | read-only: true 
        - name: code | type: AccessibilityScanFailureCode | description: Stable failure category.  | read-only: true 
             - enum: ACCESSIBILITY_SCAN_FAILURE_CODE_SITE_UNAVAILABLE, ACCESSIBILITY_SCAN_FAILURE_CODE_PAGE_NOT_FOUND, ACCESSIBILITY_SCAN_FAILURE_CODE_PAGE_NOT_ACCESSIBLE, ACCESSIBILITY_SCAN_FAILURE_CODE_ANALYSIS_FAILED
        - name: message | type: string | description: Human-readable recovery guidance. Never contains raw page content or internal service details.  | read-only: true | validation: maxLength 1000
     - name: _createdDate | type: Date | description: Date and time the scan was queued.  | read-only: true 
     - name: startedDate | type: Date | description: Date and time processing started.  | read-only: true 
     - name: completedDate | type: Date | description: Date and time the scan reached a terminal state.  | read-only: true 
     - name: resultsExpirationDate | type: Date | description: Date and time the stored scan results expire.  | read-only: true 
     - name: _updatedDate | type: Date | description: Date and time this resource last changed.  | read-only: true 
     - name: revision | type: string | description: Revision number used for optimistic concurrency.  | read-only: true 
  - name: suggestedPollIntervalSeconds | type: integer | description: Suggested delay before polling. Zero when the returned scan is terminal.  | read-only: true | validation: minimum 0, maximum 60

 Possible Errors:
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: INVALID_SCAN_TARGET | Description: The target is missing, malformed, or doesn't match `targetType`.
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: SCAN_TARGET_NOT_AVAILABLE | Description: The requested page or collection is not available on the selected site.
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: IDEMPOTENCY_KEY_REUSED | Description: The idempotency key belongs to another target. Use a new key.
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: SCAN_ALREADY_IN_PROGRESS | Description: The same target already has an active scan. Poll the returned scan GUID.
   HTTP Code: 429 | Status Code: RESOURCE_EXHAUSTED | Application Code: SCAN_SIZE_LIMIT_EXCEEDED | Description: Number of pages exceeds the server's limit. Specify a narrower target.
   HTTP Code: 503 | Status Code: UNAVAILABLE | Application Code: SCAN_STATE_UNKNOWN | Description: The scan state could not be confirmed. Read the returned scan GUID before deciding whether to start another scan.


```

### Examples

### Run a full-site accessibility scan
Queue a scan for every supported page and site-level rule.

```javascript
import { accessibilityScans } from "@wix/accessibility";

async function runFullSiteAccessibilityScan() {
  const response = await accessibilityScans.runAccessibilityScan(
    {
      targetType: "SCOPE",
      scope: "ACCESSIBILITY_SCAN_SCOPE_FULL_SITE",
    },
    {
      idempotencyKey: crypto.randomUUID(),
    },
  );

  return response;
}

/* Promise resolves to:
 * {
 *   "accessibilityScan": {
 *     "_id": "8a6f953e-5ad1-4c9a-9f90-724a6dc91041",
 *     "target": {
 *       "targetType": "SCOPE",
 *       "scope": "ACCESSIBILITY_SCAN_SCOPE_FULL_SITE"
 *     },
 *     "status": "ACCESSIBILITY_SCAN_STATUS_QUEUED",
 *     "progress": {
 *       "discoveredPageCount": 18,
 *       "processedPageCount": 0,
 *       "failedPageCount": 0,
 *       "pendingPageCount": 18
 *     },
 *     "_createdDate": "2026-08-05T09:00:00.000Z",
 *     "resultsExpirationDate": "2027-02-05T09:00:00.000Z",
 *     "_updatedDate": "2026-08-05T09:00:00.000Z",
 *     "revision": "1"
 *   },
 *   "suggestedPollIntervalSeconds": 5
 * }
 */

```

### runAccessibilityScan (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { accessibilityScans } from '@wix/accessibility';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { accessibilityScans },
  // Include the auth strategy and host as relevant
});


async function runAccessibilityScan(target,options) {
  const response = await myWixClient.accessibilityScans.runAccessibilityScan(target,options);
};
```

---