Claude Platform Docs

User Profiles

Create User Profile
beta.user_profiles.create(**kwargs) -> BetaUserProfile
POST/v1/user_profiles
List User Profiles
beta.user_profiles.list(**kwargs) -> PageCursor<BetaUserProfile>
GET/v1/user_profiles
Get User Profile
beta.user_profiles.retrieve(user_profile_id, **kwargs) -> BetaUserProfile
GET/v1/user_profiles/{user_profile_id}
Update User Profile
beta.user_profiles.update(user_profile_id, **kwargs) -> BetaUserProfile
POST/v1/user_profiles/{user_profile_id}
Create Enrollment URL
beta.user_profiles.create_enrollment_url(user_profile_id, **kwargs) -> BetaUserProfileEnrollmentURL
POST/v1/user_profiles/{user_profile_id}/enrollment_url
Models
class BetaUserProfile { id, created_at, metadata, 7 more }
class BetaUserProfileEnrollmentURL { expires_at, type, url }
expires_at: Time

A timestamp in RFC 3339 format

formatdate-time
type: :enrollment_url

Object type. Always enrollment_url.

url: String

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

class BetaUserProfileTrustGrant { status }
status: :active | :pending | :rejected

Status of the trust grant.

One of the following:
:active
:pending
:rejected