Skip to content

Login

POST
/api/auth/login
curl --request POST \
--url http://localhost:8080/api/auth/login \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data grant_type=example \
--data username=example \
--data password=example \
--data scope= \
--data client_id=example \
--data client_secret=example
Media typeapplication/x-www-form-urlencoded
Body_login_api_auth_login_post
object
grant_type
Any of:
string
/password/
username
required
Username
string
password
required
Password
string
scope
Scope
string
""
client_id
Any of:
string
client_secret
Any of:
string

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"
}
]
}