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": "3aa8b0d0-315c-4992-b475-2f481da4b557",
"type": "webhooks_endpoints",
"attributes": {
"team_id": 567,
"slug": "test-8f2e8ee8-d3fa-4787-ab2f-0ca85a6d370f",
"name": "Test",
"url": "https://test.com/test",
"secret": "bgYYQ6AD2Z2sus89",
"event_types": [
"incident.created"
],
"enabled": true,
"created_at": "2026-02-04T14:59:02.388-08:00",
"updated_at": "2026-02-04T14:59:02.388-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": "3aa8b0d0-315c-4992-b475-2f481da4b557",
"type": "webhooks_endpoints",
"attributes": {
"team_id": 567,
"slug": "test-8f2e8ee8-d3fa-4787-ab2f-0ca85a6d370f",
"name": "Test",
"url": "https://test.com/test",
"secret": "bgYYQ6AD2Z2sus89",
"event_types": [
"incident.created"
],
"enabled": true,
"created_at": "2026-02-04T14:59:02.388-08:00",
"updated_at": "2026-02-04T14:59:02.388-08:00"
}
}
}