# Create Webhook Configuration

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v0/webhook-data:
    post:
      summary: Create Webhook Configuration
      deprecated: false
      description: >-

        :::highlight purple 📌

        Use this API to create and configure a webhook for your EnKash account.

        By setting up a webhook, you enable EnKash to automatically send
        real-time notifications to your specified endpoint for events such as
        transaction status updates, payout completions, or balance changes.

        :::
      operationId: createWebhookData
      tags:
        - Payouts/APIs - Payout/Webhook
        - Webhook Data Apis
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookDataCreateRequest'
            example: ''
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ApplicationResponseWebhookDataResponse'
          headers: {}
          x-apidog-name: OK
      security: []
      x-apidog-folder: Payouts/APIs - Payout/Webhook
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/616243/apis/api-10664805-run
components:
  schemas:
    WebhookDataCreateRequest:
      required:
        - webhookUrl
        - events
      type: object
      properties:
        headers:
          type: object
          additionalProperties:
            type: string
          x-apidog-orders: []
          properties: {}
          x-apidog-ignore-properties: []
        webhookUrl:
          type: string
        sslCertificate:
          type: string
        events:
          type: array
          items:
            type: string
            enum:
              - PAYOUT_SUCCESS
              - PAYOUT_PENDING
              - PAYOUT_FAILED
              - UTILITY_BILLPAY_SUCCESS
              - UTILITY_BILLPAY_FAILED
              - UTILITY_BILLPAY_PENDING
        enabled:
          type: boolean
        companyId:
          pattern: ^CEK[A-Z0-9]{7}$
          type: string
      x-apidog-orders:
        - headers
        - webhookUrl
        - sslCertificate
        - events
        - enabled
        - companyId
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    ApplicationResponseWebhookDataResponse:
      type: object
      properties:
        response_code:
          type: integer
          format: int32
        response_message:
          type: string
        payload:
          $ref: '#/components/schemas/WebhookDataResponse'
      x-apidog-orders:
        - response_code
        - response_message
        - payload
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    WebhookDataResponse:
      type: object
      properties:
        companyId:
          type: string
        headers:
          type: object
          additionalProperties:
            type: string
          x-apidog-orders: []
          properties: {}
          x-apidog-ignore-properties: []
        webhookUrl:
          type: string
        sslCertificate:
          type: string
        events:
          type: array
          items:
            type: string
            enum:
              - PAYOUT_SUCCESS
              - PAYOUT_PENDING
              - PAYOUT_FAILED
              - UTILITY_BILLPAY_SUCCESS
              - UTILITY_BILLPAY_FAILED
              - UTILITY_BILLPAY_PENDING
        enabled:
          type: boolean
      x-apidog-orders:
        - companyId
        - headers
        - webhookUrl
        - sslCertificate
        - events
        - enabled
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://ekpayout-uat.enkash.in
    description: Testing Env
security: []

```
