Claude Platform Docs

Perfis de usuário

Registre os clientes finais que sua plataforma atende, para que cada solicitação possa indicar a quem se destina. Para começar, consulte o guia de perfis de usuário.

Criar perfil de usuário
client.Beta.UserProfiles.New(ctx, params) (*BetaUserProfile, error)
POST/v1/user_profiles

Registre um dos seus clientes finais e obtenha o ID a ser enviado nas solicitações que você faz em nome dele.

Listar perfis de usuário
client.Beta.UserProfiles.List(ctx, params) (*PageCursor[BetaUserProfile], error)
GET/v1/user_profiles

Liste os perfis de usuário da sua organização, com os mais recentes primeiro por padrão.

Obter perfil de usuário
client.Beta.UserProfiles.Get(ctx, userProfileID, query) (*BetaUserProfile, error)
GET/v1/user_profiles/{user_profile_id}

Obtenha um perfil de usuário pelo ID para verificar os detalhes armazenados para ele.

Atualizar perfil de usuário
client.Beta.UserProfiles.Update(ctx, userProfileID, params) (*BetaUserProfile, error)
POST/v1/user_profiles/{user_profile_id}

Altere os detalhes de um perfil de usuário, mantendo como estão os campos que você não enviar.

Excluir perfil de usuário
client.Beta.UserProfiles.Delete(ctx, userProfileID, body) (*BetaDeletedUserProfile, error)
DELETE/v1/user_profiles/{user_profile_id}

Exclua um perfil de usuário, por exemplo, quando o cliente final encerrar a conta.

Criar URL de inscrição
client.Beta.UserProfiles.NewEnrollmentURL(ctx, userProfileID, body) (*BetaUserProfileEnrollmentURL, error)
POST/v1/user_profiles/{user_profile_id}/enrollment_url

No Claude Platform on AWS, crie um link que leva o cliente final do perfil ao Verification Portal.

Models
type BetaDeletedUserProfile struct { Type: "user_profile_deleted"; ID }
Type UserProfileDeleted

Object type. Always user_profile_deleted.

ID string

Identifier of the deleted user profile, prefixed uprof_.

type BetaUserProfile struct { 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.

type BetaUserProfileEnrollmentURL struct { 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.

Type EnrollmentURL

Object type. Always enrollment_url.

ExpiresAt Time

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.

type BetaUserProfileExternalUserDetails struct { 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.

type BetaUserProfileExternalUserDetailsParams struct { AccountStatus; Country; EmailHash; /* 4 more */ }
type BetaUserProfileTrustGrant struct { 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 BetaUserProfileTrustGrantStatus

Status of the trust grant.

One of the following:
const BetaUserProfileTrustGrantStatusActive BetaUserProfileTrustGrantStatus = "active"
const BetaUserProfileTrustGrantStatusPending BetaUserProfileTrustGrantStatus = "pending"
const BetaUserProfileTrustGrantStatusRejected BetaUserProfileTrustGrantStatus = "rejected"

Perfis de usuárioURLs de ação

Criar URL de ação
client.Beta.UserProfiles.ActionURLs.New(ctx, userProfileID, params) (*BetaUserProfileActionURL, error)
POST/v1/user_profiles/{user_profile_id}/action_urls

Crie um link que leva o cliente final do perfil ao Verification Portal.

Perfis de usuárioProvedoresGoogleControles de dados

Obter controles de dados Google Managed
client.Beta.UserProfiles.Providers.Google.DataControls.Get(ctx, userProfileID, query) (*BetaGoogleManagedDataControls, error)
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.

Obtém as chaves de criptografia e os buckets de armazenamento do perfil para o Claude no Google Cloud's Agent Platform, com o status de cada região.

Atualizar controles de dados Google Managed
client.Beta.UserProfiles.Providers.Google.DataControls.Update(ctx, userProfileID, params) (*BetaGoogleManagedDataControls, error)
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.

Ativa ou desativa um controle, ou altera a chave ou o bucket definido para uma região. Controles e regiões que você omitir permanecem como estão.