GET
https://api.cryptohopper.com/v1/device/list
Returns all devices registered on your account with their platform, location, IP address, state and activity times. The calling device must itself be authorized.
The handler checks no OAuth scope. state is 0 (not authorized), 1 (authorizing) or 2 (authorized). Times are Unix timestamps; 0 means not set.
Example request
curl "https://api.cryptohopper.com/v1/device/list" \
-H "access-token: YOUR_ACCESS_TOKEN"
const response = await fetch('https://api.cryptohopper.com/v1/device/list', {
method: 'GET',
headers: {
"access-token": "YOUR_ACCESS_TOKEN"
}
});
const data = await response.json();
import requests
response = requests.get(
"https://api.cryptohopper.com/v1/device/list",
headers={
"access-token": "YOUR_ACCESS_TOKEN"
},
)
data = response.json()
$ch = curl_init('https://api.cryptohopper.com/v1/device/list');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'access-token: YOUR_ACCESS_TOKEN',
],
]);
$data = json_decode(curl_exec($ch), true);
Parameters
Headers
| Name | Type | Required | Description |
|---|---|---|---|
access-token |
string | Required | The OAuth access token of the user. |
Response
{
"data": [
{
"id": 1237001,
"name": "Chrome 128 (Windows 10.0.0)",
"location": "Amsterdam, NL",
"ipAddress": "203.0.113.10",
"platform": "WEB",
"state": 2,
"deviceId": "3f9c2a7e-51b4-4c1d-9a0e-7b6d2f1c8e44",
"lastActivity": 1790316000,
"createdAt": 1786000000,
"deletedAt": 0,
"expiration": 1791184000,
"revokedAt": 0,
"sessionId": "api://device/authorize"
}
]
}