Typescript
import Nuntly from '@nuntly/sdk'; const client = new Nuntly({ apiKey: 'My API Key', }); const usage = await client.organizations.usage.retrieve('id'); console.log(usage.daily);
{ "data": { "daily": { "consumed": { "transac_emails": 123 }, "quota": { "transac_emails": 123 }, "period": "<string>" }, "monthly": { "consumed": { "transac_emails": 123 }, "quota": { "transac_emails": 123 }, "period": "<string>" } } }
Return the organization usage
Bearer HTTP authentication. Allowed headers Authorization: Bearer <API_KEY>
The organization id previously created
A successful response
The response is of type object.
object