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

# Add Ticket Attachment Endpoint



## OpenAPI

````yaml https://platform.ankra.app/openapi.json post /api/v1/org/support/tickets/{ticket_id}/attachments
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://platform.ankra.app
security: []
tags:
  - name: Clusters
    description: Create, inspect and manage clusters, and the stacks deployed on them.
  - name: Managed Clusters
    description: Provider-managed control planes, driven through one common surface.
  - name: Imported Clusters
    description: Clusters that already existed and were connected to Ankra.
  - name: Cluster Access
    description: Kubeconfigs, service-account tokens and per-cluster access grants.
  - name: Kubernetes
    description: Read and act on the Kubernetes objects inside a cluster.
  - name: DigitalOcean Clusters
    description: Provision and manage DigitalOcean Kubernetes clusters.
  - name: Hetzner Clusters
    description: Provision and manage Hetzner Kubernetes clusters.
  - name: OVH Clusters
    description: Provision and manage OVH Kubernetes clusters.
  - name: Scaleway Clusters
    description: Provision and manage Scaleway Kapsule clusters.
  - name: UpCloud Clusters
    description: Provision and manage UpCloud Kubernetes clusters.
  - name: Applications
    description: Deploy, configure and observe applications across the fleet.
  - name: Stack Profiles
    description: Reusable stack definitions, their versions and sharing.
  - name: Charts
    description: Browse the chart catalogue behind stacks and addons.
  - name: Helm
    description: Helm registries, credentials and the charts they expose.
  - name: Executions
    description: Long-running platform executions and their jobs.
  - name: Operations
    description: Cancel in-flight cluster operations and their jobs.
  - name: Chat
    description: Conversational sessions, plans and confirmable actions.
  - name: AI Agent Runs
    description: Autonomous agent runs and their outcomes.
  - name: AI Tickets
    description: The AI ticket board, its sync connections and settings.
  - name: AI Playbooks
    description: Reusable playbooks the AI lanes execute.
  - name: AI Conditions
    description: Conditions that gate AI autonomy.
  - name: AI Engineering Handoffs
    description: Work the AI lanes escalate to a human engineer.
  - name: AI Environment
    description: The environment and base stacks AI demos deploy into.
  - name: Security
    description: Findings, advisories, SBOMs, compliance and posture.
  - name: Cost
    description: Cluster and fleet cost, rate cards and cost settings.
  - name: Billing
    description: Subscription and spend caps.
  - name: Organisation
    description: Members, invitations, audit logs and organisation settings.
  - name: Account Tokens
    description: Personal access tokens for the API and CLI.
  - name: Credentials
    description: The shared credential store.
  - name: Azure Credentials
    description: Azure credentials and SSH keys.
  - name: DigitalOcean Credentials
    description: DigitalOcean credentials and SSH keys.
  - name: Hetzner Credentials
    description: Hetzner credentials and SSH keys.
  - name: OVH Credentials
    description: OVH credentials and SSH keys.
  - name: Scaleway Credentials
    description: Scaleway credentials.
  - name: UpCloud Credentials
    description: UpCloud credentials and SSH keys.
  - name: Data Source Credentials
    description: Credentials for metrics and log sources.
  - name: DNS Credentials
    description: Credentials for DNS providers.
  - name: DNS
    description: DNS zones and records, including custom organisation zones.
  - name: Cloudflare
    description: Cloudflare domains and the credentials behind them.
  - name: Variables
    description: Organisation- and cluster-scoped variables.
  - name: SOPS
    description: Encrypt and decrypt values with the organisation SOPS config.
  - name: Alerts
    description: Alert integrations and ingest credentials.
  - name: Notifications
    description: Notification routes and their delivery targets.
  - name: Support
    description: Support tickets.
paths:
  /api/v1/org/support/tickets/{ticket_id}/attachments:
    post:
      tags:
        - Support
      summary: Add Ticket Attachment Endpoint
      operationId: >-
        add_ticket_attachment_endpoint_api_v1_org_support_tickets__ticket_id__attachments_post
      parameters:
        - in: path
          name: ticket_id
          required: true
          schema:
            format: uuid4
            title: Ticket Id
            type: string
        - in: header
          name: authorization
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - in: header
          name: x-ankra-organisation-id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Ankra-Organisation-Id
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_add_ticket_attachment_endpoint_api_v1_org_support_tickets__ticket_id__attachments_post
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Ticket'
          description: Successful Response
        '401':
          description: Unauthorized
        '404':
          description: Not found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    Body_add_ticket_attachment_endpoint_api_v1_org_support_tickets__ticket_id__attachments_post:
      properties:
        file:
          format: binary
          title: File
          type: string
      required:
        - file
      title: >-
        Body_add_ticket_attachment_endpoint_api_v1_org_support_tickets__ticket_id__attachments_post
      type: object
    Ticket:
      properties:
        ai_review_status:
          $ref: '#/components/schemas/AIReviewStatus'
        ai_summary:
          anyOf:
            - type: string
            - type: 'null'
          title: Ai Summary
        attachments:
          items:
            $ref: '#/components/schemas/TicketAttachment'
          title: Attachments
          type: array
        category:
          $ref: '#/components/schemas/TicketCategory'
        cluster_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Cluster Id
        cluster_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Cluster Name
        comments:
          items:
            $ref: '#/components/schemas/TicketComment'
          title: Comments
          type: array
        created_at:
          format: date-time
          type: string
          title: Created At
        description:
          type: string
          title: Description
        id:
          format: uuid
          type: string
          title: Id
        is_tracked_by_team:
          default: false
          title: Is Tracked By Team
          type: boolean
        organisation_id:
          format: uuid
          title: Organisation Id
          type: string
        reported_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Reported By
        severity:
          anyOf:
            - $ref: '#/components/schemas/TicketSeverity'
            - type: 'null'
        source:
          $ref: '#/components/schemas/TicketSource'
        status:
          $ref: '#/components/schemas/TicketStatus'
        subject:
          title: Subject
          type: string
        ticket_number:
          type: integer
          title: Ticket Number
        updated_at:
          format: date-time
          type: string
          title: Updated At
      required:
        - id
        - ticket_number
        - organisation_id
        - source
        - category
        - subject
        - description
        - status
        - ai_review_status
        - created_at
        - updated_at
      title: Ticket
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    AIReviewStatus:
      enum:
        - pending
        - passed
        - flagged
      title: AIReviewStatus
      type: string
    TicketAttachment:
      properties:
        content_type:
          title: Content Type
          type: string
        created_at:
          format: date-time
          type: string
          title: Created At
        filename:
          title: Filename
          type: string
        id:
          format: uuid
          type: string
          title: Id
        size_bytes:
          title: Size Bytes
          type: integer
      required:
        - id
        - filename
        - content_type
        - size_bytes
        - created_at
      title: TicketAttachment
      type: object
    TicketCategory:
      enum:
        - technical
        - account
        - billing
        - bug
        - feature_request
        - other
      title: TicketCategory
      type: string
    TicketComment:
      properties:
        author_label:
          title: Author Label
          type: string
        author_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Author Name
        author_type:
          $ref: '#/components/schemas/CommentAuthorType'
        body:
          type: string
          title: Body
        created_at:
          format: date-time
          type: string
          title: Created At
        id:
          format: uuid
          type: string
          title: Id
      required:
        - id
        - author_type
        - author_label
        - body
        - created_at
      title: TicketComment
      type: object
    TicketSeverity:
      enum:
        - low
        - medium
        - high
        - critical
      title: TicketSeverity
      type: string
    TicketSource:
      enum:
        - portal
        - api
        - cli
        - agent
      title: TicketSource
      type: string
    TicketStatus:
      enum:
        - pending_review
        - open
        - triaging
        - in_progress
        - waiting_customer
        - resolved
        - closed
      title: TicketStatus
      type: string
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    CommentAuthorType:
      enum:
        - customer
        - ankra_team
        - ai
        - system
      title: CommentAuthorType
      type: string

````