curl --request GET \
--url https://api.example.com/api/inbox \
--header 'Authorization: <authorization>'{
"200": {},
"401": {},
"messages": [
{
"id": 123,
"sender": "<string>",
"recipient": "<string>",
"message": "<string>",
"created_at": "<string>",
"avatar_url": "<string>"
}
]
}Retrieve all inbox messages for the authenticated user
curl --request GET \
--url https://api.example.com/api/inbox \
--header 'Authorization: <authorization>'{
"200": {},
"401": {},
"messages": [
{
"id": 123,
"sender": "<string>",
"recipient": "<string>",
"message": "<string>",
"created_at": "<string>",
"avatar_url": "<string>"
}
]
}Show Message Object
{
"messages": [
{
"id": 1,
"sender": "jane_smith",
"recipient": "john_doe",
"message": "Hello, how are you?",
"created_at": "2026-03-03T10:30:00Z",
"avatar_url": "https://example.com/avatars/jane.jpg"
},
{
"id": 2,
"sender": "john_doe",
"recipient": "jane_smith",
"message": "I'm doing great, thanks!",
"created_at": "2026-03-03T10:25:00Z",
"avatar_url": "https://i.pinimg.com/736x/20/da/fa/20dafa83d38f2277472e132bf1f21c22.jpg"
}
]
}
{
"error": "invalid token , please re-login"
}
{
"error": "unauthorized"
}
curl -X GET https://api.example.com/api/inbox \
-H "Authorization: your-auth-token"