Mailings list
- bot_id
- Bot ID in BotManager (UUID) - the "ID" line in the bot card in @BotManRobot, "My bots" section
Query parameters
| Parameter | Required | What it is |
|---|---|---|
| limit | no, 30 | How many mailings to return |
| status | no | Only with this status: 1 - scheduled, 2 - running, 3 - finished, 4 - stopped, 5 - paused |
bash
curl "https://api.botstat.io/get_letters/BOT_UUID?limit=10&status=3"
Response
List of mailings (without the ok/result wrapper):
json
[
{
"task_id": "7c0e…",
"date_at": "2026-11-30T12:00:00",
"bot_username": "examplebot",
"text_message": "<b>Hi!</b> A new feature is live in the bot",
"total_users": 120000,
"success_users": 98000,
"error_users": 22000,
"total_groups": 300,
"success_groups": 250,
"error_groups": 50,
"status": 3,
"end_at": "2026-11-30T12:40:00"
}
]
| Field | What it is |
|---|---|
| task_id | Mailing ID |
| date_at / end_at | Mailing start and end |
| text_message | Post text |
| total_users, success_users, error_users | Users: total, delivered, not delivered |
| total_groups, success_groups, error_groups | Groups: total, delivered, not delivered |
| status | 1 - scheduled, 2 - running, 3 - finished, 4 - stopped, 5 - paused |
Was this article helpful?
Didn't find the answer? Contact support