Claude Platform Docs

Perfis de usuário

Register the end customers that your platform serves, so each request can name who it's for. To get started, see the User profiles guide.

Criar perfil de usuário
client.beta.userProfiles.create(params, options?): BetaUserProfile
POST/v1/user_profiles

Register one of your end customers and get the ID to send on the requests you make for them.

Listar perfis de usuário
client.beta.userProfiles.list(params?, options?): PageCursor<BetaUserProfile>
GET/v1/user_profiles

List the user profiles in your organization, newest first by default.

Obter perfil de usuário
client.beta.userProfiles.retrieve(userProfileID, params?, options?): BetaUserProfile
GET/v1/user_profiles/{user_profile_id}

Get a user profile by ID to check the details stored for it.

Atualizar perfil de usuário
client.beta.userProfiles.update(userProfileID, params, options?): BetaUserProfile
POST/v1/user_profiles/{user_profile_id}

Change the details of a user profile, leaving the fields that you don't send as they are.

Excluir perfil de usuário
client.beta.userProfiles.delete(userProfileID, params?, options?): BetaDeletedUserProfile
DELETE/v1/user_profiles/{user_profile_id}

Delete a user profile, for example when the end customer closes their account.

Criar URL de inscrição
client.beta.userProfiles.createEnrollmentURL(userProfileID, params?, options?): BetaUserProfileEnrollmentURL
POST/v1/user_profiles/{user_profile_id}/enrollment_url

Create a link that sends the profile's end customer to the Verification Portal from Claude Platform on AWS.

Models
interface BetaDeletedUserProfile { type: "user_profile_deleted"; id }
type: "user_profile_deleted"

Object type. Always user_profile_deleted.

id: string

Identifier of the deleted user profile, prefixed uprof_.

interface BetaUserProfile { type: "user_profile"; id; created_at; /* 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.

interface BetaUserProfileEnrollmentURL { type: "enrollment_url"; expires_at; url }

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

type: "enrollment_url"

Object type. Always enrollment_url.

expires_at: string

When this enrollment URL expires, in RFC 3339 format.

formatdate-time
url: string

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

interface BetaUserProfileExternalUserDetails { account_status; country; email_hash; /* 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.

interface BetaUserProfileExternalUserDetailsParams { account_status; country; email_hash; /* 4 more */ }
interface 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: "active" | "pending" | "rejected"

Status of the trust grant.

One of the following:
"active"
"pending"
"rejected"

Perfis de usuárioURLs de ação

Criar URL de ação
client.beta.userProfiles.actionURLs.create(userProfileID, params, options?): BetaUserProfileActionURL
POST/v1/user_profiles/{user_profile_id}/action_urls

Create a link that sends the profile's end customer to the Verification Portal.