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

# Get messages and calls by conversation

> Return the chronological message/call timeline for a conversation, along with counts and the resolution block (CSAT, resolver) when the conversation has been resolved.



## OpenAPI

````yaml /api-reference/openapi.yaml get /api/conversation/{conversationId}/messages
openapi: 3.0.3
info:
  title: Tether Relay and Tether API
  version: 1.0.0
  description: >-
    Route-derived OpenAPI contract generated from tether-relay backend sources.
    Regenerate with scripts/sync-openapi-from-backend.mjs.
servers:
  - url: https://your-instance.example.com
    description: Production
  - url: http://localhost:2212
    description: Local API service
security: []
tags:
  - name: AI
  - name: Applications
  - name: Approval
  - name: Auth
  - name: Automations
  - name: Calls
  - name: Campaigns
  - name: Contact Analytics
  - name: Contact Metrics
  - name: Contact Notes
  - name: Contacts
  - name: Conversation Monitor
  - name: Conversations
  - name: Departments
  - name: Email
  - name: Escalation Dashboard
  - name: Event Logs
  - name: Google Sheets
  - name: Marketplace
  - name: Messages
  - name: Notification Sounds
  - name: Notifications
  - name: Org Snapshots
  - name: Organizations
  - name: Outreach
  - name: Outreach Metrics
  - name: Outreach Sources
  - name: Pipelines
  - name: Processes
  - name: Prompts
  - name: Reminders
  - name: Sms
  - name: Templates
  - name: Traces
  - name: Training
  - name: Upload
  - name: User Snapshots
  - name: Users
  - name: Vertical
  - name: Webchats
  - name: Webhook
paths:
  /api/conversation/{conversationId}/messages:
    get:
      tags:
        - Conversations
      summary: Get messages and calls by conversation
      description: >-
        Return the chronological message/call timeline for a conversation, along
        with counts and the resolution block (CSAT, resolver) when the
        conversation has been resolved.
      operationId: get_conversation_messages
      parameters:
        - in: path
          name: conversationId
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Messages returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationMessagesResponse'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyErrorResponse'
        '404':
          description: Conversation not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    ConversationMessagesResponse:
      type: object
      properties:
        messages:
          type: array
          items:
            type: object
            additionalProperties: true
        messageCount:
          type: integer
        callCount:
          type: integer
        resolution:
          type: object
          properties:
            isResolved:
              type: boolean
            resolvedAt:
              type: string
              format: date-time
            resolvedBy:
              type: object
              additionalProperties: true
            csatRating:
              type: integer
            csatFeedback:
              type: string
            csatSubmittedAt:
              type: string
              format: date-time
          additionalProperties: true
          description: Null when conversation is not resolved
      additionalProperties: true
      example:
        messages:
          - _id: 67e0a0b0c0d0e0f0a0b0c0d0
            body: Hi! How can we help?
            senderType: AI
            direction: outbound
            createdAt: '2026-05-18T13:30:00.000Z'
        messageCount: 17
        callCount: 1
        resolution:
          isResolved: true
          resolvedAt: '2026-05-18T14:10:00.000Z'
          resolvedBy:
            userId: 65b1f0a2c3d4e5f6a7b8c9d0
            fullName: Alice Rivera
          csatRating: 5
          csatFeedback: Great help!
          csatSubmittedAt: '2026-05-18T14:12:00.000Z'
    LegacyErrorResponse:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        data: {}
      additionalProperties: true
      example:
        error: Attachment not found
        message: Attachment not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````