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

# Discussion Comments

> Add a comment to a discussion

Add a comment to an existing discussion.

## Path Parameters

<ParamField path="id" type="string" required>
  The discussion ID
</ParamField>

## Request Body

<ParamField body="content" type="string" required>
  Content of the comment
</ParamField>

<ParamField body="author_id" type="string" required>
  ID of the user posting the comment
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  Whether the comment was added
</ResponseField>

<ResponseField name="comment" type="object">
  The created comment object
</ResponseField>

<RequestExample>
  ```bash theme={null}
  curl -X POST "https://api.usegately.com/api/v1/discussions/disc_123/comments" \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "content": "Great idea! +1 for this feature",
      "author_id": "user_456"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "success": true,
    "comment": {
      "id": "comment_789",
      "discussion_id": "disc_123",
      "content": "Great idea! +1 for this feature",
      "author_id": "user_456",
      "created_at": "2024-01-15T11:00:00Z"
    }
  }
  ```
</ResponseExample>
