Skip to main content

Event Properties

FieldValue
event"account.creditsConsumed"
confidentialboolean
payloadobject
FieldTypeDescription
creditsConsumednumberNumber of credits used
reason"stream" | "transcription" | "document-creation"What operation consumed the credits
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": "account.creditsConsumed",
  "confidential": false,
  "payload": {
    "creditsConsumed": 12,
    "reason": "stream",
    "documentId": "doc_123",
    "documentName": "SOAP note",
    "outputLanguage": "en",
    "templateType": "built-in",
    "templateId": "soap",
    "interactionId": "int_123",
    "interactionState": "ongoing"
  }
}