TOTP
API for creating and deleting Time-based One-Time Password or TOTP.
Create a new TOTP
Headers
Name
Value
Required
Name
Type
Description
Required
Request samples
const response = await fetch('/v1/auth/ratls/totp', {
method: 'PUT',
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"created": 0,
"expiration": 0,
"policy": "text",
"uuid": "text"
}),
});
const data = await response.json();curl -L \
-X PUT \
-H 'Content-Type: application/json' \
'/v1/auth/ratls/totp' \
-d '{"created":0,"expiration":0,"policy":"text","uuid":"text"}'import requests
response = requests.put(
"/v1/auth/ratls/totp",
headers={"Content-Type":"application/json"},
json={"created":0,"expiration":0,"policy":"text","uuid":"text"}
)
data = response.json()Deleting an existing TOTP
Name
Value
Required
Name
Type
Description
Required
Request samples
Last updated