Sorry, no results found for "".

Show examples in:
Javascript HTTP
Endpoint info
Available examples

Content Management API > Subscription limit

Get all the subscription limits

Returns

Returns an array of resource objects of type subscription_limit

Examples

import { buildClient } from "@datocms/cma-client-node";
async function run() {
const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const subscriptionLimits = await client.subscriptionLimits.list();
for (const subscriptionLimit of subscriptionLimits) {
// Check the 'Returned output' tab for the result ☝️
console.log(subscriptionLimit);
}
}
run();
{ id: "locales", code: "users", usage: 2, limit: 10 }