API v1

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

CodeMeaning
400Invalid body
401Missing or invalid token
404Unknown resource
429Rate limit exceeded