---
title: "Create workspace webhook"
method: POST
path: "/api/v1/workspace/webhooks"
tags: ["Webhooks"]
---

# Create workspace webhook

`POST /api/v1/workspace/webhooks`

## Request body

- WebhookCreateRequest
  - `url` string, required
  - `events` string[], required
  - `name` string, nullable
  - `secret` string, nullable

## Response `201`

Successful Response

- WebhookResponse
  - `id` string, required
  - `url` string, required
  - `secret` string, nullable
  - `events` string[], required
  - `name` string, nullable
  - `enabled` boolean, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/phala/apis/phala-cloud-api.md) · [All operations](https://skmtc.net/phala/apis/phala-cloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/phala/phala-cloud-api/revisions/83c6ae62e860/schema)
