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

# Get all warehouses



## OpenAPI

````yaml api-reference/openapi.json get /api/warehouses
openapi: 3.0.0
info:
  title: Bigcapital
  description: Financial accounting software
  version: '1.0'
  contact: {}
servers: []
security: []
tags: []
paths:
  /api/warehouses:
    get:
      tags:
        - Warehouses
      summary: Get all warehouses
      operationId: WarehousesController_getWarehouses
      parameters:
        - name: Authorization
          in: header
          description: >-
            Value must be 'Bearer <token>' where <token> is an API key prefixed
            with 'bc_' or a JWT token.
          required: true
          schema:
            type: string
            example: Bearer bc_1234567890abcdef
        - name: organization-id
          in: header
          description: >-
            Required if Authorization is a JWT token. The organization ID to
            operate within.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: The warehouses have been successfully retrieved.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/WarehouseResponseDto'
components:
  schemas:
    WarehouseResponseDto:
      type: object
      properties:
        name:
          type: string
          description: The name of the warehouse
          example: Main Warehouse
        code:
          type: string
          description: The unique code identifier for the warehouse
          example: WH-001
        city:
          type: string
          description: The city where the warehouse is located
          example: New York
        country:
          type: string
          description: The country where the warehouse is located
          example: United States
        address:
          type: string
          description: The full address of the warehouse
          example: 123 Warehouse Street, New York, NY 10001
        primary:
          type: boolean
          description: Indicates if this is the primary warehouse
          example: true
      required:
        - name
        - code
        - city
        - country
        - address
        - primary

````