Claude Platform Docs

User Profiles

Create User Profile
client.Beta.UserProfiles.New(ctx, params) (*BetaUserProfile, error)
POST/v1/user_profiles
List User Profiles
client.Beta.UserProfiles.List(ctx, params) (*PageCursor[BetaUserProfile], error)
GET/v1/user_profiles
Get User Profile
client.Beta.UserProfiles.Get(ctx, userProfileID, query) (*BetaUserProfile, error)
GET/v1/user_profiles/{user_profile_id}
Update User Profile
client.Beta.UserProfiles.Update(ctx, userProfileID, params) (*BetaUserProfile, error)
POST/v1/user_profiles/{user_profile_id}
Create Enrollment URL
client.Beta.UserProfiles.NewEnrollmentURL(ctx, userProfileID, body) (*BetaUserProfileEnrollmentURL, error)
POST/v1/user_profiles/{user_profile_id}/enrollment_url
Models
type BetaUserProfile struct{…}
type BetaUserProfileEnrollmentURL struct{…}
ExpiresAt Time

A timestamp in RFC 3339 format

formatdate-time
Type BetaUserProfileEnrollmentURLType

Object type. Always enrollment_url.

URL string

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

type BetaUserProfileTrustGrant struct{…}
Status BetaUserProfileTrustGrantStatus

Status of the trust grant.

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