Dashboard API > Subscription feature
Get all the subscription features
Warning: Experimental API
Please note that the Dashboard API is an experimental, prerelease API. This API method is considered unstable, and should be avoided in production environments and automations. Changes may occur at any time without warning.
Returns
Returns an array of resource objects of type subscription_feature
Examples
import { buildClient } from "@datocms/dashboard-client";
async function run() { const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const siteId = "locales";
const subscriptionFeatures = await client.subscriptionFeatures.list(siteId);
for (const subscriptionFeature of subscriptionFeatures) { // Check the 'Returned output' tab for the result ☝️ console.log(subscriptionFeature); }}
run();{ id: "locales", code: "sso", enabled: true }