Skip to main content
GET
List chat messages

Authorizations

Authorization
string
header
required

Polymorfa organization key (pmfa_ prefix), project token (pmfa_pt_ prefix) where supported, or short-lived client token (pmfa_ct_ prefix). Organization and project keys may be personal or service-account owned and enforce selected action scopes. Organization keys cover the team and its projects; project tokens stay inside one project. Client tokens stay inside their live project and session and enforce their client rules.

Path Parameters

session
string
required

Identifier of the connected Polymorfa session.

Value constraints

Minimum string length: 1
conversation
string
required

Public conversation identifier or E.164 phone number. Conversation ID or E.164 phone number.

Query Parameters

limit
integer
default:50

Specifies limit for this query parameter.

Value constraints

Required range: 1 <= x <= 100
Example:

50

cursor
string

Specifies cursor for this query parameter.

Value constraints

Required string length: 1 - 1024
Pattern: ^[A-Za-z0-9_-]+$
order
enum<string>
default:desc

Specifies order for this query parameter.

Allowed values

Available options:
desc,
asc
since
string<date-time>

Specifies since for this query parameter.

Value constraints

until
string<date-time>

Specifies until for this query parameter.

Value constraints

direction
enum<string>

Specifies direction for this query parameter.

Allowed values

Available options:
inbound,
outbound
types
string

Specifies types for this query parameter.

Value constraints

Pattern: ^[a-z][a-z_]{0,31}(?:,[a-z][a-z_]{0,31}){0,15}$
Example:

"text,image"

Response

One page of messages

success
enum<boolean>
required

Whether the request succeeded.

Allowed values

Available options:
true
data
object[]
required

Structured data carried by this object.

hasMore
boolean
required

True when nextCursor returns more items.

nextCursor
string | null
required

Specifies next cursor for this native list chat messages response.

Accepted alternatives

previousCursor
string | null
required

Cursor for the preceding page of messages. Null when no preceding page exists.

Accepted alternatives