Skip to main content
POST
List or search messages
Pick what to list with one filter. conversation: its messages, newest first (an email thread’s messages oldest first). thread: a chat thread’s root then replies. state draft or scheduled: unsent messages. mine: messages you sent. pinned, saved, following and activity: those lists. query: search, with from, after, before, has and sort. Slack needs account (from accounts_list) unless conversation is given. Returns one page of items. Pass nextCursor back as cursor until it is null. Requires the messages:read scope.

Authorizations

x-api-key
string
header
required

An Avazal API key (avz_…) created in Settings → API keys.

Body

application/json
conversation
string

A conversation id from conversations_list.

thread
string

A message id from messages_list, messages_get or conversations_get.

account
string

A Slack workspace (chws_…) or a mailbox (macc_…), from accounts_list.

Pattern: ^(chws|macc)_
source
enum<string>

Slack chat or email.

Available options:
slack,
gmail
state
enum<string>
Available options:
sent,
draft,
scheduled
mine
boolean
pinned
boolean
saved
enum<string>
Available options:
in_progress,
archived,
completed
following
boolean
activity
enum<string>
Available options:
all,
mentions,
threads,
reactions,
dms
query
string
from
string

Only messages from this person (people_list id).

after
string
before
string
has
enum<string>
Available options:
link,
file,
reaction,
pin
sort
enum<string>
Available options:
relevant,
newest
cursor
string

The nextCursor from the previous page. Omit it for the first page.

Required string length: 1 - 2048
limit
integer

Items per page, 50 by default.

Required range: 1 <= x <= 100

Response

Success

items
object[]
required
nextCursor
string | null
required

Pass this as cursor to get the next page. null on the last page.