The current feedback form
const url = 'https://api.emite.cr/v1/feedback/form?locale=es';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.emite.cr/v1/feedback/form?locale=es' \ --header 'Authorization: Bearer <token>'The latest published version of the feedback form, in the language the app is showing (locale: es or en; any other value is served in Spanish). Answer it with POST /v1/feedback, sending back its versionId. 404 FEEDBACK_FORM_NOT_PUBLISHED until a version is published — the app does not offer the form meanwhile. Only a person's session: an API key gets 403 FEEDBACK_PERSON_REQUIRED. No scope is needed, and no company either (someone still setting up theirs can send a comment).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Example
esThe language the app is showing (es, en); any other is served in Spanish.
Responses
Section titled “Responses”object
The version to send back with the answers.
The version number, as the backoffice shows it.
The language of the texts: the one asked for, or es for any other. Send it back as the locale of the comment.
The questions, in the order to show them.
object
The question's code (q_ and 10 characters): its key in answers. A question keeps its code and its type in every version.
choice = one of options, answered with the option code; scale = a whole number from 1 to 5; text = free text of up to textMaxLength characters.
Whether it must be answered. An optional question may be left out of answers.
The question's text, in the form's locale.
Choice questions only.
object
The option's code (o_ and 10 characters): the answer to send for its question. Generated by the system and never reused, so it always means the same option.
The option's text, in the form's locale.
The cap of a free-text answer, in characters.
Example
{ "locale": "es", "questions": [ { "type": "choice" } ]}