Remove TOTP device
Removes a totp device
POST
/{apiBasePath}/totp/device/removeAuthorization
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.
Request body
application/jsondeviceNamestringResponses
200Success report
One of:
object
statusstatusOKSuccess status indicator
Allowed:
OKdidDeviceExistbooleangeneralErrorResponse
statusstringError status code
Allowed:
GENERAL_ERRORmessagestringError message
404Resource not found error
string500Internal server error
stringTry it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST "/auth/totp/device/remove" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"deviceName": "asdf123"
}'const response = await fetch("/auth/totp/device/remove", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"deviceName": "asdf123"
})
});import requests
response = requests.post(
"/auth/totp/device/remove",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json={
"deviceName": "asdf123"
},
)Response
{
"status": "OK",
"didDeviceExist": true
}"Not Found""Internal Error"