v1
latestOpenAPI 3.1.02026-07-2687120159.0 KBCreate a webhook endpoint
post/v1/webhook-endpoints
Request body
Example request
{
"name": "Production alerts",
"url": "https://example.com/webhooks/polyai",
"event_types": [
"alerts.triggered",
"alerts.resolved"
],
"headers": {
"X-Custom-Header": "my-value"
},
"timeout_ms": 5000,
"enabled": true
}Response
Webhook endpoint created successfully.
Example response
{
"id": "whe_9ZtRcXw3nByK5pVqMaEfJs"
}