---
title: "POST /backup/import"
method: POST
path: "/backup/import"
tags: ["backup"]
---

# POST /backup/import

`POST /backup/import`

Import a database backup from file

## Request body

- BackupConfig
  - `collections` string[]
  - `filepath` string
  - `format` string
  - `pretty` boolean

## Response `200`

ok

## Other responses

- `400` — error

## Changes

- **2026-03-02** `8c167ee47363` — 1 info
  - api operation id `backup_import` removed and replaced with `import_backup`
- **2025-06-02** `60812f5416c5` — 1 info
  - api operation id `import_backup` removed and replaced with `backup_import`

[Change history](https://skmtc.dev/sourcenetwork/apis/defradb-api/changes/backup/import/post.md)

---

[API](https://skmtc.dev/sourcenetwork/apis/defradb-api.md) · [All operations](https://skmtc.dev/sourcenetwork/apis/defradb-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sourcenetwork/defradb-api/revisions/bf2e90fa690e/schema)
