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

# List messages

> Lists the messages of a conversation, oldest first. Needs the `messages:read` scope.



## OpenAPI

````yaml /openapi/partner.yaml get /api/v1/partner/tenants/{external_ref}/conversations/{session_id}/messages/
openapi: 3.1.0
info:
  title: ImpelLabs Partner API
  version: '1'
  description: >-
    The Partner API provisions customer businesses (tenants) and runs their
    channels, conversations and templates from your own product. Call it from
    your server with a partner key. Every path ends with a slash.
servers:
  - url: https://api.impellabs.tech
security:
  - bearer: []
tags:
  - name: Keys
    description: Your partner API keys.
  - name: Tenants
    description: Customer businesses, their channels, conversations and templates.
  - name: Webhooks
    description: Where your tenants' events go.
  - name: WhatsApp sign-up
    description: The settings of the hosted WhatsApp sign-up.
paths:
  /api/v1/partner/tenants/{external_ref}/conversations/{session_id}/messages/:
    get:
      tags:
        - Tenants
      summary: List messages
      description: >-
        Lists the messages of a conversation, oldest first. Needs the
        `messages:read` scope.
      operationId: >-
        get_api_v1_partner_tenants_external_ref_conversations_session_id_messages
      parameters:
        - name: external_ref
          in: path
          required: true
          schema:
            type: string
          description: Your own id for the customer business, set when you created it.
        - name: session_id
          in: path
          required: true
          schema:
            type: string
          description: The conversation id (UUID).
        - name: limit
          in: query
          required: false
          description: Rows to return, 1 to 100. Default 50.
          schema:
            type: integer
            minimum: 1
            maximum: 100
        - name: after
          in: query
          required: false
          description: The `next_cursor` of the page before.
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                object: list
                data:
                  - id: 9b3c1d5f-0000-4000-8000-000000000000
                    object: message
                    role: user
                    type: text
                    text: Hello
                    created_at: '2026-01-15T10:04:00+00:00'
                    conversation: 5d2f7a3e-0000-4000-8000-000000000000
                    channel:
                      name: whatsapp
                      from: '+15550100101'
                has_more: false
                next_cursor: null
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        4XX:
          description: The request is not valid or not allowed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  responses:
    Unauthorized:
      description: The credentials are missing, wrong, expired or revoked.
    Forbidden:
      description: These credentials may not do this.
    NotFound:
      description: There is no such row, or these credentials cannot see it.
  schemas:
    Error:
      type: object
      description: >-
        An error. Most errors carry `detail`. Some carry `error` with `code` and
        `message`.
      properties:
        detail:
          type: string
        code:
          type: string
        field:
          type: string
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````

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