---
title: "Comment on an artifact or reply to a comment [write]"
method: POST
path: "/artifacts/{id}/comments"
tags: ["artifacts"]
---

# Comment on an artifact or reply to a comment \[write\]

`POST /artifacts/{id}/comments`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/artifacts/{id}/comments`
- Auth: HTTP bearer

The server binds the authenticated author, current revision and timestamp. parent_id must name a comment in this artifact at base_version. 409 on stale revision or the 1000-entry limit. Appends do not publish or start an agent. This operation is not idempotent: after an uncertain response, read the discussion before deciding whether to resubmit.

## Path parameters

- `id` string, required

## Request body

- object
  - `text` string, required
  - `base_version` integer, required
  - `parent_id` string, nullable

## Response `201`

Created

- object
  - `comment` ArtifactComment
    - `id` string, required
    - `text` string, required
    - `target` string, required
    - `version` integer, required
    - `author_id` string, required
    - `author` string, required
    - `created_at` string, date-time, required
    - `parent_id` string, nullable, required
    - `resolution` object: Root thread state only; absent means open at resolution version 0. Replies inherit their root's state.
      - `resolved` boolean, required
      - `version` integer, required
      - `updatedAt` string, date-time, required
      - `updatedBy` object, required
        - `id` string, required
        - `name` string, required

## Other responses

- `default`: Error — { error: { code, message } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/artifacts/:id/comments/post.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/0d435187cd55?raw)
