跳转到主要内容
GET
Chat Messages
按 chat_id 返回会话全部消息(MessageList),支持 cursor 分页。消息对象内嵌附件、表情回应与已读状态。 当前价格请查看费用说明;支持报价的接口可按实际请求获取报价。

请求规范

  • 方法与路径: GET /apis/v1/unipile/linkedin/chats/{chat_id}/messages
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/unipile/linkedin/chats/{chat_id}/messages
  • chat_id: path; 必填
  • after: query; 可选
  • before: query; 可选
  • cursor: query; 可选
  • limit: query; 可选
  • sender_id: query; 可选
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

公开参考价格:每次成功请求 $0.005 USD。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

Authorization
string
header
必填

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

路径参数

chat_id
string
必填

The id of the chat related to requested messages.

查询参数

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$
示例:

"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$
示例:

"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.

必填范围: 1 <= x <= 250
示例:

100

sender_id
string

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

响应

OK. Request succeeded.

cursor
any
必填
items
object[]
必填
object
enum<string>
必填
可用选项:
MessageList