Skip to content

Login

POST
/api/auth/login

Login with email and password

Request Body required

Login request.

Uses LaxEmail instead of EmailStr so that the seeded admin account (admin@socmon.local) is accepted on the LAN. email_validator >= 2.x refuses .local addresses (RFC 2606 reserved) when check_deliverability=True.

object
email
required
string format: email
password
required
string
>= 8 characters

Responses

200

Successful Response

JWT token response

object
access_token
required
string
expires_in
required
integer
refresh_token
required
string
token_type
string
default: bearer
user
required

User response schema

object
created_at
required
string format: date-time
email
required
string
full_name
required
Any of:
string
id
required
string format: uuid
is_active
required
boolean
is_superuser
boolean
is_verified
required
boolean
last_login
required
Any of:
string format: date-time
organization_id
Any of:
string format: uuid
timezone
Any of:
string
username
required
string

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string