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

created_at
Source
external_id

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

Source
id

Unique identifier prefixed uprof_.

Source
metadata

Free-form metadata attached to the profile.

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