Message Archiving by File Transfer

Message Archiving by File Transfer

Introduction

This guide explains the available file formats for YakChat Message Archiving and how to configure automated file transfers to Azure or AWS cloud storage.


File Formats

Two file formats are available for message archiving via file transfer:

  • Message Log: Contains a record for each message sent or received, including segments and pricing information.
  • Text and Media: Includes all Message Log data plus message text and media attachments.

Message Log (CDR)

The Message Log CSV includes the following fields:

HeaderTypeDescriptionPossible Values
TimeStampDateTimeUTC timestamp of when the message was sent or receivedYYYYDDTHH:MM:SSSSSSSSZ
TostringRecipient phone number (E.164 format)
FromstringSender phone number (E.164 format)
DirectionstringMessage directionIn, Out
SegmentsintegerNumber of text segments
PricedecimalTotal cost of the message
StatusstringCurrent delivery statusSent, Delivered
RoomIdintegerUnique conversation identifier
RoomCreatorstringDeprecated field (retained for compatibility)
InboxIdintegerUnique inbox identifier
SubscriptionIdintegerYakChat subscription identifier
CompanyIdintegerCompany identifier
MessageIdintegerUnique message identifier

Text and Media Format

This format includes all Message Log fields, plus additional fields for message content:

HeaderTypeDescriptionPossible Values
TextstringMessage body text
MediastringRelative file location of attached media

Configuration Notes
  • The archiving service runs daily and generates a CSV file when messages are present.
  • File naming format: companyName_companyId_yyyy-MM-dd_HH-mm-ss.csv
  • Example: YakChat_2_2025-12-11_00-00-00.csv
  • Partner accounts support only the Message Log format and include messages from all child companies.
  • Customer accounts can use both Message Log and Text and Media formats.

File Transfer Setup

Archiving to Microsoft Azure Storage

Configure YakChat to automatically upload archive files to Azure Blob Storage by following the official setup guide:

Archiving to Microsoft Azure Storage – Using Service Principal

Archiving to Amazon Web Services (AWS) S3

To upload archive files to AWS S3, follow this guide:

Archiving to AWS S3 Using Access Credentials