Skip to main content
This endpoint creates a new webhook endpoint that will receive real-time notifications when requests are logged to Helicone. Configure sampling rates and property filters to control which events trigger the webhook.

Use Cases

  • Set up real-time monitoring for LLM requests
  • Integrate Helicone data with external systems
  • Build custom alerting and notification systems
  • Stream request data to analytics platforms

Request Body

string
required
The URL endpoint where webhook events will be sent. Must be a valid HTTPS URL.
object
required
Configuration object for the webhook
number
Percentage of requests to send to the webhook (0-100). Default: 100
array
Array of property filters to match specific requests
string
required
Property key to filter on (e.g., “model”, “user_id”)
string
required
Property value to match
boolean
Whether to include full request/response data in webhook payload. Default: true

Response

Returns a Result object with the created webhook data.
object
Created webhook information (structure depends on database response)
string | null
Error message if the request failed, null on success

Example Request

Example Response

Webhook Payload

When your webhook is triggered, it will receive a POST request with the following structure:

Webhook Verification

All webhook requests include an HMAC signature in the X-Helicone-Signature header. Use the hmac_key from the webhook list endpoint to verify the signature and ensure the request is authentic.

Error Responses