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

# Add a task comment

> Adds a comment as you. Workspace members @mentioned by name get a notification.



## OpenAPI

````yaml /openapi/records.yaml post /tasks/{taskId}/comments
openapi: 3.1.0
info:
  title: Connie Records API
  version: 1.0.0
  description: >
    Endpoints the Connie web app uses for records. They authenticate with your
    signed-in browser session — see
    https://docs.connie.ai/api-reference/authentication. These are the app's own
    endpoints and can change when the app changes.
servers:
  - url: https://connie.ai/api
security:
  - sessionCookie: []
tags:
  - name: Lists
    description: Lists of records on an object, and the records in them.
  - name: People
    description: Find, match and create records on the People object.
  - name: Companies
    description: Find and create records on the Companies object.
  - name: Notes
    description: Notes on a person.
  - name: Tasks
    description: Tasks linked to a person or a company, and their comments.
paths:
  /tasks/{taskId}/comments:
    post:
      tags:
        - Tasks
      summary: Add a task comment
      description: >-
        Adds a comment as you. Workspace members @mentioned by name get a
        notification.
      operationId: createTaskComment
      parameters:
        - $ref: '#/components/parameters/TaskId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - workspaceId
                - content
              properties:
                workspaceId:
                  type: string
                  format: uuid
                content:
                  type: string
                  maxLength: 10000
      responses:
        '200':
          description: The new comment.
          content:
            application/json:
              schema:
                type: object
                properties:
                  comment:
                    $ref: '#/components/schemas/TaskComment'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  parameters:
    TaskId:
      name: taskId
      in: path
      required: true
      description: The task's record id.
      schema:
        type: string
        format: uuid
  schemas:
    TaskComment:
      type: object
      properties:
        id:
          type: string
          format: uuid
        task_id:
          type: string
          format: uuid
        user_id:
          type: string
          format: uuid
        content:
          type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        user:
          type:
            - object
            - 'null'
          properties:
            id:
              type: string
              format: uuid
            name:
              type: string
            email:
              type: string
    Error:
      type: object
      properties:
        error:
          type: string
          description: Human-readable message.
        code:
          type: string
          description: Machine-readable code, when there is one.
      required:
        - error
  responses:
    BadRequest:
      description: A required field is missing or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: >-
        No valid session (`UNAUTHORIZED`), or the session has expired
        (`SESSION_EXPIRED`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: You aren't a member of the workspace or don't have access to this item.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    sessionCookie:
      type: apiKey
      in: header
      name: Cookie
      description: >-
        The full Cookie header copied from a signed-in connie.ai browser
        request. See the Authentication page.

````

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