Create task comment
POST
/v1/tasks/{taskId}/commentsHow to call this endpoint
Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.
Path, query, and header parameters
These parameters control which ACP object the endpoint acts on and how the request is processed.
Path parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| taskId | path | string | Yes | Task ID |
Query parameters
None.
Body schema
Content type: application/json · Required
| Field | Type | Required | Description |
|---|---|---|---|
| body | string | No | — |
| content | string | No | Raw text content. |
| authorType | user | agent | system | No | — |
| authorAgentId | string | No | — |
| authorName | string | No | — |
| sourceThreadId | string | No | — |
| threadId | string | No | Thread ID. |
| metadata | object | No | Free-form metadata object. |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
201Task comment createdapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| comment | object | No | — |
| comment.object | string | No | — |
| comment.id | string | No | Unique identifier. |
| comment.userId | string | No | User ID. |
| comment.projectId | string | No | Project ID. |
| comment.taskId | string | No | — |
| comment.task | object | No | — |
| comment.task.object | string | No | — |
| comment.task.id | string | No | Unique identifier. |
| comment.task.projectId | string | No | Project ID. |
| comment.task.releaseId | string | No | — |
| comment.task.title | string | No | Display title. |
| comment.task.status | backlog | todo | in_progress | blocked | done | No | Current lifecycle status. |
| comment.task.priority | low | medium | high | urgent | No | — |
| comment.task.sprintId | string | No | — |
| comment.task.assigneeAgentId | string | No | — |
| comment.body | string | No | — |
| comment.authorType | user | agent | system | No | — |
| comment.authorAgentId | string | No | — |
| comment.authorName | string | No | — |
| comment.sourceThreadId | string | No | — |
| comment.threadId | string | No | Thread ID. |
| comment.metadata | object | No | Free-form metadata object. |
| comment.createdAt | string | No | ISO 8601 timestamp. |
| comment.updatedAt | string | No | ISO 8601 timestamp. |