/auth/api/v1/users/{user_id}/devices
Returns a list of paired devices for a user
user_id
string
required
User id
Successful response
{
"count": 1,
"items": [
{
"id": "mobile-sha256-sdHe7CJqHwCY4WePe-BgYNGF8sd6fe8ier2Buemz4xM=",
"os": "iOS",
"name": "iPhone 6",
"activated": "2023-06-07T17:32:28Z",
"updated": "2023-06-07T17:32:28Z",
"lastUsed": "2023-06-07T17:32:28Z"
}
]
}
/auth/api/v1/users/current/devices
Returns a list of paired devices for current user
oauth
Required Scopes:
user
Returns a list of paired devices for current user
All Scopes
admin
· Admin scope - used for built-in SSH PrivX admin accountservice
· Microservice scope - used for communication between SSH PrivX microservicesuser
· Normal usersusersManage
· Clients with users-manage scopeusersView
· Clients with users-view scopeSuccessful response
{
"count": 1,
"items": [
{
"id": "mobile-sha256-sdHe7CJqHwCY4WePe-BgYNGF8sd6fe8ier2Buemz4xM=",
"os": "iOS",
"name": "iPhone 6",
"activated": "2023-06-07T17:32:28Z",
"updated": "2023-06-07T17:32:28Z",
"lastUsed": "2023-06-07T17:32:28Z"
}
]
}
/auth/api/v1/users/{user_id}/devices/{device_id}
Unpair a device from a user's device list
user_id
string
required
User id
device_id
string
required
Device id
Successful response
Empty response
/auth/api/v1/users/current/devices/{device_id}
Unpair a device from the current user's device list
device_id
string
required
Device id
Successful response
Empty response
Was this page helpful?