Contents
On this page
Get View - Plugixa FAQ
GET /plugixa-faq/v1/views/{id}
Read one view with its full design configuration.
Any signed-in user with the plugixa_faq_manage capability or WordPress’s edit_posts (Contributors and up, by default).
Request
GET https://your-site.example/wp-json/plugixa-faq/v1/views/2
Path parameters
| Name | Type | Description |
|---|---|---|
id |
integer |
The view’s id |
Responses
200 OK. data is the view.
{
"success": true,
"message": "",
"data": {
"id": "2",
"name": "Support centre",
"slug": "support-centre",
"description": "Accordion for the help pages.",
"config": {
"layout": {
"style": "accordion",
"columns": 1,
"groupByCategory": false
},
"behavior": {
"openFirst": false,
"allowMultiple": true,
"animationSpeed": 300
},
"icon": {
"style": "chevron",
"position": "right"
},
"colors": {
"questionText": "#1d2327",
"questionBg": "#f0f0f1",
"answerText": "#1d2327",
"answerBg": "#ffffff",
"borderColor": "#c3c4c7",
"accentColor": "#2271b1"
},
"typography": {
"questionFontSize": 16,
"questionFontWeight": 600,
"answerFontSize": 14,
"answerFontWeight": 400
},
"spacing": {
"padding": 15,
"margin": 10,
"gap": 8
},
"borders": {
"radius": 4,
"width": 1
},
"shadows": {
"enabled": false,
"value": "0 2px 4px rgba(0,0,0,0.1)"
},
"feedback": {
"enabled": false
}
},
"is_default": "0",
"created_at": "2026-11-12 09:30:00",
"created_by": "1",
"modified_at": null,
"modified_by": null
}
}
| Field | Type | Meaning |
|---|---|---|
data.config.layout |
object |
style, columns, groupByCategory |
data.config.behavior |
object |
openFirst, allowMultiple, animationSpeed (ms) |
data.config.icon |
object |
style and position of the open/close icon |
data.config.colors |
object |
Hex colours |
data.config.typography |
object |
Font sizes (px) and weights |
data.is_default |
string |
"1" for the default view |
config can hold more sections than the defaults shown here, as saved by the view editor; a view whose stored config cannot be read comes back with the defaults.
Errors
| Status | Code | When |
|---|---|---|
404 |
rest_error |
No view with that id. |
Plus the errors every endpoint can return.
Examples
curl -s "https://your-site.example/wp-json/plugixa-faq/v1/views/2" \
-u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-faq/v1/views/2');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_USERPWD => 'admin:' . getenv('WP_APP_PASSWORD'),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-site.example/wp-json/plugixa-faq/v1/views/2', {
headers: {
'Authorization': 'Basic ' + btoa(`admin:${process.env.WP_APP_PASSWORD}`),
},
});
const { data } = await response.json();
Quick Links
Share