PSA Data Export guide

Export Zendesk Tickets With Public Replies and Internal Notes

At a glance

Use Zendesk’s JSON account export or the Ticket Comments API when you need the conversation. The account CSV omits ticket descriptions and comments. Even a JSON export with the correct ticket count can omit a long conversation. Reconcile its exception file before handing over the archive.

  • Account JSON
    Admin Center → Account → Tools → Reports → Export → JSON (when enabled)
On this page
Published · Updated

Get the ticket IDs and the JSON exceptions

The account owner can ask Zendesk Support to enable exports. An administrator with export permission can then open Admin Center → Account → Tools → Reports, open Export if shown, select JSON, the date range and Tickets, and request the export. Team plans use the REST API for this task. The Admin Center JSON and CSV options are unavailable in sandbox instances. Zendesk’s account export options and prerequisites

Retain the downloaded ZIP. For a ticket with more than 1 MB of data, Zendesk’s account JSON export keeps the ticket in the main file without comments. A companion JSON file identifies affected tickets and the reason. Join those IDs to your ticket inventory and mark them for API retrieval. Also examine unexpected empty threads against a known source conversation. Zendesk’s Full JSON export exception

Recover every page of a conversation

With an agent identity authorized to see the ticket and internal notes, request GET /api/v2/tickets/{ticket_id}/comments. Use cursor pagination, for example ?page[size]=2 on a small rehearsal. While the response indicates more pages, follow its next link. Preserve the ticket ID and each comment’s ID, author ID, timestamp, body, public flag and attachment references. Reconcile duplicate IDs on retry. A failed next request leaves the ticket open for recovery. Zendesk Ticket Comments, List Comments and pagination

For ongoing bulk changes, Zendesk also offers Incremental Ticket Event Export. Start with a Unix start_time at least one minute in the past. By default, child events provide indicators such as comment_present and comment_public. Request include=comment_events for the comment events with bodies. Follow next_page through end_of_stream, save your progress and account for the excluded most recent minute on the next run. A changes feed that starts on Monday cannot establish the contents of a Friday conversation. Use the ticket’s comment pages to reconcile a complete thread. Zendesk’s Incremental Ticket Event Export

Eva Bihari’s exporter writes the author, time, visibility and body together and associates attachment filenames with each comment. That makes a staff transcript easier to check. Its historical comment-fetch function makes one request and never follows a next page, so test a conversation that spans two pages before adopting that output pattern. Exporter’s comment writer · Exporter’s comment-fetch function

Keep public replies and internal notes in a Zendesk export

BackupPSA can help scope a Zendesk export that preserves public replies, internal notes and their visibility on each ticket.

What you can export
Ask for a sample from a long ticket. Confirm that replies and notes are in order and that the delivery identifies their visibility and any downloadable files.
How to get started
Use your work email to request a quote. If the export requires API access, ask your Zendesk administrator to arrange read permissions and the required credentials.
Request an assisted Zendesk export

Reconcile the staff transcript and the requester copy

Illustrative recovery. The exception file names ticket 6308. The JSON export contains the ticket record. In this example, fetch two comments per page and check that the recovered conversation contains all three comments below.

Page Comment ID Author ID Created (UTC) Public Body excerpt
1 701 82 Nov 3, 08:10 true Scanner jams after page two.
1 705 16 Nov 3, 08:24 false Supplier case S-44 opened.
2 708 16 Nov 3, 09:02 true Roller replaced. Please try again.

The authorized staff copy should include all three IDs. The requester copy should include 701 and 708, in order, with only reviewed public attachments. Keep the private body and its file references out of that copy. If 708 is absent, inspect pagination. If 705 appears in the requester copy, correct the visibility filter and regenerate it before sharing. Open any required saved attachments separately. A filename in a transcript establishes only a reference.

Moving or exporting your data? Request a migration assessment.

Preparing a client copy?

Check the client ticket-history handoff