Skip to main content

Event Properties

FieldValue
event"document.generationFailed"
confidentialboolean
payloadobject
FieldTypeDescription
reasonstringHuman-readable description of the failure
errorCodestringMachine-readable error identifier
documentIdstringUnique document identifier
documentNamestringDocument name or title
outputLanguagestringOutput language code (e.g., “en”, “de”)
templateType"built-in" | "custom"Type of template used: built-in or custom
templateIdstringTemplate identifier (either ref for built-in or customTemplateId for custom)
interactionIdstringUnique interaction identifier
interactionStateInteractionStateCurrent state of the interaction

Example

{
  "event": "document.generationFailed",
  "confidential": false,
  "payload": {
    "reason": "timeout",
    "errorCode": "timeout",
    "documentId": "doc_123",
    "documentName": "SOAP note",
    "outputLanguage": "en",
    "templateType": "built-in",
    "templateId": "soap",
    "interactionId": "int_123",
    "interactionState": "ongoing"
  }
}