# Warehouses

## GET /v1/warehouses

>

```json
{"openapi":"3.0.0","info":{"title":"Whaly API","version":"1.0"},"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"Pass a Service Account Key as the Bearer token to authenticate. e.g. 'sk:xxxxxxx'"}},"schemas":{"PaginatedListWrapper":{"type":"object","properties":{"paging":{"$ref":"#/components/schemas/PagingInfo"}},"required":["paging"]},"PagingInfo":{"type":"object","properties":{"next":{"$ref":"#/components/schemas/PagingNext"}},"required":["next"]},"PagingNext":{"type":"object","properties":{"after":{"type":"string"}},"required":["after"]},"WarehouseDto":{"type":"object","properties":{"id":{"type":"string","description":"Unique ID"},"name":{"type":"string","description":"Name of Warehouse"},"is_managed":{"type":"boolean","description":"If true, it means that this Warehouse is provided by Whaly, so access is limited."},"is_bi_enabled":{"type":"boolean","description":"If true, it means that BI is enabled on this Warehouse."},"is_data_loading_enabled":{"type":"boolean","description":"If true, it means that Connectors are enabled on this Warehouse."},"is_persistence_engine_enabled":{"type":"boolean","description":"If true, it means that Persistence Engine is enabled on this Warehouse."},"warehouse_type":{"type":"string","description":"Type of the Warehouse","enum":["BIGQUERY","SNOWFLAKE","POSTGRES","REDSHIFT","UNKNOWN"]}},"required":["id","name","is_managed","is_bi_enabled","is_data_loading_enabled","is_persistence_engine_enabled","warehouse_type"]}}},"paths":{"/v1/warehouses":{"get":{"operationId":"WarehousesController_listAll","parameters":[{"name":"after","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PaginatedListWrapper"},{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WarehouseDto"}}}}]}}}}}}}}}
```

## GET /v1/warehouses/{warehouseId}

>

```json
{"openapi":"3.0.0","info":{"title":"Whaly API","version":"1.0"},"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"Pass a Service Account Key as the Bearer token to authenticate. e.g. 'sk:xxxxxxx'"}},"schemas":{"WarehouseDto":{"type":"object","properties":{"id":{"type":"string","description":"Unique ID"},"name":{"type":"string","description":"Name of Warehouse"},"is_managed":{"type":"boolean","description":"If true, it means that this Warehouse is provided by Whaly, so access is limited."},"is_bi_enabled":{"type":"boolean","description":"If true, it means that BI is enabled on this Warehouse."},"is_data_loading_enabled":{"type":"boolean","description":"If true, it means that Connectors are enabled on this Warehouse."},"is_persistence_engine_enabled":{"type":"boolean","description":"If true, it means that Persistence Engine is enabled on this Warehouse."},"warehouse_type":{"type":"string","description":"Type of the Warehouse","enum":["BIGQUERY","SNOWFLAKE","POSTGRES","REDSHIFT","UNKNOWN"]}},"required":["id","name","is_managed","is_bi_enabled","is_data_loading_enabled","is_persistence_engine_enabled","warehouse_type"]}}},"paths":{"/v1/warehouses/{warehouseId}":{"get":{"operationId":"WarehousesController_findOne","parameters":[{"name":"warehouseId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WarehouseDto"}}}}}}}}}
```
