Messages
Dispatch due messages
No auth requiredDelivers every scheduled message whose time has come. In production a Workers cron trigger calls this every minute; external schedulers can call it too, with GET or POST. If `CRON_SECRET` is configured, the caller must present it as `Authorization: Bearer <secret>`.
POST
/api/messages/dispatchResponses
200Summary of the dispatch run.
object"dispatch_result"dispatchedintegerdeliveredintegerfailedintegerresultsobject[]401No valid API key was provided.
errorobjecttype"invalid_request_error" | "authentication_error" | "authorization_error" | "not_found_error" | "rate_limit_error" | "api_error"codestringMachine-readable error code.messagestringHuman-readable error message.paramstring | nullThe offending parameter, when applicable.Example request
curl
curl -X POST https://agtls.dev/api/messages/dispatch