SendMessagePayload
Properties
| Name | Type |
|---|---|
distinct_id | string |
Distinct ID for linking to PostHog Person | |
identity_distinct_id | string |
Verified distinct_id for HMAC identity mode (requires identity_hash) | |
identity_hash | string |
HMAC-SHA256 of identity_distinct_id using team secret_api_token | |
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 | |