Use the X-API-Key header or Authorization: Bearer to authenticate. All endpoints return JSON.
Fetches the latest messages from the channel/group and (optionally) forwards them to a webhook.
curl -X POST https://<host>/trigger -H 'Content-Type: application/json' -H 'X-API-Key: <api_key>' -d '{"entity": "@canal", "limit": 2}'
Returns a single message by ID, keeping the same format as /trigger.
curl 'https://<host>/message?entity=@canal&message_id=123' -H 'X-API-Key: <api_key>'
Serves downloaded files via signed links (signed_url field in the payload).
curl -L 'https://<host>/media/<token>'
Returns the last payload persisted on disk (requires API key).
curl https://<host>/last-response -H 'X-API-Key: <api_key>'