get__devices_-id
TypeScript Client Library
// Note: This endpoint doesn't have a direct client method in the provided TypeScript client
// You would need to use the generic makeRequest method:
// this.makeRequest<any>(`devices/${id}`, 'GET', null);Code Samples
# You can also use wget
curl -X GET https://backend.flashback.tech/devices/{id} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'GET https://backend.flashback.tech/devices/{id} HTTP/1.1
Host: localhost:3000
Accept: application/jsonconst headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('https://backend.flashback.tech/devices/{id}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});Parameters
Name
In
Type
Required
Description
{
"success": true,
"device": {
"id": "string",
"deviceName": "string",
"deviceType": "string",
"os": "string",
"browser": "string",
"ipAddress": "string",
"country": "string",
"city": "string",
"isTrusted": true,
"trustLevel": "string",
"lastSeen": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"trustExpiresAt": "2019-08-24T14:15:22Z",
"userAgent": "string",
"deviceFingerprint": "string",
"sessions": [
{
"id": "string",
"ipAddress": "string",
"location": "string",
"startedAt": "2019-08-24T14:15:22Z",
"lastActivity": "2019-08-24T14:15:22Z",
"expiresAt": "2019-08-24T14:15:22Z",
"loginMethod": "string"
}
]
}
}Responses
Status
Meaning
Description
Schema
Response Schema
Name
Type
Required
Restrictions
Description
Name
Type
Required
Restrictions
Description
Name
Type
Required
Restrictions
Description
Last updated
Was this helpful?