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

# Bridge webhook

> Bridge-only. Dedupes by `event_id`. `funds_received` updates the payout even if confirm never arrived.



## OpenAPI

````yaml /openapi.yaml post /api/breb/webhook
openapi: 3.1.0
info:
  title: COP By Integrations API
  version: 0.1.0
  description: |
    Non-custodial Celo API for partners. Prepare swaps and BRE-B COP payouts;
    the user signs from their wallet. Confirm with the transaction hash.
servers:
  - url: http://localhost:3000
    description: Local Next.js app
  - url: https://app.copby.co
    description: Production (replace if your origin differs)
security:
  - bearerAuth: []
tags:
  - name: BRE-B
    description: Quote, KYC, and COP payouts via Bridge Bre-B
  - name: Swaps
    description: Prepare and confirm onchain COPm swaps
  - name: Webhooks
    description: Bridge callbacks. Not authenticated with a partner key.
paths:
  /api/breb/webhook:
    post:
      tags:
        - Webhooks
      summary: Bridge webhook
      description: >-
        Bridge-only. Dedupes by `event_id`. `funds_received` updates the payout
        even if confirm never arrived.
      operationId: bridgeWebhook
      parameters:
        - name: X-Webhook-Signature
          in: header
          schema:
            type: string
          description: >-
            HMAC-SHA256 hex of the raw body. Skipped when `BRIDGE_MOCK=true` and
            no secret is set.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                event_id:
                  type: string
                event_type:
                  type: string
                  example: transfer.updated
                event_object_id:
                  type: string
                event_object_status:
                  type: string
                  example: funds_received
            example:
              event_id: wh_1
              event_type: transfer.updated
              event_object_id: tr_mock_0001
              event_object_status: funds_received
      responses:
        '200':
          description: Accepted
        '401':
          description: Invalid signature
      security: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Integration API key. Send as `Bearer copby_live_pk_…`.

````