Logout
Logs out the user by invalidating their current access and refresh tokens.
Endpoint
Section titled “Endpoint”POST
/user/v1/logoutRequest Body
Section titled “Request Body”curl -X POST https://api.juspredict.com/user/v1/logout \-H 'Authorization: Bearer YOUR_TOKEN' \-H 'Content-Type: application/json' \-d '{}'{}Response Body
Section titled “Response Body”{"status": {"type": "SUCCESS","details": []}}{"status": {"type": "ERROR","details": [ { "code": "401", "message": "Unauthorized access token." }]}}Response Fields
Section titled “Response Fields”| Field | Type | Description |
|---|---|---|
status | Status | Operation status. |