Command-line interface for observing webhook events in real-time from Posthook.
Posthook CLI provides real-time observability for webhook events without the overhead of a web interface. Connect directly to your webhook endpoint and see events as they arrive, with full request details including headers and payloads.
- Real-time WebSocket connection to Posthook endpoints
- Historical event replay on connection
- Formatted JSON payload display
- Low-latency event streaming
- Zero configuration required for basic usage
- Rust 1.70 or later
git clone <repository-url>
cd posthook-cli
cargo build --releaseThe compiled binary will be available at target/release/posthook-cli.
Connect to a Posthook endpoint and stream events in real-time:
posthook-cli listen --slug <your-slug>Example:
posthook-cli listen --slug abc123456This connects to wss://posthook.app/h/abc123456 and displays all webhook events.
- Visit posthook.app
- Generate a new webhook URL
- Copy the slug from the URL (the part after
/h/) - Use it with the CLI
When events are received, the CLI displays:
- Timestamp in ISO 8601 format
- HTTP method (GET, POST, etc.)
- Trace ID for debugging
- Request headers (filtered for relevance)
- JSON payload (pretty-printed)
cargo run -- listen --slug <your-slug>Send test webhooks to your endpoint:
curl -X POST https://posthook.app/h/<your-slug> \
-H "Content-Type: application/json" \
-d '{"test": "data"}'See LICENSE.md for details.