---
title: "Create webhook"
method: POST
path: "/orgs/webhooks"
tags: ["Workspace"]
---

# Create webhook

`POST /orgs/webhooks`

## Request

- Base URL: `https://api.useinvent.com`
- URL: `https://api.useinvent.com/orgs/webhooks`
- Auth: HTTP bearer

Create a webhook endpoint. The signing secret is returned in full here and never again, so store it.

## Request body

- CreateOrgWebhookSchema
  - `url` string, uri, required: HTTPS endpoint that receives the events
  - `events` OrgWebhookSubscribableEventIdSchema[], required: Events to subscribe to
  - `name` string, required
  - `enabled` boolean

## Response `200`

- OrgWebhookSchema: A webhook endpoint
  - `id` string, required
  - `name` string, required
  - `url` string, required
  - `events` OrgWebhookSubscribableEventIdSchema[], required
  - `enabled` boolean, required
  - `secret` string, nullable, required: Signing secret. Returned in full on create and rotate only; masked afterwards.
  - `disabled_reason` string, nullable, required: Why the endpoint was disabled automatically, if it was
  - `consecutive_failures` number, required
  - `last_delivery_at` string, date-time, nullable, required
  - `last_success_at` string, date-time, nullable, required
  - `created_at` string, date-time, nullable, required
  - `updated_at` string, date-time, nullable, required

---

[API](https://skmtc.dev/useinvent/apis/invent-api.md) · [All operations](https://skmtc.dev/useinvent/apis/invent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/useinvent/apis/invent-api/revisions/98824f3fde82?raw)
