# Comment on a request (https://notert.io/docs/api/reference/comment-on-a-request)

`POST /api/v1/requests/{requestId}/comments`

Posts a comment on a request, or an internal note, as the token's holder, on its own or in a comment's thread. A public comment shows on the board, emails the person the request is from and tells its followers, as one posted in the app does. A reply in a note's thread is a note too. Where the comment is posted but can't be read back for the answer, the answer holds its id alone, and the list reads the rest.

Access: A token with comments:write.

## Path parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `requestId` | string | Yes | The request's id. Where an endpoint takes one, its key as its page shows it, such as REQ-44, works too. At most 64 characters. |

## Headers

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | string | No | A key of your own for this call, such as a UUID, sent again with a call made again after its answer was lost, so it stores and sends once and answers what the first stored. The same key with other words names another record. Send it or an id in the body, not both. At least 1 character. At most 255 characters. |

## Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | uuid | No | An id of your own, a UUID, so a call sent again after its answer was lost answers the same comment rather than posting a second. Or send an Idempotency-Key header instead, not both. |
| `body` | string | Yes | What to say, in Markdown, up to 5,000 characters. At least 1 character. At most 5000 characters. |
| `internal` | boolean | No | true for an internal note the team alone reads. false, the default, for a public comment. Default false. |
| `replyTo` | string | No | The comment to reply to, in its thread. A reply to a reply joins the same thread. Without one, a comment of its own. At most 64 characters. |
| `pictureUrls` | uri[] | No | Public https addresses of pictures to attach (JPEG, PNG, GIF or WebP, of no more pixels than 3840 x 2160, up to 10 MB each), at most 10 and the plan's count, which the server fetches from the open web. One that can't be fetched, isn't a picture or is too large is PICTURE_REFUSED, and nothing is posted. Default []. |

## Response 201

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | The comment's id. |
| `replyTo` | string or null | The comment whose thread it replies in, or null for a comment of its own. |
| `body` | string | What it says, in Markdown: links, lists, code and mentions of teammates. |
| `internal` | boolean | Whether it is an internal note the team alone reads, rather than a comment the board shows. |
| `author` | string or null | Who wrote it, by name: Otto for an answer of the workspace's AI agent, null for an author who gave no name. Their email address is never answered. |
| `authorKind` | string or null | Whether its author is a member of the team (member), someone outside it the workspace knows, such as a customer (contact), or the workspace's AI agent (otto). Null for an author the workspace no longer knows: one whose account is gone, or a member who left the team. One of: `member`, `contact`, `otto`. |
| `attachments` | object[] | Its pictures and other files, in the order they were attached, every one the team sees in the request's thread in the app, those kept for the team alone included. |
| `attachments.attachmentId` | string | The file's id, which stays the same while its url may change from one read to the next. |
| `attachments.name` | string | The file's name. |
| `attachments.type` | string | The file's content type. |
| `attachments.size` | integer | The file's size in bytes. |
| `attachments.url` | string or null | Where the file opens. A file the public board may show keeps its address; one only the team sees opens until the end of the next day, so download what you keep rather than its address, and list the comments again for a fresh one. Null while it can't be opened from outside the app: a document still being checked for safety, or a file a customer sent that waits for review or that the team keeps to itself, which open only in the app. |
| `createdAt` | date-time | When it was posted. |

## Errors

| Status | Code | Message |
| --- | --- | --- |
| 400 | `BAD_REQUEST` | Input validation failed. |
| 400 | `COMMENT_EMPTY` | A comment needs some text. |
| 400 | `IDEMPOTENCY_KEY_REFUSED` | Send an Idempotency-Key of 1 to 255 visible characters, or an id of your own in the body, not both. |
| 401 | `UNAUTHORIZED` | Send a valid API token as a Bearer token. |
| 403 | `HOLDER_NOT_ALLOWED` | The teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings. |
| 403 | `INSUFFICIENT_SCOPE` | This API token can't comment on requests or delete comments. Create one that may in the workspace's settings. |
| 403 | `NETWORK_NOT_ALLOWED` | This API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings. |
| 403 | `NO_SEAT` | This workspace's plan has no seat for you. |
| 403 | `WORKSPACE_SUSPENDED` | This workspace is suspended. |
| 404 | `NOT_FOUND` | Not Found. |
| 409 | `CHANGED_MEANWHILE` | Something changed meanwhile. Try again. |
| 409 | `REPLY_LIMIT_REACHED` | That thread holds as many replies as it takes. Post a comment of its own. |
| 409 | `TOO_MANY_FILES` | That is more files than the workspace's plan takes. Its data holds `limit`. |
| 409 | `VISIBILITY_FIXED` | A thread keeps one visibility: a note's replies are notes, a comment's are public, and a comment with public replies stays public. |
| 422 | `PICTURE_REFUSED` | A picture in pictureUrls couldn't be attached, so nothing was written. data.url names it and data.reason says why. Its data holds `url`, `reason`. |
| 429 | `TOO_MANY_REQUESTS` | Too Many Requests. Its data holds `retryAfter`. |

## Example request

```sh
curl -X POST https://app.notert.io/api/v1/requests/8f2c4b1e-3a6d-4f0b-9c2e-5d7a1b3c9e40/comments \
  -H "Authorization: Bearer $NOTERT_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "9a1c3e5f-7b2d-4f6a-8e0c-2b4d6f8a0c1e",
  "body": "This is **planned** for next month.",
  "internal": false,
  "replyTo": "3b5d7f9a-1c2e-4a6b-8d0f-4e6a8c0b2d47",
  "pictureUrls": [
    "https://example.com/shots/dark-mode.png"
  ]
}'
```

## Example response 201

```json
{
  "id": "9a1c3e5f-7b2d-4f6a-8e0c-2b4d6f8a0c1e",
  "replyTo": "3b5d7f9a-1c2e-4a6b-8d0f-4e6a8c0b2d47",
  "body": "This is **planned** for next month.",
  "internal": false,
  "author": "Dana Kim",
  "authorKind": "member",
  "attachments": [
    {
      "attachmentId": "2e8a4c6f-0b3d-4f9a-8c1e-5d7b9f1a3c62",
      "name": "invoice-export.png",
      "type": "image/png",
      "size": 182044,
      "url": "https://notert-content.com/requests/6d2e9a1c/4c1e7a9b.png"
    }
  ],
  "createdAt": "2026-11-12T09:41:07.654Z"
}
```
