---
title: "List the caller's paired devices"
---

> Documentation Index
> Fetch the complete documentation index at: https://tryshiba.dev/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Shiba public API › devices

`GET /devices`

## Authentication

Requires one of the following:

- `bearerAuth`, http, header `Authorization`, format `API key`
- `cookieAuth`, apiKey, in cookie

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/api/v1/devices' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = '<base-url>/api/v1/devices';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/api/v1/devices"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Success

#### Example

```json
{
  "ok": true,
  "devices": [
    {
      "deviceId": "string",
      "name": "string",
      "platform": "ios",
      "createdAt": 0,
      "lastSeenAt": 0,
      "revokedAt": 0
    }
  ]
}
```

- `ok` (`listDevices.response.200.ok`; boolean, required)
- `devices` (`listDevices.response.200.devices`; array<object>, required)
  - `deviceId` (`listDevices.response.200.devices.deviceId`; string, required)
  - `name` (`listDevices.response.200.devices.name`; string, required)
  - `platform` (`listDevices.response.200.devices.platform`; string, required)
    - one of `"ios"`, `"android"`, `"web"`, `"desktop"`, `"unknown"`
  - `createdAt` (`listDevices.response.200.devices.createdAt`; number, required)
  - `lastSeenAt` (`listDevices.response.200.devices.lastSeenAt`; number | null, required)
  - `revokedAt` (`listDevices.response.200.devices.revokedAt`; number | null, required)

### 401

Unauthorized

#### Example

```json
{
  "ok": false,
  "error": "string",
  "detail": "string",
  "code": "string"
}
```

- `error` (`listDevices.response.401.error`; string, required)
- `ok` (`listDevices.response.401.ok`; boolean, optional)
- `detail` (`listDevices.response.401.detail`; string, optional)
- `code` (`listDevices.response.401.code`; string, optional)


Source: https://tryshiba.dev/reference/api/devices/listDevices/index.md
