Skip to content

Data Export ​

Settings → Data Export takes your organisation's records and every document it holds out of Phanera as a single archive. It requires the Export Organisation Data permission.

The point of it is leaving. An authority that cannot get its FOI history out of a supplier's system in a form it can read is not really choosing to stay with that supplier. So the archive is deliberately plain: text files a spreadsheet or a script can open, documents in ordinary folders, and a manifest saying what is in it.

What comes out ​

manifest.json
data/
  Requests.csv
  RequestMessages.csv
  Departments.csv
  ... one file per table
files/
  attachments/{organisation-id}/{file}
  identity-documents/{organisation-id}/{file}
  email-template-images/...

Choose CSV, JSON or XML. All three carry the same records; the format only changes how they are written.

  • CSV — one header row and one line per record. Open it in Excel or LibreOffice.
  • JSON — an array of objects per table. For loading into another system.
  • XML — one element per record.

Statuses come out as words (Closed, not a number) and dates in ISO 8601, so the files read the same to a person as they do to a script.

The page shows the record count per table and the total size of the documents before you download, so an export of several gigabytes announces itself rather than surprising you.

Documents ​

Documents are included by default — every attachment, response document, redacted copy, identity document and email template image. Each file sits under the storage path recorded against it in the data, so a row's BlobUrl is the path to its file inside files/, and a record and its document can be paired up without a lookup table.

That is the point of the feature. An authority moving to another supplier needs the responses it sent and the evidence it holds, not a list of case references saying those documents once existed. An export without them is not an exit.

Untick Include documents for the records alone — usually a few megabytes rather than however many gigabytes of scanned correspondence you hold. Useful for loading into a spreadsheet; not useful for leaving.

Exports are built in the background ​

Pressing Start export queues the work rather than downloading immediately. The archive is assembled by the server and appears under Your exports when it is ready, with a download button.

That is not a nicety. A whole-organisation export with documents runs to gigabytes and takes minutes to assemble, and none of it can be sent until all of it exists — so downloading it directly meant holding a connection open long enough for a load balancer to give up, throwing the work away at the end. Now you can leave the page, and the archive is waiting when you come back.

One export at a time per organisation. A second request while one is building is refused, which is what a double-click would otherwise produce.

If an export fails, the job says so and why, rather than disappearing.

Exports are deleted after 7 days

A finished archive is kept for a week and then removed, along with its download. Collect it and store it somewhere you control.

Shorter than the backup window on purpose: a backup exists to be restored from later, whereas an export exists to be taken elsewhere. Leaving copies of a caseload in the system past that serves nobody.

If a document cannot be read out of storage, the export still completes and the file is named in manifest.json under missingFiles. One unreadable file does not cost you the other ten thousand — but you are told which one it was, because the manifest is the only place you would find out.

Choosing tables ​

By default everything is exported. Tick individual tables to narrow it — useful when you want the caseload without the audit logs, or one table to load into a spreadsheet.

Credentials are blanked ​

API key hashes, mailbox passwords, OAuth refresh tokens, SSO client secrets and webhook signing secrets are replaced with [redacted].

The archive is still the most sensitive thing the product produces — it is your whole caseload, every requester's name and correspondence in it — but it is not also a working set of keys to the system it came from. The rest of each row is exported in full, so a blanked token still shows its name and when it was created.

Treat the file accordingly

An export is a complete copy of personal data you hold as a data controller. Store it somewhere you would be content to store the live system, delete it when you are done with it, and record why you took it. Every export is written to the record access log with the record count, the format and who took it.

What is not included ​

manifest.json lists these, with a reason for each. Three kinds:

KindExamplesWhy
Search indexesRequestEmbedding, DocumentText, RedactionSuggestionCacheDerived from records that are exported, far larger than they are, and rebuilt automatically
Platform recordsApplicationUser, BankHoliday, SubscriptionPlanNot yours to take — a sign-in account may belong to several organisations
Backup catalogueOrganisationBackupDescribes your backups rather than your work

Your organisation's own membership records — who held which role, who sat in which department — are exported, so the archive still says who your people were even though the sign-in accounts themselves are not in it.

Nothing is missed ​

Every table in the database is either exported or listed as excluded with a reason. That is enforced rather than intended: a test fails the build if a new table is added without a decision being recorded, so a table cannot quietly go missing from every authority's export.

Phanera — FOI, SAR, EIR & Complaints management