Skip to content

Reply to a comment thread

POST
/projects/{projectId}/comment-threads/{threadId}/replies
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);

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.

projectId
required

Project identifier

string
/^prj_\S+$/

Project identifier

threadId
required

Comment thread identifier

string
/^cth_\S+$/

Comment thread identifier

Media type application/json
object
body
required

Plain-text comment body

string
>= 1 characters <= 10000 characters
author

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.

string
Allowed values: user flora

Reply posted.

Media type application/json
object
comment_id
required

Comment identifier

string
/^cmt_\S+$/
body
required

Plain-text comment body

string
author
required
object
type
required

Author kind

string
Allowed values: user anonymous flora
name
required

Display name

string
profile_image_url

Author profile image URL

string format: uri
created_at
required

When the comment was created, as a Unix timestamp in milliseconds

number
Example
{
"comment_id": "cmt_abc123",
"body": "Looks good — ship it.",
"author": {
"type": "user",
"name": "Ada Lovelace"
}
}