Claude Platform Docs

Benutzerprofile

Registriere die Endkunden, die deine Plattform bedient, damit jede Anfrage angeben kann, für wen sie bestimmt ist. Informationen zum Einstieg findest du im Leitfaden zu Benutzerprofilen.

Benutzerprofil erstellen
client.Beta.UserProfiles.New(ctx, params) (*BetaUserProfile, error)
POST/v1/user_profiles

Registriere einen deiner Endkunden und erhalte die ID, die du bei den Anfragen mitsendest, die du für ihn stellst.

Benutzerprofile auflisten
client.Beta.UserProfiles.List(ctx, params) (*PageCursor[BetaUserProfile], error)
GET/v1/user_profiles

Liste die Benutzerprofile in deiner Organisation auf, standardmäßig die neuesten zuerst.

Benutzerprofil abrufen
client.Beta.UserProfiles.Get(ctx, userProfileID, query) (*BetaUserProfile, error)
GET/v1/user_profiles/{user_profile_id}

Rufe ein Benutzerprofil anhand seiner ID ab, um die dafür gespeicherten Angaben zu prüfen.

Benutzerprofil aktualisieren
client.Beta.UserProfiles.Update(ctx, userProfileID, params) (*BetaUserProfile, error)
POST/v1/user_profiles/{user_profile_id}

Ändere die Angaben eines Benutzerprofils; Felder, die du nicht sendest, bleiben unverändert.

Benutzerprofil löschen
client.Beta.UserProfiles.Delete(ctx, userProfileID, body) (*BetaDeletedUserProfile, error)
DELETE/v1/user_profiles/{user_profile_id}

Lösche ein Benutzerprofil, zum Beispiel wenn der Endkunde sein Konto schließt.

Registrierungs-URL erstellen
client.Beta.UserProfiles.NewEnrollmentURL(ctx, userProfileID, body) (*BetaUserProfileEnrollmentURL, error)
POST/v1/user_profiles/{user_profile_id}/enrollment_url

Erstelle auf Claude Platform on AWS einen Link, der den Endkunden des Profils zum Verification Portal weiterleitet.

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"

BenutzerprofileAktions-URLs

Aktions-URL erstellen
client.Beta.UserProfiles.ActionURLs.New(ctx, userProfileID, params) (*BetaUserProfileActionURL, error)
POST/v1/user_profiles/{user_profile_id}/action_urls

Erstelle einen Link, der den Endkunden des Profils zum Verification Portal weiterleitet.

BenutzerprofileAnbieterGoogleDatenkontrollen

Datenkontrollen (Google managed) abrufen
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.

Ruft die Verschlüsselungsschlüssel und Storage-Buckets des Profils für Claude auf Google Cloud's Agent Platform ab, mit dem Status jeder Region.

Datenkontrollen (Google managed) aktualisieren
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.

Schaltet eine Kontrolle ein oder aus oder ändert den für eine Region festgelegten Schlüssel oder Bucket. Kontrollen und Regionen, die du weglässt, bleiben unverändert.