Send a comment, answering the version that was shown.
const url = 'https://api.emite.cr/v1/feedback';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"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"}}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
The version that was shown (versionId of the form).
The language the form was shown in.
prompt = the window that appears by itself; on_demand = the menu or the command palette.
Whether the person agreed to be contacted about this comment.
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
The page the comment was sent from, without its query string.
The build of the app that sent it (its release id).
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
The error.code of the last API error the person saw.
Its requestId — the same one the API logs carry.
When the person saw that error.
Responses
Section titled “Responses”object
Id of the comment recorded.
Examplegenerated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}