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

# Create a new webhook



## OpenAPI

````yaml post /zapier/webhook
openapi: 3.0.0
info:
  title: ClearTalk API
  description: The ClearTalk API Documentation
  version: '1.0'
  contact:
    name: Developer Support
    email: devsupport@cleartalk.ai
servers:
  - url: https://api.cleartalk.ai
    description: ClearTalk AI API Server
security: []
tags: []
paths:
  /zapier/webhook:
    post:
      tags:
        - Zapier
      summary: Create a new webhook
      operationId: ZapierController_createWebhook
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ZapierWebhookDto'
      responses:
        '201':
          description: Webhook created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ZapierWebhookResponseDto'
        '401':
          description: Unauthorized
        '404':
          description: Campaign not found
      security:
        - apiKey: []
components:
  schemas:
    ZapierWebhookDto:
      type: object
      properties:
        hookUrl:
          type: string
        campaign:
          type: string
          description: Campaign ID (can be either AutoCampaign ID or Campaign ID)
        apiKey:
          type: string
      required:
        - hookUrl
        - campaign
        - apiKey
    ZapierWebhookResponseDto:
      type: object
      properties:
        id:
          type: number
        message:
          type: string
      required:
        - id
        - message
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API Key for authentication

````