Skip to main content

Signup with PWD

Sign up using with a Password (PWD).

HTTP Request

POST/api/users/auth/pwd/signup

Authorization

Authorization

  • Required: No
  • Permission: None
  • Authentication: None

Request Body

FieldTypeRequiredDescription
usernameStringYesUser's username
password1StringYesUser's password
password2StringYesConfirm user's password

Example Requests

1import requests
2
3api = requests.Session()
4response = api.post(
5  'http://www.example.com/api/users/auth/pwd/signup/',
6  json={
7      "username": "johndoe",
8      "password1": "password123",
9      "password2": "password123"
10  }
11)

Status Codes

CodeDescription
200User registered successfully
400Invalid input
400Required fields missing

Response Fields

FieldTypeDescription
NoneNoneNo content

Notes

  • The password1 and password2 fields must match.
  • The username must be unique and not already taken by another user.
  • The response will be empty on success, indicating that the user account has been created successfully.