POST Export Dynamic Segment​
Download a dynamic segment definition as 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_manage_contact_cats
Enforced by DynamicSegmentPolicy::verifyRequest(), the policy default for this route group.
Requires: FluentCampaign Pro. Without it the route does not exist.
Authorizations​
WordPress Application Passwords — use Basic auth with your WordPress username and an application password in the format: username:application_password
Request Body​
ID of the dynamic segment 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 (<title>-<id>.json); the response is not wrapped in the usual JSON envelope.