Docs menuImport from Freshdesk

Import from Freshdesk

Use with AI

Colliedesk copies a Freshdesk account into a workspace through the Freshdesk API: in the app under Settings > Data > Import from Freshdesk (admins, no terminal needed), or with the collie import freshdesk command on your own server. Both end with a reconcile report that compares what Freshdesk holds with what Colliedesk now holds. If anything is missing, the report says FAILED and lists the Freshdesk ids. If the totals could not be confirmed, it says UNVERIFIED. Run the import again to retry: finished items are never copied twice. Your Freshdesk account is not changed.

On this page

What is imported

Freshdesk Colliedesk
Contacts Contacts (matched by email when the contact already exists)
Companies The contact's organization
Agents Matched by email to your Colliedesk agents; otherwise the author name is kept
Tickets, including archived tickets Conversations with the original subject, status, priority, assignee, tags and timestamps
Ticket description, replies, incoming replies, private and public notes, forwards Timeline messages with the original author, time, from/to/cc/bcc and Freshdesk kind. A forward to a third party and a public note become notes, never replies to the customer
Automatic replies Freshdesk flagged (an out-of-office, a messenger or bot acknowledgement) Shown as one line, " sent an automated response", with a chevron that opens the message. Tickets imported before this was added keep those replies as ordinary messages; import them again to fold them
Ticket type, channel, due dates, cc and forwarded-to addresses Shown in the conversation details
The Freshdesk mailbox a ticket was sent to Kept with the conversation (origin.mailboxes). With several email channels, replies leave from the channel with that support address, otherwise from the default one. If Freshdesk does not list its mailboxes, the report warns email_configs_unavailable and the ticket's other addresses are used
Original message HTML Shown formatted on the message in a locked frame that runs no scripts; Show plain text switches to the text. Remote images load through the Colliedesk image proxy
Attachments Files stored by Colliedesk, each with a SHA-256 checksum
Images inside a message that Freshdesk hosts Stored by Colliedesk with a SHA-256 checksum, embedded in the formatted message, and also listed as files in the plain-text view. See "Images inside messages" below
Time entries Time entries (agent, minutes, note, billable, time), shown under Time logged on the timeline
Canned responses Saved replies, titled <folder name> / <title> so the folder is still visible. See below
Knowledge base (solutions): categories, folders, articles and their translations Knowledge base collections and articles with the original dates and author. See "Knowledge base" below

Status mapping: Open → Open, Pending → Pending, Resolved → Resolved, Closed → Closed. Custom statuses become Pending and are listed in the report. Priority: Low → Low, Medium → Normal, High → High, Urgent → Urgent. An unknown priority becomes Normal and is listed in the report.

The report lists what is not imported, for example custom fields.

Canned responses

Each canned response becomes a shared saved reply. The text is the plain-text version Freshdesk provides; when there is none, the HTML version is reduced to text. Placeholders are changed where Colliedesk has the same meaning:

Freshdesk Colliedesk
{{ticket.requester.name}}, {{ticket.from_name}} {{customer.name}}
{{ticket.agent.name}} {{agent.name}}

Every other placeholder, for example {{ticket.url}}, stays in the text as written and is listed in the report under Freshdesk placeholders left as written. Edit those saved replies before you use them.

The report also lists, by Freshdesk id, what does not come over:

  • Files attached to a canned response. Saved replies hold text only. Download the files from Freshdesk if you still need them.
  • A canned response with no text. There is nothing to import.
  • A personal folder. Saved replies are shared by the whole workspace, so responses in a personal folder are not imported by default. The report lists their Freshdesk ids under Canned responses in personal folders, not imported. To share them, run the import again with --include-personal-canned-responses.
  • An image in the HTML of a canned response. Saved replies hold text only, so the image is dropped and the report warns (saved_reply_images_dropped). Links are kept as text (address).

A canned response whose title is already taken by another saved reply is imported as <title> (Freshdesk <id>). An existing reply is never changed. If the workspace would pass 500 saved replies, or a text is longer than 20 000 characters, that item is listed under Failures and the status is FAILED. If Freshdesk fails to list the folders (not a refusal, for example server errors), the tickets still import; the report shows a failure for the canned responses and the status is FAILED until you run the import again. Running the import again never adds a canned response twice and never overwrites a saved reply your team edited or deleted. If your Freshdesk plan has no canned responses (Freshdesk refuses them), the report says so and this does not change the status.

Knowledge base

The whole knowledge base is imported on every run, whatever --since says:

Freshdesk Colliedesk
Category Top-level collection
Folder, subfolder Collection inside it, then a collection inside that one
A folder nested deeper A third-level collection named after its folders, for example Advanced / Deep, listed under the warning kb_folder_flattened
Article Article in Markdown with its title, original created and updated dates, and the author when a Colliedesk agent has the same email
Article images hosted by Freshdesk Stored by Colliedesk in the knowledge base media library, named after the file in the image address, with the alt text of the image (at most 500 characters); the article points at the stored copy. Their bytes stay as Freshdesk served them
Files attached to an article or a translation Files in the knowledge base media library, listed under the article (or translation) in the same order. A file over 25 MB, of a type Colliedesk does not accept, or past 100 MB per article fails, and the report gives the file name and the reason
Translations Translations of the same article, with their status (published in Freshdesk stays published, everything else is a draft), search title and description. Tags stay in the export (source_meta)
Category and folder names in other languages The collection's names in other languages
Supported languages The help center's languages: those your Freshdesk portal shows (portal_languages) are shown, the others hidden. The Freshdesk primary language becomes the help center's while it has no languages or articles of its own; otherwise it stays and the report warns kb_primary_language_differs. import undo gives back the primary language the help center had, unless someone changed it since (undo then says it kept it)

An article is published only when it is published in Freshdesk and its category is in a Freshdesk portal. Everything else is imported as a draft. Each folder's visibility becomes its collection's visibility, so an internal article never becomes public by mistake: All Users is Everyone, Agents is Agents only, Bots is Help chat only. A folder limited to some customers (logged-in users, selected companies or segments) is kept for Agents only until Colliedesk has that limit; the report lists each one under kb_folder_limited_to_some_customers. A subfolder that becomes a collection beside its parent gets the most restrictive visibility of the folders it no longer sits in. The report lists the drafts by reason; publish the ones that should be public.

If your Freshdesk account has several portals, each portal becomes a help center of its own:

  • The portal with the most categories goes on your primary help center, which keeps its name.
  • Every other portal gets a new help center, named after the portal in Freshdesk, at <primary address>/<handle>. The handle comes from that name (portal-<id> when the name gives none, -2, -3 when it is taken). When Freshdesk gives no name, the help center is called Portal <id> and the report says so: rename it in Knowledge base → Settings → Help centers.
  • A new help center starts off, so nothing new is public before you look at it: select Turn on on its row in Knowledge base → Settings → Help centers.
  • A category shown in several portals is shown in each of their help centers.
  • A workspace has at most 20 help centers. A portal past that goes on the primary help center, and the report says so.

The preview lists the help center each portal will get, and the report lists the one it got (Settings → Import, the Markdown report, and knowledge_base.help_centers in the JSON). Running the import again keeps each portal on its help center and makes no new ones; the preview does not read that, so it can list a portal as getting a help center that an earlier run already made. A help center your team deleted is not made again: that portal's categories go on the primary. import undo deletes the help centers the import made, unless your team gave one a custom domain or pointed a help chat or web form at it (undo then names it), and never touches the primary or the help centers your team made.

When Freshdesk moves a category to another portal after an import, the next run shows its collection on that portal's help center too. It stays on the primary help center, where the earlier import put it, because your team may have placed it there; the report names the category. To take it off the primary, change the collection's Shown on setting (#768). A help center your team takes a collection off stays that way when you import again. Articles that an import from before this change kept as drafts only because their category was in another portal are published by the next run, unless your team changed them since. A portal that failed to get its help center on an earlier run and is now past the limit no longer fails the report. Old portal links still lead to the primary help center's address (#769).

A Freshdesk callout card becomes a callout: Note and Info as Note, Tip and Idea as Tip, Warning as Warning. A card of another type becomes a plain quote.

Markdown cannot hold everything HTML can. A YouTube or Vimeo video embedded in an article is kept and plays on the help center (see Videos). Other embedded video and iframes, forms and scripts are left out of the article, a table cell that spans several columns is repeated in each, and a table whose cells hold several lines or a list becomes plain text (the words stay). The report names the articles under the warning kb_article_markup_dropped. The original HTML stays with the article and is in the export.

An image Freshdesk no longer has stays a link and is listed. An image that fails to download for another reason makes the status FAILED; run the import again. A file that cannot come over (too large, a refused type, a failed download) also makes the status FAILED: the report lists it under Knowledge base files with its reason, and the article keeps the other files. Save that file from Freshdesk, or convert it to an accepted type and attach it in Colliedesk.

The import refuses, before it writes anything, a knowledge base that does not fit: more than 2,000 articles in the workspace (articles in the trash count), 1,000 collections or 10,000 images in the media library (counting its trash and every image and file the import would bring in), or an article longer than 100,000 characters once converted. A text is never cut. --dry-run lists what does not fit.

Running the import again updates an article that changed in Freshdesk, unless your team changed it in Colliedesk since, or it has unpublished changes: then your version stays, published text and unpublished changes alike, and the report lists the article under kb_article_changed_in_both. Unpublished changes you discarded do not count. If a folder is shown to fewer people in Freshdesk, the next run restricts its collection to match and the report lists it under kb_collection_restricted; a folder shown to more people never opens its collection, so change it in Colliedesk. If an article's category left the portal, the next run makes it a draft again, unless your team changed it since: then it stays published and the report warns (kb_article_published_but_not_public). When a portal changes the other way, the article stays a draft; publish it in Colliedesk. The same goes for each translation: a newer Freshdesk translation replaces one nobody changed in Colliedesk and with no unpublished changes, and the report lists the others under kb_translation_changed_in_both. An article whose text changed in Freshdesk while its translation did not gets that translation marked Outdated. import undo removes the imported articles and collections, but keeps an article your team edited, restored or deleted since, one with unpublished changes, or one of whose translations your team changed, added or has unpublished changes on, and the collections that hold it or your own articles. From an article that stays, undo removes the translations only the import wrote; it also removes the collection names the import wrote (not one a person set) and the languages it added that hold nothing any more. An imported image someone kept in the media library stays too, and undo says how many. Undo removes the imported files no article lists any more, but keeps a file someone kept in the media library or replaced, and says how many. If Freshdesk has no knowledge base, the report says so. If Freshdesk refuses it (the API key may lack the right), the status is UNVERIFIED.

Your customers, search engines and old emails know the addresses of your Freshdesk help center (https://acme.freshdesk.com/support/solutions/articles/12345-reset-your-password). After the import they keep working on every address of your Colliedesk help center: its own address, and your custom domain once it points at Colliedesk (see Public help center).

Old address Goes to
/support, /support/home, /support/solutions The help center's home page (permanent redirect, 301)
A category /support/solutions/<id> or folder /support/solutions/folders/<id> Its collection, while something in it is published (301)
An article /support/solutions/articles/<id>-<title> The article, while it is published (301)
An article, folder or category that is a draft, in the trash or was never imported The help center search for the words of the old address (temporary redirect, 302, so publishing it later takes over)
/support/search?term=... The help center search for the same words
Any other /support/... page (sign-in, tickets) The home page (302)

A language prefix such as /de/support/... and capital letters (/Support/Solutions/...) are understood the same way. The redirects work only while the help center is on.

The import also rewrites Freshdesk links inside the imported articles, their translations and the saved replies, so they point at the new pages. It rewrites links on your account's address (acme.freshdesk.com), on the custom domain you set for the help center, on the old help center address you give (below), and relative links such as /support/solutions/folders/12. A link keeps its #section part. An old search link goes to the help center search for the same words. It does this only:

  • while the help center is on. Turn it on first, or run the import again after turning it on;
  • when the import knows the server's address. On the command line that is APP_ORIGIN, as the server has it; without it nothing is rewritten and the report says so;
  • for articles and saved replies nobody changed in Colliedesk since the import. Changed ones are left as they are and listed. A translation has its own history: a translation someone changed is left, even when its article was not;
  • for links to a page that is public now. A link to a draft, or to something not imported, stays as written and is listed. So does a link to an old portal page the help center has no counterpart for, such as /support/tickets/new.

An address written as code (`https://acme.freshdesk.com/support/...` or in a code block) is an example, not a link: it is left as written.

If your Freshdesk help center had a domain of its own, such as support.acme.com, give it so its links are rewritten too: --old-help-center-domain support.acme.com on the command line, or Old help center address when you import in the app. A /support/solutions/... link on a host the import does not know is listed with that advice, and the section stays UNVERIFIED.

A link to a folder or category points at the collection's address, which is made of collection names (/c/billing/cards). If you rename or move that collection later, the link breaks, since that change is not redirected. The old Freshdesk address keeps leading to the collection.

Running the import again changes nothing that already points at the help center. import undo removes the rewritten articles and saved replies like every other imported item; an earlier text stays in the article's or saved reply's history. The original HTML of an article is never changed.

The report has a section Old help center links (links in the JSON and in the app) with its own status: OK when the help center is on, every old address leads to a public page and no Freshdesk link was left behind. Otherwise it is UNVERIFIED and says why; this does not change the import's status. Links on acme.freshdesk.com itself, in emails your customers keep, stop working when you close the Freshdesk account: move your custom domain to Colliedesk before you close it.

Search Console and the move of your domain

If your team verified the old help center in Google Search Console or Bing Webmaster Tools by pasting a <meta> tag into the Freshdesk portal head, the import copies that verification, so the new help center stays verified when your DNS switches. It reads the public home page of the old help center (https://acme.freshdesk.com/support/home, without your API key) and takes the content of the google-site-verification and msvalidate.01 meta tags in its <head>. A tag in the body or in a script does not count.

  • A token is copied only when the help center has none of that kind yet. One you set in Knowledge base → Settings → Search Console is never replaced.
  • A value that is not 16 to 100 letters, digits, - or _ is not copied; the report says so.
  • A dry run reads nothing. import undo leaves the tokens: they only prove who owns the address. Remove them in Settings if you do not want them.

The report has a section Search Console (search_console in the JSON and in the app) that says, for Google and for Bing, whether the token was carried over, the help center already had one, the old head had none, or the token had the wrong shape. It never prints a token. If the old home page could not be read, the section is UNVERIFIED and says why; add the tokens in Settings by hand. This does not change the import's status.

Old *.freshdesk.com addresses

If your help center had its own domain, point it at Colliedesk with a 301 at your DNS provider (see Custom domain). If it was only on acme.freshdesk.com, Freshdesk cannot answer 301 from that address, so Knowledge base → Settings → Old Freshdesk links gives you a snippet to paste into the portal before you cancel:

  1. Say which Freshdesk plan the account is on. Only the Pro and Enterprise plans can add code to the portal (Admin → Channels → Portals → Customize portal → Layout & Pages → Head). On Growth old *.freshdesk.com links cannot be redirected: the app says so and gives no snippet. Point the links on your own website, product and emails at the new help center instead.
  2. Copy the snippet and paste it into the portal head.

The snippet sends a visitor of an old help page (home, solutions, search, and each article, folder and category the import brought over) to its new address, and nowhere else: the target always starts with your help center's address. Sign-in and ticket pages stay. It is a JavaScript redirect, not a 301, and it works only while the Freshdesk account exists: keep the account and the snippet for at least 4 weeks after the switch. Freshdesk suspends a cancelled account after 24 hours and deletes it after 14 days. There is no meta refresh fallback, because it cannot tell a help page from the sign-in page.

When the knowledge base is too large to list every address in the snippet, the app says so. The snippet then sends each old address by its id to the help center, which finds the new page, so the redirect still works.

Before you start

  1. Create the Colliedesk workspace (on your own server, see self-host).
  2. Invite your team. With the CLI, replies by an agent link to that agent only when a Colliedesk agent with the same email exists when you run it. In the app you can also invite them from the import page, before or after the import: joining links them (see "Import in the app").
  3. Get a Freshdesk API key from an admin account with access to all tickets. The import reads the account id (View Account), which needs an admin key:
    1. Sign in to Freshdesk.
    2. Select your profile picture, then Profile settings.
    3. Copy the key under Your API Key.

The key gives read access to the whole account. Keep it in an environment variable. Colliedesk never accepts it as a command-line argument and never prints it.

The Freshdesk Free plan has no API calls, so Colliedesk cannot import it: start a 14-day trial of a higher Freshdesk plan, then import. If the trial ends during an import from the app, the import stops and keeps what it imported.

Import in the app

  1. Open Settings > Data > Import from Freshdesk (it needs the imports: permissions, which admins hold; an empty inbox links to it).
  2. Enter your <account>.freshdesk.com address and the API key of a Freshdesk admin (see "Before you start"). If your Freshdesk help center had a domain of its own, enter it under Old help center address (optional; see "Old help center links"). Then select Read account. Colliedesk reads the account and shows what it found: tickets, contacts, companies and agents, and whether the key can read archived tickets, canned responses and the knowledge base. Nothing is written yet. Freshdesk does not count archived tickets ahead of time, so the ticket number is "at least". A plan that does not allow the archive API gets a calm note, not a warning: those archived tickets are listed in the report to check. The page also gives a time range for the import, from the ticket count and the API limit of your plan. The ⓘ beside the API key says how the server keeps it, and the one beside the old help center address says what it changes. The key is encrypted on the server and erased when the import ends.
  3. Select Start import within the hour. The tickets updated in the last 90 days come first, newest first: once they are in, the page says so and your team can work on them while older and archived tickets, contacts, saved replies and the knowledge base follow. The page lists the steps (done, in progress, waiting) with the counts, an estimate of the time left, and a quiet line when it waits for the Freshdesk API limit, which is normal and automatic. The import leaves a fifth of that limit to your other Freshdesk apps. Open the inbox is there from the first minute. You can close the page or sign out: the import runs on the server and survives a restart.
  4. At the end the page shows the result, In Freshdesk next to In Colliedesk for each kind of data, with Download report for the Markdown report. When the only open point is an archive that your Freshdesk plan does not let Colliedesk read, the headline is Import done and a short note names the ticket numbers to check in Freshdesk. Any other unverified total keeps Import done, not verified. Undo import is a quiet link below the buttons; it asks before it removes what the import brought in.

Under Freshdesk agents the page lists the agents of the account. Each one linked to a Colliedesk agent becomes the author of their imported replies and the assignee of the imported tickets they held (unless someone reassigned a ticket since); the original times do not change. Agents with the same email are linked when the account is read, and an agent links by itself when they join Colliedesk with the same email as in Freshdesk. Invite by email sends a real invitation from Colliedesk to that address and creates a one-time invite link for the others, shown once in their row with Copy link and when it expires: send it to them. When they join they are linked by their email, before or after the import. Revoke invite takes a waiting invite back. To link someone whose email differs, choose the agent and select Link; Unlink takes it back. A link is applied within seconds.

When an import ends on its own (complete, incomplete or stopped by an error), the admins of the workspace and the person who started it get an email with the result and a link to the page, on Colliedesk Cloud and on a server whose operator set up outgoing email (SMTP and the mail domain). A preview and an import you stop yourself send none.

When the import's report is ready, the first AI backtest starts by itself if Reply drafts is on with the server's built-in AI: it replays the imported conversations to show how close AI drafts would have come, and emails the person who ran the import when it is ready. A line under the import's report says where it is. With drafts off, that line offers Run backtest; with drafts on your own AI key, it waits for an admin to Review and confirm its estimate, because your provider bills those calls.

Stop import stops it within a minute; what was imported stays. Start a new import to finish it, or undo it. Only one import or undo runs in a workspace at a time.

If the server restarted without MAILBOX_TOKEN_KEYS (see environment variables), it no longer holds the key. The page says Enter the API key again; enter it and select Continue import. The import goes on where it stopped.

Move at your own pace

You do not have to switch in one day. Under the import, on Settings > Data and on the setup flow's import step (and in the empty inbox), Move at your own pace lists the way most teams move:

  1. Keep answering in Freshdesk while you try Colliedesk. The import changes nothing in Freshdesk.
  2. Import again to bring over new replies. A new import of the same account never copies a ticket twice: replies written in Freshdesk since the last run come over. Run it once more just before you switch.
  3. Forward your support email here to switch (Email channel).

Above the import, a line says what your plan gives the move, on Colliedesk Cloud and for an admin who sees Plan and billing: during a trial no import has extended yet, Your first import extends your trial to 30 days.; while Founding has places, On Founding, we do the move for you. with See Founding. On a paid Founding plan, Request the move opens the same form as Plan and billing, with the address of your last import filled in; once sent, the line says Move requested and the day, in your timezone. Team 25's line is Plan it. A self-hosted server shows no such line.

Run the import

  1. Put the key in an environment variable:
    read -rs FRESHDESK_API_KEY && export FRESHDESK_API_KEY
    
  2. Preview the import. A dry run counts contacts, companies, agents and tickets and writes nothing:
    docker compose exec -e FRESHDESK_API_KEY server /app/collie import freshdesk \
      --workspace <slug> --domain <account>.freshdesk.com --dry-run --report-dir /data/import-reports
    
  3. Run the import:
    docker compose exec -e FRESHDESK_API_KEY server /app/collie import freshdesk \
      --workspace <slug> --domain <account>.freshdesk.com --report-dir /data/import-reports
    
  4. Copy the reports out of the container:
    docker compose cp server:/data/import-reports ./import-reports
    

Options:

  • --api-key-env NAME: read the key from another variable. Default FRESHDESK_API_KEY.
  • --since YYYY-MM-DD: list only tickets updated on or after this UTC date. Use it for a final catch-up import just before you switch. It does not make a first import smaller: the ticket id check still finds every ticket the list leaves out and imports it (the report warns ticket_not_listed), so the first run into a workspace brings the whole account. On a later run the tickets already imported are not checked again, so the run is shorter.
  • --dry-run: count only.
  • --last-ticket-id N: the highest ticket number you see in Freshdesk. Recommended: the ticket check then covers at least this far (see "How completeness is checked").
  • --old-help-center-domain HOST: your Freshdesk help center's own domain, such as support.acme.com, so links on it are rewritten too (see "Old help center links").
  • --report-dir DIR: where to write the report. Default: the current directory.

The import respects Freshdesk's rate limit. It waits when Freshdesk says the limit is used up, so a large account can take hours. You can stop it at any time with Ctrl+C.

The ticket list also asks for each ticket's resolve, first response and close times (Freshdesk stats, two more API credits per page of 100 tickets). They are kept with the ticket and read for the "before" numbers of the results page. Once the first full import has finished, the times read stay: running the import again only adds them to tickets that have none (an import from before they were read), so the before numbers do not move. Archived tickets come without them.

While it runs, the command prints progress lines to stderr, for example progress: importing tickets 120/400, elapsed 4m10s: one line when each step starts, one line at most every 30 seconds with the counts, and one line for each rate-limit wait. The summary on stdout is unchanged. The report states how many pauses, HTTP 429 responses and seconds of waiting the rate limit cost.

Resume or retry

Run the same command again. Items that were imported are skipped, an interrupted ticket continues where it stopped, and failed items are tried again. Nothing is duplicated. A file that is lost or damaged on disk after the import is detected by the next run and downloaded again.

On Colliedesk Cloud, the first import into a workspace that is still in its trial extends the trial to 30 days in total from when it started.

On a Colliedesk Cloud workspace on a paid plan (Solo, Small, Founding, Team or Team 25), imported attachments count toward the storage limit of the plan (10, 30, 20, 100 or 250 GiB). Before it writes anything, the import adds up the size of the attachments and the message images it would bring in (it reads each image once to know its size) and compares it with the room left. If they do not fit, it stops with a message that gives the bytes needed, the bytes free and the limit, and nothing is imported: no contact, ticket or file. Switch to a larger plan under Billing > Manage billing (Solo to Small, Small or Founding to Team; on Team or Team 25, contact us for more storage) and run it again.

The check is the only place the limit applies to an import. An import that passes it is admitted and runs to the end: customer email that arrives meanwhile, or a file added in Freshdesk after the check, can take usage past the limit, and the import is not stopped for that. The overshoot is whatever arrives while the import runs. Tickets created in Freshdesk during the check are imported without being counted beforehand, so on a busy account it can be more than a few files. That is accepted. There is no partial import because of the storage limit. A file counts each time it is attached, so the same file on two messages counts twice.

To do this the import has to know the sizes first. Freshdesk's ticket list does not carry them, so before it writes anything the import lists the tickets and probes the ticket numbers (the same calls as the real run, and as --dry-run), then reads every ticket and its conversations (conversations come in pages, so that is at least two calls per ticket). The real run repeats all of it. Expect about twice the API calls and time of an import without the check, once, on a paid workspace only. A ticket that cannot be read is tried three times (each try retries the usual way); if it still fails, the import stops before writing anything and names the ticket. Run the same command again.

--dry-run on a paid workspace tells you in advance: the report says whether the import would be refused, with the bytes it needs and the bytes free. import undo removes the imported files and gives the space back.

Only one import or undo runs in a workspace at a time. A second one stops at once with "already running".

How completeness is checked

Freshdesk's ticket list leaves out archived, trashed and spam tickets. Colliedesk therefore checks every ticket number from 1 one by one, and keeps checking past the highest number it knows until 200 numbers in a row do not exist (or at least up to --last-ticket-id). It also compares its counts with the totals Freshdesk reports for tickets and contacts. The report says how each total was verified. If Freshdesk refuses the archive (some plans) or a total cannot be read, the report is UNVERIFIED: check the archive in Freshdesk before you close the account. When the archive is refused, ticket numbers below the highest existing ticket that Freshdesk does not return are printed at the end of the command output and listed in the report under Ticket ids that could not be resolved. Each may be a deleted or an archived ticket: look them up in Freshdesk.

Images inside messages

Some messages show an image in their body (a pasted screenshot, a signature logo) instead of a file attached to the message. Freshdesk hosts those images, and they disappear with the account. The import downloads each image that Freshdesk hosts: from your Freshdesk address (for example yourcompany.freshdesk.com), from Freshdesk's attachment servers and from Freshdesk's public image storage. It stores the file like an attachment and embeds it in the formatted message, so the original message keeps showing it after you close Freshdesk. The Markdown body of the message is unchanged. Only PNG, JPEG, GIF and WebP images are copied.

Images from other sites, such as a newsletter banner, are not copied. They stay links, and the locked frame does not load them. An image whose address names Freshdesk but sits on another host (for example a custom support domain) is not copied either. The report lists its ticket under the warning inline_images_not_rehosted: save those images in Freshdesk before you close the account.

Each message embeds at most 5 MiB of images. A further image is still stored as a file on the message, but the formatted message keeps its Freshdesk link, and the report lists the ticket under the warning inline_image_not_embedded.

An image counts as one item in the report (Inline images). Two things can stop an image:

  • Freshdesk no longer has it (the file was deleted: HTTP 404 or 410). Nothing can bring it back, so this does not fail the import. The report lists it under Images already gone in Freshdesk (not recoverable) with the ticket id and the message, and the message keeps its original link, which no longer works. A run does not ask for it again while the ticket is unchanged. If the ticket changes in Freshdesk, the next run checks the image once more.
  • Anything else: a temporary error, an expired link, a file that is not a PNG, JPEG, GIF or WebP image (an SVG is refused), a redirect to another host, or an image over 5 MB. The status is FAILED. The Failures table lists the image with its ticket id and the reason, and the message keeps its original Freshdesk link. Run the same command again: a temporary problem is retried. If it still fails, open the ticket in Freshdesk and save the image yourself before you close the account.

Undo an import

An import into the wrong workspace can be removed:

  1. Preview what would be removed:
    docker compose exec server /app/collie import undo --workspace <slug> --dry-run
    
  2. Remove it:
    docker compose exec server /app/collie import undo --workspace <slug>
    

Undo removes the conversations the import created, with their messages, attachments, inline images and time entries, the saved replies it created that nobody edited since, and the contacts and tags it created that nothing else uses. A conversation where your team wrote a message after the import is kept, and so is a saved reply your team edited (the command lists its Freshdesk id). Contacts and tags that existed before the import are kept. Changes without a new message (status, assignee or tags changed in Colliedesk) are removed together with their conversation. Run the import again afterwards if you want the data back.

Read the report

Each run writes two files: freshdesk-import-<workspace>-<time>.md for people and .json for tools.

  • Status: OK means every count matches and the totals were verified. FAILED means something is missing; the Failures table lists each item with its Freshdesk id and ticket id. UNVERIFIED means nothing failed but completeness could not be proven (see How the totals were verified). DRY_RUN is a preview.
  • Counts: contacts, tickets, messages, attachments, inline images, time entries and saved replies in Freshdesk and in Colliedesk. The saved reply total is checked against the sum Freshdesk reports for its folders.
  • Attachment bytes: total size reported by Freshdesk and total size stored. Every stored file is read again and its SHA-256 compared with the value recorded at download. Inline image bytes are checked the same way. Freshdesk reports no size for them, so only the stored total is given.
  • Ticket ids that could not be resolved (archive unavailable): ticket numbers Freshdesk does not return while the archive is refused. Not counted as absent. Check them in Freshdesk.
  • Deleted in Freshdesk during the import, In Freshdesk Trash, In Freshdesk Spam: tickets that were not imported, by id.
  • Images already gone in Freshdesk (not recoverable): inline images that Freshdesk answers 404 or 410 for, by ticket id and message. They do not change the status. Nothing can be recovered; the report is the record that they were already missing.
  • Old help center links: how many old Freshdesk help center addresses lead to a public page, how many links were pointed at the help center, and each address or link that was not, with the reason (see "Old help center links" above).
  • Warnings: data that was imported with a change you should know about, for example a contact without an email or a Freshdesk agent who has no Colliedesk account.

Do not close the Freshdesk account until the last report says OK.

Limits

  • Images inside a message are copied only when Freshdesk hosts them, only as PNG, JPEG, GIF or WebP, up to 5 MB each and 5 MB embedded per message. Images from other sites stay links.
  • Freshdesk has no documented API for time entries of archived tickets. The report lists those tickets; check them in Freshdesk.
  • Contacts without an email get an address of the form freshdesk-contact-<id>@import.invalid.
  • A catch-up import with --since updates status, priority, subject and assignee from Freshdesk and adds new replies and tags. It does not remove tags.
  • The import stops before a download when less than 256 MB would stay free on the attachments volume.

If a ticket's Freshdesk responder matches a deactivated Colliedesk agent, the conversation is imported unassigned and the report lists it under the warning assignee_deactivated. Reactivate the agent and re-run to assign it.

For developers and AI agents

Everything Import in the app does, a person's API session or an AI agent's token can do with the same permissions. The Admin role holds them all:

  • imports:read to see imports and reports.
  • imports:manage_credentials to send the Freshdesk API key.
  • imports:run to start or cancel.
  • imports:undo to undo.

The server import works as in the app: the tickets updated in the last 90 days first, newest first, then the whole account, and the same reconcile report at the end.

  1. POST /api/v1/imports with {"source": "freshdesk", "domain": "<account>.freshdesk.com", "api_key": "..."} (MCP: colliedesk_import_preview) reads the account and writes nothing. Poll GET /api/v1/imports/{id} until state is previewed: preview has the counts and says whether the key can read the archive (if not, the report can be UNVERIFIED at best).
  2. POST /api/v1/imports/{id}/start (colliedesk_import_start) within an hour imports it. progress shows the step, the counts and an estimate; cancel stops it.
  3. GET /api/v1/imports/{id}/report (colliedesk_import_report) is the report; add ?format=markdown to download it. POST /api/v1/imports/{id}/undo removes what the import brought in (colliedesk_import_undo), at once.
  • A token without imports:manage_credentials cannot send the key. A token created before roles cannot undo.
  • After a restart without MAILBOX_TOKEN_KEYS, the import waits in waiting_key until the key is sent again with PUT /api/v1/imports/{id}/key.
  • An import that stops because the Freshdesk trial ended reports freshdesk_plan_no_api.
  • The snippet for old help center links is also returned by GET /api/v1/help-center/freshdesk-redirect?plan=pro, or the MCP tool colliedesk_help_center_freshdesk_redirect_get.

Was this page helpful?

Updated

This page is rendered from the repository. Spot a mistake? Open an issue or a pull request.