English ← MyDocs

获取项目详情

get /v1/compliance/apps/projects/{project_id}

获取特定项目的详细信息。

返回值: 项目的详细信息,包括描述、指令和计数

路径参数

  • project_id: string

    项目 ID(标签 ID,例如 claude_proj_abc123)

请求头参数

  • "x-api-key": optional string

返回值

  • id: string

    项目标识符(标签 ID)

  • attachments_count: number

    此项目中包含的附件数量

  • chats_count: number

    此项目中包含的聊天数量

  • created_at: string

    项目创建时间戳

  • deleted_at: string

    项目被终端用户删除的时间戳,否则为 null

  • description: string

    项目描述

  • instructions: string

    项目的自定义指令 / 提示词

  • is_private: boolean

    如果为 false,项目对所有组织成员可见;如果为 true,项目仅对创建者和指定的协作者可访问

  • name: string

    项目名称

  • organization_id: string

    组织标识符(标签 ID)

  • organization_uuid: string

    此项目所属的组织 UUID

  • updated_at: string

    项目最后更新时间戳

  • user: object { id, email_address }

    项目创建者的用户信息。

    • id: string

      用户标识符(标签 ID)

    • email_address: string

      用户的电子邮件地址

示例

curl https://api.anthropic.com/v1/compliance/apps/projects/$PROJECT_ID \
    -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"

响应

{
  "id": "id",
  "attachments_count": 0,
  "chats_count": 0,
  "created_at": "2019-12-27T18:11:19.117Z",
  "deleted_at": "2019-12-27T18:11:19.117Z",
  "description": "description",
  "instructions": "instructions",
  "is_private": true,
  "name": "name",
  "organization_id": "organization_id",
  "organization_uuid": "organization_uuid",
  "updated_at": "2019-12-27T18:11:19.117Z",
  "user": {
    "id": "id",
    "email_address": "email_address"
  }
}