This guide explains how to configure and use the YakChat Message Webhook for archiving purposes, including setup, payload structure, and best practices.
The YakChat Webhook sends every message event in real time to your configured system for archiving, compliance, or analytics.
Step 2: Prepare Your Endpoint
HTTP Method
POST
Content-Type
application/json
Example Payload
{
"RoomId": "1088004",
"MessageId": "49994367",
"Text": "YakChat test message",
"Direction": "outbound",
"From": "+1xxxxxxxxxx",
"To": ["+1xxxxxxxxxx"],
"MediaURLs": [],
"CompanyId": "2",
"Timestamp": "2025-10-14T01:44:40Z",
"AccountReference": "this-is-account-reference-from-portal",
"InboxType": "Personal",
"Channel": "SMS",
"InboxNumber": "+1xxxxxxxxxx",
"Members": ["user@company.org"]
}| Field | Type | Description |
|---|---|---|
| RoomId | string | Unique identifier for the conversation or chat room. |
| MessageId | string | Unique identifier for the message. |
| Text | string | Message body text (may be empty for media-only messages). |
| Direction | string | Indicates inbound (received) or outbound (sent). |
| From | string | Sender’s phone number in E.164 format. |
| To | array[string] | List of recipient phone numbers. |
| MediaURLs | array[string] | URLs of attached media files. |
| CompanyId | string | Identifier of the organization in YakChat. |
| Timestamp | string | UTC timestamp of the message (ISO 8601). |
| AccountReference | string | Reference used for mapping to external systems. |
| InboxType | string | Type of inbox (Personal or Shared). |
| Channel | string | Messaging channel (SMS, MMS, RCS, WhatsApp). |
| InboxNumber | string | Business or YakChat number used. |
| Members | array[string] | Users with access to the conversation. |