{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cosuno/json-schema/cosuno-webhook-configurations-response-schema.json",
  "title": "WebhookConfigurationsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cosuno-webhooks-api-openapi.yml#/components/schemas/WebhookConfigurationsResponse",
  "properties": {
    "webhookConfigurations": {
      "items": {
        "$ref": "#/$defs/WebhookConfigurationResponse"
      },
      "type": "array",
      "description": "Webhook configurations matching the request."
    },
    "totalRecords": {
      "type": "number",
      "format": "double",
      "description": "Total number of webhook configurations of this type in your company."
    }
  },
  "required": [
    "webhookConfigurations",
    "totalRecords"
  ],
  "type": "object",
  "additionalProperties": false,
  "$defs": {
    "WEBHOOK_CONFIGURATION_TYPE": {
      "type": "string",
      "enum": [
        "awardedBids"
      ]
    },
    "WebhookConfigurationResponse": {
      "properties": {
        "id": {
          "type": "string",
          "description": "ID of the webhook configuration."
        },
        "type": {
          "$ref": "#/$defs/WEBHOOK_CONFIGURATION_TYPE",
          "description": "Event type this webhook configuration subscribes to."
        },
        "webhookUrl": {
          "type": "string",
          "description": "URL that Cosuno sends webhook notifications to."
        }
      },
      "required": [
        "id",
        "type",
        "webhookUrl"
      ],
      "type": "object",
      "additionalProperties": false
    }
  }
}