Skip to content

Get trusted devices

GET
/api/mfa/trusted-devices
curl --request GET \
--url http://localhost:3001/api/mfa/trusted-devices \
--header 'Authorization: <Authorization>'

Retrieve list of all trusted devices for the authenticated user

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
}