---
title: "Open a url (through browser) or a deeplink to an app"
method: POST
path: "/sessions/{sessionId}/device/openUrl"
tags: ["Device Interactions"]
---

# Open a url (through browser) or a deeplink to an app

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

## 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/openUrl`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/saucelabs/apis/real-device-access-api-reference/docs/sessions/:sessionId/device/openUrl/post.ts> (a function with typed inputs; its response is checked against the schema)

Opens a URL or deeplink based on the URL scheme. iOS supports deeplinking; Android opens all URLs in Chrome.

## Path parameters

- `sessionId` string, required

## Request body

- object
  - `url` string, required

## Response `204`

Command executed successfully

## Other responses

- `400`: Device not ready
- `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)
