import Nuntly from '@nuntly/sdk';
const client = new Nuntly({
apiKey: process.env['NUNTLY_API_KEY'], // This is the default and can be omitted
});
const usage = await client.organizations.usage.retrieve('org_01ka8k8s80gvx9604cn9am5st4');
console.log(usage.transactional);
Returns current period usage metrics (daily and monthly) for sending and receiving, against your plan limits.
GET
/
organizations
/
{id}
/
usage
JavaScript
Copy
import Nuntly from '@nuntly/sdk';
const client = new Nuntly({
apiKey: process.env['NUNTLY_API_KEY'], // This is the default and can be omitted
});
const usage = await client.organizations.usage.retrieve('org_01ka8k8s80gvx9604cn9am5st4');
console.log(usage.transactional);