SendMessagePayload
Properties
| Name | Type |
|---|---|
distinct_id | string |
Distinct ID for linking to PostHog Person | |
message | string |
The message content to send | |
session_context | SessionContext |
Session context captured when creating a new ticket Stored in a JSONField for flexibility | |
session_id | string |
Session ID captured when creating a new ticket Stored as a separate queryable DB field | |
ticket_id | string | null |
Ticket ID to send the message to (null to create a new ticket) | |
traits | {
name: string | null;
email: string | null;
} |
User identification traits | |
widget_session_id | string |
Widget session ID for access control | |