Webhooks
Validate Webhook
Changed onValidates a webhook body against the same schema, URL rules, and body template check used by POST /api/v2/webhooks. The webhook is never persisted. Use this endpoint at plan time (e.g. from a Terraform provider) to check that a webhook configuration is valid before applying it. Name uniqueness is not checked.
post/api/v2/webhooks/validate
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- URL/api/v2/webhooks/validate
- AuthHTTP bearer
Request body
Example request
{
"name": "Production Alerts",
"service": "slack",
"url": "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX",
"description": "Sends critical alerts to the #incidents channel",
"body": "{\"alert\": \"{{title}}\", \"severity\": \"{{level}}\"}",
"headers": {
"Authorization": "Bearer secret-token"
}
}Response
Validation result. HTTP 200 is always returned for valid and invalid bodies — a non-200 response means the request itself failed (auth, server error, etc.).
Changes
- info
added the new optional request property
- info
- info
endpoint added
- info