Contents
Resend Request - Plugixa Testimonial
POST /plugixatestimonial/v1/requests/{id}/resend
E-mail a request again with the same link, and restart its expiry.
Administrators only: the user needs WordPress’s manage_options capability. No plugin capability opens this route.
Note. The request is set back to
pendingwith a freshexpires_atbefore the e-mail is tried, so an expired request comes back to life even when sending fails. A failed send still answers200, with the message “Email could not be sent.”
Request
POST https://your-site.example/wp-json/plugixatestimonial/v1/requests/15/resend
Path parameters
| Name | Type | Description |
|---|---|---|
id |
integer |
The request’s id |
Responses
200 OK. data is the updated request.
{
"success": true,
"message": "Request resent successfully.",
"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.status |
string |
pending |
data.expires_at |
string |
UTC datetime, restarted from now |
data.sent_at |
string|null |
Updated only when the e-mail went out |
message |
string |
A human-readable confirmation, translated to the site language |
Errors
| Status | Code | When |
|---|---|---|
404 |
rest_error |
“Request not found.” |
400 |
rest_error |
“This request has already been submitted.” |
Plus the errors every endpoint can return.
Examples
curl -s -X POST "https://your-site.example/wp-json/plugixatestimonial/v1/requests/15/resend" \
-u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixatestimonial/v1/requests/15/resend');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
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/resend', {
method: 'POST',
headers: {
'Authorization': 'Basic ' + btoa(`admin:${process.env.WP_APP_PASSWORD}`),
},
});
const { data } = await response.json();
Quick Links
Share