{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/popp/json-schema/popp-list-webhooks-response-schema.json",
  "title": "ListWebhooksResponse",
  "description": "Response containing list of webhooks",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/popp-webhooks-api-openapi.yml#/components/schemas/ListWebhooksResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique webhook identifier"
          },
          "name": {
            "type": "string",
            "description": "Name of the webhook"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "HTTPS URL to receive webhook events"
          },
          "signingSecret": {
            "type": "string",
            "description": "HMAC signing secret for verifying webhook payloads"
          },
          "subscribedEvents": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "CONVERSATION_STARTED",
                "CONVERSATION_COMPLETED",
                "CONVERSATION_NEEDS_REVIEW",
                "CONVERSATION_QUEUED",
                "CONVERSATION_OPTED_OUT",
                "START_CONVERSATION_FAILED",
                "ANALYSIS_CREATED",
                "CANDIDATE_ANALYSIS_COMPLETED",
                "DOCUMENT_UPLOADED",
                "CALENDAR_MEETING_SCHEDULED",
                "CALENDAR_MEETING_RESCHEDULED",
                "CALENDAR_MEETING_CANCELLED",
                "CALENDAR_NOTE_TAKER_COMPLETED",
                "CAMPAIGN_STOPPED",
                "CALENDAR_AVAILABILITY_NOT_FOUND",
                "CALENDAR_MORE_TIME_REQUESTED",
                "WORKFLOW_RUN_STARTED",
                "WORKFLOW_RUN_COMPLETED",
                "WORKFLOW_RUN_FAILED",
                "WORKFLOW_RUN_CANCELLED",
                "WORKFLOW_CONTACT_RESOLVED",
                "WORKFLOW_CONTACT_RESOLUTION_FAILED",
                "WORKFLOW_CONTACT_RESOLUTION_SKIPPED",
                "WORKFLOW_NODE_COMPLETED",
                "WORKFLOW_PUBLISHED",
                "CANDIDATE_LIST_CREATED",
                "CANDIDATE_LIST_UPDATED",
                "CANDIDATE_LIST_DELETED",
                "CANDIDATE_LIST_MEMBERSHIP_UPDATED"
              ]
            },
            "description": "List of event types this webhook is subscribed to"
          },
          "organizationId": {
            "type": "string",
            "description": "Organization ID"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "Creation timestamp"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Last update timestamp"
          }
        }
      },
      "description": "List of webhook configurations"
    }
  }
}