# Import and export

> Bring requests in from Postman, Insomnia, Bruno, a curl or the spec, and take them out as Postman, Bruno or curl at any time.

## Start from New

**New → API Playground** gives you three ways in:

- **A template:** REST API starter, OAuth 2 client credentials or Webhooks tester. **Use template** shows its name and where it goes before anything is made.
- **Import:** pick a Postman, Insomnia or Bruno file (a Bruno folder as a `.zip`, or its `.bru` files). Before it comes in, you see its format, how many requests, folders and environments it has, and which keys stay on your device. Name it, pick where it goes, untick environments you don't want, then **Import**. Pick Postman environment files with the collection to bring them in too.
- **Paste a curl:** a new collection with that one request, named from its method and path.

Dropping a collection file anywhere you import files does the same: it becomes an API Playground. An OpenAPI file, or a zip with one in it, becomes OpenAPI docs.

## In

**Import** (in the **+** menu of Requests, or on an empty doc) reads:

- **A Postman file:** a collection (v2.1) or an environment, as `.json`. Before it comes in, you see its folders, requests, auth and scripts counted. Pre-request and test scripts are kept with their requests and run in the desktop app ([Scripts](/help/api-docs/scripts)).
- **An Insomnia export:** the collection as `.json` (v4) or `.yaml` (v5). Its base environment becomes the collection's variables and each sub-environment an environment. Template tags such as `{% response %}` stay as written, for you to fill. Scripts are kept, `insomnia.` read as `pm.`.
- **A Bruno collection:** its folder as a `.zip`, or its `.bru` files picked together; one `.bru` adds one request. Headers set on a folder or the collection are copied into each request below. Scripts are kept as written; assertions and request variables don't come in, and the reply says how many.
- **A curl:** paste it to add one request. Pasting a curl into a request's URL box fills that request from it.
- **From this spec:** every operation the requests don't have yet, by tag.

Keys in what you import go to your device only, never into the doc.

## Out

**Export** in the doc's ⋯ menu:

- **Postman collection:** every request, folder and variable, as a file Postman opens. An environment exports on its own.
- **Bruno collection:** the collection as a Bruno folder of `.bru` files, zipped. Secrets come out as names only.

To copy one request as curl, use **</>** beside Send; secrets come out as environment variables.

From the terminal, `dockito publish <file or Bruno folder>` imports any of these, `dockito pull <doc> --as postman` writes the collection, `--as bruno` writes it as a Bruno folder (for git), and `--as curl` the requests as curl.
