Generate webhook curl

Create a shell-safe curl command for sending a webhook request.

freeworks offlinenothing uploaded
ToolWebhook cURL Generator
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

URL, method, headers, authentication, query parameters, and body fields are shell-quoted and emitted as curl options. JSON bodies are serialized separately so braces and quotes survive the shell.

  • POST and explicit content type suit common webhook examples.
  • Signing headers remain editable by provider.

Worked example

JSON Webhook POST
Generate a cURL command for testing a JSON webhook endpoint
Input
											Method: POST
Content type: application/json
Payload: {"event":"user.created","data":{"id":1,"name":"Alice"}}
Headers: 
										
Output
												# Webhook cURL Generator

Note: This tool generates cURL commands for testing webhooks.
To test webhooks, use a service like webhook.site, requestbin.com, or ngrok.

## Sample Webhook URL
https://webhook.site/<your-unique-id>

## Test Command

curl \
  -X POST \
  -H 'Content-Type: application/json' \
  -d '{"event":"user.created","data":{"id":1,"name":"Alice"}}' \
  'https://webhook.site/<your-unique-id>'

## Payload Preview
```
{
  "event": "user.created",
  "data": {
    "id": 1,
    "name": "Alice"
  }
}
```
											

When to use this

Webhook support, CI fixtures, and local endpoint READMEs generate curl commands.

Edge cases

  • Secrets containing shell metacharacters need quoting.
  • A multiline JSON body must remain one argument or use a file.
  • Signatures depend on exact raw body bytes.

References