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

# List organizations visible to the caller



## OpenAPI

````yaml /api-reference/ilyama.v1.json get /organizations
openapi: 3.1.0
info:
  description: >
    Generation-ready starter contract for ilyama's HTTP API.

    This is intentionally scoped to stable routes already mounted in
    services/apis

    so frontend clients can begin integrating against the rewrite immediately.
  title: ilyama Core API
  version: 0.1.0
servers:
  - url: /core/api/v1
security:
  - bearerAuth: []
tags:
  - name: Certificates (HTTP)
  - name: Device JITR
  - name: Device RPC
  - name: Devices
  - name: Edge replication
  - name: Fleets
  - name: Integrations
  - name: MDM
  - name: Notification Event Registry
  - name: Notifications
  - name: OTA
  - name: Observability & data
  - name: Organizations
  - name: Project settings
  - name: Projects
  - name: Projects — Email Templates
  - name: Projects — Notification Subscriptions
  - name: Projects — Status
  - name: System
  - name: Tickets & workflows
  - name: Webhooks
paths:
  /organizations:
    get:
      tags:
        - Organizations
      summary: List organizations visible to the caller
      operationId: listOrganizations
      parameters:
        - in: query
          name: page
          schema:
            minimum: 1
            type: integer
        - in: query
          name: limit
          schema:
            minimum: 1
            type: integer
        - description: Organization name search (also accepts `q`)
          in: query
          name: name
          schema:
            type: string
        - description: Alias for name
          in: query
          name: q
          schema:
            type: string
        - description: When set, restrict to this organization if visible to the caller
          in: query
          name: org_id
          schema:
            format: uuid
            type: string
        - in: query
          name: include_deleted
          schema:
            type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationsResponse'
          description: Organizations loaded
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Invalid query
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Unauthorized
components:
  schemas:
    OrganizationsResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/Organization'
          type: array
        meta:
          $ref: '#/components/schemas/PaginationMeta'
        ok:
          enum:
            - 1
          type: integer
      required:
        - ok
        - data
        - meta
      type: object
    ErrorEnvelope:
      properties:
        detail:
          type: string
        message:
          oneOf:
            - type: string
            - type: object
        ok:
          enum:
            - 0
          type: integer
      required:
        - ok
        - message
        - detail
      type: object
    Organization:
      properties:
        created_at:
          format: date-time
          type: string
        created_by:
          type: string
        deleted_at:
          format: date-time
          type:
            - string
            - 'null'
        id:
          format: uuid
          type: string
        org_name:
          type: string
      required:
        - id
        - org_name
        - created_by
        - created_at
      type: object
    PaginationMeta:
      description: Pagination metadata for list endpoints (snake_case keys).
      properties:
        current_page:
          type: integer
        items_per_page:
          type: integer
        total_items:
          type: integer
        total_pages:
          type: integer
      required:
        - current_page
        - items_per_page
        - total_items
        - total_pages
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http

````