> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# 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 定义](https://aisa.one/docs/openapi/zh/unipile.json)

有效请求声明（包括认证和引用的 schema）：

```json theme={null}
{
  "operationId": "get_unipile_linkedin_chat_messages",
  "method": "GET",
  "path": "/apis/v1/unipile/linkedin/chats/{chat_id}/messages",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [
    {
      "description": "The id of the chat related to requested messages.",
      "in": "path",
      "name": "chat_id",
      "required": true,
      "schema": {
        "type": "string"
      }
    },
    {
      "in": "query",
      "name": "after",
      "required": false,
      "schema": {
        "description": "A filter to target items created after the datetime (exclusive). Must be an ISO 8601 UTC datetime (YYYY-MM-DDTHH:MM:SS.sssZ).",
        "example": "2025-12-31T23:59:59.999Z",
        "pattern": "^[1-2]\\d{3}-[0-1]\\d-[0-3]\\dT\\d{2}:\\d{2}:\\d{2}.\\d{3}Z$",
        "type": "string"
      }
    },
    {
      "in": "query",
      "name": "before",
      "required": false,
      "schema": {
        "description": "A filter to target items created before the datetime (exclusive). Must be an ISO 8601 UTC datetime (YYYY-MM-DDTHH:MM:SS.sssZ).",
        "example": "2025-12-31T23:59:59.999Z",
        "pattern": "^[1-2]\\d{3}-[0-1]\\d-[0-3]\\dT\\d{2}:\\d{2}:\\d{2}.\\d{3}Z$",
        "type": "string"
      }
    },
    {
      "in": "query",
      "name": "cursor",
      "required": false,
      "schema": {
        "description": "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.",
        "minLength": 1,
        "title": "CursorParam",
        "type": "string"
      }
    },
    {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
        "description": "A limit for the number of items returned in the response. The value can be set between 1 and 250.",
        "example": 100,
        "maximum": 250,
        "minimum": 1,
        "type": "integer"
      }
    },
    {
      "description": "A filter to target messages received from a certain sender. The id of the sender targeted.",
      "in": "query",
      "name": "sender_id",
      "required": false,
      "schema": {
        "type": "string"
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 费用与请求规则

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


## OpenAPI

````yaml openapi/zh/unipile.json GET /apis/v1/unipile/linkedin/chats/{chat_id}/messages
openapi: 3.1.0
info:
  description: ''
  title: Unipile (LinkedIn)
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    unipile:
      description: ''
      title: Unipile (LinkedIn)
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 00b882f06149b4c72a4dc077c20cc1c4d86d5a8da50fcc725538d6debed194ac
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/unipile/accounts
    - /apis/v1/unipile/hosted/link
    - /apis/v1/unipile/linkedin/chats
    - /apis/v1/unipile/linkedin/chats/send
    - /apis/v1/unipile/linkedin/chats/{chat_id}/messages
    - /apis/v1/unipile/linkedin/chats/{chat_id}/messages/send
    - /apis/v1/unipile/linkedin/company/{identifier}
    - /apis/v1/unipile/linkedin/connection-requests/send
    - /apis/v1/unipile/linkedin/invitations/received
    - /apis/v1/unipile/linkedin/invitations/sent
    - /apis/v1/unipile/linkedin/invitations/sent/{invitation_id}
    - /apis/v1/unipile/linkedin/me
    - >-
      /apis/v1/unipile/linkedin/messages/{message_id}/attachments/{attachment_id}
    - /apis/v1/unipile/linkedin/messages/{message_id}/reaction
    - /apis/v1/unipile/linkedin/posts
    - /apis/v1/unipile/linkedin/posts/reaction/send
    - /apis/v1/unipile/linkedin/posts/{post_id}
    - /apis/v1/unipile/linkedin/posts/{post_id}/comments
    - /apis/v1/unipile/linkedin/posts/{post_id}/comments/send
    - /apis/v1/unipile/linkedin/recruiter/job-slots-credits/{account_id}
    - /apis/v1/unipile/linkedin/relations
    - /apis/v1/unipile/linkedin/search
    - /apis/v1/unipile/linkedin/search/parameters
    - /apis/v1/unipile/linkedin/users/{identifier}
    - /apis/v1/unipile/linkedin/users/{user_id}/posts
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:767072c42d9ff02e79a61a06a858bae7b85c1868dd65963f411c7183d1137934
    facts_hash: 00b882f06149b4c72a4dc077c20cc1c4d86d5a8da50fcc725538d6debed194ac
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: unipile
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/unipile/linkedin/chats/{chat_id}/messages:
    get:
      tags:
        - linkedin-messaging
      summary: Chat Messages
      description: >-
        Returns a list of messages related to the given chat. Some  parameters
        are available to filter the results.


        Read all messages of one conversation (MessageList) by chat_id with
        cursor pagination.
      operationId: get_unipile_linkedin_chat_messages
      parameters:
        - description: The id of the chat related to requested messages.
          in: path
          name: chat_id
          required: true
          schema:
            type: string
        - in: query
          name: after
          required: false
          schema:
            description: >-
              A filter to target items created after the datetime (exclusive).
              Must be an ISO 8601 UTC datetime (YYYY-MM-DDTHH:MM:SS.sssZ).
            example: '2025-12-31T23:59:59.999Z'
            pattern: ^[1-2]\d{3}-[0-1]\d-[0-3]\dT\d{2}:\d{2}:\d{2}.\d{3}Z$
            type: string
        - in: query
          name: before
          required: false
          schema:
            description: >-
              A filter to target items created before the datetime (exclusive).
              Must be an ISO 8601 UTC datetime (YYYY-MM-DDTHH:MM:SS.sssZ).
            example: '2025-12-31T23:59:59.999Z'
            pattern: ^[1-2]\d{3}-[0-1]\d-[0-3]\dT\d{2}:\d{2}:\d{2}.\d{3}Z$
            type: string
        - in: query
          name: cursor
          required: false
          schema:
            description: >-
              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.
            minLength: 1
            title: CursorParam
            type: string
        - in: query
          name: limit
          required: false
          schema:
            description: >-
              A limit for the number of items returned in the response. The
              value can be set between 1 and 250.
            example: 100
            maximum: 250
            minimum: 1
            type: integer
        - description: >-
            A filter to target messages received from a certain sender. The id
            of the sender targeted.
          in: query
          name: sender_id
          required: false
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  cursor:
                    anyOf:
                      - {}
                      - {}
                  items:
                    items:
                      properties:
                        account_id:
                          description: A unique identifier.
                          minLength: 1
                          title: UniqueId
                          type: string
                        attachments:
                          items:
                            anyOf:
                              - properties:
                                  file_size:
                                    type: number
                                  id:
                                    type: string
                                  mimetype:
                                    type: string
                                  size:
                                    properties:
                                      height:
                                        type: number
                                      width:
                                        type: number
                                    required:
                                      - width
                                      - height
                                    type: object
                                  sticker:
                                    type: boolean
                                  type:
                                    enum:
                                      - img
                                    type: string
                                  unavailable:
                                    type: boolean
                                  url:
                                    type: string
                                  url_expires_at:
                                    type: number
                                required:
                                  - id
                                  - unavailable
                                  - type
                                  - size
                                  - sticker
                                type: object
                              - properties:
                                  file_size:
                                    type: number
                                  gif:
                                    type: boolean
                                  id:
                                    type: string
                                  mimetype:
                                    type: string
                                  size:
                                    properties:
                                      height:
                                        type: number
                                      width:
                                        type: number
                                    required:
                                      - width
                                      - height
                                    type: object
                                  type:
                                    enum:
                                      - video
                                    type: string
                                  unavailable:
                                    type: boolean
                                  url:
                                    type: string
                                  url_expires_at:
                                    type: number
                                required:
                                  - id
                                  - unavailable
                                  - type
                                  - size
                                  - gif
                                type: object
                              - properties:
                                  duration:
                                    type: number
                                  file_size:
                                    type: number
                                  id:
                                    type: string
                                  mimetype:
                                    type: string
                                  type:
                                    enum:
                                      - audio
                                    type: string
                                  unavailable:
                                    type: boolean
                                  url:
                                    type: string
                                  url_expires_at:
                                    type: number
                                  voice_note:
                                    type: boolean
                                required:
                                  - id
                                  - unavailable
                                  - type
                                  - voice_note
                                type: object
                              - properties:
                                  file_name:
                                    type: string
                                  file_size:
                                    type: number
                                  id:
                                    type: string
                                  mimetype:
                                    type: string
                                  type:
                                    enum:
                                      - file
                                    type: string
                                  unavailable:
                                    type: boolean
                                  url:
                                    type: string
                                  url_expires_at:
                                    type: number
                                required:
                                  - id
                                  - unavailable
                                  - type
                                  - file_name
                                type: object
                              - properties:
                                  file_size:
                                    type: number
                                  id:
                                    type: string
                                  mimetype:
                                    type: string
                                  type:
                                    enum:
                                      - linkedin_post
                                    type: string
                                  unavailable:
                                    type: boolean
                                  url:
                                    type: string
                                  url_expires_at:
                                    type: number
                                required:
                                  - id
                                  - unavailable
                                  - type
                                type: object
                              - properties:
                                  expires_at:
                                    anyOf:
                                      - type: number
                                      - {}
                                  file_size:
                                    type: number
                                  id:
                                    type: string
                                  mimetype:
                                    type: string
                                  starts_at:
                                    anyOf:
                                      - type: number
                                      - {}
                                  time_range:
                                    anyOf:
                                      - type: number
                                      - {}
                                  type:
                                    enum:
                                      - video_meeting
                                    type: string
                                  unavailable:
                                    type: boolean
                                  url:
                                    type: string
                                  url_expires_at:
                                    type: number
                                required:
                                  - id
                                  - unavailable
                                  - type
                                  - starts_at
                                  - expires_at
                                  - time_range
                                type: object
                              - properties:
                                  cta:
                                    properties:
                                      text:
                                        type: string
                                      type:
                                        type: string
                                      url:
                                        type: string
                                    required:
                                      - text
                                      - type
                                    type: object
                                  file_size:
                                    type: number
                                  id:
                                    type: string
                                  link:
                                    properties:
                                      image_url:
                                        type: string
                                      summary:
                                        type: string
                                      text:
                                        type: string
                                      title:
                                        type: string
                                      url:
                                        type: string
                                    required:
                                      - text
                                      - url
                                      - title
                                      - summary
                                      - image_url
                                    type: object
                                  mimetype:
                                    type: string
                                  post:
                                    properties:
                                      author:
                                        type: string
                                      author_id:
                                        type: string
                                      author_messaging_id:
                                        type: string
                                      description:
                                        type: string
                                      url:
                                        type: string
                                    required:
                                      - url
                                    type: object
                                  story:
                                    properties:
                                      author:
                                        type: string
                                      url:
                                        type: string
                                    required:
                                      - url
                                    type: object
                                  type:
                                    enum:
                                      - media_share
                                    type: string
                                  unavailable:
                                    type: boolean
                                  url:
                                    type: string
                                  url_expires_at:
                                    type: number
                                  video_call:
                                    properties:
                                      description:
                                        type: string
                                      duration:
                                        type: number
                                      end_time:
                                        type: number
                                      start_time:
                                        type: number
                                      type:
                                        type: string
                                    required:
                                      - type
                                      - description
                                      - duration
                                      - start_time
                                      - end_time
                                    type: object
                                required:
                                  - id
                                  - unavailable
                                  - type
                                type: object
                              - properties:
                                  file_size:
                                    type: number
                                  id:
                                    type: string
                                  mimetype:
                                    type: string
                                  profile:
                                    properties:
                                      full_name:
                                        type: string
                                      id:
                                        type: string
                                      instagram_messaging_id:
                                        type: string
                                      is_private:
                                        type: boolean
                                      is_verified:
                                        type: boolean
                                      profile_pic_url:
                                        type: string
                                      username:
                                        type: string
                                    required:
                                      - id
                                      - profile_pic_url
                                      - is_verified
                                      - username
                                      - full_name
                                      - is_private
                                    type: object
                                  type:
                                    enum:
                                      - profile
                                    type: string
                                  unavailable:
                                    type: boolean
                                  url:
                                    type: string
                                  url_expires_at:
                                    type: number
                                required:
                                  - id
                                  - unavailable
                                  - type
                                  - profile
                                type: object
                              - properties:
                                  display_name:
                                    anyOf:
                                      - type: string
                                      - {}
                                  emails:
                                    items:
                                      properties:
                                        address:
                                          type: string
                                        type:
                                          type: string
                                      required:
                                        - address
                                      type: object
                                    type: array
                                  file_size:
                                    type: number
                                  id:
                                    type: string
                                  mimetype:
                                    type: string
                                  organization:
                                    anyOf:
                                      - type: string
                                      - {}
                                  phones:
                                    items:
                                      properties:
                                        number:
                                          type: string
                                        type:
                                          type: string
                                      required:
                                        - number
                                      type: object
                                    type: array
                                  type:
                                    enum:
                                      - contact_card
                                    type: string
                                  unavailable:
                                    type: boolean
                                  url:
                                    type: string
                                  url_expires_at:
                                    type: number
                                required:
                                  - id
                                  - unavailable
                                  - type
                                  - display_name
                                  - phones
                                  - emails
                                  - organization
                                type: object
                              - properties:
                                  file_size:
                                    type: number
                                  id:
                                    type: string
                                  mimetype:
                                    type: string
                                  poll:
                                    properties:
                                      allows_multiple_answers:
                                        type: boolean
                                      description:
                                        anyOf:
                                          - type: string
                                          - {}
                                      is_anonymous:
                                        type: boolean
                                      options:
                                        items:
                                          properties:
                                            text:
                                              type: string
                                            voter_count:
                                              type: number
                                          required:
                                            - text
                                            - voter_count
                                          type: object
                                        type: array
                                      question:
                                        type: string
                                      type:
                                        anyOf:
                                          - enum:
                                              - regular
                                            type: string
                                          - enum:
                                              - quiz
                                            type: string
                                    required:
                                      - question
                                      - options
                                      - description
                                      - type
                                      - is_anonymous
                                      - allows_multiple_answers
                                    type: object
                                  type:
                                    enum:
                                      - poll
                                    type: string
                                  unavailable:
                                    type: boolean
                                  url:
                                    type: string
                                  url_expires_at:
                                    type: number
                                required:
                                  - id
                                  - unavailable
                                  - type
                                  - poll
                                type: object
                          type: array
                        attendee_distance:
                          anyOf:
                            - enum:
                                - 1
                              type: number
                            - enum:
                                - 2
                              type: number
                            - enum:
                                - 3
                              type: number
                            - enum:
                                - 4
                              type: number
                            - enum:
                                - -1
                              type: number
                        attendee_type:
                          anyOf:
                            - enum:
                                - MEMBER
                              type: string
                            - enum:
                                - ORGANIZATION
                              type: string
                            - enum:
                                - OTHER
                              type: string
                        behavior:
                          anyOf:
                            - enum:
                                - 0
                              type: number
                            - {}
                        chat_id:
                          description: A unique identifier.
                          minLength: 1
                          title: UniqueId
                          type: string
                        chat_provider_id:
                          type: string
                        deleted:
                          anyOf:
                            - enum:
                                - 0
                              type: number
                            - enum:
                                - 1
                              type: number
                        deleted_for:
                          anyOf:
                            - enum:
                                - me
                              type: string
                            - enum:
                                - everyone
                              type: string
                        delivered:
                          anyOf:
                            - enum:
                                - 0
                              type: number
                            - enum:
                                - 1
                              type: number
                        edited:
                          anyOf:
                            - enum:
                                - 0
                              type: number
                            - enum:
                                - 1
                              type: number
                        event_type:
                          anyOf:
                            - enum:
                                - 0
                              type: number
                            - enum:
                                - 1
                              type: number
                            - enum:
                                - 2
                              type: number
                            - enum:
                                - 3
                              type: number
                            - enum:
                                - 4
                              type: number
                            - enum:
                                - 5
                              type: number
                            - enum:
                                - 6
                              type: number
                            - enum:
                                - 7
                              type: number
                            - enum:
                                - 8
                              type: number
                            - enum:
                                - 9
                              type: number
                            - enum:
                                - 10
                              type: number
                            - enum:
                                - 11
                              type: number
                            - enum:
                                - 12
                              type: number
                            - enum:
                                - 13
                              type: number
                            - enum:
                                - 14
                              type: number
                        hidden:
                          anyOf:
                            - enum:
                                - 0
                              type: number
                            - enum:
                                - 1
                              type: number
                        id:
                          description: A unique identifier.
                          minLength: 1
                          title: UniqueId
                          type: string
                        is_event:
                          anyOf:
                            - enum:
                                - 0
                              type: number
                            - enum:
                                - 1
                              type: number
                        is_forwarded:
                          type: boolean
                        is_sender:
                          anyOf:
                            - enum:
                                - 0
                              type: number
                            - enum:
                                - 1
                              type: number
                        is_view_once:
                          type: boolean
                        mentions:
                          additionalProperties: true
                          type: object
                          x-patternProperties:
                            ^(.*)$:
                              type: string
                        message_id:
                          description: A unique identifier.
                          minLength: 1
                          title: UniqueId
                          type: string
                        message_type:
                          anyOf:
                            - enum:
                                - MESSAGE
                              type: string
                            - enum:
                                - INVITATION
                              type: string
                            - enum:
                                - INMAIL
                              type: string
                            - enum:
                                - INMAIL_DECLINE
                              type: string
                            - enum:
                                - INMAIL_REPLY
                              type: string
                            - enum:
                                - INMAIL_ACCEPT
                              type: string
                            - enum:
                                - STORY_MENTION
                              type: string
                            - enum:
                                - STORY_REPLY
                              type: string
                            - enum:
                                - CONTACT
                              type: string
                        object:
                          enum:
                            - Message
                          type: string
                        original:
                          type: string
                        parent:
                          description: A unique identifier.
                          minLength: 1
                          title: UniqueId
                          type: string
                        provider_id:
                          type: string
                        quoted:
                          properties:
                            attachments:
                              items:
                                anyOf:
                                  - properties:
                                      file_size:
                                        type: number
                                      id:
                                        type: string
                                      mimetype:
                                        type: string
                                      size:
                                        properties:
                                          height:
                                            type: number
                                          width:
                                            type: number
                                        required:
                                          - width
                                          - height
                                        type: object
                                      sticker:
                                        type: boolean
                                      type:
                                        enum:
                                          - img
                                        type: string
                                      unavailable:
                                        type: boolean
                                      url:
                                        type: string
                                      url_expires_at:
                                        type: number
                                    required:
                                      - id
                                      - unavailable
                                      - type
                                      - size
                                      - sticker
                                    type: object
                                  - properties:
                                      file_size:
                                        type: number
                                      gif:
                                        type: boolean
                                      id:
                                        type: string
                                      mimetype:
                                        type: string
                                      size:
                                        properties:
                                          height:
                                            type: number
                                          width:
                                            type: number
                                        required:
                                          - width
                                          - height
                                        type: object
                                      type:
                                        enum:
                                          - video
                                        type: string
                                      unavailable:
                                        type: boolean
                                      url:
                                        type: string
                                      url_expires_at:
                                        type: number
                                    required:
                                      - id
                                      - unavailable
                                      - type
                                      - size
                                      - gif
                                    type: object
                                  - properties:
                                      duration:
                                        type: number
                                      file_size:
                                        type: number
                                      id:
                                        type: string
                                      mimetype:
                                        type: string
                                      type:
                                        enum:
                                          - audio
                                        type: string
                                      unavailable:
                                        type: boolean
                                      url:
                                        type: string
                                      url_expires_at:
                                        type: number
                                      voice_note:
                                        type: boolean
                                    required:
                                      - id
                                      - unavailable
                                      - type
                                      - voice_note
                                    type: object
                                  - properties:
                                      file_name:
                                        type: string
                                      file_size:
                                        type: number
                                      id:
                                        type: string
                                      mimetype:
                                        type: string
                                      type:
                                        enum:
                                          - file
                                        type: string
                                      unavailable:
                                        type: boolean
                                      url:
                                        type: string
                                      url_expires_at:
                                        type: number
                                    required:
                                      - id
                                      - unavailable
                                      - type
                                      - file_name
                                    type: object
                                  - properties:
                                      file_size:
                                        type: number
                                      id:
                                        type: string
                                      mimetype:
                                        type: string
                                      type:
                                        enum:
                                          - linkedin_post
                                        type: string
                                      unavailable:
                                        type: boolean
                                      url:
                                        type: string
                                      url_expires_at:
                                        type: number
                                    required:
                                      - id
                                      - unavailable
                                      - type
                                    type: object
                                  - properties:
                                      expires_at:
                                        anyOf:
                                          - type: number
                                          - {}
                                      file_size:
                                        type: number
                                      id:
                                        type: string
                                      mimetype:
                                        type: string
                                      starts_at:
                                        anyOf:
                                          - type: number
                                          - {}
                                      time_range:
                                        anyOf:
                                          - type: number
                                          - {}
                                      type:
                                        enum:
                                          - video_meeting
                                        type: string
                                      unavailable:
                                        type: boolean
                                      url:
                                        type: string
                                      url_expires_at:
                                        type: number
                                    required:
                                      - id
                                      - unavailable
                                      - type
                                      - starts_at
                                      - expires_at
                                      - time_range
                                    type: object
                                  - properties:
                                      cta:
                                        properties:
                                          text:
                                            type: string
                                          type:
                                            type: string
                                          url:
                                            type: string
                                        required:
                                          - text
                                          - type
                                        type: object
                                      file_size:
                                        type: number
                                      id:
                                        type: string
                                      link:
                                        properties:
                                          image_url:
                                            type: string
                                          summary:
                                            type: string
                                          text:
                                            type: string
                                          title:
                                            type: string
                                          url:
                                            type: string
                                        required:
                                          - text
                                          - url
                                          - title
                                          - summary
                                          - image_url
                                        type: object
                                      mimetype:
                                        type: string
                                      post:
                                        properties:
                                          author:
                                            type: string
                                          author_id:
                                            type: string
                                          author_messaging_id:
                                            type: string
                                          description:
                                            type: string
                                          url:
                                            type: string
                                        required:
                                          - url
                                        type: object
                                      story:
                                        properties:
                                          author:
                                            type: string
                                          url:
                                            type: string
                                        required:
                                          - url
                                        type: object
                                      type:
                                        enum:
                                          - media_share
                                        type: string
                                      unavailable:
                                        type: boolean
                                      url:
                                        type: string
                                      url_expires_at:
                                        type: number
                                      video_call:
                                        properties:
                                          description:
                                            type: string
                                          duration:
                                            type: number
                                          end_time:
                                            type: number
                                          start_time:
                                            type: number
                                          type:
                                            type: string
                                        required:
                                          - type
                                          - description
                                          - duration
                                          - start_time
                                          - end_time
                                        type: object
                                    required:
                                      - id
                                      - unavailable
                                      - type
                                    type: object
                                  - properties:
                                      file_size:
                                        type: number
                                      id:
                                        type: string
                                      mimetype:
                                        type: string
                                      profile:
                                        properties:
                                          full_name:
                                            type: string
                                          id:
                                            type: string
                                          instagram_messaging_id:
                                            type: string
                                          is_private:
                                            type: boolean
                                          is_verified:
                                            type: boolean
                                          profile_pic_url:
                                            type: string
                                          username:
                                            type: string
                                        required:
                                          - id
                                          - profile_pic_url
                                          - is_verified
                                          - username
                                          - full_name
                                          - is_private
                                        type: object
                                      type:
                                        enum:
                                          - profile
                                        type: string
                                      unavailable:
                                        type: boolean
                                      url:
                                        type: string
                                      url_expires_at:
                                        type: number
                                    required:
                                      - id
                                      - unavailable
                                      - type
                                      - profile
                                    type: object
                                  - properties:
                                      display_name:
                                        anyOf:
                                          - type: string
                                          - {}
                                      emails:
                                        items:
                                          properties:
                                            address:
                                              type: string
                                            type:
                                              type: string
                                          required:
                                            - address
                                          type: object
                                        type: array
                                      file_size:
                                        type: number
                                      id:
                                        type: string
                                      mimetype:
                                        type: string
                                      organization:
                                        anyOf:
                                          - type: string
                                          - {}
                                      phones:
                                        items:
                                          properties:
                                            number:
                                              type: string
                                            type:
                                              type: string
                                          required:
                                            - number
                                          type: object
                                        type: array
                                      type:
                                        enum:
                                          - contact_card
                                        type: string
                                      unavailable:
                                        type: boolean
                                      url:
                                        type: string
                                      url_expires_at:
                                        type: number
                                    required:
                                      - id
                                      - unavailable
                                      - type
                                      - display_name
                                      - phones
                                      - emails
                                      - organization
                                    type: object
                                  - properties:
                                      file_size:
                                        type: number
                                      id:
                                        type: string
                                      mimetype:
                                        type: string
                                      poll:
                                        properties:
                                          allows_multiple_answers:
                                            type: boolean
                                          description:
                                            anyOf:
                                              - type: string
                                              - {}
                                          is_anonymous:
                                            type: boolean
                                          options:
                                            items:
                                              properties:
                                                text:
                                                  type: string
                                                voter_count:
                                                  type: number
                                              required:
                                                - text
                                                - voter_count
                                              type: object
                                            type: array
                                          question:
                                            type: string
                                          type:
                                            anyOf:
                                              - enum:
                                                  - regular
                                                type: string
                                              - enum:
                                                  - quiz
                                                type: string
                                        required:
                                          - question
                                          - options
                                          - description
                                          - type
                                          - is_anonymous
                                          - allows_multiple_answers
                                        type: object
                                      type:
                                        enum:
                                          - poll
                                        type: string
                                      unavailable:
                                        type: boolean
                                      url:
                                        type: string
                                      url_expires_at:
                                        type: number
                                    required:
                                      - id
                                      - unavailable
                                      - type
                                      - poll
                                    type: object
                              type: array
                            message_id:
                              description: A unique identifier.
                              minLength: 1
                              title: UniqueId
                              type: string
                            provider_id:
                              type: string
                            sender_id:
                              type: string
                            text:
                              anyOf:
                                - type: string
                                - {}
                          required:
                            - provider_id
                            - sender_id
                            - text
                            - attachments
                          type: object
                        reactions:
                          items:
                            properties:
                              is_sender:
                                type: boolean
                              sender_id:
                                type: string
                              value:
                                type: string
                            required:
                              - value
                              - sender_id
                              - is_sender
                            type: object
                          type: array
                        replies:
                          type: number
                        reply_by:
                          items:
                            type: string
                          type: array
                        reply_to:
                          properties:
                            id:
                              description: A unique identifier.
                              minLength: 1
                              title: UniqueId
                              type: string
                            provider_id:
                              type: string
                            sender_attendee_id:
                              description: A unique identifier.
                              minLength: 1
                              title: UniqueId
                              type: string
                            sender_id:
                              type: string
                            text:
                              anyOf:
                                - type: string
                                - {}
                            timestamp:
                              type: string
                          required:
                            - id
                            - provider_id
                            - timestamp
                            - sender_attendee_id
                            - sender_id
                            - text
                          type: object
                        seen:
                          anyOf:
                            - enum:
                                - 0
                              type: number
                            - enum:
                                - 1
                              type: number
                        seen_by:
                          additionalProperties: true
                          type: object
                          x-patternProperties:
                            ^(.*)$:
                              anyOf:
                                - type: string
                                - type: boolean
                        sender_attendee_id:
                          description: A unique identifier.
                          minLength: 1
                          title: UniqueId
                          type: string
                        sender_id:
                          type: string
                        sender_urn:
                          type: string
                        subject:
                          anyOf:
                            - type: string
                            - {}
                        text:
                          anyOf:
                            - type: string
                            - {}
                        timestamp:
                          type: string
                      required:
                        - object
                        - provider_id
                        - sender_id
                        - text
                        - attachments
                        - id
                        - account_id
                        - chat_id
                        - chat_provider_id
                        - timestamp
                        - is_sender
                        - reactions
                        - seen
                        - seen_by
                        - hidden
                        - deleted
                        - edited
                        - is_event
                        - delivered
                        - behavior
                        - original
                        - sender_attendee_id
                      type: object
                    type: array
                  object:
                    enum:
                      - MessageList
                    type: string
                required:
                  - object
                  - items
                  - cursor
                type: object
          description: OK. Request succeeded.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.