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

# Create webhook

> This endpoint allows you to create or update webhook.



## OpenAPI

````yaml openapi.json post /webhook
openapi: 3.0.3
info:
  title: Bread API
  description: >-
    The Bread provides comprehensive cryptocurrency wallet management
    capabilities including wallet creation, balance monitoring, and asset
    transfers.
  version: 2.0.0
servers:
  - url: https://processor-prod.up.railway.app
    description: Production server
security: []
paths:
  /webhook:
    post:
      tags:
        - Notifications
      summary: Create webhook
      description: This endpoint allows you to create or update webhook.
      operationId: createWebhook
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookRequest'
      responses:
        '200':
          description: Webhook created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    WebhookRequest:
      type: object
      properties:
        url:
          type: string
          description: The webhook URL to receive notifications. Leave empty to disable.
          example: https://your-site.com/webhook
    WebhookResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        status:
          type: integer
          example: 200
        message:
          type: string
          example: Webhook created successfully
        timestamp:
          type: string
          format: date-time
          example: '2025-09-17T01:09:23.027Z'
        data:
          type: object
          properties:
            enabled:
              type: boolean
              description: Whether webhook is enabled
              example: true
            url:
              type: string
              description: The configured webhook URL
              example: https://google.com/webhook
            secret:
              type: string
              description: Secret key for webhook verification
              example: z9o4j778vsn5ivog9beacrvld
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-service-key

````