SafeBot API, version 1
REST endpoints for message delivery, webhooks and account lookups used by SafeBot integrations.
Base URL
https://v1.safebot.ir/api/
All requests must use HTTPS and send an Authorization: Bearer <token> header. Tokens are issued from the integration dashboard.
Endpoints
| Method | Path | Purpose |
|---|---|---|
| GET | /api/ping | Health check |
| POST | /api/messages | Queue an outgoing message |
| GET | /api/messages/{id} | Delivery state of one message |
| POST | /api/webhooks | Register a callback URL |
| DELETE | /api/webhooks/{id} | Remove a callback |
Full request and response formats are in the reference.
Rate limits
60 requests per minute per token. Responses carry X-RateLimit-Remaining; exceeding the limit returns 429.