Skip to main content
POST
Send a phone verification code

Authorizations

Authorization
string
header
required

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

application/json
phone
string
required

Iranian mobile number in the form 09XXXXXXXXX.

Pattern: ^09\d{9}$
Example:

"09120000000"

nationalCode
string

10 to 12 digits.

Pattern: ^\d{10,12}$

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.

requiresOtp
boolean