get__devices

GET /devices

Get User Devices

Retrieve all devices associated with the authenticated user

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', 'GET', null);

Code Samples

# You can also use wget
curl -X GET https://backend.flashback.tech/devices \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

Example responses

200 Response

{
  "success": true,
  "devices": [
    {
      "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"
    }
  ]
}

500 Response

{
  "success": false,
  "error": "Failed to retrieve devices"
}

Responses

Status
Meaning
Description
Schema

200

List of user devices

Inline

500

Server error

Inline

Response Schema

Status Code 200

Name
Type
Required
Restrictions
Description

» success

boolean

false

none

Operation success status

» devices

[object]

false

none

Array of user devices

»» 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

Status Code 500

Name
Type
Required
Restrictions
Description

» 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?