Skip to content

Send a comment, answering the version that was shown.

POST
/v1/feedback
curl --request POST \
--url https://api.emite.cr/v1/feedback \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "versionId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "locale": "es", "origin": "prompt", "contactAllowed": true, "answers": { "q_example0001": "o_example0001" }, "context": { "page": "example", "webVersion": "example", "lastError": { "code": "example", "requestId": "example", "at": "2026-04-15T12:00:00Z" } } }'

The answers are validated against the version named by versionId — any published version, so a tab opened before a new publication still records what its person saw — and the text kept with each answer comes from that version, in locale, never from the browser. context is checked, not trusted: the page loses its query string, the last error is kept only if it is from the last 30 minutes, and the API adds the company, the environment and the plan of the session. A comment sent from the floating card (origin: prompt) also records the card as answered. 400 FEEDBACK_VERSION_INVALID when the version is not a published one; 400 FEEDBACK_ANSWERS_INVALID with params.reason (unknown_question, invalid_value, text_too_long, required, or empty when nothing was answered); 400 FEEDBACK_NOT_AVAILABLE_IN_DEMO in the demo; 403 FEEDBACK_PERSON_REQUIRED for an API key; 429 FEEDBACK_RATE_LIMITED past 5 comments in 10 minutes by the same person, with Retry-After.

Media typeapplication/json
object
versionId
required

The version that was shown (versionId of the form).

string format: uuid
locale
required

The language the form was shown in.

string
Allowed values: es en
origin
required

prompt = the window that appears by itself; on_demand = the menu or the command palette.

string
Allowed values: prompt on_demand
contactAllowed
required

Whether the person agreed to be contacted about this comment.

boolean
answers
required

Question code → option code (choice), 1–5 (scale) or the text written (free text).

object
key
additional properties
One of:
string
Example
{
"q_example0001": "o_example0001"
}
context

What the app captured instead of asking. Checked, not trusted; the API adds the company, the environment and the plan of the session itself.

object
page

The page the comment was sent from, without its query string.

string
webVersion

The build of the app that sent it (its release id).

string
lastError

The last API error the person saw, if any. Kept with the comment only when it is from the last 30 minutes; an older one is dropped.

object
code
required

The error.code of the last API error the person saw.

string
requestId
required

Its requestId — the same one the API logs carry.

string
at
required

When the person saw that error.

string format: date-time
Media typeapplication/json
object
id
required

Id of the comment recorded.

string format: uuid
Examplegenerated
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}