dokkaiv0.1.0
API Reference

Log out

Invalidate the session (bearer token) used for this request.

POST/auth/logoutany

Revokes the session behind the bearer token on this request. Requires any authenticated role.

Request

cURL
bash
curl -X POST localhost:8000/auth/logout \
  -H "Authorization: Bearer $TOKEN"

Responses

200Logged out
json
{ "message": "logged out" }
401Missing or invalid token
json
{ "detail": "missing bearer token" }