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

# Upload a task comment attachment

> Uploads a file attachment for a task comment. Max 10MB. Allowed: images (JPEG, PNG, GIF, WebP, SVG), PDF, Word, Excel, plain text, CSV. Stored in the `attachment` bucket at `task-comments/{workspaceId}/{taskId}/`.




## OpenAPI

````yaml /openapi/crm.yaml post /tasks/{taskId}/comments/attachments
openapi: 3.1.0
info:
  title: Connie CRM API
  version: 1.0.0
  description: >
    API for contacts, companies, records, tasks, reminders, notes, activity
    feeds, and data enrichment. All endpoints require authentication.
servers:
  - url: https://connie.ai/api
    description: Production
security:
  - cookieAuth: []
tags:
  - name: Contacts
    description: Contact management and lookup
  - name: Contact Notes
    description: Notes on contacts
  - name: Contact Tasks
    description: Tasks linked to contacts
  - name: Contact Reminders
    description: Reminders linked to contacts
  - name: Companies
    description: Company management
  - name: Company Notes
    description: Notes on companies
  - name: Company Tasks
    description: Tasks linked to companies
  - name: CRM Utilities
    description: CRM setup, enrichment triggers, and table IDs
  - name: Records
    description: Generic record management across CRM sources
  - name: Enrichment
    description: Data enrichment tools and jobs
  - name: Reminders
    description: Standalone and entity-linked reminders
  - name: Tasks
    description: Task comments and activity feeds
paths:
  /tasks/{taskId}/comments/attachments:
    post:
      tags:
        - Tasks
      summary: Upload a task comment attachment
      description: >
        Uploads a file attachment for a task comment. Max 10MB. Allowed: images
        (JPEG, PNG, GIF, WebP, SVG), PDF, Word, Excel, plain text, CSV. Stored
        in the `attachment` bucket at `task-comments/{workspaceId}/{taskId}/`.
      operationId: uploadTaskCommentAttachment
      parameters:
        - name: taskId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - file
                - workspaceId
              properties:
                file:
                  type: string
                  format: binary
                  description: Max 10MB. Images, PDF, Word, Excel, CSV, plain text.
                workspaceId:
                  type: string
      responses:
        '200':
          description: Attachment uploaded
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                    format: uri
                  name:
                    type: string
                  type:
                    type: string
                    description: MIME type
                  size:
                    type: integer
                    description: File size in bytes
components:
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: cookie
      name: session

````

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