Webhook Tester API

Category: developer

Generate temporary webhook URLs and inspect incoming HTTP requests in real-time. Runs in the browser with a unique endpoint.

Endpoint

N/A Browser API (EventSource)
No Server API

Response

Content-Type: N/A

Generates a unique webhook URL and listens for incoming requests via Server-Sent Events.

// Receives webhook payloads in real-time

cURL Example

# No cURL equivalent — generate a webhook URL in the tool first

Code Samples

// Webhook listening with EventSource
const eventSource = new EventSource('/api/tools/webhook/listen?id=abc123');
eventSource.onmessage = (event) => {
    const data = JSON.parse(event.data);
    console.log('Webhook received:', data);
};
# Send a test webhook:
import requests

requests.post('https://anythingtext.com/api/tools/webhook/abc123',
    json={'event': 'test', 'data': 'hello'})
// Send a test webhook:
// HttpRequest request = HttpRequest.newBuilder()
//     .uri(URI.create("https://anythingtext.com/api/tools/webhook/abc123"))
//     .POST(HttpRequest.BodyPublishers.ofString("{\"event\":\"test\"}"))
//     .build();