Skip to content

Devices API reference

Inspect registered Android devices. 7 endpoints, each with its scope, parameters, answers and an example call.

7 endpointsBearer keyhttps://falconproxy.com/api/v1

GET/devices

List devices

Returns the registered devices owned by the authenticated organization, newest first.

Requires the devices:read scope.

Parameters

Parameters of List devices
NameInTypeDescription
limitqueryinteger (min 1, max 200, default 50)Max results to return (1–200, default 50).
offsetqueryinteger (min 0, default 0)Number of results to skip (default 0).

Responses

Responses of List devices
StatusMeaning
200A page of devices.
401Missing, invalid, expired, or revoked API token.
403The token lacks a required scope.

Response body (200)

Response 200 fields of List devices
FieldTypeDescription
devicesarray of objectsThe devices on this page.
devices[].idstring (uuid)Internal device id.
devices[].external_idstring or nullHardware/install identifier.
devices[].namestringDevice name: the display name you set, or the name the phone reports.
devices[].modelstring or nullDevice model, as the phone reports it.
devices[].os_versionstring or nullAndroid version the device reports.
devices[].app_versionstring or nullVersion of the FalconProxy app on the device.
devices[].is_activebooleanWhether the device is active on your account.
devices[].is_connectedbooleanWhether the device tunnel is connected.
devices[].exit_relay_activebooleanWhether the exit relay is running on the device.
devices[].proxy_modestringWhether the device serves one proxy (dedicated) or several (shared).
devices[].proxy_endpoint_countintegerNumber of proxies on the device now.
devices[].max_proxy_endpointsintegerMost proxies the device can serve.
devices[].locationobjectWhere the device is located, as last recorded. Each part is null when unknown.
devices[].location.countrystring or nullCountry name.
devices[].location.country_codestring or nullTwo-letter country code.
devices[].location.citystring or nullCity.
devices[].location.regionstring or nullRegion or state.
devices[].usage_30dobjectTraffic over the last 30 days.
devices[].usage_30d.bytes_inintegerBytes downloaded: data that came back from the sites reached through the proxy.
devices[].usage_30d.bytes_outintegerBytes uploaded: data sent to those sites through the proxy.
devices[].usage_30d.requestsintegerNumber of requests.
devices[].last_connected_atstring or nullISO 8601 timestamp.
devices[].last_active_atstring or nullISO 8601 timestamp.
devices[].created_atstring or nullISO 8601 timestamp.
paginationobjectWhere this page sits in the full list.
pagination.limitintegerPage size used for this answer.
pagination.offsetintegerNumber of items skipped before this page.
pagination.totalintegerNumber of items that match, across all pages.
json
{
  "devices": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "external_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "name": "string",
      "model": "string",
      "os_version": "string",
      "app_version": "string",
      "is_active": true,
      "is_connected": true,
      "exit_relay_active": true,
      "proxy_mode": "string",
      "proxy_endpoint_count": 0,
      "max_proxy_endpoints": 0,
      "location": {
        "country": "string",
        "country_code": "string",
        "city": "string",
        "region": "string"
      },
      "usage_30d": {
        "bytes_in": 0,
        "bytes_out": 0,
        "requests": 0
      },
      "last_connected_at": "2026-01-15T12:00:00Z",
      "last_active_at": "2026-01-15T12:00:00Z",
      "created_at": "2026-01-15T12:00:00Z"
    }
  ],
  "pagination": {
    "limit": 0,
    "offset": 0,
    "total": 0
  }
}

Example request

curl
curl "https://falconproxy.com/api/v1/devices" \
  -H "Authorization: Bearer $FALCONPROXY_API_KEY"

GET/devices/{id}

Get a device

Returns a single device by its id.

Requires the devices:read scope.

Parameters

Parameters of Get a device
NameInTypeDescription
idrequiredpathstring (uuid)Device id (UUID).

Responses

Responses of Get a device
StatusMeaning
200The requested device.
401Missing, invalid, expired, or revoked API token.
403The token lacks a required scope.
404The resource does not exist or is not visible to this token.

Response body (200)

Response 200 fields of Get a device
FieldTypeDescription
deviceobjectA registered Android device serving proxies.
device.idstring (uuid)Internal device id.
device.external_idstring or nullHardware/install identifier.
device.namestringDevice name: the display name you set, or the name the phone reports.
device.modelstring or nullDevice model, as the phone reports it.
device.os_versionstring or nullAndroid version the device reports.
device.app_versionstring or nullVersion of the FalconProxy app on the device.
device.is_activebooleanWhether the device is active on your account.
device.is_connectedbooleanWhether the device tunnel is connected.
device.exit_relay_activebooleanWhether the exit relay is running on the device.
device.proxy_modestringWhether the device serves one proxy (dedicated) or several (shared).
device.proxy_endpoint_countintegerNumber of proxies on the device now.
device.max_proxy_endpointsintegerMost proxies the device can serve.
device.locationobjectWhere the device is located, as last recorded. Each part is null when unknown.
device.location.countrystring or nullCountry name.
device.location.country_codestring or nullTwo-letter country code.
device.location.citystring or nullCity.
device.location.regionstring or nullRegion or state.
device.usage_30dobjectTraffic over the last 30 days.
device.usage_30d.bytes_inintegerBytes downloaded: data that came back from the sites reached through the proxy.
device.usage_30d.bytes_outintegerBytes uploaded: data sent to those sites through the proxy.
device.usage_30d.requestsintegerNumber of requests.
device.last_connected_atstring or nullISO 8601 timestamp.
device.last_active_atstring or nullISO 8601 timestamp.
device.created_atstring or nullISO 8601 timestamp.
json
{
  "device": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "external_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "name": "string",
    "model": "string",
    "os_version": "string",
    "app_version": "string",
    "is_active": true,
    "is_connected": true,
    "exit_relay_active": true,
    "proxy_mode": "string",
    "proxy_endpoint_count": 0,
    "max_proxy_endpoints": 0,
    "location": {
      "country": "string",
      "country_code": "string",
      "city": "string",
      "region": "string"
    },
    "usage_30d": {
      "bytes_in": 0,
      "bytes_out": 0,
      "requests": 0
    },
    "last_connected_at": "2026-01-15T12:00:00Z",
    "last_active_at": "2026-01-15T12:00:00Z",
    "created_at": "2026-01-15T12:00:00Z"
  }
}

Example request

curl
curl "https://falconproxy.com/api/v1/devices/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
  -H "Authorization: Bearer $FALCONPROXY_API_KEY"

GET/devices/{id}/network-mode

Read device network mode and pending change

Returns the live network mode from runtime state and any in-flight mode change.

Requires the devices:read scope.

Parameters

Parameters of Read device network mode and pending change
NameInTypeDescription
idrequiredpathstring (uuid)Device id (UUID).

Responses

Responses of Read device network mode and pending change
StatusMeaning
200Current mode and change status.
401Missing, invalid, expired, or revoked API token.
403The token lacks a required scope.
404The resource does not exist or is not visible to this token.

Response body (200)

Response 200 fields of Read device network mode and pending change
FieldTypeDescription
network_modestring or nullLive network mode from runtime state, if reported.
pending_changeobject or nullIn-flight change, if any.
pending_change.idstring (uuid)Mode change record id.
pending_change.device_idstring (uuid)Device the change applies to.
pending_change.target_mode"mobile" | "wifi" | "boosted" | "auto"Requested exit interface.
pending_change.status"requested" | "delivered" | "confirmed" | "failed" | "timed_out" | "superseded"Where the change is in its lifecycle.
pending_change.failure_codestring or nullStable machine code when status is failed or timed_out.
pending_change.failure_messagestring or nullHuman refusal or timeout message.
pending_change.source"api" | "dashboard" | "url"Who requested the change.
pending_change.requested_atstring (date-time)When the change was requested.
pending_change.delivered_atstring (date-time) or nullWhen the relay accepted the command, if ever.
pending_change.confirmed_atstring (date-time) or nullWhen live mode matched the target, if ever.
pending_change.terminal_atstring (date-time) or nullWhen the record reached a terminal status.
latest_changeobject or nullMost recent change row, including terminal ones.
latest_change.idstring (uuid)Mode change record id.
latest_change.device_idstring (uuid)Device the change applies to.
latest_change.target_mode"mobile" | "wifi" | "boosted" | "auto"Requested exit interface.
latest_change.status"requested" | "delivered" | "confirmed" | "failed" | "timed_out" | "superseded"Where the change is in its lifecycle.
latest_change.failure_codestring or nullStable machine code when status is failed or timed_out.
latest_change.failure_messagestring or nullHuman refusal or timeout message.
latest_change.source"api" | "dashboard" | "url"Who requested the change.
latest_change.requested_atstring (date-time)When the change was requested.
latest_change.delivered_atstring (date-time) or nullWhen the relay accepted the command, if ever.
latest_change.confirmed_atstring (date-time) or nullWhen live mode matched the target, if ever.
latest_change.terminal_atstring (date-time) or nullWhen the record reached a terminal status.
json
{
  "network_mode": "string",
  "pending_change": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "device_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "target_mode": "mobile",
    "status": "requested",
    "failure_code": "string",
    "failure_message": "string",
    "source": "api",
    "requested_at": "2026-01-15T12:00:00Z",
    "delivered_at": "2026-01-15T12:00:00Z",
    "confirmed_at": "2026-01-15T12:00:00Z",
    "terminal_at": "2026-01-15T12:00:00Z"
  },
  "latest_change": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "device_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "target_mode": "mobile",
    "status": "requested",
    "failure_code": "string",
    "failure_message": "string",
    "source": "api",
    "requested_at": "2026-01-15T12:00:00Z",
    "delivered_at": "2026-01-15T12:00:00Z",
    "confirmed_at": "2026-01-15T12:00:00Z",
    "terminal_at": "2026-01-15T12:00:00Z"
  }
}

Example request

curl
curl "https://falconproxy.com/api/v1/devices/3fa85f64-5717-4562-b3fc-2c963f66afa6/network-mode" \
  -H "Authorization: Bearer $FALCONPROXY_API_KEY"

POST/devices/{id}/network-mode

Set device network mode

Requests a switch of the device's exit interface (mobile, wifi, boosted, auto). Returns 202 with a change id when accepted; poll GET .../network-mode/changes/{changeId}.

Requires the devices:control scope and an active subscription.

Parameters

Parameters of Set device network mode
NameInTypeDescription
idrequiredpathstring (uuid)Device id (UUID).

Request body

Request body fields of Set device network mode
FieldTypeDescription
moderequired"mobile" | "wifi" | "boosted" | "auto"Exit interface the device routes through.
json
{
  "mode": "mobile"
}

Responses

Responses of Set device network mode
StatusMeaning
200Already in the requested mode (no-op).
202Mode change accepted.
400The request body failed validation.
401Missing, invalid, expired, or revoked API token.
402The subscription is inactive. Reading is allowed, but mutating actions require an active subscription.
403The token lacks a required scope.
404The resource does not exist or is not visible to this token.
409Another mode change is already in progress, a rotation is running, the device tunnel is off on the phone, or the device is offline.
503The relay service is not available.

Response body (200)

Response 200 fields of Set device network mode
FieldTypeDescription
status"already_in_mode"No command was sent.
network_modestring or nullCurrent live mode.
target_mode"mobile" | "wifi" | "boosted" | "auto"Mode the caller asked for.
json
{
  "status": "already_in_mode",
  "network_mode": "string",
  "target_mode": "mobile"
}

Response body (202)

Response 202 fields of Set device network mode
FieldTypeDescription
status"accepted" | "pending" | "failed"Whether a new change started, an existing one was reused, or delivery failed.
changeobjectThe change record to poll.
change.idstring (uuid)Mode change record id.
change.device_idstring (uuid)Device the change applies to.
change.target_mode"mobile" | "wifi" | "boosted" | "auto"Requested exit interface.
change.status"requested" | "delivered" | "confirmed" | "failed" | "timed_out" | "superseded"Where the change is in its lifecycle.
change.failure_codestring or nullStable machine code when status is failed or timed_out.
change.failure_messagestring or nullHuman refusal or timeout message.
change.source"api" | "dashboard" | "url"Who requested the change.
change.requested_atstring (date-time)When the change was requested.
change.delivered_atstring (date-time) or nullWhen the relay accepted the command, if ever.
change.confirmed_atstring (date-time) or nullWhen live mode matched the target, if ever.
change.terminal_atstring (date-time) or nullWhen the record reached a terminal status.
status_urlstringRelative URL to poll this change.
errorstringRelay error when status is failed.
json
{
  "status": "accepted",
  "change": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "device_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "target_mode": "mobile",
    "status": "requested",
    "failure_code": "string",
    "failure_message": "string",
    "source": "api",
    "requested_at": "2026-01-15T12:00:00Z",
    "delivered_at": "2026-01-15T12:00:00Z",
    "confirmed_at": "2026-01-15T12:00:00Z",
    "terminal_at": "2026-01-15T12:00:00Z"
  },
  "status_url": "https://example.com",
  "error": "string"
}

Response body (409)

Response 409 fields of Set device network mode
FieldTypeDescription
errorstringWhat stopped the mode change.
status"mode_change_in_progress" | "rotation_in_progress" | "device_tunnel_off" | "offline"Stable conflict code.
changeobjectThe active change, when status is mode_change_in_progress.
change.idstring (uuid)Mode change record id.
change.device_idstring (uuid)Device the change applies to.
change.target_mode"mobile" | "wifi" | "boosted" | "auto"Requested exit interface.
change.status"requested" | "delivered" | "confirmed" | "failed" | "timed_out" | "superseded"Where the change is in its lifecycle.
change.failure_codestring or nullStable machine code when status is failed or timed_out.
change.failure_messagestring or nullHuman refusal or timeout message.
change.source"api" | "dashboard" | "url"Who requested the change.
change.requested_atstring (date-time)When the change was requested.
change.delivered_atstring (date-time) or nullWhen the relay accepted the command, if ever.
change.confirmed_atstring (date-time) or nullWhen live mode matched the target, if ever.
change.terminal_atstring (date-time) or nullWhen the record reached a terminal status.
json
{
  "error": "string",
  "status": "mode_change_in_progress",
  "change": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "device_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "target_mode": "mobile",
    "status": "requested",
    "failure_code": "string",
    "failure_message": "string",
    "source": "api",
    "requested_at": "2026-01-15T12:00:00Z",
    "delivered_at": "2026-01-15T12:00:00Z",
    "confirmed_at": "2026-01-15T12:00:00Z",
    "terminal_at": "2026-01-15T12:00:00Z"
  }
}

Example request

curl
curl -X POST "https://falconproxy.com/api/v1/devices/3fa85f64-5717-4562-b3fc-2c963f66afa6/network-mode" \
  -H "Authorization: Bearer $FALCONPROXY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "mobile"
  }'

GET/devices/{id}/network-mode/changes/{changeId}

Poll a network mode change

Returns the state of a single mode change record.

Requires the devices:read scope.

Parameters

Parameters of Poll a network mode change
NameInTypeDescription
idrequiredpathstring (uuid)Device id (UUID).
changeIdrequiredpathstring (uuid)Mode change id returned by POST /network-mode.

Responses

Responses of Poll a network mode change
StatusMeaning
200Mode change record.
401Missing, invalid, expired, or revoked API token.
403The token lacks a required scope.
404The resource does not exist or is not visible to this token.

Response body (200)

Response 200 fields of Poll a network mode change
FieldTypeDescription
idstring (uuid)Mode change record id.
device_idstring (uuid)Device the change applies to.
target_mode"mobile" | "wifi" | "boosted" | "auto"Requested exit interface.
status"requested" | "delivered" | "confirmed" | "failed" | "timed_out" | "superseded"Where the change is in its lifecycle.
failure_codestring or nullStable machine code when status is failed or timed_out.
failure_messagestring or nullHuman refusal or timeout message.
source"api" | "dashboard" | "url"Who requested the change.
requested_atstring (date-time)When the change was requested.
delivered_atstring (date-time) or nullWhen the relay accepted the command, if ever.
confirmed_atstring (date-time) or nullWhen live mode matched the target, if ever.
terminal_atstring (date-time) or nullWhen the record reached a terminal status.
json
{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "device_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "target_mode": "mobile",
  "status": "requested",
  "failure_code": "string",
  "failure_message": "string",
  "source": "api",
  "requested_at": "2026-01-15T12:00:00Z",
  "delivered_at": "2026-01-15T12:00:00Z",
  "confirmed_at": "2026-01-15T12:00:00Z",
  "terminal_at": "2026-01-15T12:00:00Z"
}

Example request

curl
curl "https://falconproxy.com/api/v1/devices/3fa85f64-5717-4562-b3fc-2c963f66afa6/network-mode/changes/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
  -H "Authorization: Bearer $FALCONPROXY_API_KEY"

POST/devices/{id}/exit-relay

Start or stop the exit relay

Starts or stops the device's exit relay.

Requires the devices:control scope and an active subscription.

Parameters

Parameters of Start or stop the exit relay
NameInTypeDescription
idrequiredpathstring (uuid)Device id (UUID).

Request body

Request body fields of Start or stop the exit relay
FieldTypeDescription
activerequiredbooleanStart (true) or stop (false) the exit relay.
json
{
  "active": true
}

Responses

Responses of Start or stop the exit relay
StatusMeaning
200The relay accepted the toggle.
400The request body failed validation.
401Missing, invalid, expired, or revoked API token.
402The subscription is inactive. Reading is allowed, but mutating actions require an active subscription.
403The token lacks a required scope.
404The resource does not exist or is not visible to this token.
503The relay service is not available.

Example request

curl
curl -X POST "https://falconproxy.com/api/v1/devices/3fa85f64-5717-4562-b3fc-2c963f66afa6/exit-relay" \
  -H "Authorization: Bearer $FALCONPROXY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "active": true
  }'

POST/devices/{id}/vibrate

Vibrate a device

Triggers a vibration on the device to help locate it.

Requires the devices:control scope and an active subscription.

Parameters

Parameters of Vibrate a device
NameInTypeDescription
idrequiredpathstring (uuid)Device id (UUID).

Responses

Responses of Vibrate a device
StatusMeaning
200The relay accepted the vibrate command.
400The request body failed validation.
401Missing, invalid, expired, or revoked API token.
402The subscription is inactive. Reading is allowed, but mutating actions require an active subscription.
403The token lacks a required scope.
404The resource does not exist or is not visible to this token.
503The relay service is not available.

Example request

curl
curl -X POST "https://falconproxy.com/api/v1/devices/3fa85f64-5717-4562-b3fc-2c963f66afa6/vibrate" \
  -H "Authorization: Bearer $FALCONPROXY_API_KEY"

Ready to create your own proxies?

2-hour free trial, no card—pair your phone in minutes.

Already have an account? Sign in

FalconProxy