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

# List conversations for a single agent (paginated)

> Returns the SMS / email / webchat conversations attached to a single agent for the dashboard's per-agent drill-down. `type=assignee` lists conversations where the agent is in `assignees`; `type=owner` lists conversations where the agent is the `userId` owner. Voice conversations are intentionally excluded (see ENG-392).



## OpenAPI

````yaml /api-reference/openapi.yaml get /api/escalation-dashboard/agent-conversations
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/escalation-dashboard/agent-conversations:
    get:
      tags:
        - Escalation Dashboard
      summary: List conversations for a single agent (paginated)
      description: >-
        Returns the SMS / email / webchat conversations attached to a single
        agent for the dashboard's per-agent drill-down. `type=assignee` lists
        conversations where the agent is in `assignees`; `type=owner` lists
        conversations where the agent is the `userId` owner. Voice conversations
        are intentionally excluded (see ENG-392).
      operationId: get_agent_conversations
      parameters:
        - in: query
          name: departmentId
          required: false
          schema:
            type: string
          description: >-
            Optional department filter. ADMIN/SUPERADMIN may pass any
            departmentId; DEPARTMENT_HEAD is implicitly scoped to their own
            department and any other value is ignored.
        - in: query
          name: userId
          required: true
          schema:
            type: string
          description: >-
            Target agent's user id. Must be a valid ObjectId in the caller's
            organization (and department, for DEPARTMENT_HEAD).
        - in: query
          name: type
          required: false
          schema:
            type: string
            enum:
              - assignee
              - owner
            default: assignee
        - in: query
          name: page
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
            description: 1-based page number.
        - in: query
          name: limit
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
            description: Page size. Clamped to [1, 100].
      responses:
        '200':
          description: Agent conversations returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentConversationsResponse'
        '400':
          description: Missing or invalid userId
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EscalationDashboardError'
        '403':
          description: Access denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EscalationDashboardError'
        '500':
          description: Error fetching agent conversations
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EscalationDashboardError'
      security:
        - bearerAuth: []
components:
  schemas:
    AgentConversationsResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - true
        data:
          type: object
          properties:
            rows:
              type: array
              items:
                $ref: '#/components/schemas/AgentConversationRow'
            pagination:
              $ref: '#/components/schemas/EscalationPagination'
          required:
            - rows
            - pagination
          additionalProperties: false
      required:
        - success
        - data
      additionalProperties: false
      example:
        success: true
        data:
          rows:
            - conversationId: 8c3d4e0f9a1b3c4d5e6f7a8b9c01
              contactId: 9d4e5f1a2b3c4d5e6f7a8b9c0d12
              contactName: Alex Morgan
              contactPhone: '+14165550100'
              channelType: sms
              lastMessageTime: '2026-05-18T14:32:12.000Z'
              lastMessagePreview: Thanks! That worked.
              conversationState: awaiting-human
              hasAccess: true
          pagination:
            page: 1
            limit: 20
            total: 12
            totalPages: 1
    EscalationDashboardError:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - false
        message:
          type: string
        error:
          type: string
      required:
        - success
        - message
      additionalProperties: true
      example:
        success: false
        message: Access denied
    AgentConversationRow:
      type: object
      properties:
        conversationId:
          type: string
        contactId:
          type: string
          nullable: true
        contactName:
          type: string
        contactPhone:
          type: string
          nullable: true
        channelType:
          type: string
        lastMessageTime:
          type: string
          format: date-time
          nullable: true
        lastMessagePreview:
          type: string
          nullable: true
          description: Truncated to 80 characters.
        conversationState:
          type: string
          description: >-
            Derived conversation state (e.g. autopilot / awaiting-human /
            resolved).
        hasAccess:
          type: boolean
      required:
        - conversationId
        - contactName
        - channelType
        - conversationState
        - hasAccess
      additionalProperties: true
      example:
        conversationId: 8c3d4e0f9a1b3c4d5e6f7a8b9c01
        contactId: 9d4e5f1a2b3c4d5e6f7a8b9c0d12
        contactName: Alex Morgan
        contactPhone: '+14165550100'
        channelType: sms
        lastMessageTime: '2026-05-18T14:32:12.000Z'
        lastMessagePreview: Thanks! That worked.
        conversationState: awaiting-human
        hasAccess: true
    EscalationPagination:
      type: object
      properties:
        page:
          type: integer
        limit:
          type: integer
        total:
          type: integer
        totalPages:
          type: integer
      required:
        - page
        - limit
        - total
        - totalPages
      additionalProperties: false
      example:
        page: 1
        limit: 20
        total: 143
        totalPages: 8
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````