> ## 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 conversations linked to application

> Returns the Conversations linked to the Application (via its Contact) as a flat array plus a `count`. Selected fields only, with a derived `conversationState` from the latest message map. Note: response is NOT wrapped in a `{ success, data }` envelope.



## OpenAPI

````yaml /api-reference/openapi.yaml get /api/applications/{id}/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/applications/{id}/conversations:
    get:
      tags:
        - Applications
      summary: Get conversations linked to application
      description: >-
        Returns the Conversations linked to the Application (via its Contact) as
        a flat array plus a `count`. Selected fields only, with a derived
        `conversationState` from the latest message map. Note: response is NOT
        wrapped in a `{ success, data }` envelope.
      operationId: get_application_conversations
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Conversations returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApplicationConversationsResponse'
        '404':
          description: Application not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApplicationsBareErrorResponse'
        '500':
          description: Failed to get application conversations
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApplicationsBareErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    ApplicationConversationsResponse:
      type: object
      description: >-
        Note: this endpoint does NOT use the `{ success, data }` envelope — it
        returns the conversations array and a count at the top level.
      properties:
        conversations:
          type: array
          items:
            $ref: '#/components/schemas/ApplicationLinkedConversation'
        count:
          type: integer
      required:
        - conversations
        - count
      additionalProperties: true
      example:
        conversations:
          - _id: 64d2f9c5e8a1d4e001a0b1c2
            contactId: 64b2c3d4e5f60012345678aa
            channelType: sms
            subject: Tour follow-up
            lastMessageTime: '2026-04-22T10:14:00.000Z'
            isResolved: false
            isAutopilot: true
            conversationState: awaiting_reply
        count: 1
    ApplicationsBareErrorResponse:
      type: object
      description: >-
        Bare error envelope used by `/conversations` and `/time-to-contact`
        routes which respond with `{ error }` only.
      properties:
        error:
          type: string
      required:
        - error
      additionalProperties: true
      example:
        error: Application not found
    ApplicationLinkedConversation:
      type: object
      description: >-
        Conversation summary returned by `GET
        /api/applications/{id}/conversations`. Selected fields only plus a
        derived `conversationState`.
      properties:
        _id:
          type: string
        contactId:
          type: string
        channelType:
          type: string
        channelIdentifier:
          type: string
        subject:
          type: string
        lastMessageTime:
          type: string
          format: date-time
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        latestMessage:
          type: object
          additionalProperties: true
        isResolved:
          type: boolean
        isAutopilot:
          type: boolean
        conversationState:
          type: string
          description: Derived state from the latest message map.
      additionalProperties: true
      example:
        _id: 64d2f9c5e8a1d4e001a0b1c2
        contactId: 64b2c3d4e5f60012345678aa
        channelType: sms
        channelIdentifier: '+14155551234'
        subject: Tour follow-up
        lastMessageTime: '2026-04-22T10:14:00.000Z'
        createdAt: '2026-04-12T14:22:10.000Z'
        updatedAt: '2026-04-22T10:14:00.000Z'
        latestMessage:
          direction: inbound
          body: Sounds good, see you Tuesday.
        isResolved: false
        isAutopilot: true
        conversationState: awaiting_reply
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````