---
title: "Reply on a thread"
method: POST
path: "/v2/agent/org/issues/{issueId}/comments"
tags: ["agent"]
---

# Reply on a thread

`POST /v2/agent/org/issues/{issueId}/comments`

## Request

- Base URL: `https://api.cardog.app`
- URL: `https://api.cardog.app/v2/agent/org/issues/{issueId}/comments`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Posts a reply as the person the grant names, with the workspace's own checks: a read-only seat is a 403, and a thread your organization is not part of is a 404. The agent calls this only after the person approved the draft. Costs 0 credits.

## Path parameters

- `issueId` string, uuid, required

## Headers

- `X-Cardog-Agent-Grant` string, required

## Request body

- AgentOrgCommentCreateRequest
  - `body` string, required: The reply. Plain text; blank lines separate paragraphs.
  - `parentId` string, uuid, nullable: The comment you are replying to. Leave it out to reply to the thread.

## Response `201`

The reply's ID and the thread's workspace link

- AgentOrgCommentCreated
  - `comment` object, required: The new comment
    - `id` string, required: The new comment's ID
    - `parentId` string, nullable, required: The comment it replies to. Null for a reply to the thread.
  - `links` object, required: Where to go next
    - `issue` string, required: Where to read the thread: `GET /v2/agent/org/issues/{issueId}`

## Other responses

- `400`: The request is invalid. The error response names each bad value in `refs` or `details` and, where it can, suggests the nearest valid ref in `suggestions`. We never fall back to a fuzzy match.
- `401`: No valid API key or session
- `403`: Your credential cannot use this endpoint (`forbidden`)
- `404`: Resource not found
- `429`: Per-minute rate limit exceeded
- `500`: Internal error
- `503`: Temporarily unavailable (`unavailable`); retry with backoff

## Changes

- **2026-11-20** `d7a9494f5c04`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cardog/apis/cardog-api-v2/changes/v2/agent/org/issues/:issueId/comments/post.md)

---

[API](https://skmtc.dev/cardog/apis/cardog-api-v2.md) - [All operations](https://skmtc.dev/cardog/apis/cardog-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/cardog/apis/cardog-api-v2/revisions/016058226dc5?raw)
