Create a webhook endpoint
post/v1/webhook-endpoints
Request
- Base URLhttps://api.us.poly.ai
- AuthAPI key in header X-API-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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"
}Changes
No recorded changes to this operation across all 1 revision of this API.