/api/qmail/db/notifications/list
GET
Return recent received-tell notifications (incoming-mail signals from the beacon), with the sender's display name resolved.
Description
Notifications are the recipient-side counterpart to pending tells. They appear when the beacon delivers an incoming-mail signal addressed to this account, and persist until the user dismisses them or the corresponding email is downloaded.
Parameters
| Param | Type | Required | Description |
limit | int | No | Default 50, clamped 1..200. |
Response
{
"command": "notifications-list",
"success": true,
"count": 1,
"notifications": [
{
"file_guid": "0c4f8e2a91b34d57a76e1d2c3b4a5968",
"sender_sn": 9001,
"sender_name": "Alex Chen",
"tell_type": "new_email",
"total_file_size": 14872,
"timestamp": 1714083600,
"downloaded": false
}
]
}
| Field | Type | Description |
tell_type | string | new_email, read_receipt, or deleted. |
downloaded | bool | True once the recipient has downloaded the underlying email. |
sender_name | string | "First Last" if the sender is in contacts; otherwise SN#<serial>. |
Errors
| HTTP | Message |
| 500 | Failed to query notifications |
Example
curl "http://localhost:8081/api/qmail/db/notifications/list?limit=20"