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

# Pause or resume a webhook

> Resuming delivers the events held while the webhook was paused during the last 7 days, and resets its failure count.



## OpenAPI

````yaml /api-reference/openapi.json put /public/v1/workspaces/{workspaceId}/webhooks/{id}/enabled
openapi: 3.0.0
info:
  title: PostlyBee Public API
  description: >-
    Connect accounts, create and manage social posts, inspect analytics and
    notifications, and upload media with the PostlyBee Public API.
  version: 1.0.0
  contact:
    name: PostlyBee Support
    url: https://postlybee.com
    email: support@postlybee.com
  license:
    name: Proprietary
    url: https://postlybee.com/terms
servers:
  - url: https://api.postlybee.com
    description: Production
security: []
tags:
  - name: Workspaces
    description: List workspaces available to the API token.
  - name: Posts
    description: Create, list, update, and delete social posts.
  - name: Media
    description: Upload media and use enabled video generators.
  - name: Accounts
    description: Discover connected social accounts.
  - name: Analytics
    description: Inspect account and published-post performance.
  - name: Notifications
    description: List workspace notifications.
  - name: Utilities
    description: Verify access and find posting slots.
paths:
  /public/v1/workspaces/{workspaceId}/webhooks/{id}/enabled:
    put:
      tags:
        - Webhooks
      summary: Pause or resume a webhook
      description: >-
        Resuming delivers the events held while the webhook was paused during
        the last 7 days, and resets its failure count.
      operationId: setWebhookEnabled
      parameters:
        - name: id
          required: true
          in: path
          description: Webhook ID.
          schema:
            type: string
        - name: workspaceId
          required: true
          in: path
          description: Workspace ID returned by GET /public/v1/workspaces.
          schema: {}
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublicApiWebhookEnabledDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiWebhookDto'
        '401':
          description: The bearer token is missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiErrorDto'
        '429':
          description: Hourly API limit exceeded.
      security:
        - public-api: []
components:
  schemas:
    PublicApiWebhookEnabledDto:
      type: object
      properties:
        enabled:
          type: boolean
          description: false pauses the webhook; true resumes it.
          example: true
      required:
        - enabled
    PublicApiWebhookDto:
      type: object
      properties:
        id:
          type: string
          example: 9b2f1c7e-6a1d-4f5b-8c3e-2d4a6b8c0e1f
        name:
          type: string
          example: Ranklybee
        url:
          type: string
          example: https://api.example.com/webhooks/postlybee
        events:
          description: Subscribed event types; empty means every type.
          example:
            - post.published
            - post.failed
          type: array
          items:
            type: string
        integrations:
          description: Connected accounts this subscription is limited to; empty means all.
          type: array
          items:
            $ref: '#/components/schemas/PublicApiWebhookIntegrationDto'
        disabled:
          type: boolean
          example: false
        disabledReason:
          type: string
          nullable: true
          example: null
        createdByKind:
          type: string
          enum:
            - dashboard
            - api_token
            - oauth_client
        consecutiveFailures:
          type: number
          example: 0
        lastSuccessAt:
          type: string
          nullable: true
          example: '2026-10-03T09:00:12.000Z'
        createdAt:
          type: string
          example: '2026-10-01T08:00:00.000Z'
      required:
        - id
        - name
        - url
        - events
        - integrations
        - disabled
        - disabledReason
        - createdByKind
        - consecutiveFailures
        - lastSuccessAt
        - createdAt
    PublicApiErrorDto:
      type: object
      properties:
        statusCode:
          type: number
          example: 401
        code:
          type: string
          description: >-
            Stable error code, for example unauthorized, forbidden,
            insufficient_scope, not_found, invalid_request, quota_exceeded,
            plan_limit, integration_disconnected, external_id_conflict,
            idempotency_key_reused, idempotency_in_progress, rate_limited.
          example: unauthorized
        message:
          type: string
          example: Invalid API token
      required:
        - statusCode
        - code
        - message
    PublicApiWebhookIntegrationDto:
      type: object
      properties:
        id:
          type: string
          example: clz8tq4ka0001m8p7y6n5r3d2
        name:
          type: string
          example: Acme Inc.
        providerIdentifier:
          type: string
          example: linkedin
        picture:
          type: string
          nullable: true
      required:
        - id
        - name
        - providerIdentifier
  securitySchemes:
    public-api:
      scheme: bearer
      bearerFormat: API token
      type: http
      description: >-
        User API token from Settings → Public API. Access is restricted by
        scopes and workspace selection.

````

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