# eSIM API - Compatible Devices

> To get a list of compatible devices, you need to send a GET request to the /api/compatible-devices endpoint.

Canonical: https://docs.getroamify.com/esims/compatible-devices/

## eSIM Compatible Devices
To get a list of compatible devices, you need to send a `GET` request to the `/api/compatible-devices` endpoint.

There are no required parameters for this endpoint.

## Usage - fetch a list of eSIM compatible devices
Here is an example of how you can get a list of compatible devices using Roamify eSIM API.

**curl**

```bash
curl --request GET \
--url 'https://api-dev.getroamify.com/api/compatible-devices' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json'
```

**javascript**

```javascript
const axios = require('axios');

axios.get('https://api-dev.getroamify.com/api/compatible-devices', {
    headers: {
        'Authorization': 'Bearer {access token here}',
        'Content-Type': 'application/json'
    }
})
.then(response => {
    console.log(response.data);
})
.catch(error => {
    console.error(error);
});
```

## Sample Response
```json
{
	"status": "success",
	"data": [
		{
			"model": "Samsung Galaxy Note 20 / Note 20 Plus / Note 20 Ultra",
			"deviceType": "smartphone",
			"os": "android",
			"brand": "Samsung",
			"name": "Samsung Galaxy Note 20 series"
		},
		{
			"model": "Rakuten BIG / Rakuten BIG-S",
			"deviceType": "smartphone",
			"os": "android",
			"brand": "Rakuten",
			"name": "Rakuten BIG series"
		}
    ]
}
```
