# Send a webhook

> Formspree Docs · Using the CLI · Updated July 14, 2023

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](/articles/plugins/webhooks/) for more information. 

## Formspree.json configuration

| Key | Type | Description |
| --- | --- | --- |
| `type` |  String |  Must be `webhook` |
| `url` |  String |  The endpoint to send the POST request (required) |

**Example**

```javascript
{
  "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](/articles/using-the-cli/the-formspree-json-file/) for a discussion of field rules.
