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

# List Tenants

> List tenants.



## OpenAPI

````yaml /spec/oas.yaml get /tenants
openapi: 3.0.3
info:
  title: CRO Software API
  version: 2.x
  description: >-
    REST API for the CRO Software waste management and logistics platform.
    Authenticate via OAuth2 (client_credentials or authorization_code). All
    requests require a Bearer token and an X-Tenant-Id header.
servers:
  - url: https://api.crosoftware.com/v0
    description: Production
security: []
paths:
  /tenants:
    get:
      tags:
        - Tenants
      summary: List Tenants
      description: List tenants.
      operationId: tenants_list_tenants
      parameters:
        - name: x-api-version
          in: header
          required: false
          schema:
            type: string
            description: Version identifier (date format).
        - name: page_index
          in: query
          required: false
          schema:
            type: integer
            description: Paged results page index (starting from 1).
        - name: page_limit
          in: query
          required: false
          schema:
            type: integer
            description: Maximun number of results per page.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TenantListModel'
      security:
        - oauth2:
            - api
components:
  schemas:
    TenantListModel:
      type: object
      description: Tenant list (paged).
      properties:
        current_limit:
          type: integer
          description: Maximun number of results per page.
        current_page:
          type: integer
          description: Paged results page index (starting from 1).
        results:
          $ref: '#/components/schemas/TenantModelArray'
        total_count:
          type: integer
          description: Paged results total viewable records.
        total_pages:
          type: integer
          description: Paged results total pages.
      required:
        - current_limit
        - current_page
        - results
        - total_count
        - total_pages
    TenantModelArray:
      type: array
      items:
        $ref: '#/components/schemas/TenantModel'
    TenantModel:
      type: object
      description: Tenant profile.
      properties:
        address:
          type: string
          description: Street address.
        city:
          type: string
          description: Address locality (e.g. city).
        code:
          type: string
          description: Facility identifier.
        created_on:
          type: string
          format: date-time
          description: Timestamp of creation (must be in past).
        email:
          type: string
          format: email
          description: Email address.
        id:
          type: integer
          format: int64
          description: Resource identifier.
        is_active:
          type: boolean
          description: Records marked inactive are treated as deleted (soft delete).
        name:
          type: string
          description: Name (free text).
        phone:
          type: string
          description: Phone number (free text).
        state:
          type: string
          description: Address region (e.g. state).
        truck_limit:
          type: integer
          description: Maximum trucks configurable for tenant.
        zip:
          type: string
          description: Postal code (may include letters and symbols).
      required:
        - address
        - city
        - code
        - created_on
        - email
        - id
        - is_active
        - name
        - phone
        - state
        - truck_limit
        - zip
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: REPLACE_WITH_AUTH_BASE_URL/oauth2/token
          scopes:
            api: General API access
            webhook: Webhook management
        authorizationCode:
          authorizationUrl: REPLACE_WITH_AUTH_BASE_URL/oauth2/auth
          tokenUrl: REPLACE_WITH_AUTH_BASE_URL/oauth2/token
          scopes:
            api: General API access
            webhook: Webhook management

````