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

1webflow.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

1const subscriptions = await webflow.getAppSubscriptions();
2
3if (subscriptions.length === 0) {
4 console.log('No active subscriptions');
5} else {
6 for (const sub of subscriptions) {
7 console.log(`App ${sub.appId}: ${sub.status} (${sub.price.interval})`);
8 }
9}

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canAccessCanvasAnyAnyAnyAny