List messages
Lists messages in one inbox, newest first.
Required: email (target inbox). Optional filters: direction, label, thread_id, before, after. Pagination: cursor, limit.
Query Parameters
Inbox email scope.
emailPagination cursor returned in next_cursor of the previous response. Omit on first request.
Page size. Defaults to 20.
20Sort order. true returns oldest first; defaults to newest first.
Filter by mail direction.
"inbound" | "outbound"Filter to messages with this label.
Filter to a specific thread.
Messages created before this timestamp (ISO 8601).
date-timeMessages created after this timestamp (ISO 8601).
date-timeResponse Body
application/json
application/json
curl -X GET "https://api.clawise.dev/api/v1/mail/messages?email=&cursor=&limit=20&ascending=false&direction=inbound&label=&thread_id=&before=&after="Send message POST
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`.
Get message GET
Returns a single message by ID. Includes fields only available on single reads: `reply_body`, `message_id_header`, `references`.