⌘I

Send a webhook

Updated July 14, 2023
Also available in:

Send an HTTP POST to a given URL with a JSON body.

Adding the webhook action in the formspree.json file has the same effect as adding the Webhook plugin in the Formspree dashboard. See the Webhook plugin help article for more information. 

Formspree.json configuration

KeyTypeDescription
type String Must be webhook
url String The endpoint to send the POST request (required)

Example

{
  "forms": {
    "contact": {
      "name": "Contact Form",
      "actions": [
        {
          "type": "webhook",
          "url": "http://example.com/hook"
        }
      ]
    }
  }
}

Validation Rules

This action doesn’t add any validation rules. See the formspree.json file for a discussion of field rules.

Still have questions? or .