Enable TOTP
curl --request POST \
--url https://aropay.aro.media/api/v1/me/totp/enable \
--header 'Content-Type: application/json' \
--cookie aropay_session= \
--data '
{
"code": "123456",
"password": "…"
}
'const options = {
method: 'POST',
headers: {cookie: 'aropay_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({code: '123456', password: '…'})
};
fetch('https://aropay.aro.media/api/v1/me/totp/enable', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aropay.aro.media/api/v1/me/totp/enable"
payload = {
"code": "123456",
"password": "…"
}
headers = {
"cookie": "aropay_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"data": {
"totpEnabled": true
}
}Profile & security
Enable TOTP
Session-only, with the password. Confirm enrollment with a live 6-digit code from the authenticator and the account password (a session alone cannot enroll an authenticator). Two-factor enforcement starts when this succeeds; every other session is signed out (token version bump) and the current session cookie is refreshed. API keys keep working.
POST
/
me
/
totp
/
enable
Enable TOTP
curl --request POST \
--url https://aropay.aro.media/api/v1/me/totp/enable \
--header 'Content-Type: application/json' \
--cookie aropay_session= \
--data '
{
"code": "123456",
"password": "…"
}
'const options = {
method: 'POST',
headers: {cookie: 'aropay_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({code: '123456', password: '…'})
};
fetch('https://aropay.aro.media/api/v1/me/totp/enable', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aropay.aro.media/api/v1/me/totp/enable"
payload = {
"code": "123456",
"password": "…"
}
headers = {
"cookie": "aropay_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"data": {
"totpEnabled": true
}
}Authorizations
Browser session cookie minted by POST /auth/login (or passkey
login). httpOnly, SameSite=Lax, 24 h TTL. Endpoints marked
Session-only accept only this credential and return
403 session_required for API keys.
Body
application/json