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

# Reply to Comment

> Reply to an existing comment

## Path Parameters

<ParamField path="id" type="string" required>
  The comment ID to reply to.
</ParamField>

## Request Body

<ParamField body="accountId" type="string" required>
  The account ID to reply from.
</ParamField>

<ParamField body="text" type="string" required>
  The reply text.
</ParamField>

## Response

<ResponseField name="id" type="string">
  Unique reply identifier.
</ResponseField>

<ResponseField name="commentId" type="string">
  The parent comment.
</ResponseField>

<ResponseField name="accountId" type="string">
  Account that created the reply.
</ResponseField>

<ResponseField name="text" type="string">
  Reply text.
</ResponseField>

<ResponseField name="createdAt" type="string">
  ISO 8601 timestamp.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://api.infinipost.co/v1/comments/cmt_xyz789/replies \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "accountId": "acc_456",
      "text": "Thanks for the support!"
    }'
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://api.infinipost.co/v1/comments/cmt_xyz789/replies', {
    method: 'POST',
    headers: {
      'Authorization': 'Bearer YOUR_API_KEY',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      accountId: 'acc_456',
      text: 'Thanks for the support!'
    })
  });

  const data = await response.json();
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "id": "rpl_def456",
    "commentId": "cmt_xyz789",
    "accountId": "acc_456",
    "text": "Thanks for the support!",
    "createdAt": "2024-04-21T20:30:00Z"
  }
  ```
</ResponseExample>
