Back up your API collections, and test the restore

Your collections live in Requestarium, which keeps them, versions request changes, and has a trash for deleted items. Still, a team that depends on its API tests usually wants its own copy: for peace of mind, for an auditor, or for the day someone deletes the wrong folder and nobody notices for a month.

Git sync: a backup with history

Link a collection to a GitHub, GitLab or Bitbucket repository and push. The collection is now files in a repository you own, and every push is a commit you can go back to. It's the best backup for the requests themselves, because it's also how you review and version them. See sync API collections with Git.

What it doesn't hold: environment values (secrets don't belong in Git) and run history.

A scheduled export

Requestarium JSON is the lossless format: settings, folders, requests, scripts, tests, docs and, with --environments, the environment groups the collection uses.

Terminal
#!/bin/sh
# backup-collections.sh: one file per collection, dated
set -e
day=$(date +%F)
mkdir -p "backups/$day"
for name in "Orders API" "Users API" "Billing API"; do
  requestarium export "$name" --environments --out "backups/$day/$name.json"
done

Run it nightly from CI with REQUESTARIUM_TOKEN, and keep the files as artifacts or in a bucket with a retention rule.

Secret values are written empty. That's what you want in a backup most of the time: the secrets have their own home (a secret manager, or the people who issued them). --include-secrets writes them in plain text; if you use it, the backup file needs the same protection as the secrets.

The organization export

On the Team plan, the organization export takes everything in one go: workspaces, collections, environments and more. It's the right tool before a big reorganization, or when an auditor asks for "all of it". See export everything in your organization.

What's already protected in the app

Before you restore anything, check whether you need to:

  • A deleted request or folder goes to the Trash, and can be restored from there.
  • A request's History shows who changed it, and restores an earlier version.
  • A bad import can be undone.

Backups are for what those don't cover: a whole collection deleted and purged, or a need to go back weeks.

Test the restore

Once, and after any change to the backup script:

  1. Create a workspace called Restore test.
  2. Import a backup file into it: requestarium import "backups/2026-11-25/Orders API.json" --environments --workspace "Restore test".
  3. Fill in one secret, pick the environment, and run the collection.
  4. Delete the workspace.

If the run passes, your backup works. If it doesn't, you found out on a quiet day.