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": "b69bc751-0aac-4294-be4d-c8f3c2dfb06f",
    "type": "webhooks_endpoints",
    "attributes": {
      "team_id": 366,
      "slug": "test-b29c03b4-647d-4b61-827c-8ef92846e9b7",
      "name": "Test",
      "url": "https://test.com/test",
      "secret": "pC5Qgfj5dBEfbcGF",
      "event_types": [
        "incident.created"
      ],
      "enabled": true,
      "created_at": "2025-05-08T00:26:06.552-07:00",
      "updated_at": "2025-05-08T00:26:06.552-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.