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.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Vedant-Jayesh-Oza/otas/llms.txt
Use this file to discover all available pages before exploring further.
Request
Method:POSTURL:
http://localhost:8000/api/user/v1/create/Authentication: None
Body parameters
The user’s first name.
The user’s last name.
A unique email address for the account. Must contain
@. Stored in lowercase.Account password. Minimum 6 characters. Stored hashed — never returned in responses.
Optional middle name.
Response
1 on success, 0 on failure.Human-readable result code.
user_created on success.Example
Error responses
status_description | HTTP status | Cause |
|---|---|---|
missing_fields: <names> | 400 | One or more required fields are absent from the request body. |
invalid_email_format | 400 | The email value does not contain @. |
password_too_short | 400 | password is fewer than 6 characters. |
user_already_exists | 400 | An account with the supplied email already exists. |
server_error: <detail> | 400 | Unexpected server-side error. |