Reference
POST /api/messages
{
"chat_id": 123456789,
"text": "Your code is 4821",
"priority": "normal"
}
Returns 202 with {"id": "msg_…", "state": "queued"}.
GET /api/messages/{id}
Returns the message with state one of queued, sent, failed.
POST /api/webhooks
{
"url": "https://example.com/hook",
"events": ["message.sent", "message.failed"]
}
Callbacks are signed with HMAC-SHA256 in the X-Signature header.
Errors
| Code | Meaning |
|---|---|
| 400 | Invalid body |
| 401 | Missing or invalid token |
| 404 | Unknown resource |
| 429 | Rate limit exceeded |