Storywrangler
Navigation

Login

post /auth/login

Exchange username + password for the user's API key.

Request

username string required
password string required

Response

id integer
username string
email string
role string
api_key string
is_active boolean
curl -X POST http://localhost:8000/auth/login \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -d '{}'