---
title: "List the subject user's registered devices"
description: "Every device registered for the subject user under the calling app."
---

> Documentation Index
> Fetch the complete documentation index at: https://truememory-docs.mvstg.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: AI Gateway API › Notifications

`GET /notifications/devices`

Every device registered for the subject user under the calling app.

## Authentication

- `HTTPBearer`, http, header `Authorization`

## Header parameters

- `X-App-Id` (`list_devices.header.X-App-Id`; any of, optional)
  - any of: `string`, `null`
- `X-On-Behalf-Of` (`list_devices.header.X-On-Behalf-Of`; any of, optional)
  - any of: `string`, `null`
- `X-External-User-Id` (`list_devices.header.X-External-User-Id`; any of, optional)
  - any of: `string`, `null`

## Code samples

### cURL

```bash
curl --request GET \
  --url https://truememory-api.mvstg.com/notifications/devices \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://truememory-api.mvstg.com/notifications/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 = "https://truememory-api.mvstg.com/notifications/devices"

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

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

print(response.text)
```

## Responses

### 200

Successful Response

#### Example

```json
{
  "devices": [
    {
      "id": "string",
      "app_id": "string",
      "user_id": "string",
      "token": "string",
      "platform": "ios",
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z"
    }
  ],
  "total": 0
}
```

- `devices` (`list_devices.response.200.devices`; array<object>, required)
  - `id` (`list_devices.response.200.devices.id`; string, required)
  - `app_id` (`list_devices.response.200.devices.app_id`; string, required)
  - `user_id` (`list_devices.response.200.devices.user_id`; string, required)
  - `token` (`list_devices.response.200.devices.token`; string, required)
  - `created_at` (`list_devices.response.200.devices.created_at`; string, required)
    - format `date-time`
  - `updated_at` (`list_devices.response.200.devices.updated_at`; string, required)
    - format `date-time`
  - `platform` (`list_devices.response.200.devices.platform`; any of, optional)
    - any of: `string`, `null`
- `total` (`list_devices.response.200.total`; integer, required)

### 422

Validation Error

#### Example

```json
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
```

- `detail` (`list_devices.response.422.detail`; array<object>, optional)
  - `loc` (`list_devices.response.422.detail.loc`; array<any of>, required)
    - any of: `string`, `integer`
  - `msg` (`list_devices.response.422.detail.msg`; string, required)
  - `type` (`list_devices.response.422.detail.type`; string, required)
  - `input` (`list_devices.response.422.detail.input`; unknown, optional)
  - `ctx` (`list_devices.response.422.detail.ctx`; object, optional)


Source: https://truememory-docs.mvstg.com/api/notifications/devices/list/index.md
