POST /v1/publish
Publish an event.
Request
curl -X POST https://api.usewebhooks.dev/v1/publish \
-H "X-API-Key: sk_prod_…" \
-d '{"eventType":"hello.world","payload":{"hi":1}}'| Field | Type | Description |
|---|---|---|
eventType | string | Dot-separated event type name. |
payload | object | Any JSON; delivered as-is. |
Response
{ "id": "evt_01J…", "duplicate": false }