Last updated 1 year ago
DELETE /auth/otp/methods/totp HTTP/1.1 Host: Authorization: Bearer JWT x-otp: text Accept: */*
User secret deleted successfully
{ "email": "name@gmail.com", "hasValidatedEmail": true, "emailVerificationDate": "2025-06-09T05:45:44.994Z", "hasValidatedSecret": true, "secretVerificationDate": "2025-06-09T05:45:44.994Z", "phoneNumber": "text", "hasValidatedPhone": true, "phoneVerificationDate": "2025-06-09T05:45:44.994Z", "lastLoggedDate": "2025-06-09T05:45:44.994Z", "status": "ACTIVE", "lastLoggedDevice": "text", "lastPasswordChangeDate": "2025-06-09T05:45:44.994Z" }
EMAIL
SMS
GET /auth/otp/code?method=EMAIL HTTP/1.1 Host: Authorization: Bearer JWT Accept: */*
OTP requested successfully
{ "validUntil": "2025-06-09T05:45:44.994Z", "channel": "EMAIL", "validated": true }
POST /auth/login HTTP/1.1 Host: Authorization: Bearer JWT Content-Type: application/json Accept: */* Content-Length: 44 { "email": "name@gmail.com", "password": "text" }
Login successful
{ "idToken": "text", "refreshToken": "text" }
POST /auth/login/refresh HTTP/1.1 Host: Authorization: Bearer JWT Content-Type: application/json Accept: */* Content-Length: 23 { "refreshToken": "text" }
ID Token refreshed successfully
{ "idToken": "text" }
AC
AD
AE
AF
AG
AI
AL
AM
AO
AR
AS
AT
AU
AW
AX
AZ
BA
BB
BD
BE
BF
BG
BH
BI
BJ
BL
BM
BN
BO
BQ
BR
BS
BT
BW
BY
BZ
CA
CC
CD
CF
CG
CH
CI
CK
CL
CM
CN
CO
CR
CU
CV
CW
CX
CY
CZ
DE
DJ
DK
DM
DO
DZ
EC
EE
EG
EH
ER
ES
ET
FI
FJ
FK
FM
FO
FR
GA
GB
GD
GE
GF
GG
GH
GI
GL
GM
GN
GP
GQ
GR
GT
GU
GW
GY
HK
HN
HR
HT
HU
ID
IE
IL
IM
IN
IO
IQ
IR
IS
IT
JE
JM
JO
JP
KE
KG
KH
KI
KM
KN
KP
KR
KW
KY
KZ
LA
LB
LC
LI
LK
LR
LS
LT
LU
LV
LY
MA
MC
MD
ME
MF
MG
MH
MK
ML
MM
MN
MO
MP
MQ
MR
MS
MT
MU
MV
MW
MX
MY
MZ
NA
NC
NE
NF
NG
NI
NL
NO
NP
NR
NU
NZ
OM
PA
PE
PF
PG
PH
PK
PL
PM
PR
PS
PT
PW
PY
QA
RE
RO
RS
RU
RW
SA
SB
SC
SD
SE
SG
SH
SI
SJ
SK
SL
SM
SN
SO
SR
SS
ST
SV
SX
SY
SZ
TA
TC
TD
TG
TH
TJ
TK
TL
TM
TN
TO
TR
TT
TV
TW
TZ
UA
UG
US
UY
UZ
VA
VC
VE
VG
VI
VN
VU
WF
WS
XK
YE
YT
ZA
ZM
ZW
POST /auth/otp/methods/sms HTTP/1.1 Host: Authorization: Bearer JWT Content-Type: application/json Accept: */* Content-Length: 31 { "phone": "text", "country": "AC" }
Number added to the user successfully. A SMS message will be sent to the user, and they will need to validate it to use the phone number as MFA.
POST /auth/otp/methods/totp HTTP/1.1 Host: Authorization: Bearer JWT Content-Type: application/json Accept: */* Content-Length: 2 {}
Secret created successfully
Channel to verify OTP. If a channel is not configured or is already verified, the response will be an error.
APP
POST /auth/otp/code HTTP/1.1 Host: Authorization: Bearer JWT x-otp: text Content-Type: application/json Accept: */* Content-Length: 17 { "channel": "SMS" }
Method correctly verified