---
title: "Create alert webhook subscription"
method: POST
path: "/alert-subscriptions/webhooks"
tags: ["Alert"]
---

# Create alert webhook subscription

`POST /alert-subscriptions/webhooks`

Create alert webhook subscription.

## Request body

- XiqCreateAlertWebhookSubscriptionRequest — The alert webhook subscription create
  - `url` string, required — The webhook endpoint URL.
  - `secret` string — The auth secret for the webhook endpoint.
  - `is_enabled` boolean — Enable/disable alert notifications for a webhook url.
  - `is_subscribe_all` boolean, required — The all alert policy selected flag.
  - `alert_policy_ids` integer[], required — The selected alert policy list.

## Response `200`

OK

- XiqAlertWebhookSubscription — The alert webhook subscription data model
  - `id` integer, required — The unique identifier
  - `create_time` string, date-time, required — The create time in UTC (ISO 8601 format)
  - `update_time` string, date-time, required — The last update time in UTC (ISO 8601 format)
  - `url` string, required — The webhook endpoint URL.
  - `secret` string, required — The auth secret for the webhook endpoint.
  - `is_enabled` boolean, required — Enable/disable alert notifications for a webhook endpoint.
  - `is_subscribe_all` boolean, required — The all alert policy selected flag.
  - `alert_policy_ids` integer[] — The selected alert policy list.

---

[API](https://skmtc.net/extremecloudiq/apis/extremecloud-iq-api.md) · [All operations](https://skmtc.net/extremecloudiq/apis/extremecloud-iq-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/extremecloudiq/extremecloud-iq-api/versions/5ff7ab84e8e8/schema)
