Name: Logout API
Description: This API endpoint allows users to log out by invalidating their session or token.
Method: Delete
Endpoint URL: /v1/logout
Authentication Required: Yes
The user must be authenticated (i.e., must include a valid token) to successfully log out.
Delete/v1/logout| Header Name | Description | Required | Example |
|---|---|---|---|
Authorization | Bearer token used to authenticate the user | Yes | Bearer |
Content-Type | The content type of the request | No | application/json |
Note: The token should be passed in the Authorization header as a Bearer token.
No request body is necessary for this endpoint.
200 OKIf the logout is successful, the response confirms that the user has been logged out.
OK
The response is of type object.