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": "99d1987d-d385-42e2-a2a5-a2ca9a4c3ac7",
"type": "webhooks_endpoints",
"attributes": {
"team_id": 528,
"slug": "test-9b6766b8-a832-4af8-8ddd-de2727396b86",
"name": "Test",
"url": "https://test.com/test",
"secret": "q7dsGzpqpFhdNfus",
"event_types": [
"incident.created"
],
"enabled": true,
"created_at": "2025-12-24T09:29:01.306-08:00",
"updated_at": "2025-12-24T09:29:01.306-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": "99d1987d-d385-42e2-a2a5-a2ca9a4c3ac7",
"type": "webhooks_endpoints",
"attributes": {
"team_id": 528,
"slug": "test-9b6766b8-a832-4af8-8ddd-de2727396b86",
"name": "Test",
"url": "https://test.com/test",
"secret": "q7dsGzpqpFhdNfus",
"event_types": [
"incident.created"
],
"enabled": true,
"created_at": "2025-12-24T09:29:01.306-08:00",
"updated_at": "2025-12-24T09:29:01.306-08:00"
}
}
}