GET /api/v1/auth/logout

Logout the currently authenticated user by invalidating their refresh token. Requires valid JWT access token in Authorization header.

Responses

  • 200 application/json

    User logged out successfully

  • 400 application/json

    Default bad request error 400 response

    Hide response attributes Show response attributes object
    • message string Required

      Response message

    • error string Required
    • statusCode number Required
  • 401 application/json

    Invalid or missing JWT token

  • 500 application/json

    Error during logout process

GET /api/v1/auth/logout
curl \
 --request GET 'https://api.echoplain.social/api/v1/auth/logout'
Response examples (200)
{
  "message": "Logged out successfully",
  "success": true
}
Response examples (400)
{
  "message": "string",
  "error": "string",
  "statusCode": 42.0
}
Response examples (401)
{
  "error": "Unauthorized",
  "message": "Unauthorized",
  "statusCode": 401
}
Response examples (500)
{
  "error": "Internal Server Error",
  "message": "Internal server error",
  "statusCode": 500
}