Dashboard Logout
Revoke the current access token and log out.
Endpoint
INFO
POST /api/v1/dashboard/logout
Headers
| Header | Value | Required |
|---|---|---|
Accept | application/json | Yes |
Authorization | Bearer {token} | Yes |
Example Request
bash
curl -X POST https://api.daakey.com/api/v1/dashboard/logout \
-H "Accept: application/json" \
-H "Authorization: Bearer {token}"Response
Success (200)
json
{
"success": true,
"message": "Logged out successfully",
"data": null,
"request_id": "uuid",
"timestamp": "2024-01-01T00:00:00.000Z"
}Notes
- The token is immediately invalidated
- All sessions for the user remain active (only current token is revoked)