Skip to navigation

Get App Subscriptions (Beta)

webflow.getAppSubscriptions()

Returns all active app subscriptions associated with the current site.

Use this to gate features behind paid subscription tiers or to check which subscription plan a site is on.

Beta

These methods are in public beta and may change with future releases.

Syntax

webflow.getAppSubscriptions(): Promise<Array<AppSubscription>>

Returns

Promise<Array<AppSubscription>>

A Promise that resolves to an array of AppSubscription objects. Returns an empty array if no subscriptions are active.

Each AppSubscription has the following properties:

PropertyTypeDescription
appIdstringThe ID of the app
price.valuenumberThe subscription price amount
price.unitstringThe currency unit
price.interval'ONE_TIME' | 'MONTHLY' | 'YEARLY'The billing interval
accessGrant.type'Site'The resource type the subscription applies to
accessGrant.idstringThe resource ID (site ID)
statusstringThe subscription status
startsAtstringISO 8601 start date
endsAtstringISO 8601 end date

Example

const subscriptions = await webflow.getAppSubscriptions();
if (subscriptions.length === 0) {
console.log('No active subscriptions');
} else {
for (const sub of subscriptions) {
console.log(`App ${sub.appId}: ${sub.status} (${sub.price.interval})`);
}
}

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canAccessCanvasAnyAnyAnyAny