← Back to Home

Webhook Testing - Create

/webhook/new
Create a new webhook endpoint for testing. Returns a unique webhook URL that captures all incoming requests (up to 50 most recent). Perfect for testing third-party webhook integrations without writing backend code.
Try it now

Examples

curl
# Step 1: Create a webhook
curl https://tcpdata.com/webhook/new

# Returns:
# {
#   "id": "550e8400-e29b-41d4-a716-446655440000",
#   "url": "https://tcpdata.com/webhook/550e8400-e29b-41d4-a716-446655440000",
#   "view_url": "https://tcpdata.com/webhook/550e8400-e29b-41d4-a716-446655440000/view",
#   "expires_in": "24 hours"
# }

# Step 2: Send a test webhook (or configure your third-party service to use the URL)
curl -X POST https://tcpdata.com/webhook/550e8400-e29b-41d4-a716-446655440000 \
  -H "Content-Type: application/json" \
  -d '{"event":"test","message":"Hello webhook!"}'

# Step 3: View captured requests
curl https://tcpdata.com/webhook/550e8400-e29b-41d4-a716-446655440000/view
JavaScript (fetch)
// Step 1: Create a webhook
const response = await fetch('https://tcpdata.com/webhook/new');
const webhook = await response.json();

console.log('Webhook URL:', webhook.url);
console.log('View URL:', webhook.view_url);

// Step 2: Configure your service to send to webhook.url

// Step 3: View captured requests
const captured = await fetch(webhook.view_url);
const data = await captured.json();
console.log(data.requests);
Python (requests)
import requests

# Step 1: Create a webhook
response = requests.get('https://tcpdata.com/webhook/new')
webhook = response.json()

print(f"Webhook URL: {webhook['url']}")
print(f"View URL: {webhook['view_url']}")

# Step 2: Configure your service to send to webhook['url']

# Step 3: View captured requests
captured = requests.get(webhook['view_url'])
print(captured.json())