← relay/api

API reference

Base URL https://api.safebot.ir/v1. All requests need an Authorization: Bearer header.

Endpoints

MethodPathDescription
POST/messagesQueue a message for delivery
GET/messages/{id}Delivery state of one message
GET/channelsList channels of the project
DELETE/messages/{id}Cancel a queued message
GET/statusService health (no auth)

Limits

ItemLimit
Requests600 / minute / key
Body size64 KB
Retention7 days

Errors

CodeMeaning
400Invalid body
401Missing or invalid key
429Rate limited, retry after Retry-After seconds
503Temporarily unavailable