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.

Standard API

The Standard API provides core functionality available to all admin UI extension types. Use this API to authenticate with your app backend, query the GraphQL Admin API, translate content, and handle intent-based navigation.

  • GraphQL queries: Query the GraphQL Admin API to fetch product, order, or customer data.
  • Internationalization: Display translated content in the merchant's preferred language.
  • Admin navigation: Navigate programmatically to other admin pages or resource details.
  • Intent handling: Handle navigation requests from other extensions to open your action modals.

The Standard API object provides core properties available to all extension targets. Access the following properties on the API object to identify your extension target, authenticate with your app backend, query the GraphQL Admin API, translate content, and handle intents from other extensions.

required

Provides methods for authenticating calls to your app backend. Use the idToken() method to retrieve a signed JWT token that verifies the current user's identity for secure server-side operations.

Anchor to extension
extension
{ target: ; }
required

The identifier of the running extension target. Use this to determine which target your extension is rendering in and conditionally adjust functionality or UI based on the extension context.

required

Utilities for translating content according to the current localization of the admin. Use these methods to provide translated strings that match the merchant's language preferences, ensuring your extension is accessible to a global audience.

Anchor to intents
intents
required

Provides information to the receiver of an intent. Use this to access data passed from other extensions or parts of the admin when your extension is launched through intent-based navigation.

Anchor to query
query
< = unknown, Variables = { [key: string]: unknown; }>(query: string, options?: { variables?: Variables; version?: Omit<, "2023-04">; }) => Promise<{ data?: ; errors?: []; }>
required

Executes GraphQL queries against the GraphQL Admin API. Use this to fetch shop data, manage resources, or perform mutations. Queries are automatically authenticated with the current user's permissions. Optionally specify GraphQL variables and API version for your query.


  • Handle GraphQL partial data: Check both errors and data in query responses. GraphQL returns partial data with errors when some fields fail but others succeed.
  • Batch GraphQL queries: Combine multiple queries in a single GraphQL request using aliases to reduce roundtrips and improve performance under rate limits.

  • GraphQL queries share rate limits with your app's overall Admin API usage and are subject to the shop's installed access scopes.
  • ID tokens from auth.idToken() are short-lived JWTs. They expire quickly and shouldn't be stored long-term.

Was this page helpful?