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

# Add Task Comment

> Post a comment on a task (commenter+); stored as ``external``.



## OpenAPI

````yaml /api/portal-sdk.openapi.json post /sdk/v1/projects/{project_id}/tasks/{task_id}/comments
openapi: 3.1.0
info:
  title: Statisfy Portal SDK API
  description: >-
    Customer-facing portal APIs under `/sdk/v1`. Every call is authenticated
    with a minted **portal-session token** (bearer) plus your **publishable
    key**, and is scoped to the customer in the token — see the Portal SDK
    guide.
  version: v1
servers:
  - url: https://api.statisfy.app
    description: Production gateway
security:
  - portalSession: []
    publishableKey: []
paths:
  /sdk/v1/projects/{project_id}/tasks/{task_id}/comments:
    post:
      tags:
        - sdk
      summary: Add Task Comment
      description: Post a comment on a task (commenter+); stored as ``external``.
      operationId: >-
        add_task_comment_sdk_v1_projects__project_id__tasks__task_id__comments_post
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            title: Project Id
        - name: task_id
          in: path
          required: true
          schema:
            type: string
            title: Task Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SdkCommentRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SdkComment'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SdkCommentRequest:
      properties:
        value:
          type: string
          maxLength: 10000
          minLength: 1
          title: Value
      type: object
      required:
        - value
      title: SdkCommentRequest
      description: Create/edit body — the comment text.
    SdkComment:
      properties:
        id:
          type: integer
          title: Id
        value:
          type: string
          title: Value
        author_id:
          type: string
          title: Author Id
        author_name:
          type: string
          title: Author Name
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
        visibility:
          type: string
          title: Visibility
        can_edit:
          type: boolean
          title: Can Edit
          default: false
      type: object
      required:
        - id
        - value
        - author_id
        - author_name
        - visibility
      title: SdkComment
      description: A comment as rendered for the portal (task- or project-scoped).
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    portalSession:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Minted portal-session JWT (see the Portal SDK guide for the token
        exchange).
    publishableKey:
      type: apiKey
      in: header
      name: X-Statisfy-Publishable-Key
      description: Your SDK publishable key.

````