Send message
Sends an outbound email. Required fields: to, subject, and a valid from address belonging to an inbox.
Supply reply_to_id to thread the message. Attach pre-uploaded files via attachment_ids.
Request Body
application/json
Response Body
application/json
application/json
curl -X POST "https://api.clawise.dev/api/v1/mail/messages" \ -H "Content-Type: application/json" \ -d '{ "from": "", "to": [], "cc": [], "bcc": [], "subject": "", "body_text": "", "body_html": "", "reply_to_id": null, "attachment_ids": [] }'Get thread GET
Returns a thread and its full message list. Requires both `{id}` (path) and `email` (query). The `messages` field contains all messages in the thread, oldest first.
List messages GET
Lists messages in one inbox, newest first. Required: `email` (target inbox). Optional filters: `direction`, `label`, `thread_id`, `before`, `after`. Pagination: `cursor`, `limit`.