---
title: "Create a webhook"
method: POST
path: "/webhooks"
tags: ["Webhooks"]
---

# Create a webhook

`POST /webhooks`

## Request

- Base URL: `https://api.cloudglue.dev/v1`
- URL: `https://api.cloudglue.dev/v1/webhooks`
- Auth: HTTP bearer

Create a webhook

## Request body

- WebhookCreateRequest
  - `description` string: Description of the webhook
  - `endpoint` string: URL of the webhook endpoint
  - `subscribed_events` WebhookEvents[]: Events that the webhook is subscribed to

## Response `200`

Webhook created successfully

- Webhook
  - `id` string, required: Unique identifier for the webhook
  - `object` 'webhook', required: Object type, always 'webhook'
  - `created_at` integer, required: Unix timestamp in milliseconds when the webhook was created
  - `webhook_secret` string, required: Secret used to verify the webhook request
  - `endpoint` string, required: URL of the webhook endpoint
  - `active` boolean, required: Whether the webhook is active
  - `description` string: Description of the webhook
  - `subscribed_events` WebhookEvents[], required: Events that the webhook is subscribed to

## Other responses

- `403`: Usage limit reached (total webhook endpoints) — `code: usage_limit_reached`
- `404`: Webhook not found
- `500`: An unexpected error occurred on the server

## Changes

- **2026-10-30** `23d3f240819f`: 3 info
  - added the non-success response with the status `403`
  - added the optional property `code` to the response with the `404` status
  - added the optional property `code` to the response with the `500` status
- **2026-08-22** `d2a5205fc779`: 3 warning, 3 info
  - added the new `find_moments.job.completed` enum value to the `subscribed_events/items/` response property for the response status `200`
  - added the new `find_moments.job.failed` enum value to the `subscribed_events/items/` response property for the response status `200`
  - added the new `find_moments.job.processing` enum value to the `subscribed_events/items/` response property for the response status `200`
  - added the new `find_moments.job.completed` enum value to the request property `subscribed_events/items/`
  - …2 more

[Operation history](https://skmtc.dev/cloudglue/apis/cloudglue-api/changes/webhooks/post.md)

---

[API](https://skmtc.dev/cloudglue/apis/cloudglue-api.md) - [All operations](https://skmtc.dev/cloudglue/apis/cloudglue-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cloudglue/apis/cloudglue-api/revisions/23d3f240819f?raw)
