Skip to main content
GET
List messages
This page documents the Legacy API. For new integrations, use List Messages in the Current API.
Required permissions (one of):
  • chat:read
  • dms:read
  • support_chat:read

Autorisationer

Authorization
string
header
påkrævet

An Account API key, account-scoped JWT, App API key, or user OAuth token. Prepend the key or token with Bearer, for example Bearer ***************************.

Scopes

chat:read
dms:read
support_chat:read

Forespørgselsparametre

after
string

Returns the elements in the list that come after the specified cursor.

before
string

Returns the elements in the list that come before the specified cursor.

first
integer

Returns the first n elements from the list.

Eksempel:

42

last
integer

Returns the last n elements from the list.

Eksempel:

42

channel_id
string
påkrævet

The unique identifier of the channel or experience to list messages for.

direction
enum<string>

The sort direction for messages by creation time. Use 'asc' for oldest first or 'desc' for newest first.

Tilgængelige muligheder:
asc,
desc

Svar

A successful response

The connection type for DmsPost.

data
object[]
påkrævet

A list of nodes.

page_info
object
påkrævet

Information to aid in pagination.