Skip to main content
POST
/
api
/
register
Register new user
curl --request POST \
  --url http://localhost:8000/api/register/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "username": "<string>",
  "password": "<string>",
  "email": "jsmith@example.com"
}
'
{
  "id": 123,
  "username": "<string>",
  "email": "<string>"
}

Create User

This endpoint allows you to register a new user in the system.

Request Body

The request body should contain the user’s details in JSON format. This includes a username, password, and email address. The fields are required, and the password must be securely formatted.
{
  "username": "user123",
  "password": "securepassword",
  "email": "user123@example.com"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
username
string
required
password
string<password>
required
email
string<email>
required

Response

User created successfully

id
integer
username
string
email
string