Skip to content

UserContextInput

UserContextInput = Omit<UserContext, "id" | "tenant_id" | "user_id" | "created_at" | "updated_at">

Convenience input type for identify / setUserContext calls. Omits the persistence envelope fields (tenant_id, user_id, created_at, updated_at) which the SDK populates automatically.

sdk.identify('user_123', {
account_id: 'acct_456',
email: 'jane@acme.com',
plan: { id: 'pro', name: 'Professional' },
entitlements: { data_export: true },
custom: { role: 'editor' },
});