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": "d2431b8f-3fb1-4e1c-978c-c36589d51dbe",
"type": "webhooks_endpoints",
"attributes": {
"team_id": 414,
"slug": "test-036aa5b6-468a-4bcb-a3ad-8dcb9da7ba3c",
"name": "Test",
"url": "https://test.com/test",
"secret": "Nm9rvPktb3QuKGtM",
"event_types": [
"incident.created"
],
"enabled": true,
"created_at": "2025-08-02T12:41:54.790-07:00",
"updated_at": "2025-08-02T12:41:54.790-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": "d2431b8f-3fb1-4e1c-978c-c36589d51dbe",
"type": "webhooks_endpoints",
"attributes": {
"team_id": 414,
"slug": "test-036aa5b6-468a-4bcb-a3ad-8dcb9da7ba3c",
"name": "Test",
"url": "https://test.com/test",
"secret": "Nm9rvPktb3QuKGtM",
"event_types": [
"incident.created"
],
"enabled": true,
"created_at": "2025-08-02T12:41:54.790-07:00",
"updated_at": "2025-08-02T12:41:54.790-07:00"
}
}
}