Export Submissions is a WordPress ability from Ninja Forms — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Export Submissions

Read-only
Ninja Forms Forms ninjaforms/export-submissions

Export a form's submissions to CSV or JSON.

Requires the Ninja Forms plugin on WordPress 6.9+ for the Abilities API (all 32 abilities are registered only when the wp_register_ability() function exists, via NF_Abilities_Integration::load_abilities_api() running on plugins_loaded). Every ability is gated by the same ninja_forms_ability_can_manage_forms() permission callback, requiring the caller to hold WordPress's manage_options capability or Ninja Forms' own nf_edit_forms capability.

What it does

This ability exports a form's submissions — all of them, or a specific submission_ids subset — as CSV (the expected default for end users) or JSON (for technical/API use only), returning the export content plus the submission data itself. The calling assistant is expected to write the returned content to an actual downloadable file with the appropriate extension rather than just echoing raw text back to the user.

See it in action

You ask your AI assistant

"Export all submissions from form 12 to CSV so I can save it as a file."

Inputs

Name Type Required Description
form_id integer Yes The numeric ID of the form.
format string No Export format: csv (default) or json.
submission_ids array No Specific submission IDs to export; omit to export all.

Returns

An object with a 'success' boolean, the 'form_id', the export 'format', a 'count', the export 'content' string, a 'submissions' array, and a 'message'.

Permission

The current user must have WordPress's 'manage_options' capability or Ninja Forms' own 'nf_edit_forms' capability (checked via the shared ninja_forms_ability_can_manage_forms() permission callback).

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.