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

# Update a webhook

> Change the name, URL or events, pause it with `active: false`, or rotate the secret. Admin key only.

Send only the fields you want to change. Needs an admin key.

* `active: false` pauses the webhook. Events already queued keep retrying on the usual schedule. Resume within about 9 hours and they are delivered. Otherwise they end as `failed`.
* `events` replaces the whole list.
* `rotate_secret: true` issues a new secret and returns it once. The old secret stops working at once.


## OpenAPI

````yaml PATCH /v2/webhooks/{id}
openapi: 3.1.0
info:
  title: OpenNous REST API
  version: 2.0.0
  description: >-
    Read and write the OpenNous revenue context graph over HTTP. Authenticate
    with a workspace API key.
servers:
  - url: https://api.opennous.cloud
    description: OpenNous Cloud
security:
  - bearerAuth: []
  - apiKeyHeader: []
tags:
  - name: People
  - name: Accounts
  - name: Deals
  - name: Notes
  - name: Attention
  - name: Insights
  - name: Enrich & score
  - name: Organization
  - name: Workflows
  - name: Webhooks
    description: >-
      Subscribe to events and have them pushed to your own stack, with the
      account record attached.
  - name: Usage
paths:
  /v2/webhooks/{id}:
    patch:
      tags:
        - Webhooks
      summary: Update a webhook
      description: >-
        Change the name, URL or events, pause it with `active: false`, or rotate
        the secret. Admin key only.
      operationId: updateWebhook
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Webhook id.
          example: 3f1c2b7a-9d4e-4b8a-a6c1-2e5f7d9b0c41
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                url:
                  type: string
                  format: uri
                events:
                  type: array
                  items:
                    type: string
                    enum:
                      - conversation.call_ended
                      - conversation.reply_received
                      - deal.won
                      - deal.lost
                      - deal.stage_changed
                      - interaction.email_received
                      - interaction.email_bounced
                      - interaction.linkedin_connection_accepted
                      - interaction.linkedin_message_received
                      - interaction.meeting_scheduled
                      - interaction.meeting_held
                active:
                  type: boolean
                rotate_secret:
                  type: boolean
                  description: Issue a new secret. The old one stops working at once.
            example:
              active: false
      responses:
        '200':
          description: The webhook. `secret` is present only when you rotated it.
          content:
            application/json:
              schema:
                type: object
                properties:
                  webhook:
                    $ref: '#/components/schemas/Webhook'
                  secret:
                    type: string
              example:
                webhook:
                  id: 3f1c2b7a-9d4e-4b8a-a6c1-2e5f7d9b0c41
                  name: n8n deal router
                  url: https://hooks.yourco.com/opennous
                  events:
                    - deal.won
                    - deal.lost
                    - conversation.call_ended
                  active: false
                  created_at: '2026-10-01T09:00:00Z'
                  updated_at: '2026-10-01T09:00:00Z'
        '400':
          description: Unknown field, bad URL, empty name, or unknown event.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unknown_fields:
                  summary: unknown_fields
                  value:
                    error: unknown_fields
                invalid_url:
                  summary: invalid_url
                  value:
                    error: invalid_url
                name_required:
                  summary: name_required
                  value:
                    error: name_required
                events_required:
                  summary: events_required
                  value:
                    error: events_required
                unknown_event:deal.closed:
                  summary: unknown_event
                  value:
                    error: unknown_event:deal.closed
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: Only an admin key can change or remove a webhook.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                admin_key_required:
                  summary: admin_key_required
                  value:
                    error: admin_key_required
        '404':
          description: No webhook with that id in this workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                not_found:
                  summary: not_found
                  value:
                    error: not_found
      security:
        - bearerAuth: []
        - apiKeyHeader: []
components:
  schemas:
    Webhook:
      type: object
      description: >-
        A subscription. The signing secret is never returned here; you get it
        once on create and on rotate.
      properties:
        id:
          type: string
        name:
          type: string
        url:
          type: string
          format: uri
        events:
          type: array
          items:
            type: string
            enum:
              - conversation.call_ended
              - conversation.reply_received
              - deal.won
              - deal.lost
              - deal.stage_changed
              - interaction.email_received
              - interaction.email_bounced
              - interaction.linkedin_connection_accepted
              - interaction.linkedin_message_received
              - interaction.meeting_scheduled
              - interaction.meeting_held
        active:
          type: boolean
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Error:
      type: object
      description: >-
        Every error response. `error` is a stable machine code. Some errors add
        fields such as `detail`, `supported`, `max`, or `reason`.
      required:
        - error
      properties:
        error:
          type: string
          description: Machine-readable error code.
        detail:
          type: string
          description: Human-readable explanation, when there is one.
      additionalProperties: true
  responses:
    Unauthorized:
      description: Missing, unknown, or expired API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            missing:
              summary: api_key_required
              value:
                error: api_key_required
            invalid:
              summary: invalid_api_key
              value:
                error: invalid_api_key
            expired:
              summary: api_key_expired
              value:
                error: api_key_expired
                detail: >-
                  This API key has expired. Create or rotate a key to get a
                  fresh one.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Workspace API key. Create one in **Settings → API keys**.
    apiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
      description: The same key, sent as a header.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.