Logout (public)

POST /auth/logout

Logout will invalidate the Token

Headers

Responses

  • 200 application/json

    Return a message to confirm the logout

    Hide response attribute Show response attribute object
  • 401 application/json

    Unauthorized.

    Hide response attribute Show response attribute object
POST /auth/logout
curl \
 -X POST https://domain.tld/api/v2/auth/logout \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "X-Popsell-Domain: example.com"
Response examples (200)
{
  "message": "Successfully logged out"
}
Response examples (401)
{
  "message": "Unauthorized."
}