Loading...
    • Developer Guide
    • API Reference
    • MCP
    • Resources
    • Release Notes
    Search...
    ⌘K
    Using the API
    API overviewBeta headersErrors
    Messages
    Create a Message
    Count tokens in a Message
    Models
    List Models
    Get a Model
    Beta
    Create User Profile
    List User Profiles
    Get User Profile
    Update User Profile
    Create Enrollment URL
    Admin
    Completions
    Create a Text Completion
    Support & configuration
    Rate limitsService tiersVersionsIP addressesSupported regionsOpenAI SDK compatibility
    Console
    Log in

    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) (*PageCursorV2[BetaUserProfile], error)
    GET/v1/user_profiles
    Get User Profile
    client.Beta.UserProfiles.Get(ctx, id, query) (*BetaUserProfile, error)
    GET/v1/user_profiles/{id}
    Update User Profile
    client.Beta.UserProfiles.Update(ctx, id, params) (*BetaUserProfile, error)
    POST/v1/user_profiles/{id}
    Create Enrollment URL
    client.Beta.UserProfiles.NewEnrollmentURL(ctx, id, body) (*BetaUserProfileEnrollmentURL, error)
    POST/v1/user_profiles/{id}/enrollment_url
    ModelsExpand Collapse
    type BetaUserProfile struct{…}
    ID string
    CreatedAt Time

    A timestamp in RFC 3339 format

    Metadata map[string, string]
    TrustGrants map[string, BetaUserProfileTrustGrant]
    Status string
    Type string
    UpdatedAt Time

    A timestamp in RFC 3339 format

    ExternalID stringoptional
    type BetaUserProfileEnrollmentURL struct{…}
    ExpiresAt Time

    A timestamp in RFC 3339 format

    Type string
    URL string
    type BetaUserProfileTrustGrant struct{…}
    Status string

    Solutions

    • AI agents
    • Code modernization
    • Coding
    • Customer support
    • Education
    • Financial services
    • Government
    • Life sciences

    Partners

    • Amazon Bedrock
    • Google Cloud's Vertex AI

    Learn

    • Blog
    • Catalog
    • Courses
    • Use cases
    • Connectors
    • Customer stories
    • Engineering at Anthropic
    • Events
    • Powered by Claude
    • Service partners
    • Startups program

    Company

    • Anthropic
    • Careers
    • Economic Futures
    • Research
    • News
    • Responsible Scaling Policy
    • Security and compliance
    • Transparency

    Learn

    • Blog
    • Catalog
    • Courses
    • Use cases
    • Connectors
    • Customer stories
    • Engineering at Anthropic
    • Events
    • Powered by Claude
    • Service partners
    • Startups program

    Help and security

    • Availability
    • Status
    • Support
    • Discord

    Terms and policies

    • Privacy policy
    • Responsible disclosure policy
    • Terms of service: Commercial
    • Terms of service: Consumer
    • Usage policy