Skip to main content

Feature

Headless / REST submissions

Render and submit forms from Astro, Next.js or any non-WordPress site. Site-wide API key + drop-in widget.

Part of Core Forms, with every premium WordPress form feature in one plugin, one license and unlimited sites.

Expose a form over REST so an external site can show it and submit standard fields as JSON. WordPress runs validation, spam checks, storage and the form's actions. Payments and file uploads need a form page hosted on WordPress.

Turn on Headless API under Core Forms > Modules (it's off by default), create the site's API key under Core Forms > Settings > Headless / REST, then switch on Headless mode for each form. Its Headless tab has three snippets: drop-in JavaScript widget, native fetch and cURL.

What you get

How it works in Core Forms

GET form schema

JSON schema including rendered HTML + structured field list for client-side validation.

POST submit

Checks required fields and spam, then runs storage and the form's actions.

embed.js widget

<div data-cf-form="…"> + script tag and the form mounts itself.

CORS-friendly

List your front ends in Allowed origins, but don't rely on it as access control. A captcha is optional, so set up Turnstile or reCAPTCHA before launch.

Drop-in embed snippet

<div data-cf-form="contact" data-cf-key="YOUR_SITE_API_KEY"></div>
<script src="https://yoursite.com/wp-json/core-forms/v1/embed.js" defer></script>

Bundled with every Core Forms license.

Headless / REST submissions is included with your license. Use code BLACKFRIDAY for 40% off either plan. Ends December 2 (IST).

Black Friday Sale

40% off Core Forms

Forms, polls, surveys, payments, and licensing — every feature, unlimited sites, one plugin.

Copy your code

Those are the after-discount prices. Paste BLACKFRIDAY at checkout to apply it. BLACKFRIDAY40 works too.

Ends December 2 (IST)