Claude Platform Docs

User Profiles

Create User Profile
beta.user_profiles.create(UserProfileCreateParams**kwargs) -> BetaUserProfile
POST/v1/user_profiles
List User Profiles
beta.user_profiles.list(UserProfileListParams**kwargs) -> SyncPageCursor[BetaUserProfile]
GET/v1/user_profiles
Get User Profile
beta.user_profiles.retrieve(struser_profile_id, UserProfileRetrieveParams**kwargs) -> BetaUserProfile
GET/v1/user_profiles/{user_profile_id}
Update User Profile
beta.user_profiles.update(struser_profile_id, UserProfileUpdateParams**kwargs) -> BetaUserProfile
POST/v1/user_profiles/{user_profile_id}
Create Enrollment URL
beta.user_profiles.create_enrollment_url(struser_profile_id, UserProfileCreateEnrollmentURLParams**kwargs) -> BetaUserProfileEnrollmentURL
POST/v1/user_profiles/{user_profile_id}/enrollment_url
Models
class BetaUserProfile:
class BetaUserProfileEnrollmentURL:
expires_at: datetime

A timestamp in RFC 3339 format

formatdate-time
type: Literal["enrollment_url"]

Object type. Always enrollment_url.

url: str

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

class BetaUserProfileTrustGrant:
status: Literal["active", "pending", "rejected"]

Status of the trust grant.

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