API v1

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

MethodPathPurpose
GET/api/pingHealth check
POST/api/messagesQueue an outgoing message
GET/api/messages/{id}Delivery state of one message
POST/api/webhooksRegister 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.