Contents
Check Visitor Feedback - Plugixa FAQ
GET /plugixa-faq/v1/feedback/check/{faq_id}
Ask whether the visitor making the request already voted on a FAQ within the cooldown.
Public: no authentication. The answer is about the caller only (its user id, IP address and feedback cookie). Needs Plugixa FAQ Pro: the free build does not register this route, so it answers 404 there.
Request
GET https://your-site.example/wp-json/plugixa-faq/v1/feedback/check/42
Path parameters
| Name | Type | Description |
|---|---|---|
faq_id |
integer |
The FAQ |
Responses
200 OK.
{
"success": true,
"message": "",
"data": {
"has_feedback": true
}
}
| Field | Type | Meaning |
|---|---|---|
data.has_feedback |
boolean |
Whether a vote from this visitor is inside the cooldown |
For a FAQ that is not published and public, or does not exist, the answer is always false.
Errors
Plus the errors every endpoint can return.
Examples
curl -s "https://your-site.example/wp-json/plugixa-faq/v1/feedback/check/42"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-faq/v1/feedback/check/42');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-site.example/wp-json/plugixa-faq/v1/feedback/check/42');
const { data } = await response.json();
Quick Links
Share