Claude Platform Docs

用户配置文件

注册您的平台所服务的终端客户,以便每个请求都能注明其服务对象。要开始使用,请参阅用户配置文件指南。

创建用户配置文件
BetaUserProfile beta().userProfiles().create(params = UserProfileCreateParams.none(), requestOptions = RequestOptions.none())
POST/v1/user_profiles

注册您的一位终端客户,并获取在您代表其发出的请求中需要发送的 ID。

列出用户配置文件
UserProfileListPage beta().userProfiles().list(params = UserProfileListParams.none(), requestOptions = RequestOptions.none())
GET/v1/user_profiles

列出您组织中的用户配置文件,默认按从新到旧排列。

获取用户配置文件
BetaUserProfile beta().userProfiles().retrieve(params = UserProfileRetrieveParams.none(), requestOptions = RequestOptions.none())
GET/v1/user_profiles/{user_profile_id}

按 ID 获取用户配置文件,以查看为其存储的详细信息。

更新用户配置文件
BetaUserProfile beta().userProfiles().update(params = UserProfileUpdateParams.none(), requestOptions = RequestOptions.none())
POST/v1/user_profiles/{user_profile_id}

更改用户配置文件的详细信息,您未发送的字段将保持不变。

删除用户配置文件
BetaDeletedUserProfile beta().userProfiles().delete(params = UserProfileDeleteParams.none(), requestOptions = RequestOptions.none())
DELETE/v1/user_profiles/{user_profile_id}

删除用户配置文件,例如在终端客户关闭其账户时。

创建注册 URL
BetaUserProfileEnrollmentUrl beta().userProfiles().createEnrollmentUrl(params = UserProfileCreateEnrollmentUrlParams.none(), requestOptions = RequestOptions.none())
POST/v1/user_profiles/{user_profile_id}/enrollment_url

从 Claude Platform on AWS 创建一个链接,将该配置文件对应的终端客户引导至 Verification Portal。

Models
class BetaDeletedUserProfile { type = "user_profile_deleted"; id; }
JsonValue type = "user_profile_deleted"

Object type. Always user_profile_deleted.

String id

Identifier of the deleted user profile, prefixed uprof_.

class BetaUserProfile { type = "user_profile"; id; createdAt; /* 8 more */ }

A record of an entity that the platform serves through the API, such as an end-user of the platform's product or a company that the platform resells Claude access to.

A Messages, Message Batches or token counting request can send a profile's id in the anthropic-user-profile-id header to attribute the request to that entity.

class BetaUserProfileEnrollmentUrl { type = "enrollment_url"; expiresAt; url; }

A URL to give to the entity that a user profile represents, so that the entity can enroll in a program.

JsonValue type = "enrollment_url"

Object type. Always enrollment_url.

OffsetDateTime expiresAt

When this enrollment URL expires, in RFC 3339 format.

formatdate-time
String url

Enrollment URL to send to the end user. Valid until expires_at.

class BetaUserProfileExternalUserDetails { accountStatus; country; emailHash; /* 4 more */ }

Details about the entity this profile represents, as the platform states them. Anthropic does not verify them. Every field is present, null until the platform supplies a value.

class BetaUserProfileExternalUserDetailsParams { accountStatus; country; emailHash; /* 4 more */ }
class BetaUserProfileTrustGrant { status; }

The status of one trust grant on a user profile, listed in the profile's trust_grants map under the grant's name.

Status status

Status of the trust grant.

One of the following:
ACTIVE("active")
PENDING("pending")
REJECTED("rejected")

用户配置文件操作 URL

创建操作 URL
BetaUserProfileActionUrl beta().userProfiles().actionUrls().create(params, requestOptions = RequestOptions.none())
POST/v1/user_profiles/{user_profile_id}/action_urls

创建一个链接,将该配置文件对应的终端客户引导至 Verification Portal。

用户配置文件提供商Google数据控制

获取 Google-Managed 数据控制
BetaGoogleManagedDataControls beta().userProfiles().providers().google().dataControls().retrieve(params = DataControlRetrieveParams.none(), requestOptions = RequestOptions.none())
GET/v1/user_profiles/{user_profile_id}/providers/google/data_controls
Requires anthropic-beta: google-managed-data-controls-2026-09-01. Learn how to send beta headers.

获取该配置文件用于 Google Cloud's Agent Platform 上的 Claude 的加密密钥和存储桶,以及每个区域的状态。

更新 Google-Managed 数据控制
BetaGoogleManagedDataControls beta().userProfiles().providers().google().dataControls().update(params = DataControlUpdateParams.none(), requestOptions = RequestOptions.none())
POST/v1/user_profiles/{user_profile_id}/providers/google/data_controls
Requires anthropic-beta: google-managed-data-controls-2026-09-01. Learn how to send beta headers.

开启或关闭某项控制,或更改某个区域所设置的密钥或存储桶。您未包含的控制和区域将保持不变。