Skip to main content
POST
Change your password with a 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

Send exactly one of email or phone.

token
string
required

The code you received.

newPassword
string
required
Maximum string length: 250
email
string<email>
phone
string

Iranian mobile number in the form 09XXXXXXXXX.

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

"09120000000"

Response

The password was changed.

api_token
string

API token to send as Authorization: Bearer <api-token>.