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

# Get tenant list

> List every tenant your API key can access. Use this for directory views and to discover tenant ids; it does not return full reporting fields.



## OpenAPI

````yaml GET /beta/tenants
openapi: 3.1.0
info:
  title: Longwave API
  version: 1.0.0
  description: >-
    Programmatic access to Longwave tenant and usage data. Use the dashboard to
    create API keys; authenticate with Bearer tokens.
  contact:
    name: Longwave Support
    email: support@longwavehq.com
servers:
  - url: https://api.longwavehq.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Tenants
    description: List and retrieve tenant metadata
  - name: Auditing
    description: Audit and activity history
paths:
  /beta/tenants:
    get:
      tags:
        - Tenants
      summary: Get tenant list
      description: >-
        Returns a **paginated list** of all tenants this API key can see. Each
        item is a **summary** (id, name, status). For one tenant’s full
        reporting payload, use **Get tenant details** with that tenant’s id.
      operationId: getTenantList
      parameters:
        - name: limit
          in: query
          required: false
          description: Maximum number of tenants to return (default 50, max 200).
          schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 50
        - name: cursor
          in: query
          required: false
          description: Opaque cursor from a previous response for pagination.
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TenantListResponse'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
components:
  schemas:
    TenantListResponse:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/TenantSummary'
        nextCursor:
          type: string
          nullable: true
    ErrorBody:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
    TenantSummary:
      type: object
      properties:
        id:
          type: string
        displayName:
          type: string
        externalTenantId:
          type: string
          description: Microsoft or Google directory tenant id, when applicable
        status:
          type: string
          description: e.g. active, trial, paused
        onboardedAt:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: 'Send as `Authorization: Bearer <your api key>`'

````