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

# Get Webhook Configuration

> Return the authenticated organization's webhook URL and optional custom field names for backend-triggered webhooks.

## Overview

Get the current webhook URL and custom field allowlist. When a URL is set, the backend sends a POST to it after each successful incentive lookup (single or batch). If no webhook is configured, `url` is null.


## OpenAPI

````yaml GET /webhook-config
openapi: 3.0.3
info:
  title: Leap Energy API
  description: >-
    The Leap Energy API provides a unified interface for managing rebate
    incentives and applications.


    ## Incentives API

    Search for and calculate incentive amounts across multiple utility programs.
    Given a customer

    address and building type, the API identifies applicable utility programs
    and calculates potential

    incentive amounts for various device and tier combinations. When your
    organization has a webhook URL

    configured (Webhook Config API), each successful lookup triggers a POST to
    your URL with the response

    and optional custom fields (`webhook_custom_fields`).


    ## Applications API

    Manage rebate applications on behalf of customers. Applications represent a
    customer's request

    for a rebate under a specific utility program, including customer
    information, device details,

    and application metadata.
  version: 2.0.0
  contact:
    name: Leap Energy
    url: https://leap.energy
servers:
  - url: https://api.incentives.leap.energy/alpha
    description: Production API
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /webhook-config:
    get:
      summary: Get webhook configuration
      description: >-
        Return the authenticated organization's webhook URL and optional custom
        field names. If no webhook is configured, `url` is null.
      operationId: getWebhookConfig
      responses:
        '200':
          description: Current webhook config
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookConfig'
        '401':
          description: Unauthorized
components:
  schemas:
    WebhookConfig:
      type: object
      description: Current webhook configuration for the authenticated organization
      properties:
        url:
          type: string
          format: uri
          nullable: true
          description: Webhook URL; POST is sent here after each successful lookup.
        field_names:
          type: array
          items:
            type: string
          example:
            - Project ID
            - Record ID
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >
        API key for authentication. Include your Leap API key in the `x-api-key`
        header: `x-api-key: leap_live_...`
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Clerk JWT token for portal authentication

````