Reference
create_account
Create a new credentials account (login/password or email/password).
create_account
Create a new account inside the current application.
- Type:
2 - Requires initialization: yes
- Requires authorization: no
Request and response example
create_account
Create a new app user.
Request fields
| Field | Type | Required | Meaning |
|---|---|---|---|
id | uint64 | yes | Request id. |
login | string | yes | Login or email (depends on credentials_type). |
password | string | yes | Plain password (hashing is server-side). |
comment | string | null | no | Optional internal note. |
license | string | null | no | Optional license key to activate and bind during creation. |
credentials_type | int | yes | 0 = login/password, 1 = email/password. |
Response fields
| Field | Type | Meaning |
|---|---|---|
id | uint64 | Your request id. |
retry_after | int64 | Seconds until next allowed attempt (only on rate limit). |
status | int | Result status. |
Common statuses
| Status | Meaning |
|---|---|
1 | ok |
5 | rate_limited |
200 | account_already_exists |
201 | account_email_invalid |
204 | account_password_too_short |
205 | account_password_too_long |
206 | account_login_too_short |
207 | account_login_too_long |
303 | sessions_quota_exceeded |
6 | internal_server_error |