How to send a test webhook with curl (JSON, form and multipart)

The quick answer: curl -X POST URL -H 'content-type: application/json' -d '{…}' sends a JSON webhook. Swap the body and content type for forms or files. Send them to https://webhook.plus/anything/… and the response tells you exactly how the request was parsed.

How do I send a JSON webhook?

curl https://webhook.plus/anything/plus/orders \
  -H 'content-type: application/json' \
  -d '{"type":"order.created","id":"ord_123","total":42.5}'

In the echo, json holds the parsed object and data holds the raw text. If json is null, the body wasn't valid JSON or the content type wasn't JSON.

How do I send a JSON file?

curl https://webhook.plus/anything/plus/orders \
  -H 'content-type: application/json' \
  --data-binary @event.json

--data-binary keeps the file byte-for-byte; -d @file would strip newlines.

How do I send a form-encoded webhook?

Some senders still post application/x-www-form-urlencoded. curl's -d uses that type by default:

curl https://webhook.plus/anything/plus/sms -d From=+15550100 -d Body=hello

The echo puts the fields in form.

How do I send multipart data or a file?

curl https://webhook.plus/anything/plus/upload -F note=hello -F file=@report.csv

Text fields land in form; files land in files with their filename, type and base64 content.

How do I add headers like a real provider?

curl https://webhook.plus/anything/plus/repo \
  -H 'content-type: application/json' \
  -H 'X-Event-Type: push' \
  -H 'X-Delivery-Id: 7f9c2ba4' \
  -d '{"ref":"refs/heads/main"}'

All headers appear in headers in the echo. To see only headers, use /headers.

Other methods and query strings

You wantcurl
PUT / PATCH / DELETEcurl -X PATCH https://webhook.plus/anything/plus/x -d '{}' -H 'content-type: application/json'
query parameterscurl 'https://webhook.plus/anything/plus/x?attempt=2&source=test' (they appear in args)
only the status codecurl -s -o /dev/null -w '%{http_code}\n' …

Limits

Bodies up to 1 MiB. Every request and response is recorded and kept, so don't paste real customer data or secrets into test payloads.