Import & Export
Mock Studio provides multiple ways to move data in and out of the extension.
Full Backup (Settings)
Export and import all your data at once from Settings → Data Management.
Export All Data
- Go to Settings
- Click "Export Backup"
- A JSON file is downloaded containing all projects, mocks, folders, environments, and scenarios
- The filename includes the date:
mock_studio_backup_2025-01-15.json
Import Backup
- Go to Settings
- Click "Import Backup"
- Select a previously exported JSON file
- Warning: This overwrites ALL existing data
- Confirm the import — the app will reload with the restored data
Factory Reset
Start fresh by deleting all data:
- Go to Settings → Data Management
- Click "Reset All"
- Confirm the permanent deletion
- All projects, mocks, settings, and history are erased
Project Export/Import
Export and import individual projects without affecting other data.
Export a Project
- Open the project details
- Click Export from the actions menu
- The exported JSON includes:
- Project metadata
- All mocks with variants
- Folders structure
- Environments and variables
- Scenarios with overrides
Import a Project
- Open a project or the project list
- Use the Import action
- Select a project JSON file
- The project is created with "(Imported)" suffix
- All internal ID references are remapped automatically
OpenAPI / Swagger Import
Bootstrap mocks from an API specification:
- Open a project
- Click Import OpenAPI in the actions menu
- Paste your OpenAPI specification (JSON or YAML)
- Mock Studio generates mocks for each endpoint:
- Correct HTTP methods
- URL patterns from path definitions
- Sample response bodies from response schemas
- Appropriate status codes
cURL Integration
In the Mock Editor:
- Import cURL — Paste a cURL command to populate method, URL, and headers
- Copy cURL — Export the mock as a cURL command for sharing or testing
GitHub Sync
Sync project data with a GitHub repository:
- Configure repository details (owner, repo, branch, path, token)
- Push — Upload project data to GitHub
- Pull — Download and overwrite local data from GitHub
Ideal for:
- Team collaboration — Share mock definitions via Git
- Version control — Track changes to mock configurations
- CI/CD integration — Use the same mocks in automated tests