EUrouter
Broadcast (Beta)

Webhook

Send raw OTLP JSON traces of your EUrouter LLM requests to any HTTPS endpoint you control, with the setup and the payload format.

OpenAPI JSON

The Webhook destination sends raw OTLP JSON payloads to any HTTPS endpoint you control. Use this when you want to build custom integrations or send traces to a platform that isn't directly supported.


Setup

Prepare your endpoint

Set up an HTTPS endpoint that accepts POST requests with a JSON body. The payload follows the OTLP JSON format.

Add the destination in EUrouter

  1. Go to Broadcast in your dashboard
  2. Click Add Destination next to Webhook
  3. Enter your Endpoint URL
  4. Add an API key if your endpoint requires authentication
  5. Add Custom headers if needed
  6. Click Test Connection to verify
  7. Click Create

Configuration

FieldRequiredDescription
EndpointYesHTTPS URL that accepts POST requests
API keyNoAuthentication key, sent as a bearer token
Custom headersNoAdditional HTTP headers (comma-separated key=value pairs)

Payload format

Each request sends an OTLP JSON payload containing trace spans with:

  • Span attributes for model, provider, token usage, cost, and timing
  • Resource attributes identifying EUrouter as the source
  • Input/output events with message content (only for API keys with prompt forwarding switched on)

Decision attributes

The span attributes in the OTLP JSON include the decision EUrouter made for the request.

AttributeTypeDescription
eurouter.decisionstringallowed, redacted, blocked or error
eurouter.reason_codesstring[]Reason codes, such as pii.blocked or plan.rate_limited
eurouter.pii_counts.<type>intDetected PII per type, for example eurouter.pii_counts.email
eurouter.processing_countriesstring[]ISO country codes where the request was processed
http.response.status_codeintHTTP status EUrouter returned
error.typestringBlocked and failed requests only: the first reason code, or the decision

Blocked and rejected requests arrive too, with zero tokens, no cost and never a prompt. See the decision record for the values.


Learn more

Was this page helpful?

Still stuck? Contact support

On this page