Record product feedback
import { FloraClient } from '@flora-ai/flora';
const client = new FloraClient({ apiKey: process.env['FLORA_API_KEY'] });
const feedback = await client.feedback.record({ kind: 'missing_capability', summary: 'Need support for Instagram CDN asset URLs', detail: 'upload-asset rejected an image hosted on scontent-lga3-1.cdninstagram.com.',});console.log(feedback);curl -X POST 'https://app.flora.ai/api/v1/feedback' \ -H 'Authorization: Bearer $FLORA_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "kind": "missing_capability", "summary": "Need support for Instagram CDN asset URLs", "detail": "upload-asset rejected an image hosted on scontent-lga3-1.cdninstagram.com."}'Records product feedback from the authenticated user. Use kind=missing_capability for blocked public API workflows such as unsupported upload-asset source hosts, and include attempted_tools when relevant. Feedback can be optionally linked to a workspace, project, or run. 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 ”Request Body required
Section titled “Request Body required ”object
Feedback kind. Use missing_capability for blocked API workflows such as unsupported asset source hosts.
Short summary
Detailed description
Tools or capabilities attempted before submitting feedback
Workspace identifier. Use the public API ID returned by list workspaces; it must start with ws_.
Project identifier. Use the public API ID returned by list projects; it must start with prj_.
Run identifier. It must start with run_.
Responses
Section titled “ Responses ”Feedback recorded.
object
Feedback identifier
Example
{ "feedback_id": "fb_abc123"}