Skip to Content
dropshelf
REST API

Comment on a drop

Text only; nothing interprets it. Visible to everyone who can see the drop. The body is trimmed of surrounding space and is at most social.maxCommentBytes bytes, which GET /api/v1/instance reports. Control characters are refused, a newline, a carriage return and a tab excepted.

POST
/api/v1/drops/{slug}/comments

Text only; nothing interprets it. Visible to everyone who can see the drop. The body is trimmed of surrounding space and is at most social.maxCommentBytes bytes, which GET /api/v1/instance reports. Control characters are refused, a newline, a carriage return and a tab excepted.

Authorization

headerAuthorizationBearer <token>

A personal access token, odp_ followed by 43 characters. Create one in the dashboard.

Path Parameters

slug*string

The drop.

Request Body

The text.

application/json
  1. body
anchor?

Optional. Pins the comment to a spot on the page; refused on a reply. The server assigns the pin's number.

body*string

Text, trimmed, at most social.maxCommentBytes bytes. The cap counts the bytes of the text itself, not of the JSON that carries it, so escaping non-ASCII does not bring a body closer to it.

changeRequest?boolean

Optional. true makes the comment a change request: something to fix, which can be resolved. Refused on a reply.

mentions?array<string>

Optional. The ids of the people the comment tags, from GET /api/v1/drops/{slug}/mentionable, at most 10. Each is told they were mentioned. Repeats and anyone who cannot open the drop are left out without an error.

Itemsitems <= 10
parentId?string

Optional. The top-level comment this one answers, by id or by its number on the drop. A reply to a reply, or to a comment on another drop, is refused.

Response Body

The comment.

application/json
  1. response
anchor*|

The spot on the page a top-level comment is pinned to; null on a comment without a pin, and always null on a reply.

author*
body*string

Plain text.

changeRequest*boolean

A change request asks for a fix; anything else is conversation. Only a change request is resolved, and only open change requests count as unresolved. Fixed when the comment is written; always false on a reply.

createdAt*string
Formatdate-time
id*string

ULID.

mentions*array<>

The people the comment tags, in the order written; each was able to open the drop when it was written. The body holds their names as plain text, written @Name.

number*|

The comment's number on this drop: the nth top-level comment is n, never reused. Null on a reply. A pin shows this number, and the comment routes and parentId accept it in place of the id.

parentId*|

The top-level comment this one answers; null on a top-level comment.

reactions*array<>

The emoji people gave the comment, always in the order thumbsup, heart, laugh, tada, surprised, eyes, pray, rocket. Empty when there are none.

replies*array<>

A top-level comment's answers, oldest first. Always empty on a reply: replies are one level deep.

resolved*|

Who resolved a top-level comment and when; null while it is open, and always null on a reply.

version*|

The drop's live version when the comment was written; null when nothing was live.

via*|

The agent client the comment was written through, such as Claude Code, or MCP when the client is not known. Null for a comment written any other way.

Example Request
curl -X POST 'https://drop.example.com/api/v1/drops/string/comments' \  -H 'Content-Type: application/json' \  -d '{  "body": "string"}'
Example Response
{  "anchor": {    "box": {      "h": 0,      "w": 0,      "x": 0,      "y": 0    },    "path": "string",    "point": {      "x": 0,      "y": 0    },    "selector": "string",    "tag": "string",    "text": "string",    "width": 1  },  "author": {    "email": "string",    "id": "string",    "name": "string"  },  "body": "string",  "changeRequest": true,  "createdAt": "2019-08-24T14:15:22Z",  "id": "string",  "mentions": [    {      "email": "string",      "id": "string",      "name": "string"    }  ],  "number": 0,  "parentId": "string",  "reactions": [    {      "by": [        {          "email": "string",          "id": "string",          "name": "string"        }      ],      "count": 1,      "emoji": "thumbsup",      "mine": true    }  ],  "replies": [    {}  ],  "resolved": {    "at": "2019-08-24T14:15:22Z",    "by": {      "email": "string",      "id": "string",      "name": "string"    },    "version": 0  },  "version": 0,  "via": "string"}

Generated from dropshelf core at 6a548b2, 26 Nov 2026.