API reference
Base URL https://api.safebot.ir/v1. All requests need an Authorization: Bearer header.
Endpoints
| Method | Path | Description |
|---|---|---|
| POST | /messages | Queue a message for delivery |
| GET | /messages/{id} | Delivery state of one message |
| GET | /channels | List channels of the project |
| DELETE | /messages/{id} | Cancel a queued message |
| GET | /status | Service health (no auth) |
Limits
| Item | Limit |
|---|---|
| Requests | 600 / minute / key |
| Body size | 64 KB |
| Retention | 7 days |
Errors
| Code | Meaning |
|---|---|
| 400 | Invalid body |
| 401 | Missing or invalid key |
| 429 | Rate limited, retry after Retry-After seconds |
| 503 | Temporarily unavailable |