> ## Documentation Index
> Fetch the complete documentation index at: https://bazable.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# bazable import

> Import OpenAPI, Postman, or CSV specifications and merge endpoints into your contract.

Imports API specifications (OpenAPI v2/v3, Postman collections, CSV) and merges endpoints into the contract.

<Note>
  Aliases: `imp`.
</Note>

## Usage

```bash theme={null}
bazable import [source] [options]
```

## Options

<ParamField query="-b, --base-url" type="string">
  Base URL to resolve relative paths.
</ParamField>

<ParamField query="--csv" type="string">
  Import from a CSV file at the given path.
</ParamField>

<ParamField query="--name" type="string">
  Endpoint name when importing from CSV.
</ParamField>

## Examples

<CodeGroup>
  ```bash OpenAPI file theme={null}
  bazable import openapi.yaml
  ```

  ```bash Remote Swagger theme={null}
  bazable import https://api.example.com/swagger.json
  ```

  ```bash CSV theme={null}
  bazable import --csv products.csv --name products
  ```
</CodeGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.