Create Webhook Endpoint
Webhooks
Create Webhook Endpoint
Register a URL that receives signed alert event POSTs
POST
Create Webhook Endpoint
Overview
Registers a webhook endpoint and returns the signingsecret once in the response. Store it
immediately: list and retrieve responses redact it. A newly created endpoint’s status is
always active.
Requires the portfolios:manage scope.
Body Parameters
string
required
HTTPS endpoint (HTTP is allowed in non-production environments only). Max 2048 chars.
string
Optional human-readable description (max 2000 chars).
string[]
required
1-20 event types. The only customer-subscribable event today is
alert.created; any other
value returns 400. webhook.test is delivered only when you call
Test Webhook Endpoint; you can’t subscribe to it.object
Free-form metadata.
Response
string
Endpoint ID (
whk_*).string
Always
"webhook_endpoint".string
Echo of input.
string | null
Echo of input.
string[]
Echo of input.
string
Always
"active" on create.integer
Starts at
1.string
Plaintext signing secret. Returned only on this response and on rotate-secret.
integer
0 on create.string | null
Null on create.
string | null
Null on create.
object
Echoed back.
string
ISO timestamp.
string
ISO timestamp.
string
Request identifier.
Errors
Code Examples
Related Endpoints
- Test Webhook Endpoint - send a synthetic ping before you go live
- Rotate Webhook Secret - roll the signing secret
- List Webhook Endpoints - list your endpoints
- Webhooks guide - signature verification and delivery behavior