Creates a new webhook endpoint from provided data
curl --request POST \
--url https://api.rootly.com/v1/webhooks/endpoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"type": "webhooks_endpoints",
"attributes": {
"name": "<string>",
"url": "<string>",
"secret": "<string>",
"event_types": [
"incident.created"
],
"enabled": true
}
}
}
'{
"data": {
"id": "b26ff2f9-9786-46fb-b859-66cc7c2f1bad",
"type": "webhooks_endpoints",
"attributes": {
"team_id": 548,
"slug": "test-70a52461-e0ba-490c-affc-56806eb7abe0",
"name": "Test",
"url": "https://test.com/test",
"secret": "HDbeyR8NUxp51u2S",
"event_types": [
"incident.created"
],
"enabled": true,
"created_at": "2026-01-15T10:38:12.016-08:00",
"updated_at": "2026-01-15T10:38:12.016-08:00"
}
}
}Was this page helpful?
curl --request POST \
--url https://api.rootly.com/v1/webhooks/endpoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"type": "webhooks_endpoints",
"attributes": {
"name": "<string>",
"url": "<string>",
"secret": "<string>",
"event_types": [
"incident.created"
],
"enabled": true
}
}
}
'{
"data": {
"id": "b26ff2f9-9786-46fb-b859-66cc7c2f1bad",
"type": "webhooks_endpoints",
"attributes": {
"team_id": 548,
"slug": "test-70a52461-e0ba-490c-affc-56806eb7abe0",
"name": "Test",
"url": "https://test.com/test",
"secret": "HDbeyR8NUxp51u2S",
"event_types": [
"incident.created"
],
"enabled": true,
"created_at": "2026-01-15T10:38:12.016-08:00",
"updated_at": "2026-01-15T10:38:12.016-08:00"
}
}
}