To enable the Compliance API, see the setup guide.
列出组织成员的个人偏好设置
GET/v1/compliance/organizations/{org_uuid}/user_preferences
此端点处于 beta 阶段。
列出组织当前成员的个人偏好设置。
返回每位成员的“Claude 指令”文本和 Cowork“全局指令”文本。两者均为账户级设置:在该成员所属的每个组织下返回的文本都相同。成员按加入组织的顺序列出,最早加入的在前;使用 limit 和 page 进行分页。某一页包含的行数可能少于 limit,甚至为零,但这并不表示它是最后一页:服务器会限制每个请求的处理量。请持续跟随 next_page,直到其为 null。
Path parameters
Query parameters
Headers
Returns
列出组织成员的个人偏好设置
cURL
curl https://api.anthropic.com/v1/compliance/organizations/$ORG_UUID/user_preferences \
-H 'anthropic-version: 2026-10-21' \
-H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"Response 200
{
"data": [
{
"conversation_preferences": "Always answer in British English.",
"cowork_global_instructions": "Prefer short status updates.",
"user": {
"id": "user_01WxYzAbCdEfGhJkMnPqRsTu",
"email_address": "jane.doe@example.com"
}
}
],
"has_more": true,
"next_page": "cGFnZV90b2tlbl9leGFtcGxlXzE3MzQ1Njc4OTA="
}Returns Examples
Response 200
{
"data": [
{
"conversation_preferences": "Always answer in British English.",
"cowork_global_instructions": "Prefer short status updates.",
"user": {
"id": "user_01WxYzAbCdEfGhJkMnPqRsTu",
"email_address": "jane.doe@example.com"
}
}
],
"has_more": true,
"next_page": "cGFnZV90b2tlbl9leGFtcGxlXzE3MzQ1Njc4OTA="
}