Get trusted devices
GET
/api/mfa/trusted-devices
const url = 'http://localhost:3001/api/mfa/trusted-devices';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3001/api/mfa/trusted-devices \ --header 'Authorization: <Authorization>'Retrieve list of all trusted devices for the authenticated user
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
object
devices
Array<object>
object
created_at
string
device_id
string
device_name
string
device_type
string
ip_address
string
last_used_at
string
trusted_until
string
success
boolean
total
integer
Examplegenerated
{ "devices": [ { "created_at": "example", "device_id": "example", "device_name": "example", "device_type": "example", "ip_address": "example", "last_used_at": "example", "trusted_until": "example" } ], "success": true, "total": 1}Unauthorized
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Internal Server Error
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}