If you have MFA enabled on your account, the Login endpoint will ask you to complete the authentication with an OTP challenge. You can use this endpoint to complete the MFA challenge and get a usable access token.
Request
Header Params
Accept
stringÂ
required
Example:
application/json
Content-Type
stringÂ
required
Example:
application/json
Body Params application/x-www-form-urlencoded
mfa_token
stringÂ
required
The token you have received in the mfa_required error in the Login endpoint.
otp
stringÂ
required
A valid OTP code
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.servebolt.io/v1/auth/mfa/otp' \
--header'Accept: application/json' \
--data-urlencode'mfa_token=' \
--data-urlencode'otp='