Mobilerun Device Traffic API
The Device Traffic API from Mobilerun — 2 operation(s) for device traffic.
The Device Traffic API from Mobilerun — 2 operation(s) for device traffic.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/mobilerun-ai:mobilerun-ai-device-traffic-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Mobilerun Ai Device Traffic API
version: v1
contact:
name: Droidrun
email: support@droidrun.ai
description: 'Operations tagged Device Traffic across 2 of this provider''s published API definitions: openapi.json, mobilerun-ai-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.mobilerun.ai
description: Droidrun Cloud API
security:
- bearerAuth: []
tags:
- name: Device Traffic
paths:
/devices/{deviceId}/traffic/sessions:
get:
operationId: list-device-traffic-sessions
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseSession'
description: OK
default:
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Error
summary: List device traffic sessions
tags:
- Device Traffic
parameters:
- in: path
name: deviceId
required: true
schema:
type: string
- explode: false
in: query
name: page
schema:
default: 1
format: int64
minimum: 1
type: integer
- explode: false
in: query
name: pageSize
schema:
default: 20
format: int64
maximum: 100
minimum: 1
type: integer
post:
description: Starts one live-only decoded HTTP/1.1, HTTP/2, HTTP/3 and WebSocket traffic session.
operationId: create-device-traffic-session
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateSessionBody'
required: true
responses:
'202':
content:
application/json:
schema:
$ref: '#/components/schemas/Session'
description: Accepted
default:
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Error
summary: Start device traffic inspection
tags:
- Device Traffic
parameters:
- in: path
name: deviceId
required: true
schema:
type: string
- in: header
name: Idempotency-Key
required: true
schema:
maxLength: 255
minLength: 1
type: string
servers:
- url: https://api.mobilerun.ai
description: Droidrun Cloud API
/devices/{deviceId}/traffic/sessions/{sessionId}:
delete:
operationId: delete-device-traffic-session
responses:
'202':
content:
application/json:
schema:
$ref: '#/components/schemas/Session'
description: Accepted
default:
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Error
summary: Stop device traffic inspection
tags:
- Device Traffic
parameters:
- in: path
name: deviceId
required: true
schema:
type: string
- in: path
name: sessionId
required: true
schema:
type: string
get:
description: Returns status and the device stream credential for a live session.
operationId: get-device-traffic-session
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Session'
description: OK
default:
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Error
summary: Get a device traffic session
tags:
- Device Traffic
parameters:
- in: path
name: deviceId
required: true
schema:
type: string
- in: path
name: sessionId
required: true
schema:
type: string
servers:
- url: https://api.mobilerun.ai
description: Droidrun Cloud API
components:
schemas:
StreamCredentials:
additionalProperties: false
properties:
protocol:
type: string
token:
type: string
url:
type: string
required:
- url
- token
- protocol
type: object
SessionError:
additionalProperties: false
properties:
code:
type: string
message:
type: string
required:
- code
- message
type: object
CreateSessionBody:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://example.com/schemas/CreateSessionBody.json
format: uri
readOnly: true
type: string
expiresInSeconds:
default: 3600
format: int64
maximum: 14400
minimum: 60
type: integer
maxBodyBytes:
default: 1048576
format: int64
maximum: 10485760
minimum: 0
type: integer
type: object
ErrorModel:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://example.com/schemas/ErrorModel.json
format: uri
readOnly: true
type: string
detail:
description: A human-readable explanation specific to this occurrence of the problem.
examples:
- Property foo is required but is missing.
type: string
errors:
description: Optional list of individual error details
items:
$ref: '#/components/schemas/ErrorDetail'
type:
- array
- 'null'
instance:
description: A URI reference that identifies the specific occurrence of the problem.
examples:
- https://example.com/error-log/abc123
format: uri
type: string
status:
description: HTTP status code
examples:
- 400
format: int64
type: integer
title:
description: A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
examples:
- Bad Request
type: string
type:
default: about:blank
description: A URI reference to human-readable documentation for the error.
examples:
- https://example.com/errors/example
format: uri
type: string
type: object
ErrorDetail:
additionalProperties: false
properties:
location:
description: Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
type: string
message:
description: Error message text
type: string
value:
description: The value at the given location
type: object
Session:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://example.com/schemas/Session.json
format: uri
readOnly: true
type: string
createdAt:
format: date-time
type: string
deviceId:
type: string
error:
$ref: '#/components/schemas/SessionError'
expiresAt:
format: date-time
type: string
id:
type: string
maxBodyBytes:
format: int64
type: integer
retention:
enum:
- none
type: string
startedAt:
format: date-time
type: string
state:
enum:
- starting
- active
- stopping
- stopped
- failed
- expired
type: string
stoppedAt:
format: date-time
type: string
stream:
$ref: '#/components/schemas/StreamCredentials'
required:
- id
- deviceId
- state
- createdAt
- expiresAt
- maxBodyBytes
- retention
type: object
ResponseSession:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://example.com/schemas/ResponseSession.json
format: uri
readOnly: true
type: string
items:
items:
$ref: '#/components/schemas/Session'
type:
- array
- 'null'
pagination:
$ref: '#/components/schemas/Meta'
required:
- items
- pagination
type: object
Meta:
additionalProperties: false
properties:
hasNext:
type: boolean
hasPrev:
type: boolean
page:
format: int64
type: integer
pageSize:
format: int64
type: integer
pages:
format: int64
type: integer
total:
format: int64
type: integer
required:
- hasNext
- hasPrev
- page
- pageSize
- total
- pages
type: object
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: Opaque
description: Bearer token via Authorization header
x-refined-from:
- openapi.json
- mobilerun-ai-openapi.json
x-provenance:
method: harvested
publisher: Mobilerun
source: https://api.mobilerun.ai/v1/openapi.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)