Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Record product feedback

Record product feedback with the FLORA API: POST /feedback.

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.

POST https://app.flora.ai/api/v1/feedback
  • Auth: API key as a bearer token, Authorization: Bearer $FLORA_API_KEY. See Authentication.

  • TypeScript SDK: client.feedback.record().

  • Idempotency: optional Idempotency-Key header. See Idempotency.

  • Operation ID: recordFeedback.

Example

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."
}'
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);

Request body

Required.

Field
Type
Required
Description

kind

string

Yes

Feedback kind. Use missing_capability for blocked API workflows such as unsupported asset source hosts. One of: feature_request, bug, technique_request, missing_capability.

summary

string

Yes

Short summary. At least 1 character. Example: Need support for Instagram CDN asset URLs.

detail

string

Yes

Detailed description. At least 1 character. Example: upload-asset rejected an image hosted on scontent-lga3-1.cdninstagram.com..

attempted_tools

array of string

No

Tools or capabilities attempted before submitting feedback. Example: ["upload-asset"].

workspace_id

string

No

Workspace identifier. Use the public API ID returned by list workspaces; it must start with ws_. Example: ws_abc123.

project_id

string

No

Project identifier. Use the public API ID returned by list projects; it must start with prj_. Example: prj_abc123.

run_id

string

No

Run identifier. It must start with run_. Example: run_abc123.

Responses

201: Feedback recorded.

Field
Type
Required
Description

feedback_id

string

Yes

Feedback identifier. Pattern: ^fb_\S+$. Example: fb_abc123.

received_at

integer

Yes

Errors

Every error has the same body: error.code, error.message, and error.fields on validation errors. See Errors for how to recover from each code.

Status
Code
Meaning

400

invalid_json, input_validation_error

The body isn't valid JSON, or an input failed validation (fields lists each one).

401

unauthorized, invalid_api_key

The API key is missing, invalid or revoked.

402

insufficient_credits

The workspace balance is too low for this request.

403

forbidden, paid_plan_required

The key can't do this, or the workspace plan doesn't include it.

404

not_found

The resource doesn't exist or isn't visible to this key.

409

idempotency_duplicate, revision_conflict

Duplicate Idempotency-Key or a stale base_revision.

429

rate_limited

Too many requests. Back off and retry.

500

unknown_error, internal_error

Something failed on FLORA's side. Retry with backoff.

503

temporarily_unavailable

Authorization is temporarily unavailable. Retry later.

Last updated

Was this helpful?