Confirm enrollment with a current code.
curl --request POST \
--url https://api.symbiosis.markets/auth/totp/enable \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"code": "<string>"
}
'import requests
url = "https://api.symbiosis.markets/auth/totp/enable"
payload = { "code": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({code: '<string>'})
};
fetch('https://api.symbiosis.markets/auth/totp/enable', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"recovery_codes": [
"<string>"
]
}Auth
Confirm enrollment with a current code.
The response is the only time the recovery codes are returned.
POST
/
auth
/
totp
/
enable
Confirm enrollment with a current code.
curl --request POST \
--url https://api.symbiosis.markets/auth/totp/enable \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"code": "<string>"
}
'import requests
url = "https://api.symbiosis.markets/auth/totp/enable"
payload = { "code": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({code: '<string>'})
};
fetch('https://api.symbiosis.markets/auth/totp/enable', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"recovery_codes": [
"<string>"
]
}