{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/contraforce/json-schema/contraforce-create-webhook-configuration-request-schema.json",
  "title": "CreateWebhookConfigurationRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/contraforce-webhooks-api-openapi.yml#/components/schemas/CreateWebhookConfigurationRequest",
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": [
        "null",
        "string"
      ],
      "format": "uuid"
    },
    "name": {
      "type": [
        "null",
        "string"
      ]
    },
    "url": {
      "type": [
        "null",
        "string"
      ]
    },
    "eventTypes": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "string"
      }
    },
    "monitoredAccountIds": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "string",
        "format": "uuid"
      }
    },
    "authenticationType": {
      "$ref": "#/$defs/WebhookAuthenticationType"
    },
    "token": {
      "type": [
        "null",
        "string"
      ]
    },
    "signingToken": {
      "type": [
        "null",
        "string"
      ]
    },
    "username": {
      "type": [
        "null",
        "string"
      ]
    },
    "password": {
      "type": [
        "null",
        "string"
      ]
    }
  },
  "$defs": {
    "WebhookAuthenticationType": {
      "enum": [
        "None",
        "BasicAuth",
        "BearerToken"
      ]
    }
  }
}