Send a phone verification code
Starts verifying a phone number, together with your national code. Confirm it with POST /v1/save-info within 2 minutes. The phone number must be registered to the national code you send.
-
First verification: send
phoneandnationalCode. A code is sent by SMS. -
Changing your phone: first send your current
phonewithoutnationalCodeand confirm that code. That opens a 5-minute window in which you send the newphonewithnationalCode. -
Changing only your national code: send your current
phonewith the newnationalCode. No code is sent (requiresOtp: false) and the change is saved immediately.
This endpoint is rate limited. Too many requests return 429.
Authorizations
Send your API token as Authorization: Bearer <api-token>. Tokens expire (30 days by default) and stop working when you change or reset your password.
Body
Response
requiresOtp: true means a code was sent; confirm it with POST /v1/save-info. requiresOtp: false means the national code was updated and nothing else is needed.
