POST
/
v1
/
webhooks
/
endpoints
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": "b54fbd25-33ad-46db-8f9d-af3156dc1d3a",
    "type": "webhooks_endpoints",
    "attributes": {
      "team_id": 415,
      "slug": "test-fdfd68b7-b2c1-44c0-bb9a-e4603616bf9a",
      "name": "Test",
      "url": "https://test.com/test",
      "secret": "ZLkJYnaf5sZ1XJm7",
      "event_types": [
        "incident.created"
      ],
      "enabled": true,
      "created_at": "2025-06-19T02:45:03.032-07:00",
      "updated_at": "2025-06-19T02:45:03.032-07:00"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/vnd.api+json

Response

201
application/vnd.api+json

webhooks_endpoint created

The response is of type object.