> ## 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 Thread External Ticket

> Attach an external ticket reference authorized by your backend.

Requires conversations:write. The integration must verify the association
before calling: this endpoint needs no end-user JWT and makes no external
API calls. Further updates use the configured connector's standard sync.



## OpenAPI

````yaml /openapi-v1.json post /api/v1/conversations/{thread_id}/external-ticket
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/conversations/{thread_id}/external-ticket:
    post:
      tags:
        - Conversations
      summary: Link Thread External Ticket
      description: >-
        Attach an external ticket reference authorized by your backend.


        Requires conversations:write. The integration must verify the
        association

        before calling: this endpoint needs no end-user JWT and makes no
        external

        API calls. Further updates use the configured connector's standard sync.
      operationId: v1_link_external_ticket
      parameters:
        - in: path
          name: thread_id
          schema:
            format: uuid
            title: Thread Id
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LinkExternalTicketRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinkExternalTicketResponse'
      security:
        - ScopedAPIKeyAuth: []
components:
  schemas:
    LinkExternalTicketRequest:
      properties:
        ticketing_system:
          pattern: ^[a-z][a-z0-9_-]{0,63}$
          title: Ticketing System
          type: string
        external_id:
          maxLength: 255
          minLength: 1
          title: External Id
          type: string
      required:
        - ticketing_system
        - external_id
      title: LinkExternalTicketRequest
      type: object
    LinkExternalTicketResponse:
      properties:
        object:
          default: ticket
          title: Object
          type: string
        id:
          format: uuid
          title: Id
          type: string
        ticketing_system:
          title: Ticketing System
          type: string
        external_id:
          title: External Id
          type: string
        conversation_id:
          format: uuid
          title: Conversation Id
          type: string
      required:
        - id
        - ticketing_system
        - external_id
        - conversation_id
      title: LinkExternalTicketResponse
      type: object
  securitySchemes:
    ScopedAPIKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````