Choose your language:
    Get a single subscription limit
    Returns
    Returns a subscription_limit object.

    Examples

    Example code:
    const { SiteClient } = require('datocms-client');
    async function run() {
    const client = new SiteClient('YOUR-API-TOKEN');
    const subscriptionLimitId = 'locales';
    const subscriptionLimit = await client.subscriptionLimit.find(subscriptionLimitId);
    console.log(subscriptionLimit);
    }
    run();
    Returned output:
    > node example.js
    {
    "id": "locales",
    "code": "users",
    "usage": 2,
    "limit": 10
    }