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

# Link Task

> Link a conversation, ticket, feedback, message or knowledge update request. Linking twice is a no-op.



## OpenAPI

````yaml /openapi-v1.json post /api/v1/tasks/{task_id}/links
openapi: 3.1.0
info:
  title: AGO Public API
  version: 1.0.0
  description: Programmatic access to your AGO workspace.
servers:
  - url: https://{tenant_id}.api.useago.com
    description: AGO Public API v1
    variables:
      tenant_id:
        default: your-tenant-id
        description: Your AGO tenant identifier
security: []
paths:
  /api/v1/tasks/{task_id}/links:
    post:
      tags:
        - Tasks
      summary: Link Task
      description: >-
        Link a conversation, ticket, feedback, message or knowledge update
        request. Linking twice is a no-op.
      operationId: link_task
      parameters:
        - in: path
          name: task_id
          schema:
            description: Task UUID or identifier such as TASK-12
            title: Task Id
            type: string
          required: true
          description: Task UUID or identifier such as TASK-12
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TaskLinkIn'
        required: true
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskLinkOut'
      security:
        - ScopedAPIKeyAuth: []
components:
  schemas:
    TaskLinkIn:
      properties:
        target_type:
          description: conversation, ticket, feedback, message, or knowledge_update_request
          examples:
            - conversation
          title: Target Type
          type: string
        target_id:
          format: uuid
          title: Target Id
          type: string
      required:
        - target_type
        - target_id
      title: TaskLinkIn
      type: object
    TaskLinkOut:
      properties:
        id:
          title: Id
          type: string
        target_type:
          title: Target Type
          type: string
        target_id:
          title: Target Id
          type: string
        context:
          $ref: '#/components/schemas/TaskLinkContext'
        deleted:
          description: True when the linked record was deleted; the link stays as history.
          title: Deleted
          type: boolean
        admin_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Admin Url
      required:
        - id
        - target_type
        - target_id
        - context
        - deleted
      title: TaskLinkOut
      type: object
    TaskLinkContext:
      properties:
        conversation_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Conversation Id
        message_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Message Id
      title: TaskLinkContext
      type: object
  securitySchemes:
    ScopedAPIKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

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