Skip to main content
Clawise

List messages

GET
/api/v1/mail/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

email*string

Inbox email scope.

Formatemail
cursor?string

Pagination cursor returned in next_cursor of the previous response. Omit on first request.

limit?integer

Page size. Defaults to 20.

Default20
ascending?boolean

Sort order. true returns oldest first; defaults to newest first.

direction?string

Filter by mail direction.

Value in"inbound" | "outbound"
label?string

Filter to messages with this label.

thread_id?string

Filter to a specific thread.

before?string

Messages created before this timestamp (ISO 8601).

Formatdate-time
after?string

Messages created after this timestamp (ISO 8601).

Formatdate-time

Response 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="