get__devices_-id
GET /devices/{id}
Get Device Details
Retrieve detailed information about a specific device including its active sessions
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}'
Parameters
id
path
string
true
Device identifier
Example responses
200 Response
{
"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"
}
]
}
}
404 Response
{
"success": false,
"error": "Device not found"
}
500 Response
{
"success": false,
"error": "Failed to retrieve device details"
}
Responses
Response Schema
Status Code 200
» success
boolean
false
none
Operation success status
» device
object
false
none
Device information
»» id
string
false
none
Unique device identifier
»» deviceName
string
false
none
Human-readable device name
»» deviceType
string
false
none
Device type (DESKTOP, MOBILE, TABLET)
»» os
string
false
none
Operating system
»» browser
string
false
none
Web browser
»» ipAddress
string
false
none
IP address of the device
»» country
string
false
none
Country location
»» city
string
false
none
City location
»» isTrusted
boolean
false
none
Whether device is trusted
»» trustLevel
string
false
none
Trust level (HIGH, MEDIUM, LOW, UNKNOWN)
»» lastSeen
string(date-time)
false
none
Last time device was active
»» createdAt
string(date-time)
false
none
When device was first registered
»» trustExpiresAt
string(date-time)
false
none
When device trust expires
»» userAgent
string
false
none
User agent string
»» deviceFingerprint
string
false
none
Device fingerprint hash
»» sessions
[object]
false
none
Array of active sessions
»»» id
string
false
none
Session identifier
»»» ipAddress
string
false
none
IP address used in session
»»» location
string
false
none
Session location
»»» startedAt
string(date-time)
false
none
When session started
»»» lastActivity
string(date-time)
false
none
Last activity in session
»»» expiresAt
string(date-time)
false
none
When session expires
»»» loginMethod
string
false
none
Authentication method used
Status Code 404
» success
boolean
false
none
Operation success status
» error
string
false
none
Error message
Status Code 500
» success
boolean
false
none
Operation success status
» error
string
false
none
Error message
To perform this operation, you must be authenticated by means of one of the following methods: BearerAuth
Last updated
Was this helpful?