Reply to a comment thread
import { FloraClient } from '@flora-ai/flora';
const client = new FloraClient({ apiKey: process.env['FLORA_API_KEY'] });
const comment = await client.projects.comments.reply({ projectId: '<projectId>', threadId: '<threadId>', body: '<body>',});console.log(comment);curl -X POST 'https://app.flora.ai/api/v1/projects/<projectId>/comment-threads/<threadId>/replies' \ -H 'Authorization: Bearer $FLORA_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "body": "<body>"}'Posts a reply on an open comment thread. author chooses whether the reply is attributed to the credential’s user (user, the default) or to FLORA (flora). author=flora is reserved for Flora’s own FAUNA, Chat, and Create agents; customer API keys and MCP credentials receive forbidden. Resolved threads return input_validation_error. Missing threads and inaccessible projects return 404. Mutating public API requests support an optional Idempotency-Key header for client retries; duplicate keys within two hours return idempotency_duplicate.
Error responses use the standard error body.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Project identifier
Project identifier
Comment thread identifier
Comment thread identifier
Request Body required
Section titled “ Request Body required ”object
Plain-text comment body
Who the comment is attributed to. user posts as the credential’s user. flora posts as FLORA, the product voice, and is accepted only from Flora’s own FAUNA, Chat, and Create credentials. Customer API keys and MCP credentials cannot use flora. Defaults to user.
Responses
Section titled “ Responses ”Reply posted.
object
Comment identifier
Plain-text comment body
object
Author kind
Display name
Author profile image URL
When the comment was created, as a Unix timestamp in milliseconds
Example
{ "comment_id": "cmt_abc123", "body": "Looks good — ship it.", "author": { "type": "user", "name": "Ada Lovelace" }}