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": "6a7e8c6f-6c19-44a2-92e0-5262054068b6",
"type": "webhooks_endpoints",
"attributes": {
"team_id": 417,
"slug": "test-d00576c6-0454-47b7-b725-ffc8b2049c12",
"name": "Test",
"url": "https://test.com/test",
"secret": "ZLHZgQi5HUAi1e1T",
"event_types": [
"incident.created"
],
"enabled": true,
"created_at": "2025-08-21T23:48:48.229-07:00",
"updated_at": "2025-08-21T23:48:48.229-07:00"
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
webhooks_endpoint created
The response is of type object
.
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": "6a7e8c6f-6c19-44a2-92e0-5262054068b6",
"type": "webhooks_endpoints",
"attributes": {
"team_id": 417,
"slug": "test-d00576c6-0454-47b7-b725-ffc8b2049c12",
"name": "Test",
"url": "https://test.com/test",
"secret": "ZLHZgQi5HUAi1e1T",
"event_types": [
"incident.created"
],
"enabled": true,
"created_at": "2025-08-21T23:48:48.229-07:00",
"updated_at": "2025-08-21T23:48:48.229-07:00"
}
}
}