Device Traffic

Start device traffic inspection

Changed on

Starts one live-only decoded HTTP/1.1, HTTP/2, HTTP/3 and WebSocket traffic session.

post/devices/{deviceId}/traffic/sessions

Request

  • Base URL
    https://api.mobilerun.ai
  • URL
    https://api.mobilerun.ai/devices/{deviceId}/traffic/sessions
  • Auth
    HTTP bearer

Path parameters

deviceIdstring required

Headers

Idempotency-Keystring required

Request body

$schemastring uri

A URL to the JSON Schema for this object.

expiresInSecondsinteger
maxBodyBytesinteger

Example request

{
  "$schema": "https://example.com/schemas/CreateSessionBody.json"
}

Response

Accepted

$schemastring uri

A URL to the JSON Schema for this object.

createdAtstring date-time required
deviceIdstring required
expiresAtstring date-time required
idstring required
maxBodyBytesinteger required
retention'none' required
startedAtstring date-time
state'starting' | 'active' | 'stopping' | 'stopped' | 'failed' | 'expired' required
stoppedAtstring date-time

Example response

{
  "$schema": "https://example.com/schemas/Session.json"
}

Changes