Skip to Content

POST /api/v1/auth/logout

Logout the current user. Currently handles client-side token removal — the JWT should be discarded by the client after this call.

Authentication: Required

Cache: None

Sample Request

curl -X POST -H "Authorization: Bearer YOUR_JWT_TOKEN" \ https://api.grails.app/api/v1/auth/logout

Response

// 200 OK { "success": true, "data": { "message": "Logged out successfully" }, "meta": { "timestamp": "2026-04-07T12:00:00.000Z", "version": "1.0.0" } }

Error Responses

StatusCodeDescription
401UNAUTHORIZEDMissing or invalid token
Last updated on