Skip to main content
POST
Create an account

Body

application/json
email
string<email>
required
password
string
required
Maximum string length: 250
fullname
string
required

Persian letters and spaces only.

Maximum string length: 100
Pattern: ^[\u0600-\u06FF\s]+$
nationalCode
string
required

10 to 12 digits.

Pattern: ^\d{10,12}$
phone
string
required

Iranian mobile number in the form 09XXXXXXXXX.

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

"09120000000"

Response

An account with this email address and password already exists; you're logged in.

api_token
string

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

fullname
string
avatar
string<uri>