---
title: "Get launching status for WDA"
method: POST
path: "/sessions/{sessionId}/device/checkWebDriverAgentStatus"
tags: ["Device Interactions"]
---

# Get launching status for WDA

`POST /sessions/{sessionId}/device/checkWebDriverAgentStatus`

## Request

- Base URL: `https://api.us-west-1.saucelabs.com/rdc/v2`
- URL: `https://api.us-west-1.saucelabs.com/rdc/v2/sessions/{sessionId}/device/checkWebDriverAgentStatus`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/saucelabs/apis/real-device-access-api-reference/docs/sessions/:sessionId/device/checkWebDriverAgentStatus/post.ts> (a function with typed inputs; its response is checked against the schema)

Returns the current state of WebDriverAgent on the device. The state can be PENDING, LAUNCHING, RUNNING,
or ERROR. When RUNNING, the response includes the device port and host port for connecting automation tools.
Use this to poll after calling launchWebDriverAgent to confirm WDA is ready.

## Path parameters

- `sessionId` string, required

## Request body

- object

## Response `200`

Command executed successfully

- RunningWDA
  - `bundleId` string: Bundle identifier of the running WDA
  - `devicePort` number: Port of WDA running in the device
  - `hostPort` number: Forwarded WDA for hosted appium use
  - `state` 'PENDING' | 'LAUNCHING' | 'RUNNING' | 'ERROR'
  - `error` string

## Other responses

- `400`: Bad Request
- `403`: Feature not available on public devices
- `404`: Not Found

---

[API](https://skmtc.dev/saucelabs/apis/real-device-access-api-reference.md) - [All operations](https://skmtc.dev/saucelabs/apis/real-device-access-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/saucelabs/apis/real-device-access-api-reference/revisions/f845a4b66e37?raw)
