# API Webhook Ngrok Tunnels

> Tests webhooks with local tooling: ngrok tunnels for public callbacks, webhook.site inspection, curl replays, and delivery simulation. Use when working with ngrok tunnels, delivery simulation or when the user mentions ngrok tunnels, delivery simulation.

- Skill: `opknock/api-webhook-ngrok-tunnels` (Agent Skill)
- Install (CLI): `npx get-skill add opknock/api-webhook-ngrok-tunnels`
- Raw SKILL.md: https://api.skillmd.com/api/skills/opknock/api-webhook-ngrok-tunnels/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- License: MIT
- Author: OpKnock (https://skillmd.com/u/opknock)
- Updated: 2026-11-23
- Page: https://skillmd.com/skills/opknock/api-webhook-ngrok-tunnels

---


Tests webhooks with local tooling: ngrok tunnels for public callbacks, webhook.site inspection, curl replays, and delivery simulation.

## Agentic Workflow: Read -> Reason -> Act (api-webhook-ngrok-tunnels)

You are **Api Webhook Ngrok Tunnels** (backend) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.

### 1. Read — backend context for `api-webhook-ngrok-tunnels`
- Domain: Tests webhooks with local tooling: ngrok tunnels for public callbacks, webhook.site inspection, curl replays, and delivery simulation.
- **ngrok-tunnels**: Expose local webhook receivers publicly — `ngrok http 3000`
- **delivery-simulation**: Simulate webhook deliveries — `curl -s -X POST http://localhost:3000/webhook-test -H 'Content-Type: application`
- Check `knowledge` and `prerequisites: node.js, python, ngrok, redis`

### 2. Reason — think for `api-webhook-ngrok-tunnels`
- For `ngrok-tunnels`: Expose local webhook receivers publicly — decide which checks to run
- For `delivery-simulation`: Simulate webhook deliveries — decide which checks to run
- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs

### 3. Act — execute with `api-webhook-ngrok-tunnels` tools
- Tools: `Glob`, `Grep`, `Read`, `Ngrok`, `Bash` (see frontmatter `tools`/`allowed-tools`)
- Use `safe_path` for any write; record evidence (paths, checksums)
- Fingerprint: `api-webhook-ngrok-tunnels:c145774f`

# API Webhook v2 - Testing

Webhook testing tooling.

## What This Skill Does
- Tunnels local receivers with ngrok
- Inspects incoming payloads
- Replays deliveries for verification

## When to Use
- Testing provider webhooks locally
- Debugging delivery payloads
- Demonstrating receivers

## Real Commands

```bash
ngrok http 3000
curl -s http://localhost:4040/api/tunnels | jq '.tunnels[0].public_url'
curl -s -X POST http://localhost:3000/webhook-test -H 'Content-Type: application/json' -d '{"event":"test"}'
```

## Workflow
1. Start ngrok on the receiver port
2. Configure the provider with the public URL
3. Trigger the provider event
4. Inspect payloads at the tunnel console

## Testing
- Replay events with curl --retry
- Verify headers and raw bodies arrive intact
- Test concurrent deliveries


## Best Practices
- Use fixed subdomains in dev
- Keep receiver logs enabled
- Reset delivery state between tests

## Capabilities

### ngrok-tunnels
Expose local webhook receivers publicly

**Parameters:**
- `port` (integer): Local port to tunnel
- `subdomain` (string): Fixed subdomain
- `region` (string): Tunnel region

**Commands:**
- `ngrok http 3000`
- `ngrok http --host-header=rewrite 3000`
- `curl -s http://localhost:4040/api/tunnels | jq '.tunnels[0].public_url'`
- `ngrok config check`

**Examples:**
- ngrok http 3000 creates a public tunnel
- localhost:4040 exposes tunnel status
- ngrok config check validates the config

### delivery-simulation
Simulate webhook deliveries

**Commands:**
- `curl -s -X POST http://localhost:3000/webhook-test -H 'Content-Type: application/json' -d '{"event":"test"}' -w '\n%{http_code}\n'`
- `curl -s -X POST http://localhost:3000/webhook-test -H 'Content-Type: application/json' -d '{"event":"test"}' --retry 2 --retry-delay 1 -w '\n%{http_code}\n'`
- `curl -s https://webhook.site/token | jq '.uuid'`

**Examples:**
- -cli --help
- -api --help

## References
- [ngrok Docs](https://ngrok.com/docs)
- [webhook.site](https://webhook.site/)

