# Create Webhook

> Create a new webhook

`POST /v1/webhooks`

import EUAPIWarning from "/snippets/eu-api-warning.mdx";

<EUAPIWarning />

## OpenAPI

````yaml swagger.json post /v1/webhooks
openapi: 3.0.0
info:
  title: helicone-api
  version: 1.0.0
  license:
    name: MIT
  contact: {}
servers:
  - url: https://api.helicone.ai/
  - url: http://localhost:8585/
paths:
  /v1/webhooks:
    post:
      operationId: NewWebhook
      responses:
        "200":
          description: Ok
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: "#/components/schemas/ResultSuccess_unknown_"
                  - $ref: "#/components/schemas/ResultError_unknown_"
      tags:
        - Webhooks
      security:
        - api_key: []
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/WebhookData"
components:
  schemas:
    Record_string.any_:
      properties: {}
      additionalProperties: {}
      type: object
      description: Construct a type with a set of properties K of type T
    ResultSuccess_unknown_:
      properties:
        data: {}
        error:
          type: number
          enum:
            - null
          nullable: true
      required:
        - data
        - error
      type: object
      additionalProperties: false
    ResultError_unknown_:
      properties:
        data:
          type: number
          enum:
            - null
          nullable: true
        error: {}
      required:
        - data
        - error
      type: object
      additionalProperties: false
    WebhookData:
      properties:
        destination:
          type: string
        config:
          $ref: "#/components/schemas/Record_string.any_"
        includeData:
          type: boolean
      required:
        - destination
        - config
      type: object
      additionalProperties: false
````
