---
title: "Start network traffic capture"
method: POST
path: "/sessions/{sessionId}/device/enableNetworkCapture"
tags: ["Device Interactions"]
---

# Start network traffic capture

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

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

Initiates system-wide network traffic capture for the device session.

## Path parameters

- `sessionId` string, required

## Response `204`

Network capture started successfully

## Other responses

- `400`: Bad Request
- `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)
