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

# Create webhook

> Create a new webhook.



## OpenAPI

````yaml https://api.salesforge.ai/public/v2/swagger/doc.json post /workspaces/{workspaceID}/integrations/webhooks
openapi: 3.1.0
info:
  description: Get mailboxes associated with the workspace.
  termsOfService: https://www.salesforge.ai/terms
  title: Salesforge API
  version: '2.0'
servers:
  - url: https://api.salesforge.ai/public/v2
security:
  - ApiKeyAuth: []
externalDocs:
  description: ''
  url: ''
paths:
  /workspaces/{workspaceID}/integrations/webhooks:
    post:
      tags:
        - Webhooks
      summary: Create webhook
      description: Create a new webhook.
      parameters:
        - description: Workspace ID
          in: path
          name: workspaceID
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/api.CreateWebhookRequest'
              description: Request body
              summary: request
        description: Request body
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.CreateWebhookResponse'
          description: >-
            Created webhook. The signingSecret is returned only here and cannot
            be retrieved later.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors.Error'
          description: Internal Server Error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    api.CreateWebhookRequest:
      properties:
        name:
          description: Label identifying this webhook in the workspace.
          example: Reply notifications
          type: string
        sequenceID:
          description: 'Deprecated: use sequenceIds. Ignored when sequenceIds is non-empty.'
          example: seq_abc123
          minLength: 1
          type: string
        sequenceIds:
          description: |-
            Sequences whose events this webhook receives. Omit or leave empty to
            receive events for every sequence in the workspace.
          example:
            - seq_abc123
            - seq_def456
          items:
            type: string
          type: array
          uniqueItems: false
        type:
          $ref: '#/components/schemas/webhooks.WebhookType'
        url:
          description: >-
            Endpoint receiving the POST. Must be publicly reachable and answer
            2xx:

            a failed delivery is not retried.
          example: https://example.com/webhooks/salesforge
          type: string
      required:
        - name
        - type
        - url
      type: object
    api.CreateWebhookResponse:
      properties:
        id:
          type: string
        name:
          type: string
        sentCount:
          type: integer
        sequenceId:
          type: string
        sequenceIds:
          items:
            type: string
          type: array
          uniqueItems: false
        signingSecret:
          description: >-
            SigningSecret is returned exactly once, at creation, and cannot be
            retrieved afterwards.
          type: string
        type:
          $ref: '#/components/schemas/webhooks.WebhookType'
        url:
          type: string
      type: object
    errors.Error:
      allOf:
        - $ref: '#/components/schemas/data'
      properties:
        data: {}
        message:
          type: string
      type: object
    webhooks.WebhookType:
      description: |-
        Event that triggers a delivery. A webhook subscribes to exactly one
        type, so receiving several events means registering several webhooks.
      enum:
        - email_sent
        - email_opened
        - link_clicked
        - email_replied
        - linkedin_replied
        - contact_unsubscribed
        - email_bounced
        - positive_reply
        - negative_reply
        - label_changed
        - dnc_added
        - meeting_booked
        - meeting_completed
        - linkedin_message_sent
        - linkedin_inmail_sent
        - linkedin_connection_request_sent
        - linkedin_connection_request_accepted
        - linkedin_connection_request_withdrawn
        - linkedin_profile_viewed
        - linkedin_post_liked
        - linkedin_contact_followed
        - email_sent
        - email_opened
        - link_clicked
        - email_replied
        - linkedin_replied
        - contact_unsubscribed
        - email_bounced
        - positive_reply
        - negative_reply
        - label_changed
        - dnc_added
        - meeting_booked
        - meeting_completed
        - linkedin_message_sent
        - linkedin_inmail_sent
        - linkedin_connection_request_sent
        - linkedin_connection_request_accepted
        - linkedin_connection_request_withdrawn
        - linkedin_profile_viewed
        - linkedin_post_liked
        - linkedin_contact_followed
      type: string
      x-enum-varnames:
        - WebhookTypeEmailSent
        - WebhookTypeEmailOpened
        - WebhookTypeLinkClicked
        - WebhookTypeEmailReplied
        - WebhookTypeLinkedinReplied
        - WebhookTypeContactUnsubscribed
        - WebhookTypeEmailBounced
        - WebhookTypePositiveReply
        - WebhookTypeNegativeReply
        - WebhookTypeLabelChanged
        - WebhookTypeDNCAdded
        - WebhookTypeMeetingBooked
        - WebhookTypeMeetingCompleted
        - WebhookTypeLinkedinMessageSent
        - WebhookTypeLinkedinInmailSent
        - WebhookTypeLinkedinConnectionRequestSent
        - WebhookTypeLinkedinConnectionRequestAccepted
        - WebhookTypeLinkedinConnectionRequestWithdrawn
        - WebhookTypeLinkedinProfileViewed
        - WebhookTypeLinkedinPostLiked
        - WebhookTypeLinkedinContactFollowed
    data:
      properties:
        data:
          items:
            $ref: '#/components/schemas/api.DNCResponse'
          type: array
      type: object
    api.DNCResponse:
      properties:
        createdAt:
          type: string
        type:
          $ref: '#/components/schemas/models.DncType'
        value:
          type: string
      type: object
    models.DncType:
      enum:
        - email
        - domain
        - linkedin
      type: string
      x-enum-varnames:
        - DncTypeEmail
        - DncTypeDomain
        - DncTypeLinkedin
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: Authorization
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.