---
title: "Import a workspace export"
method: POST
path: "/workspaces/import"
tags: ["workspace"]
---

# Import a workspace export

`POST /workspaces/import`

## Request

- Base URL: `https://localhost:4410/api/v1`
- URL: `https://localhost:4410/api/v1/workspaces/import`
- Auth: HTTP bearer

Brings a Binderwork workspace export from another instance in as a new workspace you own. Every file is checked against the manifest and every chain segment against its hashes and anchors before anything is written; a mismatch names the file. Records arrive with new IDs, the prior audit chain is kept as it was, and the new chain starts with workspace.imported naming it. Members, API keys and agent connections don't move: the result lists the people to invite again.

## Request body

- object
  - `content_base64` string, required

## Response `200`

The result.

- object
  - `workspace` object, required
    - `id` string, required
    - `legal_name` string, required
  - `records` object, required
  - `files` integer, required
  - `segments` object[], required
    - `label` string, required
    - `events` integer, required
    - `head_hash` string, nullable, required
  - `people_to_invite` object[], required
    - `name` string, required
    - `email` string, required
    - `role` string, required

## Other responses

- `202`: Called by an agent or an API key, so the call did not run. A person approves it at approval_url; then GET the Location.
- `default`: An RFC 9457 problem.

---

[API](https://skmtc.dev/binderwork/apis/binderwork-api.md) · [All operations](https://skmtc.dev/binderwork/apis/binderwork-api/llms.txt) · [OpenAPI document](https://skmtc.dev/binderwork/apis/binderwork-api/revisions/f8fab0ebee53?raw)
