On this page
Who can export
People with workspace:export (the Admin role holds it), because the file holds every contact.
Without it the answer is "403 Forbidden" (permission_missing). An AI agent's token with
workspace:export exports at once (colliedesk_workspace_export); a token created before roles
cannot.
The export also works when the workspace is locked (a cloud trial or subscription ended) and on self-hosted installs.
How to export
In the app, open Settings → Data → Export all data and select Export all data. On a locked cloud
workspace the same button is on the locked page. Your browser then downloads the file itself, with its
own progress bar, straight to disk: a large workspace is never held in memory. Keep the page open until
the download finishes. If the server is busy with other exports you are told how long to wait. If
another export of your workspace is still running you are told to wait for it. A file that stops early
has no manifest.json; download it again.
Without the app, send an authenticated GET /api/v1/export (the app uses POST /api/v1/export/link, which returns a one-time URL valid for 60 seconds that streams the same file without a token). With an API token:
curl -fSL -H "Authorization: Bearer $COLLIEDESK_TOKEN" \
-o colliedesk-export.zip https://desk.example.com/api/v1/export
The server builds the ZIP while it sends it, so the download starts at once and large workspaces
do not need extra memory. The file is named colliedesk-<workspace slug>-<UTC time>.zip.
Only one export of a workspace runs at a time. A second request gets "409 Conflict" until the
first one has sent its last byte. A server also runs at most two exports at once; another one
gets "429 Too Many Requests" with a Retry-After header. Wait and try again.
Keep reading while the file downloads. If your client stops reading for more than 60 seconds, the server cancels the export and frees its resources; start it again. One export may run for at most 2 hours in total, however fast the client reads.
Check that the file is complete
A complete export contains manifest.json. If the server cannot read a stored file, or a file does
not match its recorded checksum, it aborts the download. You then get a broken ZIP without
manifest.json. Run the export again; if it fails again, report the attachment id in the server log.
Archive layout (format version 1)
| Path | Content |
|---|---|
manifest.json |
Format, version, export time (UTC), workspace (id, slug, name, timezone, status_history_since: from when its status history is complete, since a resolution or reopen before it was never recorded, and timezone_chosen_at: when an admin last chose the timezone, null while it is the UTC default nobody chose, which the creator's first sign-in replaces with their browser's zone), record counts, and every attachment and knowledge base image file with its size and SHA-256 |
agents.ndjson |
One agent per line: id, email, display_name, role (admin when they hold the Admin role, else agent; their roles are in agent-roles.ndjson), timezone_override, created_at, sla_alert_email (whether they get the response target reminder and overdue emails), results_email (whether they get the weekly results email), deactivated_at (null for an active agent) |
roles.ndjson |
One role per line, deleted ones too: id, name, description, system (admin or agent for the two built-in roles, null for one you made), permissions (resource:action; null for Admin, which holds every permission), created_at, updated_at, deleted_at |
agent-roles.ndjson |
One role a person holds per line: agent_id, role_id, granted_by_agent_id (null when no person gave it, such as at sign-up or the upgrade to roles), granted_at |
contacts.ndjson |
One contact per line: id, name, email (null for a customer known only on a channel), organization, merged_into_id (the contact it was merged into, or null), spam_since (when the customer was marked as spam, so their later mail goes to Spam, or null), created_at, updated_at, identities (who the customer is on a channel: channel_id, kind, value, display_name) |
contact-merges.ndjson |
Every merge of two contacts, undone or not, oldest first: id, contact_id (kept), merged_contact_id, conversation_ids (the conversations it moved), merged_by_agent_id, merged_by_channel_id (a help chat that merged by itself when a live chat's visitor gave another contact's address), token_id, created_at, undone_at, undone_by_agent_id |
tags.ndjson |
One tag per line: id, name, color, created_at |
saved-replies.ndjson |
One saved reply per line, including the ones in the trash: id, title, body, created_by_agent_id (an agent id or null), created_at, updated_at, deleted_at (when it went to the trash, or null), deleted_by_agent_id. The body keeps the variables {{customer.name}} and {{agent.name}} unfilled |
saved-reply-versions.ndjson |
Every version of every saved reply, one per line, ordered by reply and version: saved_reply_id, version, kind (baseline, create, edit, delete, restore or undelete; baseline is the text a reply had when history started), restored_from_version, title, body (the reply after the change), changed_by_agent_id, token_id, token_label (the agent token that made or asked for it), agent_request_id (the approved agent request that made it, from before agent requests were removed; null since), created_at |
saved-views.ndjson |
One saved view per line, of the inbox or the knowledge base article list, every person's and the ones in the trash: id, name, area (inbox or kb), scope (personal or shared), owner_agent_id (the person a personal view belongs to, null when shared), filters (for inbox the filters of GET /api/v1/conversations as an object, for kb those of GET /api/v1/kb/articles, with tag and author as lists), created_by_agent_id, created_at, updated_at, deleted_at |
kb-templates.ndjson |
One article template per line, including the ones in the trash: id, name, description, body (Markdown), created_by_agent_id, updated_by_agent_id, created_at, updated_at, deleted_at, deleted_by_agent_id |
kb-template-versions.ndjson |
Every version of every article template, ordered by template and version: template_id, version, kind (create, edit, delete, restore or undelete), restored_from_version, name, description, body (the template after the change), changed_by_agent_id, token_id, token_label (the agent token that made it), created_at |
kb-collections.ndjson |
One knowledge base collection per line, including the ones in the trash: id, parent_id (the collection it sits in, null at the top), name, slug, description, position, default_template_id (the template its new articles start from, or null), require_approval (inherit, on or off: whether publishing needs a teammate's approval), article_order (manual, title, newest or updated: how it lists its articles; an export from before it was added has none, which means manual), source_meta (what an import read that has no field of its own, or null), created_at, updated_at, deleted_at, deleted_by_agent_id, translations (its names in other languages: locale, name, description, source_meta while as an import wrote it, created_at, updated_at) |
kb-articles.ndjson |
One knowledge base article per line, ordered by number, including the ones in the trash: id, collection_id (its home collection), collection_ids (every collection it is listed in, the home first, also collections in the trash; an export from before it was added has no collection_ids, which means the home only), position (its place in its collection, set by hand; 0 until ordered, then ties go by title), number (never reused; the help center address is /a/<number>-<slug>), title, slug, body_md (the text in Markdown), seo_title and seo_description (what search engines show; empty uses the title and the start of the text), show_contents (whether the help center lists its headings, On this page; an export from before it was added has none, which means on), status (draft or published), published_at, author_agent_id, source_meta, source_html (the original HTML an import read, or null), image_ids (the images its versions link), tags (its published tags, sorted; an export from before they were added has none, which means no tags), created_at, updated_at, deleted_at, deleted_by_agent_id, ai_excluded_at and ai_excluded_by_agent_id (set while AI may not read the article, AI and the knowledge base) |
kb-article-versions.ndjson |
Every version of every article, ordered by article and version: article_id, version, kind (create, edit, delete, restore, undelete, import, media_replace, ai_exclude, ai_include, draft (a save of unpublished changes that did not go live), review_request, review_approve, review_changes, review_withdraw or author_change), restored_from_version, title, slug, body_md, seo_title, seo_description, show_contents, status, collection_id (as they were after the change), changed_by_agent_id, token_id, token_label, agent_request_id, author_from_agent_id and author_to_agent_id (on an author_change: whom the article was credited to before and after), created_at |
kb-article-translations.ndjson |
One translation of an article per line, including the ones in the trash: article_id, locale, title, slug, body_md, status, published_at, seo_title, seo_description, outdated and outdated_at (the article's words changed since it was brought up to date), author_agent_id, source_meta, source_html (what an import read, or null), created_at, updated_at, deleted_at, deleted_by_agent_id |
kb-article-translation-versions.ndjson |
Every version of every translation, ordered by article, language and version: article_id, locale, version, kind (as for articles, and mark_current or mark_outdated), restored_from_version, title, slug, body_md, seo_title, seo_description, status, changed_by_agent_id, token_id, token_label, agent_request_id, created_at |
kb-article-drafts.ndjson |
The unpublished changes of a published article or translation, one per line, ordered by article with its own text first: article_id, locale (null for the article's own text), title, slug, body_md, seo_title, seo_description, collection_id and extra_collection_ids (where publishing lists the article; null keeps it where it is), show_contents (the article's On this page switch once published; null keeps it as it is), attachment_ids (the files it lists once published, in order; null keeps the list it has), tags (the article's tags once published; null keeps the published ones), updated_by_agent_id, created_at, updated_at |
kb-images.ndjson |
One image of the knowledge base media library per line: id, content_type, size, sha256, path (the file in the ZIP), name, alt, width and height (as shown, null until the server read them), kept (never deleted as unused), created_by_agent_id, created_at, updated_at, updated_by_agent_id, deleted_at and deleted_by_agent_id (set while it is in the library's trash). Thumbnails are not exported; the server makes them again |
help-center.ndjson |
The help center settings, one line once the knowledge base or the help center was first written: enabled, title, locale (the primary language), languages (the others: locale, visible, position, created_at, updated_at), require_approval (publishing needs a teammate's approval), show_tags (readers see each article's tags on its page; an export from before it was added has none, which means off), feedback_conversations (a "No" that leaves a line and an email address opens a conversation; none means off), content_version, last_article_number, updated_at, and its brand: logo_media_id and favicon_media_id (ids in kb-images.ndjson), logo_alt, linkback_url, contact_url, contact_phone, color_primary, color_header, color_header_text, color_background, color_text, color_link, color_footer, body_font, heading_font (null is the default look), custom_css (exactly as saved; "" is none), its Search Console tokens google_site_verification and bing_site_verification (null when none), and its custom domain: custom_domain (the host name, null when none), custom_domain_status (pending or active) and custom_domain_verified_at. The domain's proof token is not exported; after a restore, set the domain again and check it. Its analytics target is analytics (null before the first save): provider (ga4 or plausible), enabled, ga4_measurement_id, ga4_api_secret_set, plausible_domain, plausible_base_url and updated_at. The GA4 API secret is not exported, only whether one is saved; after a restore, enter it again |
agent-requests.ndjson |
One agent request per line, kept from before agent requests were removed (no new ones are made; an AI agent now acts with the permissions of its token): id, kind, status, method, route, path, body (the call as the token sent it), edited_body (a reply draft as a person edited it, or null), summary, conversation_id, token_id, token_label, token_scope (custom for a token with its own permissions), token_permissions (what the token held when it asked, resource:action), requested_by_agent_id, decided_by_agent_id, decided_at, reason, result_status, result_note, created_at, expires_at, saved_reply_id and saved_reply_before (for a request on a saved reply: the reply as the token saw it, and the version a restore applies), notices (for a status change: what it tells customers, one per chat channel, with channel_id, channel_name, example_ref, text and told, the number of customers; as the token asked, then as it was to tell when approved; null for other requests). The answer of an approved call is not exported. body, edited_body, saved_reply_before and notices are null 90 days after the decision |
import-jobs.ndjson |
One import from Freshdesk run in the app, or its undo, per line: id, kind (import or undo), source, domain, account_source, undo_of, state, phase, options, preview, interim_report, report (the reconcile report), status, error_code, error_message, created_by, created_at, started_at, finished_at. The Freshdesk API key is never exported |
import-people.ndjson |
One agent of an imported Freshdesk account per line: source (the account, freshdesk:account:<id>), external_id (the Freshdesk agent id, which imported messages carry as origin.author_external_id), name, email, active, linked_agent_id (the agent who takes over their imported replies), linked_by_email, chosen_by_person, created_at, updated_at |
import-items.ndjson |
The ledger of every import, one record of the old helpdesk per line: source, entity, source_id, parent_source_id, target_id (what the import made of it here, or null), status (done, failed or skipped), error, source_updated_at, meta and updated_at. A later run and an undo read it |
ai-providers.ndjson |
One AI provider the workspace added per line: id, kind (anthropic or openai_compatible), label, base_url, auth_kind (api_key or none), key_hint (the key's last 4 characters), models, check_status, check_error_code, checked_at, created_by, created_at, updated_at, routing (OpenRouter's routing by data policy as stored: {"data_collection":"deny","zdr":true}, {} for OpenRouter's default and for other servers). The key is never exported: after a restore, enter it again |
ai-slots.ndjson |
One AI feature setting per line: slot (triage, draft, chat or intake), uses_server, provider_id, model, fallback_model (intake's: the model it tries when model fails), effort, enabled, default_level (off, suggest or auto: what it does by itself where no channel sets a level), automatic (the older switch, read from default_level) and auto_parts (triage applies those parts by itself), consented_by, consented_at (who agreed that its data goes to that provider), updated_by, updated_at, monthly_cap_micro_usd (AI chat's own monthly limit) |
ai-settings-events.ndjson |
One change to the AI settings per line, oldest first: id, kind, actor_agent_id, actor_token_id, provider_id, provider_label, slot, detail (what changed; keys only by their last 4 characters), created_at |
ai-source-consents.ndjson |
One kind of extra context AI intake may send per line: source_class (images, contact_profile, external:<name>), consented_by, consented_at |
ai-usage.ndjson |
One call to an AI provider per line: id, feature, billed_to (server or workspace_key), provider_id, provider_kind, provider_label, model, status (ok, error, or started for a call that never finished), error_code, stop_reason, served_model, input_tokens, output_tokens, cache_read_tokens, cache_write_tokens (null when the provider reported none), hops (per model, when a refused request was answered by another model), provider_request_id, actor_agent_id, actor_token_id, started_at, finished_at, latency_ms, task_id (the background task it worked for), automatic (no person asked for it), cost_micro_usd (what the server's provider spent, in millionths of a dollar, at that day's prices; null for your own key), reserved_micro_usd (the most the call could cost, set aside against the allowance while it ran; null for your own key), provider_cost (what the provider itself said the call cost, in its own unit: OpenRouter's credits, never dollars; null when it said nothing). No prompt or answer is stored. Background tasks themselves are not exported |
ai-auto-answer-feedback.ndjson |
One customer's answer per line under a reply AI sent by itself: draft_id, created_at and expires_at (the link works 7 days; its token is never exported), verdict (helped or didnt, empty while they pressed nothing), voted_at, changed_from (helped when they first said it helped, then that it did not) and unassigned (their "It didn't" took the conversation from its assignee) |
ai-auto-answer-resolutions.ndjson |
One confirmed resolution per line of a reply AI sent by itself: draft_id, kind (helped: the customer said so; silent: 7 quiet days with no reply of the team, the conversation resolved by itself) and confirmed_at |
satisfaction-surveys.ndjson |
One rating request per line, never its link: id, conversation_id, status_change_id (the resolve that asked), agent_id (whom it counts for), message_id (the request on the timeline), state (scheduled, sent or cancelled), cancel_reason (reopened, turned_off, not_asked), cancelled_at, due_at, sent_at, expires_at (the links work 30 days), rating (good or bad, the last answer), comment, rated_at, changed (the customer changed the rating), created_at |
ai-triage.ndjson |
One AI triage suggestion per line: id, conversation_id, task_id, automatic, requested_by_agent_id, requested_by_token_id, status (pending, ready or cancelled), tag_ids, priority, assignee_agent_id, reason (erased 90 days after it was decided), sources (the articles and solved conversations it read: kind, id, title), base (the conversation's priority and assignee_agent_id when it was asked for), stale (what a person set before it came, so not suggested), model, outcome (accepted, partly_accepted, dismissed, superseded, expired; empty while open), applied (tag_ids, priority, assignee_agent_id applied so far), auto_applied_at and auto_applied (what AI applied by itself), skipped (what it left, and why), undone_parts, kept, undone_at, undone_by_agent_id (an undo of what AI applied), created_at, ready_at, decided_at, decided_by_agent_id |
ai-drafts.ndjson |
One AI reply draft per line: id, conversation_id, task_id, requested_by_agent_id, requested_by_token_id, prompt (what the person asked for), status (pending, ready or cancelled), text, missing_info, sources (kind, id, title of each article or solved conversation it used), warnings (an address, a number or a name the conversation did not hold), model, source (ai for a draft AI wrote, written for a reply an agent token left for a person to send), cc (the addresses a written draft copies, or null), outcome (sent_unchanged, sent_edited, discarded, superseded, expired, or auto_sent when AI sent it by itself), similarity (0 to 1, how close the reply sent stayed to it), sent_message_id, automatic (written by itself for a customer message), answers_message_id, reply_needed, created_at, ready_at, decided_at, decided_by_agent_id, text_cleared_at (when the text and prompt were erased, 90 days after the draft ended), restored_at and restored_by_agent_id (when and by whom an earlier written draft was brought back), auto_send_candidate, would_auto_send, auto_send_excluded and gate_snapshot (shadow auto-answer: whether an automatic draft was a send candidate, whether AI would have sent it by itself, the first rule it failed, and the gate it was measured against; null for a person's draft and for drafts written before shadow mode), auto_send_at (when AI was to send it by itself, after its 5-minute hold), auto_send_stopped_at, auto_send_stopped_by_agent_id and auto_send_stopped_reason (why it did not: stopped, used_or_discarded, agent_replied, customer_wrote, switched_off, gate_closed, not_open, sender_unaligned, not_public, trial_limit, send_failed), auto_check_wanted (on a reply AI sent: whether a person was asked to check it) and auto_check (that check: verdict right or wrong, checked_by_agent_id, checked_by_token_id, checked_at; null without one), files (the files left with a written draft: id, filename, content_type, size, sha256, created_at and path, where its bytes are in the archive, under ai-drafts/<id>/; empty once the draft was sent, whose files are the reply's attachments) |
ai-chat-sessions.ndjson |
One end user's chat with the help center's AI per line, never its cookie: id, channel_id, surface (help_center, article, widget), status (open, ended, handed_off), conversation_id (opened by its hand-off), handed_off_at, history_cut_at, created_at, last_turn_at, ended_at, and turns: id, seq, question, answer (both erased 90 days after the chat's last turn), viewing_kb_article_id, status (streaming, answered, no_source, over_limit, failed), error_code, model, ttft_ms, input_tokens, cache_read_tokens, cache_creation_tokens, output_tokens, created_at, finished_at, sources (ordinal, kb_article_id, article_number, article_version, title, folder, as they were) and feedback (rating, created_at, updated_at) |
live-chats.ndjson |
One live chat per line, a chat that asked for a person on a help chat that answers live: session_id (its chat in ai-chat-sessions.ndjson), channel_id, conversation_id, handoff_message_id, requested_at, started_as (waiting, or email when nobody was around), answered_at and answered_by_agent_id (the first reply in the chat), ended_at, ended_by (visitor or expired). Who was here or typing, and who of the team was around, is presence and is not exported |
results-baselines.ndjson |
The results baseline, when there is one: source (the import it comes from), anchor_at (when that import's first full run finished), import_status (OK, FAILED, UNVERIFIED, or null for an import made before results existed), import_cause (archive_refused when the import is UNVERIFIED only because the Freshdesk plan refuses the archive API; otherwise null), computed_at and numbers (the baseline's windows, as GET /api/v1/results returns them) |
ai-automatic-limits.ndjson |
The automatic AI limits, one line once an admin set them: per_day, per_minute, draft_per_day, intake_per_day, updated_by and updated_at |
response-targets.ndjson |
The response targets, one line once they were saved: enabled, timezone, hours, holidays and targets (as saved; timezone is null for the workspace's own), warn_before_minutes, channel_ids (the channels they apply to; null is every channel), alert_email, enabled_at (when they were turned on: conversations opened from then on are measured), alerts_since (when reminder emails were turned on), updated_at and updated_by_agent_id. Each conversation's own targets are in conversations.ndjson |
migration-requests.ndjson |
One request to move your Freshdesk data per line: id, requested_by (the admin), freshdesk_address, times (as typed) and requested_at |
autofix-installations.ndjson |
One GitHub App installation connected for Autofix per line: id, installation_id (GitHub's), account_login, account_type, repository_selection (selected or all), status (active, blocked_all_repositories, suspended), connected_by_agent_id, connected_by_name, connected_at |
autofix-repos.ndjson |
One repository connected for fixes per line: id, installation_id, github_repo_id, full_name, visibility, visibility_checked_at, default_branch, include_notes, default_connector, paused_reason (became_public, removed_from_app, installation_suspended), paused_at, connected_by_agent_id, connected_by_name, connected_at |
autofix-connectors.ndjson |
One coding agent setting per line: kind (claude_issue, copilot_issue, cursor_api), enabled, mode (Copilot: assign_api or assign_on_github), the data consent (consent_agent_id, consent_name, consent_at, consent_version), credential_set (whether a Cursor key is set; never the key), credential_set_by_agent_id, credential_set_by_name, credential_set_at, last_check_at, last_check_result, last_check_message |
fixes.ndjson |
One fix (a conversation sent to a coding agent) per line: id, conversation_id, attempt_no, previous_attempt_id, repo_id, repo_full_name, connector, state (sending, sent, working, pr_open, merged, deployed, failed, cancelled), outcome_reason, state_changed_at, sent_title and sent_body (exactly what left Colliedesk), sent_message_ids, sent_notes, created_by_kind, created_by_agent_id, created_by_name, created_by_token_id, approved_request_id, github_login, copilot_assignment (Copilot: assigned or on_github), issue_number, vendor_ref, vendor_url, branch, pr_number, pr_url, pr_linked_by, merge_sha, merged_at, merged_by_login, deployed_at, deployed_by_agent_id, deployed_by_name, created_at |
fix-events.ndjson |
Every event of every fix's timeline, oldest first: id, fix_id, kind, from_state and to_state (both set when the state moved), actor_kind (person, token, github, cursor, system), actor_id, actor_name, data, created_at |
channels.ndjson |
One channel per line, removed ones included: id, type (email, web_form, help_chat, zalo), name, enabled, is_default (the default channel of its type), settings (its rules over its type's defaults), config (its configuration as Settings shows it; null once removed), external_account, created_at, updated_at, disabled_at, deleted_at, processing_paused_at (set while its processing is paused), auto_close_since (when auto-close was turned on: only conversations resolved after it close by themselves; null while it is off), help_center_id (the help center a web form or help chat serves; null for the primary and for the other types). A channel's secrets are never exported |
channel-events.ndjson |
One change to a channel per line, oldest first: id, channel_id, channel_type, channel_name, kind (added, renamed, enabled, disabled, default_changed, config_changed, credential_changed, removed, held_replayed, held_discarded, ai_changed), actor_agent_id, actor_token_id, detail (what changed; a secret only by its last 4 characters), created_at |
channel-ai-levels.ndjson |
One AI level a channel sets per line: channel_id, scope (empty for the whole channel), slot, level, options (intake's settings), updated_by, updated_at |
channel-inbound-events.ndjson |
What a channel received that is not a message, one per line: messages it holds because it was off, ones being collected or that failed to be processed, ones it dropped (and why) and chatter it kept without opening a conversation. id, channel_id, external_event_id, state (received, pending, held, failed, dropped, processed), raw (the payload as the channel sent it, or a summary for mail), raw_path (the raw message in the ZIP, for held mail), hold_reason, drop_reason, error, decision_basis and decision_rule (what the channel's rules decided: match, default or person, and the rule, such as scope_archive, review_hold or unmatched_kept; empty while it is collected or when the channel was off), command (the channel command a collected message named, or null), gathering_id (the intake card it belongs to), received_at, processed_at, files (name, content_type, status, size, sha256, error, path) |
intake-gatherings.ndjson |
One card of a chat channel's intake per line: id, channel_id, scope, lane_key (the place and sender whose cards are decided in turn), thread_id, contact_id, state (deciding, review, created, attached, ignored, applied, cancelled), review_reason, rules_action, rules_basis (match when the batch carried evidence such as a command, default otherwise), rules_rule and rules_target (what the channel's rules decided when it closed), conversation_id, decided_by (rules, ai or agent), decided_at, decided_by_agent_id, decided_by_token_id, fallback (the rules decided because AI did not), ignore_reason (why a person set it aside: chat, handled_in_chat, duplicate, other), opened_at, closed_at, decide_by, requeued_at, requeued_by_agent_id, created_at, updated_at |
intake-decisions.ndjson |
Every decision AI or a person made on a card, as it was: id, gathering_id, decider, basis (model or person), action, target_conversation_id, runner_up_conversation_id, runner_up_confidence, command, subject, reply_kind, related_conversation_id, confidence, reason, applied, ignore_reason, not_applied_reason, items_seen (the journal events it was made on), fallback, corrects_decision_id (the AI decision a person undid or decided otherwise than), follows_decision_id (the AI suggestion a person decided as), manifest (what AI was sent, without content), task_id, model, prompt_version, latency_ms, error_code, agent_id, token_id, created_at |
intake-eval-runs.ndjson |
Every offline evaluation recorded for a chat channel's intake: id, channel_id, scope, model, prompt_version, dataset_sha256, counts (per action: labels, correct, severe, light), run_by_agent_id, run_by_token_id, created_at |
ai-backtests.ndjson |
Every AI backtest, oldest first: its state, error_code, trigger (import or manual), knowledge, the sizes (requested_size, sample_size, considered, eligible, kb_edited_after), the draft and judge providers and models, grader_version, estimate_micro_usd, cost_micro_usd, who started it (requested_by_agent_id, requested_by_token_id), who stopped it (cancelled_by_agent_id) and when, and rows: each replayed conversation with conversation_id, reply_message_id (the agent's reply it was compared with), replay_at, the draft (draft_text, null 90 days after the run ended), score, cause, reason, similarity, has_missing_info and warning_count (kept when the texts go; has_missing_info is null for a row never drafted), cost, the draft call's own draft_latency_ms, draft_cost_micro_usd and draft_provider_cost (what the provider said it cost, in its own unit), and sources (articles with their language, past conversations); group_id and group_position (the runs of a model comparison share one group), sample_of_run_id (the earlier run a run again replayed) and sorting_run_id (the run whose sorting it shows); purpose (backtest, or auto_answer_gate for a check of the workspace before AI sends replies by itself); and its sorting: sort_size, sort_considered, sort_marked_spam, sort_types (the ticket types offered) and sorted, each sorted conversation with conversation_id, state, automated, need, type_expected (the team's), type_guess (the model's), reason (null 90 days after the run ended) and cost_micro_usd |
message-moves.ndjson |
Every move of customer messages (Move messages to another conversation) between conversations, undone ones included, in the order they were made: id, message_ids, from_conversation_id, to_conversation_id (null for a chat message taken back to the intake queue), created_conversation (a split), closed_source (the source closed as no new request), source_status_before, target_status_before (the statuses the move changed, given back by its undo), thread_keys_moved (the chat thread keys that went with the messages), gathering_id (the intake card a move to the queue made), decision_id (the person's intake decision that corrected AI), moved_by_agent_id, moved_by_token_id, moved_at, undone_at, undone_by_agent_id, undone_by_token_id |
channel-threads.ndjson |
One place of a chat channel per line (a one-to-one chat, a group): id, channel_id, kind (direct or group), external_id (its name on the channel), name, contact_id (a one-to-one chat's customer), opens_conversations, last_item_at, created_at |
channel-thread-items.ndjson |
Everything said in a chat place, one message per line, oldest first: id, channel_id, thread_id, direction (in or out), role (customer, staff, bot for the channel's own notices), sender_kind, sender_value, sender_name, contact_id, agent_id, external_id, quote_external_id (the message it answers), body, inbound_event_id, message_id (the conversation message it became), gathering_id, disposition (what became of it: conversation, archived, gathering, pending_review, not_request, unresolved, staff, bot), disposition_reason, occurred_at, alerted_at |
channel-senders.ndjson |
Who wrote in a chat channel's places, one person per line: channel_id, sender_kind, sender_value, name (the last the channel gave), role (customer or staff, as their last message was taken), last_at, thread_id (where they last wrote). The channel's own account is never one of them |
number-series.ndjson |
The series conversations are numbered in, one per line: series (default and any other), format (#{n}, or a code such as REF-{yyyy}-{n:04}), next, start, start_year, formats (every format it has had, which read the codes it gave), created_at, updated_at |
conversation-thread-items.ndjson |
Which chat messages are part of which conversation, one link per line: id, conversation_id, item_id, reason (opened, command, reply, reopen, agent…), decision_id, linked_by_agent_id, linked_at, unlinked_at, unlinked_by_agent_id (a link taken back stays) |
conversation-thread-keys.ndjson |
The keys that join a channel's next message to a conversation, one per line: conversation_id, channel_type, key (such as a chat user's or group's id), message_id (the message that recorded it) and created_at. Email reply tokens are not exported: they are addresses that let mail into a conversation, and replies still thread by the Message-IDs the messages keep |
channel-events/<event id>/... |
The raw message and the files of each event in channel-inbound-events.ndjson |
conversations.ndjson |
One conversation per line, with its messages, time entries and status changes; its number_series, number, number_year, display_ref (the code its customer saw) and number_format (the format that code was made with) |
attachments/<attachment id>/<file name> |
The original bytes of each attachment |
kb-videos.ndjson |
One video of the knowledge base media library per line: id, content_type (video/mp4 or video/webm), size, sha256, path (the file in the ZIP), poster_path (the poster's file, or null), name, alt (its title), width, height, duration_ms (null when the file does not say), codecs, kept, created_by_agent_id, created_at, updated_at, updated_by_agent_id, deleted_at, deleted_by_agent_id |
kb-media-replacements.ndjson |
One replacement of a library item per line: id, from_media_id, to_media_id, article_ids (the articles that got a new version) and article_versions (that version of each), translations (article_id, locale, and the text before and after of each translation rewritten), skipped_article_ids (what an undo left because it changed since), replaced_by_agent_id, created_at, undone_at, undone_by_agent_id, in_place (true for a file: from_media_id kept its id and took the new bytes, and to_media_id holds the earlier version) |
kb-files.ndjson |
One file of the knowledge base media library per line: id, content_type, size, sha256, path (the file in the ZIP), name, kept, created_by_agent_id, created_at, updated_at, updated_by_agent_id, deleted_at and deleted_by_agent_id (set while it is in the library's trash). The text read from it for search is not exported; the server reads it again |
kb-article-attachments.ndjson |
The files each article and translation lists under its body, one per line, ordered by article, its own list first, then by position: article_id, locale (null for the article's own list), media_id (an id in kb-files.ndjson), position (from 0), created_at |
kb-article-vote-resets.ndjson |
Every press of Reset votes on an article, oldest first: id, article_id, helpful and not_helpful (the counts the page showed until then, Freshdesk's included), reset_by_agent_id (the person, or null for an AI agent), token_id and token_label (the token an AI agent used, or null), created_at |
kb-article-votes.ndjson |
Every reader's answer to "Was this article helpful?", oldest first, the ones a reset closed too: id, article_id, voter (a hex SHA-256 of the reader's cookie, the same for every vote of one reader; the cookie itself is never stored), helpful, missing (what they said was missing, with emails and long numbers already removed, or null), reset_id (the reset that closed the vote, null while it counts), conversation_id (the conversation the vote opened, null when none), created_at, updated_at. Votes imported from Freshdesk stay in the article's source_meta (thumbs_up, thumbs_down) |
kb-article-views.ndjson |
The help center views of each article, one line per article, language and day, oldest first: article_id, locale, day (YYYY-MM-DD, a calendar day in the workspace's timezone) and views. Nothing about the readers is stored, so nothing about them is exported |
kb-article-uses.ndjson |
Every sent reply that used an article, oldest first: article_id, conversation_id, message_id (the reply), kind (link: the reply linked the article; ai_source: it was an AI draft that quoted it) and created_at. A reply that did both has two lines |
kb-searches.ndjson |
Every help center search still kept, oldest first: query (the words, with emails and long numbers already removed), results (how many articles it found), opened_article_id (the article a reader opened from its results, or null) and created_at. Nothing about the readers is stored, so nothing about them is exported |
kb-reviews.ndjson |
Every review of an article or a translation, oldest first, decided, open and superseded alike: id, article_id, locale (null for the article's own text), content_hash (the SHA-256 of the exact text the reviewers were given: title, slug, body, collections and SEO fields), state (open, approved, changes_requested, withdrawn or superseded), note (the author's note to the reviewers), requested_by_agent_id, requested_by_token_id and requested_by_token_label (the AI agent's token that sent it, or null), decided_by_agent_id, decided_by_token_id, decided_by_token_label, decided_at, decision_note, supersedes_review_id (the review an edit replaced, or null), approves_pending (approved, and its text is still the one waiting to be published), author_email (the email that told the author: none, queued, sending, sent, rejected or off), created_at |
kb-review-reviewers.ndjson |
Every person asked to review, one per line: review_id, agent_id, email (queued, sending, sent, rejected or off), notified_at (when the email went out), seen_at (when they opened the review), created_at |
kb-images/<image id>.<extension> |
The bytes of each knowledge base image |
kb-videos/<video id>.<extension>, kb-videos/<video id>.poster.<extension> |
The bytes of each knowledge base video and its poster |
kb-files/<file id>.<extension> |
The bytes of each knowledge base file |
NDJSON means one JSON object per line. Read it line by line. All times are UTC (RFC 3339).
A conversation line has id, contact_id, subject, status (open, pending, resolved, closed, or spam for one marked as spam), priority, assignee_id
(an agent id or null), channel (how it started: email, web_form, help_chat, zalo, imported, agent or
problem_report; see Filter and sort), channel_id (the channel it came
through, or null), channel_scope (the scope of its channel's type it started in, such as a chat's
group, or null), reply_channel_id (the mailbox its replies keep leaving from, or null until the
first reply), merged_into_id (where its customer messages went when a move closed it as no new request, or
null), help_center_id (the help center its web form or help chat serves, or null, as for email), origin (where an imported ticket came from, or null; origin.mailboxes lists the
support addresses it was sent to), tag_ids, number_series, number, number_year, display_ref and
number_format (see Conversation numbers), sla_applies (whether
response targets apply to it) and sla (its clocks as last counted: first_response
and resolution with their state, due_at and warn_at, the first response's met_at, alert_since and
its alerts; null when targets do not apply), created_at, updated_at, assigned_at and
assigned_by_agent_id (when and by whom it was last assigned, or null; for an assignment an API token made, the
token's owner, or for one made before agent requests were removed, the person who approved its request), held_at (when it was held over the Free plan's monthly
quota, or null), messages, time_entries and status_changes.
Each message has id, conversation_id, author_agent_id, author_name (as stored: the author
name of an imported message, null for a message written in Colliedesk, whose author is
author_agent_id, and for received mail, whose sender is in email_meta), kind
(incoming, outgoing or note), body, body_html, origin, email_message_id,
email_meta (the sender, authentication result, via, Cc addresses and attachment names of a
received message; via is platform or workspace for email (gmail for mail read from a connected Gmail inbox) and web_form for text typed into
the web form, whose sender address is unverified and whose authentication is none), cc (the
addresses a reply was copied to, or null), agent_request_id (the agent request whose approval sent
this reply, from before agent requests were removed, or null), ai_draft_id (the AI draft it was written from, or null), channel_id (the
channel that carried it, or null for a note and for messages stored before channels were recorded),
external_id (its id on that channel, such as email:<Message-ID>), channel_meta (what the channel
knows of it beyond email_meta, or null), decision_basis and decision_rule (why a message from a
channel is in this conversation: what the channel's rules decided, such as default and new_thread, or
match and thread_key, or person and intake_create for a card a person decided; null for the others), command (the channel command its
collected batch named, or null), gathering_id (the chat intake card it
came in, or null), other_contact_id (the customer whose conversation it was moved from, while it sits in
another customer's, or null), detached_at and detached_by_agent_id (a chat message taken back to the
intake queue: out of the timeline, never deleted), intake_reply_kind (acknowledgement when intake said a
chat message only thanked or acknowledged and kept a resolved conversation resolved, substantive, or null),
notice_kind (a reply the channel sent by itself: received for its received notice, reopen_legacy for one naming a code of the system before, reopened or reopen_noted answering a reopen command, and status_pending, status_resolved or status_closed telling a status the team set; null for the team's), agent_token_id (the API token that wrote it, with author_agent_id its owner; null for a person's),
created_at and attachments. Each attachment entry has id, filename, content_type,
size, sha256, created_at and path, the file's location in the ZIP.
Each time entry has id, conversation_id, agent_id, agent_name, minutes, note,
billable and executed_at.
Each status change has id, from_status, to_status, changed_at, actor_agent_id, source
(colliedesk, or import when an import set the status it read from the old helpdesk), cause,
actor_token_id and quiet. cause says who changed it: agent (a person; actor_agent_id is that
person), token (an API token or AI agent; actor_token_id is always the token, and actor_agent_id
its owner (or, for a change from before agent requests were removed, the person who approved its request), customer (a customer reply reopened it), command (the customer's reopen command in a chat), auto_close (the
channel's auto-close) or import. Tokens are not exported, so actor_token_id matches
the token_id of agent-requests.ndjson and the actor_token_id of ai-usage.ndjson. quiet is
true for a change that told the customer nothing on purpose: one made with notify: false; a close by
itself after such a resolve, or of a conversation imported resolved (the old helpdesk had told them); and
a change a move of messages made, which never tells the customer (a resolve the undo of a move
gives back keeps the quiet of the resolve it restores). Changes recorded before
cause existed have import, agent when they name a person, and customer otherwise. Changes are recorded from the
upgrade that added them; a conversation created by an import has no change for its first status.
Attachment files are stored without compression, under a directory named by the attachment id, so
two files with the same name never collide. File names are cleaned: directories and control
characters are removed, and an empty name becomes file. To verify a file, compute its SHA-256
and compare it with sha256 in manifest.json.
What is not exported
Sessions and API tokens, pairing and invite links, the email channel's inbound secret, a channel's
secrets (channel_credentials), queued email delivery state, billing records, and who has a conversation open right now (it is gone
within minutes). They are credentials or server internals, not your data. The reply numbers the API
shows (reply_number, latest_reply_number) are not exported either: they count a conversation's
outgoing messages in the order they were stored, which the file keeps.
Also left out, because the server makes them again or they are its own work in progress: the queue
of chat messages and status notices waiting to be sent (channel_outbox, a conversation's notice
still due), a chat channel's progress on a held message (when it asked the customer to confirm or
describe it, when it fetched its files), the names a chat channel looked up for its users, when a
Zalo channel last refused a signature, the AI chat's cached knowledge base sizes and its one-time
hand-off codes, an agent's hidden setup guide, the week the last results email went out, the trial reminder emails already sent, and the answers to the cloud sign-up questions (what brought the team to Colliedesk, asked for HC Labs, not used by the app).
Limits
The rows are read in one snapshot, so a conversation and its messages always agree. Changes made after the export starts are not in the file. The snapshot is open only while the records are sent; the attachment files follow without it. Messages are sent one at a time, so a very long thread does not need extra memory. The list of attachment files is kept in a temporary file on the server, so the server needs a writable temp directory.
Was this page helpful?
Updated
This page is rendered from the repository. Spot a mistake? Open an issue or a pull request.