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

# Update a webhook subscription



## OpenAPI

````yaml /openapi.json put /public/v1/webhooks/{id}
openapi: 3.0.0
info:
  title: Hostreach API
  description: >-
    Public REST API for Hostreach.


    Authenticate with an API key via the `X-Api-Key` header or `Authorization:
    Bearer <key>` header.


    Generate API keys from **Settings › Workspace › Acceso API** in the
    dashboard.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.hostreach.io/v1
    description: Production
  - url: http://localhost:3001/v1
    description: Local
security:
  - apiKey: []
tags:
  - name: Identity
    description: Current workspace and usage
  - name: Platforms
    description: Supported real-estate portals and filter schemas
  - name: Extractions
    description: Lead extraction jobs
  - name: Leads
    description: Lead management
  - name: Campaigns
    description: Campaign management
  - name: Messaging
    description: Inbox and WhatsApp conversations
  - name: Templates
    description: WhatsApp message templates
  - name: Accounts
    description: WhatsApp accounts
  - name: Valuations
    description: Property valuations
  - name: Fichas
    description: Property listing sheets
  - name: Scheduling
    description: Calendar and appointments
  - name: Webhooks
    description: Event subscriptions
paths:
  /public/v1/webhooks/{id}:
    put:
      tags:
        - Webhooks
      summary: Update a webhook subscription
      operationId: PublicWebhooksController_updateWebhook
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type: string
                  format: uri
                  description: New endpoint URL.
                  example: https://yourapp.com/webhooks/hostreach
                secret:
                  type: string
                  description: New signing secret.
                name:
                  type: string
                  description: New display name.
                isActive:
                  type: boolean
                  description: Set to `false` to disable the webhook without deleting it.
                events:
                  type: array
                  items:
                    type: string
                    enum:
                      - extraction.completed
                      - leads.imported
                      - lead.status_updated
                      - lead.first_response
                  description: Replace the current event subscriptions.
                  example:
                    - leads.imported
                    - lead.status_updated
                    - lead.first_response
      responses:
        '200':
          description: ''
      security:
        - bearerApiKey: []
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-Api-Key
      description: >-
        API key (hr_live_... or hr_test_...). Generate from Settings › Workspace
        › Acceso API.

````