Whether to show the feedback card now
const url = 'https://api.emite.cr/v1/feedback/prompt?page=%2Fdashboard';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/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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Example
/dashboardThe page the person is on (a path; its query string is ignored).
Responses
Section titled “Responses”object
Whether to show the card now.
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.
Example
{ "reason": "disabled"}