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

# List messages in a conversation

> Returns paginated messages for an inbox conversation, newest first.



## OpenAPI

````yaml /api-reference/openapi.json get /inbox/conversations/{id}/messages
openapi: 3.0.0
info:
  description: >-
    Unified social media inbox API. Read and respond to comments, DMs, reviews,
    and mentions across Instagram, Facebook, Threads, Google Business Profile,
    TikTok, LinkedIn, and YouTube through a single REST API. X/Twitter and
    Trustpilot coming soon.
  title: SocialAPI.AI
  contact:
    name: SocialAPI.AI Support
    email: support@social-api.ai
  license:
    name: MIT
  version: '1.0'
servers:
  - url: https://api.social-api.ai/v1
security: []
paths:
  /inbox/conversations/{id}/messages:
    get:
      tags:
        - Inbox
      summary: List messages in a conversation
      description: Returns paginated messages for an inbox conversation, newest first.
      parameters:
        - description: Conversation ID
          name: id
          in: path
          required: true
          schema:
            type: string
        - description: Max results (1–200, default 25)
          name: limit
          in: query
          schema:
            type: integer
        - description: Pagination cursor from previous response
          name: cursor
          in: query
          schema:
            type: string
      responses:
        '200':
          description: Paginated list of messages
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.MessagesListResponse'
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
        '404':
          description: Conversation not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    api_endpoints.MessagesListResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/social-api_ai_core_api_service.MessageRow'
        last_synced_at:
          type: string
        pagination:
          $ref: '#/components/schemas/api_endpoints.InboxPagination'
        sync_state:
          description: >-
            SyncState is "idle", "syncing", or "failed" for this thread's
            message sync.
          type: string
          enum:
            - idle
            - syncing
            - failed
          example: idle
    api_endpoints.ErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/api_endpoints.ErrorBody'
    social-api_ai_core_api_service.MessageRow:
      type: object
      properties:
        attachment_type:
          type: string
        attachment_url:
          type: string
        conversation_id:
          type: string
        created_at:
          type: string
        direction:
          type: string
        id:
          type: string
        platform_id:
          type: string
        sender_id:
          type: string
        sender_name:
          type: string
        status:
          type: string
        status_updated_at:
          type: string
        text:
          type: string
    api_endpoints.InboxPagination:
      type: object
      properties:
        has_more:
          type: boolean
        next_cursor:
          type: string
    api_endpoints.ErrorBody:
      type: object
      properties:
        code:
          type: string
          example: resource.not_found
        message:
          type: string
          example: Account not found
        meta:
          type: object
          additionalProperties: {}
  securitySchemes:
    BearerAuth:
      description: >-
        Prefix your API key with "Bearer ". Example: `Authorization: Bearer
        sapi_key_...`
      type: apiKey
      name: Authorization
      in: header

````