Logout API
Logs out the currently authenticated user and terminates their active session. This API call invalidates the user's session by revoking the access token. Once successful, the user will be logged out and must re-authenticate to regain access.
🟢Success Response - 200 OK
| Field | Type | Description | Example |
|---|---|---|---|
| status | string | Status of the API call | "success" |
| code | string | Response code indicating successful logout | "s-101" |
| message | string | Description message confirming logout | "Successfully Logged Out" |
🔴 Error Response - 400 Resource Not Found
| Field | Type | Description | Example |
|---|---|---|---|
| status | string | Status of the API call Default Error | "error" |
| code | string | Error code indicating the failure | "e-101" |
| message | string | Specific message explaining why the requested resource was not found | "Error Message" |
delete
/authentication/v1/user/session