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

# Get Organizations

> Retrieve all organizations that the authenticated account belongs to. Pass account_id to retrieve organizations for a specific account the API key has access to.



## OpenAPI

````yaml api-reference/openapi/accounts.json GET /api/organizations
openapi: 3.1.0
info:
  title: Recoup API - Accounts
  description: >-
    API documentation for the Recoup platform - an AI agent platform for the
    music industry
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.recoupable.dev
security: []
paths:
  /api/organizations:
    get:
      description: >-
        Retrieve all organizations that the authenticated account belongs to.
        Pass account_id to retrieve organizations for a specific account the API
        key has access to.
      parameters:
        - name: account_id
          in: query
          description: >-
            Filter to a specific account. Only applicable when the authenticated
            account has access to multiple accounts via organization membership.
          required: false
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Organizations retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetOrganizationsResponse'
        '400':
          description: Bad request - invalid query parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationsErrorResponse'
        '401':
          description: Unauthorized - invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Forbidden - account_id is not a member of the organization or
            account tried to filter by an account_id they don't have access to
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    GetOrganizationsResponse:
      type: object
      required:
        - status
        - organizations
      properties:
        status:
          type: string
          enum:
            - success
          description: Status of the request
        organizations:
          type: array
          items:
            $ref: '#/components/schemas/Organization'
          description: List of organizations the account belongs to
    OrganizationsErrorResponse:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: string
          enum:
            - error
          description: Status of the request
        message:
          type: string
          description: Error message describing what went wrong
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: integer
          format: int32
        message:
          type: string
    Organization:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: UUID of the membership record
        organization_id:
          type: string
          format: uuid
          description: UUID of the organization account
        organization_name:
          type: string
          description: Display name of the organization
        organization_image:
          type: string
          nullable: true
          description: Organization logo/image URL

````