> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vued.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create webhook

> Creates a webhook and returns its signing secret once.



## OpenAPI

````yaml /openapi/vued-public-api.yaml post /orgs/{org_id}/webhooks
openapi: 3.1.0
info:
  title: Vued Public API
  version: 0.1.0
  description: >-
    Cloud API for Vued organization metadata, signed audio URLs, API keys, and
    webhooks.
servers:
  - url: https://vued-office-api-dev.onrender.com/v1
security:
  - bearerAuth: []
tags:
  - name: Orgs
  - name: Search
  - name: Audio
  - name: Files
  - name: Directory
  - name: API Keys
  - name: Webhooks
paths:
  /orgs/{org_id}/webhooks:
    post:
      tags:
        - Webhooks
      summary: Create webhook
      description: Creates a webhook and returns its signing secret once.
      operationId: createWebhook
      parameters:
        - $ref: '#/components/parameters/OrgId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookCreate'
      responses:
        '200':
          description: Created webhook with one-time secret.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Webhook'
components:
  parameters:
    OrgId:
      name: org_id
      in: path
      required: true
      schema:
        type: string
        format: uuid
  schemas:
    WebhookCreate:
      type: object
      required:
        - url
        - events
      properties:
        name:
          type: string
          default: Webhook
        url:
          type: string
          format: uri
        events:
          type: array
          items:
            $ref: '#/components/schemas/WebhookEvent'
        payload_fields:
          oneOf:
            - type: array
              items:
                type: string
            - type: object
              additionalProperties:
                type: array
                items:
                  type: string
        disabled:
          type: boolean
          default: false
    Webhook:
      type: object
      properties:
        id:
          type: integer
        object:
          type: string
          enum:
            - webhook
        name:
          type: string
        org_id:
          type: string
          format: uuid
        created_by:
          type: string
          format: uuid
        url:
          type: string
          format: uri
        events:
          type: array
          items:
            $ref: '#/components/schemas/WebhookEvent'
        payload_fields:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
        created_at:
          type: string
        disabled:
          type: boolean
        fail_count:
          type: integer
        last_delivery_at:
          type:
            - string
            - 'null'
        last_success_at:
          type:
            - string
            - 'null'
        last_failure_at:
          type:
            - string
            - 'null'
        last_error:
          type:
            - string
            - 'null'
        secret:
          type: string
          description: Signing secret. Present only on create.
    WebhookEvent:
      type: string
      enum:
        - meeting.started
        - meeting.ended
        - meeting.transcription.completed
        - meeting.speaker_id.completed
        - meeting.finalized
        - meeting.automatic.surfaced
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````