Log in with a one-time code
Exchanges a login code from POST /v1/login/send-otp-token for an API token that’s valid for 30 days. Use the same email or phone the code was sent to. If two-factor authentication is enabled on your account, send the second factor in the same request.
This endpoint is rate limited. Too many requests return 429.
Body
Send exactly one of email or phone.
The 6-digit login code.
6Iranian mobile number in the form 09XXXXXXXXX.
^09\d{9}$"09120000000"
Which second factor you're sending. Required when two-factor authentication is enabled on the account.
totp, recoveryCode 6-digit code from your authenticator app. Required when twoFAType is totp.
6One of your 10-character recovery codes. Required when twoFAType is recoveryCode.
10