Skip to main content
POST
/
api
/
v1
/
auth
/
login
curl -X POST http://localhost:8000/api/v1/auth/login \
  -H "Content-Type: application/json" \
  -d '{
    "email": "dev@acme-corp.com",
    "password": "password123"
  }'
{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "token_type": "bearer",
  "user_id": "user-1",
  "email": "dev@acme-corp.com",
  "display_name": "Carlos Dev"
}
email
string
required
Email registrado.
password
string
required
Contraseña de la cuenta.
curl -X POST http://localhost:8000/api/v1/auth/login \
  -H "Content-Type: application/json" \
  -d '{
    "email": "dev@acme-corp.com",
    "password": "password123"
  }'
{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "token_type": "bearer",
  "user_id": "user-1",
  "email": "dev@acme-corp.com",
  "display_name": "Carlos Dev"
}
El token expira en 24 horas (configurable con ACCESS_TOKEN_EXPIRE_MINUTES). Usa el token en el header Authorization: Bearer {token} para endpoints protegidos.