# 检索组织

> 检索特定组织的详细信息。
> Canonical HTML: https://tursodb.cn/zh-cn/docs/api-reference/organizations/retrieve/
> Upstream Source (MIT): https://docs.turso.tech/api-reference/organizations/retrieve
> Language: zh-CN

---
```bash
curl -L https://api.turso.tech/v1/organizations/{organizationSlug} \
  -H 'Authorization: Bearer TOKEN'
```


## OpenAPI

````yaml GET /v1/organizations/{organizationSlug}
openapi: 3.0.1
info:
  title: Turso Platform API
  description: 此处为 API 描述
  license:
    name: MIT
  version: 0.1.0
servers:
  - url: https://api.turso.tech
    description: Turso 的平台 API
security: []
paths:
  /v1/organizations/{organizationSlug}:
    get:
      summary: 检索组织
      description: 检索特定组织的详细信息。
      operationId: getOrganization
      parameters:
        - $ref: '#/components/parameters/organizationSlug'
      responses:
        '200':
          description: 成功响应
          content:
            application/json:
              schema:
                type: object
                properties:
                  organization:
                    $ref: '#/components/schemas/Organization'
        '404':
          description: 未找到组织
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: 错误消息
                    example: organization not found
components:
  parameters:
    organizationSlug:
      in: path
      name: organizationSlug
      required: true
      schema:
        type: string
      description: 组织或用户账号的 slug。
  schemas:
    Organization:
      type: object
      properties:
        name:
          type: string
          description: >-
            组织名称。每个用户都拥有一个用于其自身账号的 `personal` 组织。
          example: personal
        slug:
          type: string
          description: >-
            组织 slug。对于 `personal` 账号，该值就是你的用户名。
          example: iku
        type:
          type: string
          description: >-
            该组织的账号类型。取值始终为 `personal` 或 `team`。
          example: personal
          enum:
            - personal
            - team
        overages:
          type: boolean
          description: >-
            组织名称。每个用户都拥有一个用于其自身账号的 `personal` 组织。
          example: false
        require_mfa:
          type: boolean
          description: >-
            组织中的所有成员是否都必须启用多因素认证。
          example: false
        blocked_reads:
          type: boolean
          description: 返回读取操作的当前封禁状态。
          example: false
        blocked_writes:
          type: boolean
          description: 返回写入操作的当前封禁状态。
          example: false
        plan_id:
          type: string
          description: 该组织所订阅的定价方案标识符。
          example: developer
        plan_timeline:
          type: string
          description: 付费方案的计费周期（如有）。
          example: monthly
        platform:
          type: string
          description: >-
            管理该组织的外部平台。对于由 Turso 管理的组织，此字段为空。
          example: vercel
        restore_enabled:
          type: boolean
          description: >-
            是否为该组织启用已删除数据库和组的恢复功能。仅在检索单个组织时返回。

````
