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": "3ae578dd-cb16-433e-b3e6-d9db4492d281",
    "type": "webhooks_endpoints",
    "attributes": {
      "team_id": 377,
      "slug": "test-9449854a-bffc-4a5d-ad43-a15345956397",
      "name": "Test",
      "url": "https://test.com/test",
      "secret": "ne7JkCumNs7rT51o",
      "event_types": [
        "incident.created"
      ],
      "enabled": true,
      "created_at": "2025-05-29T17:49:59.084-07:00",
      "updated_at": "2025-05-29T17:49:59.084-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.