API Reference

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
emailstring · emailRequired
passwordstringRequired
Responses
200

Login successful

application/json
post
/auth/login
post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
refreshTokenstringRequired
Responses
200

ID Token refreshed successfully

application/json
post
/auth/login/refresh
post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
phonestring · min: 1Required
countrystring · enumRequiredPossible values:
Responses
200

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.

application/json
post
/auth/otp/methods/sms
post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
objectOptional
Responses
200

Secret created successfully

application/json
post
/auth/otp/methods/totp
delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Header parameters
x-otpstringRequired
Responses
200

User secret deleted successfully

application/json
delete
/auth/otp/methods/totp
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
methodstring · enumRequiredPossible values:
Responses
get
/auth/otp/code
post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Header parameters
x-otpany ofRequired
stringOptional
or
stringOptional
Body
channelstring · enumRequired

Channel to verify OTP. If a channel is not configured or is already verified, the response will be an error.

Possible values:
Responses
200

Method correctly verified

application/json
post
/auth/otp/code

Last updated