REST API›Organization›Webhook Keys

PUT

Enables webhook signing, or requests that it be disabled, for an enterprise.

Enabling (signingEnabled: true) takes effect immediately. It is idempotent, and also cancels any pending disable request.

Disabling (signingEnabled: false) does not take effect immediately. It requires OTP verification and moves the enterprise to DISABLE_PENDING. Webhooks continue to be signed until the request is approved, at which point the status becomes DISABLED. If the request is denied, the status returns to ENABLED. The response includes a pendingDisableRequest with the evaluationId of the approval. Submitting a disable request while one is already pending returns a 409. Disabling when signing is already DISABLED is a no-op and returns the current settings.

Authorization: Caller must be an admin of the specified enterprise.

Path Params

  • enterpriseId string required
    The enterprise ID.

Header Params

  • X-BitGo-OTP string
    OTP code for verification. Required only when disabling webhook signing.

Body Params

object

Request to enable or disable webhook signing for an enterprise.
  • signingEnabled boolean required
    true enables webhook signing immediately. false submits a request to disable signing, which requires OTP verification and approval before it takes effect.

Responses

200
Settings updated. When disabling, status is DISABLE_PENDING and signingEnabled remains true until the request is approved.

Response Body

object

Current webhook signing settings for an enterprise.
  • status string enum required

    Webhook signing status for the enterprise.

    • ENABLED: webhooks are signed.
    • DISABLED: webhooks are not signed.
    • DISABLE_PENDING: a request to disable signing is awaiting approval. Webhooks continue to be signed until the request is approved.
    ENABLEDDISABLEDDISABLE_PENDING
  • signingEnabled boolean required
    Whether webhooks are currently signed. true for ENABLED and DISABLE_PENDING, false for DISABLED.
  • updatedAt string date-time nullable
    When the settings were last changed. null if the enterprise has never changed its settings, in which case status reflects the platform default.
  • pendingDisableRequest object nullable
    Present only when status is DISABLE_PENDING.
    pendingDisableRequest object
    • evaluationId string uuid required
      ID of the policy evaluation that must be approved to complete the disable request.
    • requestedBy string required
      ID of the user who requested that signing be disabled.
    • requestedAt string date-time required
      When the disable request was submitted.
400
Bad Request

Response Body

ONE OF

  • code string
  • message string
  • status integer
401
Unauthorized

Response Body

object

  • code string
  • message string
  • status integer
403
Forbidden

Response Body

object

  • code string
  • message string
  • status integer
409
Conflict - The request conflicts with the current state of the resource

Response Body

object

  • code string
  • message string
  • status integer
500
Server Error - Transient error please try again

Response Body

object

  • code string
  • message string
  • status integer