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

# List organizations



## OpenAPI

````yaml https://app.getkontext.io/openapi.json get /v1/organizations
openapi: 3.1.0
info:
  title: Kontext API
  version: 1.0.0
  description: >-
    API documentation for Kontext — generated from Zod schemas in
    @kontext/api-contract
servers:
  - url: https://getkontext.io/api
    description: Production
  - url: http://localhost:5173/api
    description: Development
security:
  - BearerAuth: []
paths:
  /v1/organizations:
    get:
      tags:
        - Organizations
      summary: List organizations
      responses:
        '200':
          description: List of organizations the authenticated user belongs to
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                    name:
                      type: string
                    slug:
                      type: string
                    avatarType:
                      type:
                        - string
                        - 'null'
                    createdAt:
                      type: string
                      format: date-time
                    updatedAt:
                      type: string
                      format: date-time
                  required:
                    - id
                    - name
                    - slug
                    - avatarType
                    - createdAt
                    - updatedAt
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  issues:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                        message:
                          type: string
                        path:
                          type: array
                          items:
                            anyOf:
                              - type: string
                              - type: number
                      required:
                        - code
                        - message
                required:
                  - error
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key (ktx_key_*) or session Bearer token

````