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

# List organizations

> Self-hosted only. Lists every organization on this instance, newest first.



## OpenAPI

````yaml GET /api/organizations
openapi: 3.1.0
info:
  title: LangWatch API
  version: 1.0.0
  description: LangWatch openapi spec
servers:
  - url: https://app.langwatch.ai
security:
  - project_api_key: []
paths:
  /api/organizations:
    get:
      tags:
        - Organizations (Self-Hosted)
      summary: List organizations
      description: >-
        Self-hosted only. Lists every organization on this instance, newest
        first.
      operationId: listOrganizations
      parameters: []
      responses:
        '200':
          description: Organizations on this instance
          content:
            application/json:
              schema:
                type: object
                properties:
                  organizations:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        name:
                          type: string
                        slug:
                          type: string
                        createdAt:
                          type: string
                          format: date-time
        '401':
          description: Invalid instance administrator credential
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Stable machine-readable code, e.g. organization_slug_taken
                  message:
                    type: string
        '404':
          description: >-
            Organization provisioning is not available: the instance
            administrator key is not configured, this is a cloud deployment, or
            (on GET /{id}) the organization does not exist
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Stable machine-readable code, e.g. organization_slug_taken
                  message:
                    type: string
      security:
        - instance_admin_key: []
components:
  securitySchemes:
    project_api_key:
      type: apiKey
      in: header
      name: X-Auth-Token
      description: >-
        Project API key for sending traces and accessing project-scoped
        resources. Format: sk-lw-... (no underscore). Obtain one by creating a
        project via the Admin API or the LangWatch UI.
    instance_admin_key:
      type: http
      scheme: bearer
      description: >-
        Instance administrator key, set as LANGWATCH_INSTANCE_ADMIN_API_KEY on a
        self-hosted deployment. It exists to create the first organization,
        before any organization key does; every other management API takes an
        organization key instead.

````