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

# Test Webhook

> Send a test payload to a webhook URL to verify it is reachable and responding correctly. If no URL is provided in the request body, the form's configured webhook URL is used.



## OpenAPI

````yaml openapi.json post /forms/{id}/webhook/test
openapi: 3.1.0
info:
  title: GeniusForms API
  description: >-
    AI-powered form builder API. Create forms manually or generate them from
    natural language prompts.
  version: 1.0.0
  contact:
    name: GeniusForms Support
    email: support@geniusforms.ai
    url: https://geniusforms.ai
servers:
  - url: https://geniusforms.ai/api/v1
    description: Production
  - url: http://localhost:8000/api/v1
    description: Local Development
security:
  - ApiKeyAuth: []
paths:
  /forms/{id}/webhook/test:
    post:
      tags:
        - Webhooks
      summary: Test Webhook
      description: >-
        Send a test payload to a webhook URL to verify it is reachable and
        responding correctly. If no URL is provided in the request body, the
        form's configured webhook URL is used.
      operationId: testWebhook
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
          description: Form ID
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookTestRequest'
      responses:
        '200':
          description: Test result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookTestResponse'
        '400':
          description: No webhook URL available
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Form not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    WebhookTestRequest:
      type: object
      properties:
        url:
          type: string
          description: URL to test. If omitted, uses the form's configured webhook URL.
          example: https://example.com/webhook
    WebhookTestResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        statusCode:
          type: integer
          nullable: true
          example: 200
        error:
          type: string
          nullable: true
    Error:
      type: object
      properties:
        error:
          type: string
          example: validation_error
        message:
          type: string
          example: Invalid request
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key obtained from your GeniusForms dashboard

````