Contents
Get Request - Plugixa Testimonial
GET /plugixatestimonial/v1/requests/{id}
Read one testimonial request.
Administrators only: the user needs WordPress’s manage_options capability. No plugin capability opens this route.
Request
GET https://your-site.example/wp-json/plugixatestimonial/v1/requests/15
Path parameters
| Name | Type | Description |
|---|---|---|
id |
integer |
The request’s id |
Responses
200 OK. data is the request.
{
"success": true,
"message": "",
"data": {
"id": "15",
"recipient_email": "lucas@example.com",
"recipient_name": "Lucas Bernard",
"subject": "We'd love your feedback!",
"message": "Hi {recipient_name},\n\nCould you share a few words about working with us?\n\n{submission_link}\n\nThank you!\n{site_name}",
"token": "kR7pX2mQ9vT4wY8zB3nC6dF1gH5jL0aS7eU2iO4qW9rT3yP6",
"status": "pending",
"testimonial_id": null,
"sent_at": "2026-11-12 09:30:00",
"submitted_at": null,
"expires_at": "2026-12-12 08:30:00",
"created_by": "1",
"created_at": "2026-11-12 09:30:00"
}
}
| Field | Type | Meaning |
|---|---|---|
data.id |
string |
The request’s id |
data.recipient_email |
string |
Who it was sent to |
data.recipient_name |
string|null |
Their name |
data.subject |
string|null |
The e-mail subject |
data.message |
string|null |
The message, with its {recipient_name}, {site_name} and {submission_link} placeholders |
data.token |
string |
The single-use key in the recipient’s link |
data.status |
string |
pending, submitted or expired |
data.testimonial_id |
string|null |
The testimonial the recipient submitted |
data.sent_at |
string|null |
Site-time datetime the e-mail last went out, null if it never did |
data.submitted_at |
string|null |
Site-time datetime of the submission |
data.expires_at |
string|null |
UTC datetime after which the link stops working |
data.created_at |
string|null |
Site-time datetime |
Errors
| Status | Code | When |
|---|---|---|
404 |
rest_error |
“Request not found.” |
Plus the errors every endpoint can return.
Examples
curl -s "https://your-site.example/wp-json/plugixatestimonial/v1/requests/15" \
-u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixatestimonial/v1/requests/15');
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/plugixatestimonial/v1/requests/15', {
headers: {
'Authorization': 'Basic ' + btoa(`admin:${process.env.WP_APP_PASSWORD}`),
},
});
const { data } = await response.json();
Quick Links
Share