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

# Create webhook

> Creates a new webhook subscription. The response includes a `secret` that you should store securely — it is used to verify webhook signatures and is only returned once at creation time.



## OpenAPI

````yaml POST /webhooks
openapi: 3.1.0
info:
  title: Timeless Public API
  version: 0.1.0
  description: >-
    The Timeless API is a REST API served over HTTPS. All requests and responses
    use JSON, and all endpoints require authentication.
servers:
  - url: https://api.timeless.day/v1
    description: Production
security:
  - HTTPBearer: []
tags:
  - name: meetings
    description: Retrieve meetings, recordings, and transcripts.
  - name: rooms
    description: Retrieve rooms that group related meetings.
  - name: documents
    description: Retrieve AI-generated meeting documents.
  - name: upload
    description: Upload audio or video files for transcription.
  - name: webhooks
    description: Manage webhook subscriptions for event notifications.
paths:
  /webhooks:
    post:
      tags:
        - webhooks
      summary: Create webhook
      description: >-
        Creates a new webhook subscription. The response includes a `secret`
        that you should store securely — it is used to verify webhook signatures
        and is only returned once at creation time.
      operationId: create_webhook_endpoint_v1_webhooks_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookCreate'
            example:
              url: https://example.com/webhooks/timeless
              events:
                - meeting.transcript_ready
                - meeting.initial_summary_ready
        required: true
      responses:
        '201':
          description: The created webhook including the signing secret.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookCreateResponse'
              example:
                id: whk_abc123
                url: https://example.com/webhooks/timeless
                events:
                  - meeting.transcript_ready
                  - meeting.initial_summary_ready
                enabled: true
                secret: a1b2c3d4e5f6...
                created_at: '2025-01-15T12:00:00Z'
                updated_at: '2025-01-15T12:00:00Z'
        '400':
          description: Invalid request parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Authentication required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    WebhookCreate:
      properties:
        url:
          type: string
          maxLength: 2048
          title: Url
          description: >-
            The HTTPS URL that will receive webhook events. Must be publicly
            accessible. Max 2048 characters.
          example: https://example.com/webhooks/timeless
        events:
          items:
            $ref: '#/components/schemas/WebhookEvent'
          type: array
          minItems: 1
          title: Events
          description: List of events to subscribe to. At least one event is required.
        enabled:
          type: boolean
          title: Enabled
          default: true
          description: >-
            Whether the webhook is active. Set to `false` to create it in a
            disabled state.
      type: object
      required:
        - url
        - events
      title: WebhookCreate
    WebhookCreateResponse:
      properties:
        id:
          type: string
          title: Id
          description: Webhook ID.
          example: whk_abc123
        url:
          type: string
          title: Url
          description: The registered URL.
        events:
          items:
            $ref: '#/components/schemas/WebhookEvent'
          type: array
          title: Events
          description: Subscribed events.
        enabled:
          type: boolean
          title: Enabled
          description: Whether the webhook is active.
        created_at:
          type: string
          format: date-time
          title: Created At
          description: ISO 8601 timestamp.
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: ISO 8601 timestamp.
        secret:
          type: string
          title: Secret
          description: >-
            HMAC signing secret. Store this securely — it is only returned on
            creation.
          example: a1b2c3d4e5f6...
      type: object
      required:
        - id
        - url
        - events
        - enabled
        - created_at
        - updated_at
        - secret
      title: WebhookCreateResponse
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: not_found
            message:
              type: string
              example: Resource not found
            details:
              type: array
              items:
                type: object
                properties:
                  field:
                    type: string
                  message:
                    type: string
          required:
            - code
            - message
      required:
        - error
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    WebhookEvent:
      type: string
      enum:
        - meeting.transcript_ready
        - meeting.initial_summary_ready
      title: WebhookEvent
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
      description: >-
        API token from your [Timeless
        dashboard](https://my.timeless.day/api-token).

````