GET
/
organizations
/
{id}
/
usage
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>"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer HTTP authentication. Allowed headers Authorization: Bearer <API_KEY>

Path Parameters

id
string
required

The organization id previously created

Response

200
application/json

A successful response

The response is of type object.