Skip to content
getgeolens.com

Register

POST
/auth/register/
curl --request POST \
--url https://example.com/api/auth/register/ \
--header 'Content-Type: application/json' \
--data '{ "username": "jdoe", "password": "securePass123", "email": "[email protected]" }'

Register a new user. Account requires admin approval before login.

Media type application/json
UserCreate
object
username
required
Username

Unique login name

string
>= 3 characters <= 150 characters
Example
jdoe
password
required
Password

Plaintext password (min 8 chars)

string
>= 8 characters <= 256 characters
Example
securePass123
email
Any of:
string format: email
<= 255 characters

Successful Response

Media type application/json
RegisterResponse
object
message
required
Message
string
Example generated
{
"message": "example"
}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}