{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-webhook-info-schema.json",
  "title": "WebhookInfo",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-acrobat-sign-v6-openapi.yml#/components/schemas/WebhookInfo",
  "type": "object",
  "properties": {
    "resourceId": {
      "description": "Id of the resource type for which you want to create webhook. Provide agreementId if webhook needs to be created for an agreement. Similarly, widgetId if webhook needs to be created for a web form, megaSignId if webhook needs to be created for a bulk send and libraryDocumentId if webhook needs to be created for a library document. For GROUP scope, provide the groupId to override (the API user must be an administrator), or omit it to default to the API user's group. Need to specify only if scope is 'RESOURCE' OR 'GROUP'. Can't be modified in PUT request",
      "type": "string"
    },
    "webhookUrlInfo": {
      "description": "Info of webhook url",
      "type": "object",
      "$ref": "#/$defs/WebhookUrlInfo"
    },
    "webhookConditionalParams": {
      "description": "Conditions which webhook creator can specify for the payload while creating or updating a webhook",
      "type": "object",
      "$ref": "#/$defs/WebhookConditionalParams"
    },
    "created": {
      "format": "date",
      "description": "Timestamp when the webhook was created. Will only be returned in GET request. Can't be modified in PUT request",
      "type": "string"
    },
    "webhookSubscriptionEvents": {
      "description": "Determines events for which the webhook is triggered. The possible values are <br> AGREEMENT_CREATED : When an agreement is created <br>,\nAGREEMENT_ACTION_DELEGATED : When an agreement is delegated <br>,\nAGREEMENT_RECALLED : When an agreement is recalled <br>,\nAGREEMENT_REJECTED : When an agreement is rejected <br>,\nAGREEMENT_RESTARTED : When an agreement is restarted <br>,\nAGREEMENT_EXPIRED : When an agreement expires <br>,\nAGREEMENT_ACTION_COMPLETED : When an agreement action is completed <br>,\nAGREEMENT_WORKFLOW_COMPLETED : When an agreement workflow is completed <br>,\nAGREEMENT_EMAIL_VIEWED : When an agreement's email is viewed <br>,\nAGREEMENT_MODIFIED : When an agreement is modified <br>,\nAGREEMENT_SHARED : When an agreement is shared <br>,\nAGREEMENT_UNSHARED : When an agreement is unshared <br>,\nAGREEMENT_UNSHARED_AUTO : When an agreement is unshared auto <br>,\nAGREEMENT_READY_TO_VAULT : When an agreement is ready to vault <br>,\nAGREEMENT_VAULTED : When an agreement is vaulted <br>,\nAGREEMENT_ACTION_REQUESTED : When an agreement action is requested <br>,\nAGREEMENT_ACTION_REPLACED_SIGNER : When signer is replaced for an agreement <br>,\nAGREEMENT_AUTO_CANCELLED_CONVERSION_PROBLEM : When an agreement is auto-cancelled due to conversion problem <br>,\nAGREEMENT_DOCUMENTS_DELETED : When an agreement documents are deleted <br>,\nAGREEMENT_EMAIL_BOUNCED : When an agreement email gets bounced <br>,\nAGREEMENT_SMS_MESSAGE_BOUNCED : When an agreement SMS gets bounced <br>,\nAGREEMENT_WHATSAPP_MESSAGE_BOUNCED : When an agreement WhatsApp gets bounced <br>,\nAGREEMENT_KBA_AUTHENTICATED : When an agreement KBA is authenticated <br>,\nAGREEMENT_EMAIL_OTP_AUTHENTICATED : When an agreement EMAIL OTP is authenticated <br>,\nAGREEMENT_OFFLINE_SYNC : When an agreement is synced offline <br>,\nAGREEMENT_USER_ACK_AGREEMENT_MODIFIED : User Acknowledgement when an agreement is modified <br>,\nAGREEMENT_WEB_IDENTITY_AUTHENTICATED : When an agreement web identity is authenticated <br>,\nAGREEMENT_READY_TO_NOTARIZE: When an agreement is ready for notarization <br>,\nAGREEMENT_EXPIRATION_UPDATED: When agreement expiration time is updated <br>,\nAGREEMENT_REMINDER_SENT: When an agreement reminder is sent <br>,\nAGREEMENT_SIGNER_NAME_CHANGED_BY_SIGNER : When a signer changes his name at signing <br>,\nAGREEMENT_REMINDER_INITIATED: When an agreement reminder is initiated <br>,\nAGREEMENT_DOCUMENTS_VIEWED: An agreement is initially viewed by an user since its creation or modification <br>,\nAGREEMENT_DOCUMENTS_VIEWED_PASSWORD_PROTECTED: A password protected agreement PDF is initially viewed by an user since its creation or modification <br>,\nAGREEMENT_PAUSED: When an agreement is paused <br>,\nAGREEMENT_RESUMED: When a paused agreement is resumed <br>,\nAGREEMENT_PAUSED_EXPIRED: When a paused agreement expires after the pause period <br>,\nAGREEMENT_PAUSE_EXPIRATION_WARNING_SENT: When a pause expiration warning is sent <br>,\nAGREEMENT_ALL : All the supported agreement events for Webhooks <br>,\nMEGASIGN_CREATED : When a bulk send is created <br>,\nMEGASIGN_RECALLED : When a bulk send is recalled <br>,\nMEGASIGN_SHARED : When a bulk send is shared <br>,\nMEGASIGN_REMINDER_SENT: When a bulk send reminder is sent <br>,\nMEGASIGN_REMINDER_INITIATED: When a bulk send reminder is initiated <br>,\nMEGASIGN_ALL : All the supported Send in Bulk events for Webhooks <br>,\nWIDGET_CREATED : When a web form is created <br>,\nWIDGET_MODIFIED : When a web form is modified <br>,\nWIDGET_SHARED : When a web form is shared <br>,\nWIDGET_ENABLED : When a web form is enabled <br>,\nWIDGET_DISABLED : When a web form is disabled <br>,\nWIDGET_AUTO_CANCELLED_CONVERSION_PROBLEM : When a web form is auto-cancelled due to conversion problem <br>,\nWIDGET_ALL : All the supported web form events for Webhooks <br>,\nLIBRARY_DOCUMENT_CREATED : When a library document  is created <br>,\nLIBRARY_DOCUMENT_AUTO_CANCELLED_CONVERSION_PROBLEM : When a library document is auto-cancelled due to conversion problem <br>,\nLIBRARY_DOCUMENT_MODIFIED : When a library document is modified <br>,\nLIBRARY_DOCUMENT_ALL : All the supported library document  events for Webhooks",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "AGREEMENT_CREATED",
          "AGREEMENT_ACTION_DELEGATED",
          "AGREEMENT_RECALLED",
          "AGREEMENT_REJECTED",
          "AGREEMENT_EXPIRED",
          "AGREEMENT_ACTION_COMPLETED",
          "AGREEMENT_WORKFLOW_COMPLETED",
          "AGREEMENT_RESTARTED",
          "AGREEMENT_EMAIL_VIEWED",
          "AGREEMENT_MODIFIED",
          "AGREEMENT_SHARED",
          "AGREEMENT_UNSHARED",
          "AGREEMENT_UNSHARED_AUTO",
          "AGREEMENT_READY_TO_VAULT",
          "AGREEMENT_VAULTED",
          "AGREEMENT_ACTION_REQUESTED",
          "AGREEMENT_ACTION_REPLACED_SIGNER",
          "AGREEMENT_AUTO_CANCELLED_CONVERSION_PROBLEM",
          "AGREEMENT_DOCUMENTS_DELETED",
          "AGREEMENT_EMAIL_BOUNCED",
          "AGREEMENT_SMS_MESSAGE_BOUNCED",
          "AGREEMENT_WHATSAPP_MESSAGE_BOUNCED",
          "AGREEMENT_KBA_AUTHENTICATED",
          "AGREEMENT_OFFLINE_SYNC",
          "AGREEMENT_EMAIL_OTP_AUTHENTICATED",
          "AGREEMENT_USER_ACK_AGREEMENT_MODIFIED",
          "AGREEMENT_WEB_IDENTITY_AUTHENTICATED",
          "AGREEMENT_READY_TO_NOTARIZE",
          "AGREEMENT_EXPIRATION_UPDATED",
          "AGREEMENT_REMINDER_SENT",
          "AGREEMENT_SIGNER_NAME_CHANGED_BY_SIGNER",
          "AGREEMENT_REMINDER_INITIATED",
          "AGREEMENT_DOCUMENTS_VIEWED",
          "AGREEMENT_DOCUMENTS_VIEWED_PASSWORD_PROTECTED",
          "AGREEMENT_PAUSED",
          "AGREEMENT_RESUMED",
          "AGREEMENT_PAUSED_EXPIRED",
          "AGREEMENT_PAUSE_EXPIRATION_WARNING_SENT",
          "AGREEMENT_ALL",
          "MEGASIGN_CREATED",
          "MEGASIGN_RECALLED",
          "MEGASIGN_SHARED",
          "MEGASIGN_REMINDER_SENT",
          "MEGASIGN_REMINDER_INITIATED",
          "MEGASIGN_ALL",
          "WIDGET_CREATED",
          "WIDGET_MODIFIED",
          "WIDGET_SHARED",
          "WIDGET_ENABLED",
          "WIDGET_DISABLED",
          "WIDGET_AUTO_CANCELLED_CONVERSION_PROBLEM",
          "WIDGET_ALL",
          "LIBRARY_DOCUMENT_CREATED",
          "LIBRARY_DOCUMENT_AUTO_CANCELLED_CONVERSION_PROBLEM",
          "LIBRARY_DOCUMENT_MODIFIED",
          "LIBRARY_DOCUMENT_ALL"
        ]
      }
    },
    "applicationDisplayName": {
      "description": "The display name of the application through which webhook is created",
      "type": "string"
    },
    "problemNotificationEmails": {
      "description": "Emails of existing Acrobat Sign users to receive warnings and disablement notifications, only Admins can set this.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/WebhookProblemNotificationEmails"
      }
    },
    "scope": {
      "description": "Scope of webhook. Can't be modified in PUT request. The possible values are ACCOUNT, GROUP, USER or RESOURCE",
      "type": "string",
      "enum": [
        "ACCOUNT",
        "GROUP",
        "USER",
        "RESOURCE"
      ]
    },
    "name": {
      "description": "The name of the webhook",
      "type": "string"
    },
    "id": {
      "description": "The unique identifier of the webhook. Will only be returned in GET request. Can't be modified in PUT request",
      "type": "string"
    },
    "lastModified": {
      "format": "date",
      "description": "Timestamp when the webhook was last updated. Will only be returned in GET request. Can't be modified in PUT request",
      "type": "string"
    },
    "state": {
      "description": "The state in which the webhook should be created",
      "type": "string",
      "enum": [
        "ACTIVE"
      ]
    },
    "applicationName": {
      "description": "The name of the application through which webhook is created",
      "type": "string"
    },
    "resourceType": {
      "description": "The resource for which you want to create webhook. Need to specify only if scope is 'RESOURCE'. Can't be modified in PUT request. The possible values are AGREEMENT, WIDGET,  MEGASIGN AND LIBRARY_DOCUMENT",
      "type": "string",
      "enum": [
        "AGREEMENT",
        "WIDGET",
        "MEGASIGN",
        "LIBRARY_DOCUMENT"
      ]
    },
    "status": {
      "description": "Status of the webhook. Determines whether the webhook will be actually triggered. Default: ACTIVE, if ACTIVE, this webhook will receive event requests. If INACTIVE, this webhook will not receive event requests. Can't provide status in POST/PUT requests.",
      "type": "string",
      "enum": [
        "ACTIVE",
        "INACTIVE"
      ]
    }
  },
  "required": [
    "name",
    "scope",
    "state",
    "webhookSubscriptionEvents",
    "webhookUrlInfo"
  ],
  "$defs": {
    "WebhookAgreementEvents": {
      "type": "object",
      "properties": {
        "includeDetailedInfo": {
          "description": "Determines whether agreement detailed info will be returned in the response payload",
          "type": "boolean"
        },
        "includeParticipantsInfo": {
          "description": "Determines whether participants info will be returned in the response payload",
          "type": "boolean"
        },
        "includeSignedDocuments": {
          "description": "Determines whether documents will be returned in webhook response payload. If set to true, signed document will be returned in base 64 encoded format in JSON when signing is complete",
          "type": "boolean"
        },
        "includeDocumentsInfo": {
          "description": "Determines whether document info will be returned in the response payload",
          "type": "boolean"
        }
      }
    },
    "WebhookConditionalParams": {
      "type": "object",
      "properties": {
        "webhookWidgetEvents": {
          "description": "Conditional parameters for webhook web form events",
          "type": "object",
          "$ref": "#/$defs/WebhookWidgetEvents"
        },
        "webhookMegaSignEvents": {
          "description": "Conditional parameters for webhook Send in Bulk events",
          "type": "object",
          "$ref": "#/$defs/WebhookMegaSignEvents"
        },
        "webhookLibraryDocumentEvents": {
          "description": "Conditional parameters for webhook library document events",
          "type": "object",
          "$ref": "#/$defs/WebhookLibraryDocumentEvents"
        },
        "webhookAgreementEvents": {
          "description": "Conditional parameters for webhook agreement events",
          "type": "object",
          "$ref": "#/$defs/WebhookAgreementEvents"
        }
      }
    },
    "WebhookLibraryDocumentEvents": {
      "type": "object",
      "properties": {
        "includeDetailedInfo": {
          "description": "Determines whether agreement detailed info will be returned in the response payload",
          "type": "boolean"
        },
        "includeDocumentsInfo": {
          "description": "Determines whether document info will be returned in the response payload",
          "type": "boolean"
        }
      }
    },
    "WebhookMegaSignEvents": {
      "type": "object",
      "properties": {
        "includeDetailedInfo": {
          "description": "Determines whether megaign detailed info will be returned in the response payload",
          "type": "boolean"
        }
      }
    },
    "WebhookProblemNotificationEmails": {
      "type": "object",
      "properties": {
        "email": {
          "description": "Email of existing Acrobat Sign user in the same account or group as the API caller",
          "type": "string"
        }
      }
    },
    "WebhookUrlInfo": {
      "type": "object",
      "properties": {
        "url": {
          "description": "Info of webhook url",
          "type": "string"
        }
      },
      "required": [
        "url"
      ]
    },
    "WebhookWidgetEvents": {
      "type": "object",
      "properties": {
        "includeDetailedInfo": {
          "description": "Determines whether agreement detailed info will be returned in the response payload",
          "type": "boolean"
        },
        "includeParticipantsInfo": {
          "description": "Determines whether participants info will be returned in the response payload",
          "type": "boolean"
        },
        "includeDocumentsInfo": {
          "description": "Determines whether document info will be returned in the response payload",
          "type": "boolean"
        }
      }
    }
  }
}