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": "be5f3286-8e87-4b95-bf1f-753b5703240f",
    "type": "webhooks_endpoints",
    "attributes": {
      "team_id": 455,
      "slug": "test-ba98a0b0-de9b-4fd9-914e-92607a07bbe3",
      "name": "Test",
      "url": "https://test.com/test",
      "secret": "mws6yLpVmZ3nFya8",
      "event_types": [
        "incident.created"
      ],
      "enabled": true,
      "created_at": "2025-03-28T23:06:15.454-07:00",
      "updated_at": "2025-03-28T23:06:15.454-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
data
object
required

Response

201
application/vnd.api+json
webhooks_endpoint created
data
object
required