> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://one.miles-api.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://one.miles-api.com/_mcp/server.

# List Devices

GET https://api.milescaira.com/v7/register-device/

List the authenticated user's registered devices.

Reference: https://one.miles-api.com/api-reference/account-users/account/list-devices-v-7-register-device-get

## Servers

- `https://api.milescaira.com` (Production, default)
- `https://miles-usp-backend-uat-2-154625965269.asia-south1.run.app` (UAT)
- `http://localhost:8080` (Local)

## Response

### 200

Successful Response

- `devices` (list of DeviceRegisteredOut, optional)

## Types

### DeviceRegisteredOut

Stored device record echoed back after register-device.

- `id` (string, required)
- `device_id` (string, optional, nullable)
- `device_name` (string, optional, nullable)
- `notification_token` (string, optional, nullable)
- `device_type` (string, optional, nullable)
- `created_at` (datetime, optional, nullable)

## Examples

**Response**

```json
{
  "devices": [
    {
      "id": "string",
      "device_id": "string",
      "device_name": "string",
      "notification_token": "string",
      "device_type": "string",
      "created_at": "2024-01-15T09:30:00Z"
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.milescaira.com/v7/register-device/"

response = requests.get(url)

print(response.json())
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.milescaira.com/v7/register-device/"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.milescaira.com/v7/register-device/")
  .asString();
```