List all Messages
GET/api/messages
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| from_user_id | Number | optional Optional filter by sender |
| to_user_id | Number | optional Optional filter by recipient |
| status | String | optional Optional filter by status (read, unread) |
curl -X GET "https://yoursite.com/api/messages" \
-H "authtoken: YOUR_API_TOKEN" Success-Response:
[
{
"id": "1",
"subject": "Hello",
"message": "Content",
"from_user_id": "1",
"to_user_id": "2",
"status": "unread"
}
]