Skip to main content
This endpoint registers a new OTAS user. Provide the required name and credential fields in the JSON request body. On success the server returns the persisted user object together with a JWT that can be used immediately for authenticated requests. No prior authentication is needed to call this endpoint.

Request

Method: POST
URL: http://localhost:8000/api/user/v1/create/
Authentication: None

Body parameters

string
required
The user’s first name.
string
required
The user’s last name.
string
required
A unique email address for the account. Must contain @. Stored in lowercase.
string
required
Account password. Minimum 6 characters. Stored hashed — never returned in responses.
string
Optional middle name.

Response

integer
required
1 on success, 0 on failure.
string
required
Human-readable result code. user_created on success.
object

Example

Error responses