---
title: "Create a webhook endpoint (signing secret returned once)"
method: POST
path: "/spaces/{spaceId}/webhooks"
tags: ["Webhooks"]
---

# Create a webhook endpoint (signing secret returned once)

`POST /spaces/{spaceId}/webhooks`

## Request

- Base URL: `https://krova.cloud/api/v1`
- URL: `https://krova.cloud/api/v1/spaces/{spaceId}/webhooks`
- Auth: API key in header `X-API-KEY`

## Path parameters

- `spaceId` string, required

## Request body

- object
  - `url` string, uri, required
  - `events` string[], required

## Response `201`

Webhook created (response includes secret)

## Other responses

- `400`: Bad request
- `429`: Rate limit exceeded (10 mutations / 60s)

---

[API](https://skmtc.dev/krova/apis/krova-cloud-api.md) · [All operations](https://skmtc.dev/krova/apis/krova-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/krova/apis/krova-cloud-api/revisions/46bb68281ce1?raw)
