Skip to main content
Migrate to Polaris

Version 2025-07 is the last API version to support React-based UI components. Later versions use web components, native UI elements with built-in accessibility, better performance, and consistent styling with Shopify's design system. Check out the migration guide to upgrade your extension.

Extension API

The API for interacting with the metadata of an extension.

The base API object provided to purchase extension targets.

Anchor to extension
extension
<Target>
required

The meta information about the extension.

Returns the metadata about the extension.

Extension

Anchor to useExtensionData
useExtensionData()

Returns the metadata about the extension. This is deprecated, use useExtension() instead.

Extension

Anchor to useExtensionCapabilities
useExtensionCapabilities()

Returns a list of an extension's granted capabilities.

[]

Returns whether or not a given capability of an extension is granted.

Anchor to capability
capability
required

Anchor to useExtensionEditor
useExtensionEditor()

Returns information about the editor where the extension is being rendered.

| undefined
Was this page helpful?