Claude Platform Docs

To enable the Compliance API, see the setup guide.

Set up the Compliance API

列出組織成員的個人偏好設定

GET/v1/compliance/organizations/{org_uuid}/user_preferences

此端點目前為 beta 版。

列出組織目前成員的個人偏好設定。

傳回每位成員的「給 Claude 的指示」和 Cowork「全域指示」文字。兩者皆為帳戶層級設定:成員所屬的每個組織下都會傳回相同的文字。成員依加入組織的順序列出,最早加入者在前;請使用 limit 和 page 進行分頁。某一頁可能包含少於 limit 筆資料列,甚至完全沒有資料列,但不一定是最後一頁:伺服器會限制每個請求所執行的工作量。請持續依循 next_page,直到其為 null。

Path parameters
org_uuid: string

The organization's UUID

Query parameters
include_unset: optional boolean

When true, list every current member, with null for each value they have not set. By default only members with at least one value set are listed.

defaultfalse
limit: optional number

Maximum results (default: 20, max: 100)

default20
minimum1
maximum100
page: optional string

Opaque pagination token from a previous response's next_page field. Pass this to retrieve the next page of results. Clients should treat this value as an opaque string and not attempt to parse or interpret its contents, as the format may change without notice.

user_ids: optional array of string

Restrict the list to these users (max 10 per request). An entry that does not name a current member of the organization matches nothing. Omit to list every eligible member. Enumerate IDs via GET /v1/compliance/organizations/{org_uuid}/users.

maxItems10
Headers
"anthropic-version": string

The version of the Claude API to use. Send an available version on every request. A request that sends any other value, including an empty one, returns a 400 error. This endpoint treats a request that omits this header as version 2023-06-01; some other Compliance API endpoints return a 400 error instead.

See API versions for the available versions.

"x-api-key": optional string
Returns
data: array of object{ conversation_preferences, cowork_global_instructions, user }

Current organization members in the order they joined the organization, oldest first. By default only members with at least one value set are listed; with include_unset=true every member is.

conversation_preferences: string or null

The member's "Instructions for Claude" text from their personal settings, with leading and trailing whitespace removed. null when the member has never set it or has cleared it.

cowork_global_instructions: string or null

The member's "Global instructions" text for Cowork, Claude's desktop agent, with leading and trailing whitespace removed. null when the member has never set it or has cleared it.

user: object{ id, email_address }

The organization member.

id: string

User identifier

email_address: string

User's current email address

has_more: boolean

Whether there is a further page to request. A page can hold fewer records than limit, or none, and still have more: the server bounds the work it does per request.

next_page: string or null

Token to retrieve the next page. Use this as the 'page' parameter in your next request; null on the last page.

列出組織成員的個人偏好設定
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"
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="
}