---
title: "POST /webhook/createWebhook"
method: POST
path: "/webhook/createWebhook"
tags: ["WebhookService"]
---

# POST /webhook/createWebhook

`POST /webhook/createWebhook`

## Request body

- CreateWebhookRequest
  - `external_id` string — Optional
  - `resource_id` ResourceId
    - `valve_id` string
    - `irrigation_controller_id` string
    - `program_id` string
    - `lighting_controller_id` string
  - `url` string
  - `event_types` string[]

## Response `200`

OK

- CreateWebhookResponse
  - `webhook` Webhook
    - `id` string
    - `external_id` string
    - `resource_id` ResourceId
      - `valve_id` string
      - `irrigation_controller_id` string
      - `program_id` string
      - `lighting_controller_id` string
    - `url` string
    - `event_types` string[]

---

[API](https://skmtc.net/rach/apis/readme.md) · [All operations](https://skmtc.net/rach/apis/readme/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rach/readme/revisions/7cb72b0455d5/schema)
