List mail waiting to be delivered
Lists up to 100 messages from the workspace's domains that Cloady Mail hasn't delivered yet, with each recipient's last reply from the receiving server and the next attempt. Delivered mail leaves the queue. Needs the admin role.
Authorization
cloady Personal API token (cldy_…)
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/workspaces/string/mail/queue"{ "messages": [ { "id": "string", "from": "string", "subject": "string", "size": -9007199254740991, "createdAt": "string", "recipients": [ { "address": "string", "status": "scheduled", "reply": "string", "nextAttemptAt": "string", "attempts": -9007199254740991 } ] } ], "total": -9007199254740991}Query a workspace's email log GET
Runs a LogQL query over the workspace's email log, kept for 30 days, and returns Loki's answer unchanged. Streams carry `kind` (`delivery` or `auth`), and delivery lines `dir` (`in` or `out`) and `status` (`queued`, `delivered`, `deferred`, `bounced`, `rejected` or `spam`); auth lines `status` `ok` or `failed`. Each line is JSON with `from`, `to`, `subject`, `mailbox`, `code` and `reply` (the SMTP reply), `host` (the other server), `tls`, `size`, `score` (spam score) and `queue`. The path is Loki's own, so a Grafana data source can point here too. Needs the admin role.
Retry queued mail now POST
Attempts delivery now, for one queued message or for every queued message of the workspace, instead of waiting for its next retry. Needs the admin role.