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

# List warehouses accessible to the authenticated organization (V1)

> Returns a paginated list of Firstbase warehouses that the caller's organization can use when creating inventory orders or shipment notices. Optionally filter by country code (ISO 3166-1 alpha-2). Page and size are 1-based and capped at 100 per page.



## OpenAPI

````yaml /openapi.json get /api/v1/warehouses
openapi: 3.1.0
info:
  title: Firstbase API Specification Beta
  description: Integration endpoints for Firstbase
  version: 0.1.0
servers:
  - url: /
    description: Default
security:
  - ApiKey: []
tags:
  - name: Inventory Orders
    description: Create and manage inventory orders
  - name: Shipment Notices V1
    description: 'Query shipment notice orders (V1: package items expose `inventories` list)'
  - name: Packages
    description: ''
  - name: Categories
    description: Query available categories for asset creation
  - name: Catalog
    description: ''
  - name: New Joiners
    description: New joiner provisioning pipeline for the organization
  - name: Orders
    description: ''
  - name: People
    description: >-
      Manage the users of Firstbase for your organization. API follows the SCIM
      standard.
    externalDocs:
      url: https://scim.cloud/
  - name: People — Lifecycle
    description: Offboard and reactivate users.
  - name: Assets
    description: Manage inventory assets
  - name: Regions V1
    description: Query regions (V1)
  - name: Warehouses V1
    description: Query warehouses (V1)
  - name: Brands
    description: Query available brands for asset creation
  - name: Inventory
    description: ''
  - name: Replacements
    description: Create and manage equipment replacements
  - name: Offices
    description: Manage and query office locations for the authenticated organization
  - name: Returns
    description: Return and Replacements
paths:
  /api/v1/warehouses:
    get:
      tags:
        - Warehouses V1
      summary: List warehouses accessible to the authenticated organization (V1)
      description: >-
        Returns a paginated list of Firstbase warehouses that the caller's
        organization can use when creating inventory orders or shipment notices.
        Optionally filter by country code (ISO 3166-1 alpha-2). Page and size
        are 1-based and capped at 100 per page.
      operationId: listWarehousesV1
      parameters:
        - name: page
          in: query
          required: false
          schema:
            type: integer
            format: int32
            default: 1
            minimum: 1
        - name: size
          in: query
          required: false
          schema:
            type: integer
            format: int32
            default: 100
            maximum: 100
            minimum: 1
        - name: countryCode
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Paginated list of warehouses
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PageDTO'
        '400':
          description: Invalid pagination parameters — page or size out of range
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiHttpErrors'
        '403':
          description: Endpoint not available for this organization
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiHttpErrors'
        '404':
          description: Not Found
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/PublicApiHttpErrors'
        '409':
          description: Conflict
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/PublicApiHttpErrors'
components:
  schemas:
    PageDTO:
      type: object
      description: >-
        Standard paginated response wrapper used by all list endpoints. Use
        `pageNumber` and `size` to paginate; stop when `pageNumber >=
        totalPages`.
      properties:
        size:
          type: integer
          format: int32
          description: Maximum number of items per page as requested
          example: 10
        totalElements:
          type: integer
          format: int64
          description: Total number of items matching the query across all pages
          example: 42
        totalPages:
          type: integer
          format: int32
          description: Total number of pages based on totalElements / size
          example: 5
        pageNumber:
          type: integer
          format: int32
          description: Current page number, 1-based (first page = 1)
          example: 1
        data:
          type: array
          description: Items in the current page; may be fewer than `size` on the last page
          items: {}
      required:
        - data
        - pageNumber
        - size
        - totalElements
        - totalPages
    PublicApiHttpErrors:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/PublicApiError'
      required:
        - errors
    PublicApiError:
      type: object
      properties:
        detail:
          type: string
          description: Human-readable description of the error
          example: Invalid request
        source:
          type: string
          description: >-
            Entity or field path that caused the error (for example order,
            shipmentNotice, or person:email)
          example: request
      required:
        - detail
        - source
  securitySchemes:
    ApiKey:
      type: apiKey
      description: Prefix the value with "ApiKey" to indicate the custom authorization type
      name: Authorization
      in: header

````