Integrate your custom guardrails with Portkey using webhooks
Field | Description | Type |
---|---|---|
Webhook URL | Your webhook’s endpoint URL | string |
Headers | Headers to include with webhook requests | JSON |
Timeout | Maximum wait time for webhook response | number (ms) |
verdict: true
.
3000ms
(3 seconds)POST
requests with the following structure:
Header | Description |
---|---|
Content-Type | Always set to application/json |
Custom Headers | Any headers you configured in the Portkey UI |
metadata
field. Learn more about metadata.
transformedData
, include all fields in your transformed object, not just the changed portions.
verdict
and any transformations are independent. You can return verdict: false
while still returning transformations.
verdict: true
.
eventType
field to determine whether it’s being called before or after the LLM request.