Logout
Logout
POST
/api/portal/v1/auth/logout
Description
Invalidate the session token used for the request. After a successful logout, the token can no longer be used to authenticate further requests.
This endpoint only invalidates session tokens. API tokens are managed through the API Tokens endpoints and are not affected by this request.
Authentication
This endpoint requires a Bearer token in the Authorization header.
- Authorization:
Bearer <token>. A valid Portal API session token.
Response
On success, the endpoint returns a 204 No Content response with an empty body.
Error Responses
- 401 Unauthorized: The
Authorizationheader is missing or the token is not valid.
Example Request POST https://<your-host>:9909/api/portal/v1/auth/logout Authorization: Bearer <token> Example Response Status Code: 204 No Content