Skip to main content
GET
Chat Messages
Returns a MessageList for the given chat_id with cursor pagination. Message objects embed attachments, reactions, and read receipts inline. See Pricing for current prices. Where supported, get a quote for your request.

Example

Path parameters and required query parameters are documented in the operation reference.

Request contract

  • Method and path: GET /apis/v1/unipile/linkedin/chats/{chat_id}/messages
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/unipile/linkedin/chats/{chat_id}/messages
  • chat_id: path; required
  • after: query; optional
  • before: query; optional
  • cursor: query; optional
  • limit: query; optional
  • sender_id: query; optional
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Published reference price: $0.005 USD per successful request. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

chat_id
string
required

The id of the chat related to requested messages.

Query Parameters

after
string

A filter to target items created after the datetime (exclusive). Must be an ISO 8601 UTC datetime (YYYY-MM-DDTHH:MM:SS.sssZ).

Pattern: ^[1-2]\d{3}-[0-1]\d-[0-3]\dT\d{2}:\d{2}:\d{2}.\d{3}Z$
Example:

"2025-12-31T23:59:59.999Z"

before
string

A filter to target items created before the datetime (exclusive). Must be an ISO 8601 UTC datetime (YYYY-MM-DDTHH:MM:SS.sssZ).

Pattern: ^[1-2]\d{3}-[0-1]\d-[0-3]\dT\d{2}:\d{2}:\d{2}.\d{3}Z$
Example:

"2025-12-31T23:59:59.999Z"

cursor
string

A cursor for pagination purposes. To get the next page of entries, you need to make a new request and fulfill this field with the cursor received in the preceding request. This process should be repeated until all entries have been retrieved.

Minimum string length: 1
limit
integer

A limit for the number of items returned in the response. The value can be set between 1 and 250.

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

100

sender_id
string

A filter to target messages received from a certain sender. The id of the sender targeted.

Response

OK. Request succeeded.

cursor
any
required
items
object[]
required
object
enum<string>
required
Available options:
MessageList