struct

Anthropic::BetaUserProfile

Inherits JSON::Serializable < Struct < Value < Object

A user profile scopes per-user state (memory, trust grants, etc.) to a specific end user of your application. Accessible via client.beta.user_profiles.

Requires the beta header user-profiles-2026-03-24. When the resource methods are called, the header is applied automatically.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

access_type

How the platform uses the API on behalf of the entity this profile represents: "application" or "passthrough".

Source
created_at
Source
external_id

Optional platform-assigned external identifier (not enforced unique).

Source
external_user_details

Details about the end user, as the platform states them, when supplied.

Source
external_user_onboarded_at

RFC 3339 timestamp recording when the end user completed onboarding.

Source
id

Unique identifier prefixed uprof_.

Source
metadata

Free-form metadata attached to the profile.

Source
name

Real-world name of the entity this profile represents.

Source
trust_grants

Trust grants keyed by grant name. Keys omitted when no grant is active.

Source
type

Object type. Always "user_profile".

Source
updated_at
Source