Skip to main content
The context object in the UI extensions SDK contains data related to the authenticated user and HubSpot account, along with data about where the extension was loaded.

Access context data

You can access context data using either approach:
  • Props-based approach: destructure context from the callback passed to hubspot.extend(), then pass it to your component as a prop.
  • Hook-based approach: call the useExtensionContext hook directly within your component.

Fields

The context object has the following fields.

Universal fields

CRM-specific fields

The following fields are only available in CRM extension points (crm.record.tab, crm.record.sidebar, crm.preview, helpdesk.sidebar):
Last modified on June 3, 2026