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.
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
List Sessions
Your active sessions (one per sign-in), most recently used first, with the device's user agent and a coarse network. `current` marks this browser's (from the refresh cookie).
Logout
Revoke the refresh cookie's session (every token from that login) and clear it. Always succeeds, even without a cookie, so clients can call it unconditionally.