Skip to content
View as Markdown
Enter your site to enable Send. Requests are sent from your browser, so the site must allow cross-origin calls (CORS).

POST Export Recurring Campaign​

POST
/exports/recurring-campaigns

Download a recurring campaign as importable JSON.

This is a POST-only attachment endpoint: submit it as a form (application/x-www-form-urlencoded) including a _wpnonce REST nonce. The server verifies the nonce, then streams the file and ends the request, so use it from a browser form or download link, not as a JSON API.

Required capability: fcrm_read_emails or fcrm_manage_emails — which one applies depends on the action being performed.

Enforced by CampaignPolicy::verifyRequest(), the policy default for this route group.

Requires: FluentCampaign Pro. Without it the route does not exist.

Authorizations​

ApplicationPasswords

WordPress Application Passwords — use Basic auth with your WordPress username and an application password in the format: username:application_password

Type
API Key (header: Authorization)

Request Body​

application/x-www-form-urlencoded
object

ID of the recurring campaign to export.

A wp_rest nonce (wp_create_nonce('wp_rest')). Required — without a valid one the route returns 403 before any data is read. The admin UI submits it in a temporary form body so it never appears in a URL.

Responses​

The export streams back as a file attachment (Recurring-email-campaign-<title>-<id>.json); the response is not wrapped in the usual JSON envelope.

application/json

Playground​

Authorization
Body

Samples​

Powered by VitePress OpenAPI