Choose your language:
    Get all the subscription limits
    Returns
    Returns an array of subscription_limit objects.

    Examples

    Example code:
    const SiteClient = require('datocms-client').SiteClient;
    const client = new SiteClient('YOUR-API-TOKEN');
    client.subscriptionLimits.all()
    .then((subscriptionLimits) => {
    subscriptionLimits.forEach((subscriptionLimit) => {
    console.log(subscriptionLimit);
    });
    })
    .catch((error) => {
    console.error(error);
    });
    Returned output:
    > node example.js
    {
    "id": "locales",
    "code": "users",
    "usage": 2,
    "limit": 10
    }