Skip to content

The current feedback form

GET
/v1/feedback/form
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).

locale
string
Example
es

The language the app is showing (es, en); any other is served in Spanish.

Media typeapplication/json
object
versionId
required

The version to send back with the answers.

string format: uuid
version
required

The version number, as the backoffice shows it.

number
locale
required

The language of the texts: the one asked for, or es for any other. Send it back as the locale of the comment.

string
Allowed values: es en
questions
required

The questions, in the order to show them.

Array<object>
object
code
required

The question's code (q_ and 10 characters): its key in answers. A question keeps its code and its type in every version.

string
type
required

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.

string
Allowed values: choice scale text
required
required

Whether it must be answered. An optional question may be left out of answers.

boolean
text
required

The question's text, in the form's locale.

string
options

Choice questions only.

Array<object>
object
code
required

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.

string
text
required

The option's text, in the form's locale.

string
textMaxLength
required

The cap of a free-text answer, in characters.

number
Example
{
"locale": "es",
"questions": [
{
"type": "choice"
}
]
}