# devices.list

`GET /api/public/v1/devices`

Paired machines with freshness, OS, health, session capacity and AdsPower-compatible API state.

- Capability: `device.read`
- Command: no
- MCP tool: `devices_list`

## Response

`200` with `{ data, correlation_id }`.

| Field | Type | Always present | Description |
|---|---|---|---|
| `data` | array<object> | yes |  |
| `data[].id` | string (uuid) | yes |  |
| `data[].name` | string | yes |  |
| `data[].os` | "windows" \| "linux" | yes |  |
| `data[].state` | string | yes | active, revoked, … |
| `data[].freshness` | string | yes | current when the machine reported recently |
| `data[].agent_version` | string \| null | yes |  |
| `data[].last_seen_at` | string (date-time) \| null | yes |  |
| `data[].revision` | integer | yes | (min -9007199254740991, max 9007199254740991) |
| `data[].health` | object \| null | yes |  |
| `data[].sessions` | object | yes |  |
| `data[].sessions.running` | integer | yes | (min -9007199254740991, max 9007199254740991) |
| `data[].sessions.capacity` | integer | yes | (min -9007199254740991, max 9007199254740991) |
| `data[].adspower_api` | object | yes |  |
| `data[].adspower_api.enabled` | boolean | yes |  |
| `data[].adspower_api.supported` | boolean | yes |  |
| `data[].adspower_api.port` | integer \| null | no |  |
| `data[].storage` | object \| null | yes |  |
| `correlation_id` | string (uuid) | yes |  |

New fields can appear at any time; ignore the ones you do not know.

## Errors

| Code | HTTP | Retryable |
|---|---|---|
| `UNAUTHENTICATED` | 401 | no |
| `FORBIDDEN` | 403 | no |
| `RATE_LIMITED` | 429 | yes |
| `DEPENDENCY_UNAVAILABLE` | 503 | yes |
| `UNKNOWN` | 500 | no |

## Example (curl)

```bash
curl "https://browlix.com/api/public/v1/devices" \
  -H "Authorization: Bearer $BROWLIX_API_KEY"
```

## Example (TypeScript SDK)

```ts
import { Browlix } from "@browlix/sdk";

const bx = new Browlix({ apiKey: process.env.BROWLIX_API_KEY! });
const reply = await bx.call("devices.list");
console.log(reply.data);
```

## Example (Python)

```python
import os
import requests

r = requests.get(
    "https://browlix.com/api/public/v1/devices",
    headers={"Authorization": f"Bearer {os.environ['BROWLIX_API_KEY']}"},
    timeout=60,
)
print(r.status_code, r.json())
```

## Example (MCP)

```json
{
  "method": "tools/call",
  "params": {
    "name": "devices_list",
    "arguments": {}
  }
}
```
