Endpoint
Headers
User authentication token received from login
Response
Total number of messages in the user’s inbox (sent + received)
Error message if the request failed
Status codes
- 200: Count retrieved successfully
- 401: Unauthorized (invalid or missing token)
Example request
Example responses
Notes
- Count includes both messages sent by the user and received by the user
- Useful for displaying notification badges in the UI
- Count is updated in real-time as messages are sent or deleted
- This is a lightweight endpoint - use it for polling or badge updates