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": "dfc8dc31-a0b3-43d1-9f1f-7cffbb7973d0",
    "type": "webhooks_endpoints",
    "attributes": {
      "team_id": 366,
      "slug": "test-7f3fd21b-2855-48a5-8d3e-ce03d751de9e",
      "name": "Test",
      "url": "https://test.com/test",
      "secret": "iS5v4b5vBNHiEh4H",
      "event_types": [
        "incident.created"
      ],
      "enabled": true,
      "created_at": "2025-04-18T09:53:59.779-07:00",
      "updated_at": "2025-04-18T09:53:59.779-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