Auth

Login

Log in with email and password.

API key access

This route has its own authentication (or none); an API key is not used here.
POST/api/v1/auth/login
emailstring
Lengthlength <= 320
passwordstring
Lengthlength <= 256

Response Body

curl -X POST "http://localhost:8000/api/v1/auth/login" \  -H "Content-Type: application/json" \  -d '{    "email": "string",    "password": "string"  }'
{
  "access_token": "string",
  "token_type": "bearer",
  "expires_in": 0,
  "user": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "email": "string",
    "name": "string",
    "created_at": "2019-08-24T14:15:22Z"
  }
}
Empty
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
Empty