Webhook Action
Built-In

Webhook Action

Send form data to any URL endpoint and map returned JSON data back into your form.

How to Send Form Data with a Webhook in WordPress

Connect your forms to custom endpoints and return data to fields

Webhook Action lets you send WordPress form submission data to any URL endpoint. Supported request methods include POST, GET, PUT, DELETE, and PATCH.

You can map form fields to request keys, add custom key/value pairs, and include additional HTTP headers. WS Form also supports JSON and URL encoded content types.

When response processing is enabled, returned JSON data can be mapped into form fields. You can also map HTTP status codes to ignore the response, process response field mapping, throw an error, or halt action processing.

Common uses include pushing submissions to a custom endpoint, sending data to a third party without a native integration, and pre-loading form fields with data from an endpoint.

  • Flexible request methods

    Send data using POST, GET, PUT, DELETE, or PATCH.

  • Map request data

    Map form fields to request keys, add custom values, and include HTTP headers.

  • Use returned JSON

    Map JSON response data into form fields and control how HTTP status codes are handled.

Real Customer Reviews

Trusted by thousands of WordPress professionals.

  • Easy to setup and use, Perfect for our needs!

    RRF Web Servant
  • Thanks to the power of WordPress and WS Form, you can literally launch MVPs in no time.

    cuaran89
  • I’ve tested many different form plugins and WS Form is really one of the best. The core feature set is very robust and the support is incredible.

    hellojosh

Frequently Asked Questions

How do I integrate WordPress with Webhook Action using WS Form?

Add a Webhook action in the Actions sidebar, choose your endpoint URL and request settings, map the fields you want to send, and save the action. For full setup details, see Webhook Action.

Which request methods does Webhook Action support?

Webhook Action supports POST, GET, PUT, DELETE, and PATCH requests.

Which content types can I use?

You can send webhook data as JSON (application.json) or URL encoded (application/x-www-form-urlencoded).

Can I map form fields to custom request keys?

Yes. You can map form fields to key names in the request data, including simple key names and dot notation such as person[0].name.first.

Can Webhook Action add returned data to form fields?

Yes. When response processing is enabled, returned JSON data can be mapped into form fields using Response Field Mapping.

How are HTTP response codes handled?

You can map HTTP status codes to one of four handlers: Ignore, Process Response Field Mapping, Throw error, or Halt.

Can I add headers to the request?

Yes. Header Mapping lets you add additional HTTP headers to the request.

Get This Integration

  • WS Form Agency Edition Included Buy
  • WS Form Freelance Edition Included Buy
  • WS Form Personal Edition Included Buy
View WS Form Editions →

Built into WS Form PRO and available with every PRO edition.