/accounts/{accountId}/messages Fetch messages from account
Get a paginated list of messages from a specific email account
Parameters
accountId string Unique account identifier assigned by Riposte.
acct_123456789
Additional parameters
page string
page string 1-indexed page number to return when using offset pagination.
1
limit string
limit string Maximum number of messages to include in each page.
50
labelId string
labelId string Filter the list to messages with a specific label.
lbl_support
mailbox string
mailbox string For IMAP accounts, select a specific mailbox/folder to read from.
INBOX
maxResults string
maxResults string Deprecated legacy field, prefer limit.
100
cursor string
cursor string Cursor identifier returned from a previous response for deep pagination.
cursor_2024-06-12T17:22:00Z
Returns
Paginated collection of message resources.
curl -X GET "http://localhost:8080/accounts/{accountId}/messages"
{
"messages": [
{
"id": "msg_01HZY8AW50MP89C11DW00SHM3R",
"accountId": "acct_123456789",
"providerMessageId": "1790c6accc1a2a5f",
"subject": "Riposte onboarding call"
}
],
"pagination": {
"page": 1,
"limit": 50,
"total": 20,
"totalPages": 1,
"hasNext": false,
"hasPrev": false
}
}