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

# Register a webhook endpoint

> Creates a new webhook subscription for the specified events. Returns a signing secret (shown once).



## OpenAPI

````yaml https://app.lyra.so/openapi.json post /webhook
openapi: 3.0.0
info:
  title: Lyra API
  version: '1.0'
servers:
  - url: https://app.lyra.so/api/v1
    description: Production server
  - url: http://localhost:3000/api/v1
    description: Development server
security:
  - LyraApiKey: []
  - OAuth2: []
tags:
  - name: Authentication
    description: Verify API keys and OAuth tokens
  - name: Meetings
    description: Create and manage Lyra meetings
  - name: Webhooks
    description: Manage webhook subscriptions
paths:
  /webhook:
    post:
      tags:
        - Webhooks
      summary: Register a webhook endpoint
      description: >-
        Creates a new webhook subscription for the specified events. Returns a
        signing secret (shown once).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - url
                - events
              properties:
                url:
                  type: string
                  format: uri
                  example: https://example.com/webhook
                events:
                  type: array
                  items:
                    type: string
                    enum:
                      - meeting.ended
                  example:
                    - meeting.ended
      responses:
        '200':
          description: Webhook created
        '400':
          description: Invalid request body
        '401':
          description: Missing or invalid token
        '403':
          description: Insufficient scope
        '500':
          description: Failed to create webhook
      security:
        - LyraApiKey: []
        - OAuth2:
            - webhook.create
components:
  securitySchemes:
    LyraApiKey:
      type: http
      scheme: bearer
    OAuth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://app.lyra.so/api/v1/oauth/authorize
          tokenUrl: https://app.lyra.so/api/v1/oauth/token
          scopes: {}

````