Sorry, no results found for "".

Show examples in:
Javascript HTTP
Endpoint info
Available examples

Content Management API > Subscription feature

Get all the subscription features

Returns

Returns an array of resource objects of type subscription_feature

Examples

import { buildClient } from "@datocms/cma-client-node";
async function run() {
const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const subscriptionFeatures = await client.subscriptionFeatures.list();
for (const subscriptionFeature of subscriptionFeatures) {
// Check the 'Returned output' tab for the result ☝️
console.log(subscriptionFeature);
}
}
run();
{ id: "locales", code: "sso", enabled: true }