Skip to content

Dataset

Mattermost channel and post archive datasets for AI training

A Mattermost dataset is a collection of one Mattermost server's teams, public and private channels, posts with their threaded replies, reactions and file attachments, and the playbook runs with their checklists and status updates. Where the server is self-hosted, the business holds the database and file store itself. SourceX sources it to a buyer's spec from established businesses that run Mattermost. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
One Mattermost server's teams, channels, posts, threads, reactions and files, with playbook runs, taken from the database or an export
Typical systems
Mattermost Team Edition, Enterprise and Cloud, with Playbooks and bot or webhook posts in scope; Boards and Calls only on request
Typical history
Specified by the buyer; back to the server's first post unless a data retention policy has removed older posts and files
Modality
Post text in Markdown, structured post, channel and membership rows, attached files of any type
Delivery formats
Agreed per order; JSONL posts with thread and version links, JSONL or CSV for channels and members, original attachment files
Preparation
Usernames, emails and mentions replaced with one pseudonym per user; secret scanning of Message, Props and files agreed per order
Licensing
Permitted use agreed per license; direct messages and private channels scoped explicitly and checked against the employer's policies
Availability
Sourced to your spec from businesses that run a Mattermost server; supply is not guaranteed
TextIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
post_idstringPseudonym of Posts.Id, the key replies, reactions and files refer to.
root_idstringPosts.RootId, the Id of the post that opened the thread, empty on a root post.
channelobjectThe Channels row: name, team, header, purpose and Type, which is O for public, P for private, D for direct and G for group message.
user_idstringPseudonym of Posts.UserId, joined to Users and flagged where the account is a bot.
create_atintegerPosts.CreateAt, the posting time in milliseconds since the epoch.
edit_atintegerPosts.EditAt, set when the message text last changed, unlike UpdateAt, which moves on any change.
delete_atintegerPosts.DeleteAt, zero on a live post and set on a deleted post and on each superseded version of an edited one.
earlier_versionsarrayPosts rows whose OriginalId is this post's Id: each earlier wording of an edited post, with its DeleteAt.
typestringPosts.Type, empty for a person's post and a system value for joins, leaves and header changes.
messagestringPosts.Message as Markdown, with mentions rewritten to the same pseudonyms as the Users table.
propsobjectPosts.Props, the JSON that holds a webhook or bot post's attachments and integration fields.
emoji_reactionsarrayReactions rows for the post with the user, EmojiName and CreateAt.
file_infoarrayFileInfo rows for the post's attachments with name, extension, size and MIME type.
playbook_runobjectFor a post in a run's channel, the Playbooks run it belongs to, with checklist item states and status updates.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "post_id": "po_8k3ncq",
  "root_id": "po_8k3n01",
  "channel": {
    "name": "deploy-help",
    "team": "platform",
    "type": "O"
  },
  "user_id": "u_052",
  "create_at": 1717516861204,
  "edit_at": 1717516899410,
  "delete_at": 0,
  "type": "",
  "message": "Run `make migrate ENV=staging` first, then restart the worker. @u_117 the old order drops the queue.",
  "props": {},
  "emoji_reactions": [
    {
      "user_id": "u_117",
      "emoji_name": "white_check_mark",
      "create_at": 1717516950033
    }
  ],
  "file_info": [
    {
      "name": "migrate-output.log",
      "extension": "log",
      "size": 18244,
      "mime_type": "text/plain"
    }
  ],
  "earlier_versions": [
    {
      "post_id": "po_8k3nd7",
      "original_id": "po_8k3ncq",
      "delete_at": 1717516899410,
      "message": "Restart the worker first, then run `make migrate ENV=staging`."
    }
  ],
  "playbook_run": null
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Self-correction pairs

An earlier version and the live post by the same author form a before and after pair for revision and error-fixing models.

Incident response agents

A playbook run's checklist beside its channel posts shows which steps were taken, in what order and who was told.

Engineering question answering

Threads with Markdown code blocks and a resolving reply ground assistants for developer and operations teams.

Alert triage from integration posts

Webhook posts with their Props intact, and the thread under each, show which alerts people acted on.

Held-out threads for evaluation

Resolved threads withheld from training test whether an agent finds the answer the team reached.

Use-case guides: Enterprise and computer-use agents, Coding agents, Document AI, enterprise search and RAG, Private evaluation sets

What makes this data valuable

Database-sourced

Taken from Posts with RootId, OriginalId and DeleteAt intact, not flattened to text.

No retention gaps

No data retention job has run, or its periods are documented.

Versions labeled

Live posts, superseded versions and deleted posts are marked apart.

Props preserved

Bot and webhook posts keep their structured content.

Files resolve

FileInfo rows match files that are present in the delivery.

Runs linked

Playbook runs are joined to their channels and status posts.

System export

Mattermost dataset

This page covers mattermost channel and post archives.Illustrative

The Posts table keeps what users edited and deleted

Every message on a Mattermost server is a row in one table, Posts. A reply carries a RootId equal to the Id of the post that opened its thread, so a thread can be rebuilt from Posts alone. The Type column separates a person's post from the system posts written when someone joins, leaves or changes a channel header, and the ChannelMemberHistory table records each member's join and leave times. Bot and webhook posts keep much of their content in the Props column as JSON, with a short Message beside it.

Editing does not overwrite. When a user edits a post, the server copies the old version into a new row with a new Id, sets that row's OriginalId to the Id of the live post and stamps its DeleteAt with the time of the edit. The live post keeps its Id and gets an EditAt. Deleting a post stamps DeleteAt and leaves the row in place. So the database holds each earlier wording of a message and each message a user took back, with times. Edits made seconds apart are usually corrections by the author: a wrong command fixed, a figure changed, a blunt sentence softened. Deleted posts are different. They can include pasted passwords and messages sent to the wrong channel, and the author meant to withdraw them. Agree in writing whether they are in scope.

This lasts until a data retention job runs. Retention policies are a feature of Mattermost's Enterprise plans, set globally or per team and channel, and the daily job permanently removes posts and files older than the period. Mattermost's documentation does not say what the job does with the earlier versions of a post it removes. A server with no policy keeps its full message history. Ask whether a policy has ever run and with what periods. Then check that the sample tells the three kinds of row apart, because a query that reads every row of Posts counts each superseded version as a message.

Three routes out of a Mattermost server

The mmctl export create command writes the bulk export, a format built for loading into another server. It is a JSON Lines file that opens with a version line, followed by typed lines such as team, channel, user, post, direct_channel and direct_post. Replies and reactions are nested inside their post, and posts name their author by username and their channel by name instead of by Id. File attachments come with the export unless it was run with the no-attachments flag. Direct and group message channels and their posts are included. History is not: Mattermost's documentation says deleted objects are not exported, the documented post object has no field for earlier versions, and the same page lists webhooks and bot messages as not yet supported.

The compliance export is the opposite trade. It is a daily job on Mattermost's Enterprise plans that writes CSV, Actiance XML or Global Relay EML for an archiving system. It marks each row with an update type such as EditedOriginalMsg, EditedNewMsg, Deleted or FileDeleted, includes bot and webhook posts, and records who was in the channel when each message was posted. The scheduled job covers posts from the day the feature was switched on, and Mattermost documents a command-line option for exporting from an earlier date on self-hosted servers, so ask what period the files cover. It leaves out Playbooks and Boards data.

The third route is the database and the file store, which a self-hosted business controls directly. Only this route holds everything, including the tables where Playbooks keeps run checklists and status updates. It also holds what must never leave: password hashes, sessions, bot access tokens and webhook addresses. To test a sample, ask which route produced it. Find a post that shows as edited and look for its earlier text. Check that replies attach to the right root, that a webhook post still has its Props, and that attachment paths resolve.

What to check before licensing

  • Ask which route produced the delivery: the mmctl bulk export, the compliance export, or the database and file store, and which edition the server runs.
  • Confirm in writing whether direct messages, group messages and private channels are in scope, and check that against the employer's policies and what staff were told.
  • Ask the data owner to confirm that nothing on the server is restricted from release, such as classified, export-controlled or contract-restricted work, and which teams and channels were excluded.
  • Ask whether a data retention policy has ever run, with what periods per team and channel, and request post counts by month.
  • Ask how superseded versions and deleted posts are labeled, and agree whether deleted posts are delivered at all.
  • Check that secret scanning covered Props, attachments and code blocks, and that webhook addresses, tokens and session data were removed.
  • Have the buyer and the data owner each check Mattermost's license and terms on exported data and API use against the intended use, with counsel.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

Does a Mattermost dataset include edit history and deleted posts?

Only when it was taken from the database or, for the period it covers, the compliance export. The server keeps each earlier version of an edited post as its own row and marks deleted posts instead of removing them, until a data retention job runs. The mmctl bulk export carries current posts only. Say whether you want earlier versions, and agree separately whether deleted posts may be delivered.

Are direct messages included?

Only if the buyer and the data owner put them in scope. They are technically available, since the bulk export writes direct and group message channels and the administrator holds the database. Whether they may be licensed depends on the employer's policies, what staff were told and the law where they work. The buyer should check that scope with counsel before asking for anything beyond public channels.

How does a Mattermost archive differ from a Slack export?

A self-hosted business runs the server, so it holds the full database and not only a vendor's export file. That means stable Ids, thread links through RootId, earlier versions of edited posts, membership history and integration Props can all be read directly. It also means the pull needs care, because the same database holds credentials and sessions that must stay behind.

Are playbook runs part of the dataset?

Only if the delivery was drawn from the database or from Playbooks itself. The compliance export leaves Playbooks data out, and the bulk export's documented object types do not include it. A run's channel posts are ordinary posts, and the run record adds the checklist items, their states, the owner and the status updates. Ask for runs joined to their channels.

Can restricted or sensitive work be kept out?

Yes, and the buyer must check that it was. Mattermost can be self-hosted and is marketed to security, defense and public sector teams, so a server may carry restricted work. The data owner should confirm that no classified, export-controlled or contract-restricted material is on the server or in the delivery, name the excluded teams and channels, and say who reviewed them.

Is SourceX affiliated with Mattermost, Inc.?

Mattermost is named to identify the system the records come from. That does not imply a partnership with or endorsement by Mattermost, Inc. The records belong to the business that runs Mattermost, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 26 November 2026.

See if your company qualifies