Skip to content

Whether to show the feedback card now

GET
/v1/feedback/prompt
curl --request GET \
--url 'https://api.emite.cr/v1/feedback/prompt?page=%2Fdashboard' \
--header 'Authorization: Bearer <token>'

Decides whether the floating card that asks for feedback appears now, on page. Every rule is applied here, never in the app, and the answer names the first one that says no, in this order: the card is turned off, its default (disabled); no form is published (no_form); a demo (demo); the session has no company (no_company); the person once chose «No volver a preguntar» (declined); the card appeared, was set aside or was answered in the last 90 days (recently_asked); the person sent a comment on their own in the last 90 days (recent_comment); the account is under 30 days old (new_account); the company has issued fewer than 10 documents of its own in production — imported ones do not count (few_documents); the person is outside the share sampled for their current 90-day period, the same answer on every page (not_sampled); and the card only appears on the dashboard, the lists and the reports (page). Only page leaves the question open for another page. Only a person's session: an API key gets 403 FEEDBACK_PERSON_REQUIRED.

page
string
Example
/dashboard

The page the person is on (a path; its query string is ignored).

Media typeapplication/json
object
show
required

Whether to show the card now.

boolean
reason
required

Why not (null when it is shown). page alone means the person may see it on another page; any other reason holds for the rest of the session.

string
nullable
Allowed values: disabled no_form demo no_company declined recently_asked recent_comment new_account few_documents not_sampled page
Example
{
"reason": "disabled"
}