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

# Link conversation to applications

> Associate one or more existing Application records with this conversation so the agent panel can show them and automations can branch on them.



## OpenAPI

````yaml /api-reference/openapi.yaml post /api/conversation/{id}/applications/link
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/{id}/applications/link:
    post:
      tags:
        - Conversations
      summary: Link conversation to applications
      description: >-
        Associate one or more existing Application records with this
        conversation so the agent panel can show them and automations can branch
        on them.
      operationId: post_conversation_applications_link
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LinkApplicationsRequest'
      responses:
        '200':
          description: Applications linked
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinkApplicationsResponse'
        '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:
    LinkApplicationsRequest:
      type: object
      properties:
        applicationIds:
          type: array
          items:
            type: string
          description: >-
            Application `_id`s to attach to this conversation; each must be a
            valid ObjectId in the caller's organization.
      required:
        - applicationIds
      additionalProperties: true
      example:
        applicationIds:
          - 66b0a0b0c0d0e0f0a0b0c0d0
    LinkApplicationsResponse:
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
        data:
          type: object
          additionalProperties: true
      additionalProperties: true
      example:
        success: true
        message: Applications linked
        data:
          conversationId: 65d3e0f0a0b0c0d0e0f0a0b0
          linked:
            - 66b0a0b0c0d0e0f0a0b0c0d0
    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

````