List TOTP devices
List the TOTP devices of the current user
GET
/{apiBasePath}/totp/device/listAuthorization
AuthorizationBearer token · headerrequiredReturned as the "st-access-token" header from sign-in and refresh endpoints and present on requests that update the access token payload
or
sAccessTokenAPI key · cookierequiredThis is an HTTPOnly cookie, set by sign-in and refresh endpoints and present on requests that update the access token
Path parameters
apiBasePathstringrequiredIts value depends on the apiBasePath set by the user
Header parameters
ridstringThe TOTP recipe ID
anti-csrftokenThis will only be here if enabled by the user.
Responses
200The list of the TOTP devices of the session user
One of:
object
statusstatusOKSuccess status indicator
Allowed:
OKdevicesobject[]Show propertiesHide properties
Array of
objectnamestringperiodnumberskewnumberverifiedbooleangeneralErrorResponse
statusstringError status code
Allowed:
GENERAL_ERRORmessagestringError message
404Resource not found error
string500Internal server error
stringTry it
Server
Authorization
Parameters
Request
curl -X GET "/auth/totp/device/list" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("/auth/totp/device/list", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});import requests
response = requests.get(
"/auth/totp/device/list",
headers={
"Authorization": "Bearer YOUR_TOKEN"
},
)Response
{
"status": "OK",
"devices": [
{
"name": "asdf123",
"period": 30,
"skew": 30,
"verified": false
}
]
}"Not Found""Internal Error"