Skip to content

Register

POST
/api/auth/register
curl --request POST \
--url http://localhost:8080/api/auth/register \
--header 'Content-Type: application/json' \
--data '{ "email": "hello@example.com", "password": "example", "name": "example" }'
Media typeapplication/json
RegisterRequest
object
email
required
Email
string format: email
password
required
Password
string
name
required
Name
string
Examplegenerated
{
"email": "hello@example.com",
"password": "example",
"name": "example"
}

Successful Response

Media typeapplication/json
TokenResponse
object
access_token
required
Access Token
string
token_type
required
Token Type
string
user
required
User
object
Examplegenerated
{
"access_token": "example",
"token_type": "example",
"user": {}
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}