# List the private network's devices

Source: https://openpanel.sh/docs/api/servers/list-the-private-network-s-devices

The computers, phones and servers in the organization's private network, with their addresses there.

`GET https://openpanel.sh/api/v1/network/devices`

## Parameters

| Name | In | Required | Description |
|---|---|---|---|
| `limit` | query | no | How many items to return, 1 to 100. Default 50. |
| `cursor` | query | no | The nextCursor of the previous page. |

## Responses

| Status | Meaning | Body |
|---|---|---|
| 200 | List the private network's devices | `application/json`, `DevicePage` |
| 401 | No valid credential was sent. | `application/problem+json`, `Problem` |
| 403 | The credential may not do this. | `application/problem+json`, `Problem` |
| 422 | The input was refused; detail says why. | `application/problem+json`, `Problem` |
| 429 | Too many requests; wait for Retry-After seconds. | `application/problem+json`, `Problem` |

## Schemas

### Device

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "kind": {
      "type": "string",
      "enum": [
        "personal",
        "server"
      ]
    },
    "os": {
      "type": "string"
    },
    "address": {
      "type": "string",
      "description": "Its address in the organization's private network."
    },
    "online": {
      "type": "boolean"
    },
    "lastSeenAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "id",
    "name",
    "kind",
    "os",
    "address",
    "online",
    "lastSeenAt"
  ]
}
```

### DevicePage

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Device"
      }
    },
    "nextCursor": {
      "description": "Pass as cursor for the next page; null on the last.",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "data",
    "nextCursor"
  ]
}
```

### Problem

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "description": "A link to the error's explanation in the docs."
    },
    "title": {
      "type": "string"
    },
    "status": {
      "type": "integer"
    },
    "code": {
      "type": "string",
      "description": "Stable machine-readable code: not_found, forbidden, invalid, conflict, rate_limited, not_implemented, …"
    },
    "detail": {
      "type": "string",
      "description": "What went wrong, in a sentence written for a person."
    }
  },
  "required": [
    "type",
    "title",
    "status",
    "code",
    "detail"
  ]
}
```