---
title: "获取我的组织列表"
method: GET
path: "/organizations"
tags: ["组织管理"]
---

# 获取我的组织列表

`GET /organizations`

获取当前空间所属的所有组织，并附带各空间内知识库/智能体数量

## Response `200`

OK

- GithubComTencentWeKnoraInternalTypesListOrganizationsResponse
  - `organizations` GithubComTencentWeKnoraInternalTypesOrganizationResponse[]
    - `agent_share_count` integer — 共享到该组织的智能体数量
    - `avatar` string
    - `created_at` string
    - `description` string
    - `has_pending_upgrade` boolean — 当前用户是否有待处理的权限升级申请
    - `id` string
    - `invite_code` string
    - `invite_code_expires_at` string
    - `invite_code_validity_days` integer
    - `is_owner` boolean
    - `member_count` integer
    - `member_limit` integer — 0 = unlimited
    - `my_role` string
    - `name` string
    - `owner_id` string
    - `owner_tenant_id` integer — OwnerTenantID is the persisted owner workspace of the organization (Plan 3, migration 000046). Frontend uses this to identify the "owner row" in the workspace-keyed members list — comparing member.tenant_id against owner_tenant_id is the post-Plan-3 equivalent of the old member.user_id == owner_id check.
    - `pending_join_request_count` integer — 待审批加入申请数（仅管理员可见）
    - `require_approval` boolean
    - `searchable` boolean
    - `share_count` integer — 共享到该组织的知识库数量
    - `updated_at` string
  - `resource_counts` GithubComTencentWeKnoraInternalTypesResourceCountsByOrgResponse
    - `agents` object
      - `by_organization` object
    - `knowledge_bases` object
      - `by_organization` object
  - `total` integer

---

[API](https://skmtc.net/tencentblueking/apis/weknora-api.md) · [All operations](https://skmtc.net/tencentblueking/apis/weknora-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tencentblueking/weknora-api/versions/d6921ae22ce0/schema)
