type: object
properties:
  url:
    type: string
    description: The url where the events should be sent
    example: https://example.com/webhook
  name:
    type: string
    description: The name of the webhook
  subscriptions:
    type: array
    items:
      type: string
      enum:
        [
          'conversation_created',
          'conversation_status_changed',
          'conversation_updated',
          'message_created',
          'message_updated',
          'contact_created',
          'contact_updated',
          'webwidget_triggered',
          'conversation_typing_on',
          'conversation_typing_off',
        ]
    description: The events you want to subscribe to.
    example:
      - conversation_created
      - conversation_status_changed
