Get monthly usage
const url = 'https://api.inboxcnx.com/v1/usage';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.inboxcnx.com/v1/usage \ --header 'Authorization: Bearer <token>'Returns the caller application’s billable usage for one month, per grant and profile, so you can bill your own users. One row per grant and profile, with the Application’s totals. A grant moved to another profile during the month has a row per profile. Summed over all rows, mails, backfillMails and gbMonths equal the totals. Once closed is true the month is invoiced and its numbers never change. For the running month projection extends the live mails’ daily rate over the month and adds backfillMails once, so a one-off backfill is not projected onto the month.
Requires the read:usage scope.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The month, YYYY-MM. Default: the running month.
The month, YYYY-MM. Default: the running month.
Opaque pagination cursor: a previous response’s nextCursor or prevCursor, passed back verbatim. A cursor issued under one sort order is rejected if reused with another.
Opaque pagination cursor: a previous response’s nextCursor or prevCursor, passed back verbatim. A cursor issued under one sort order is rejected if reused with another.
Page size, between 1 and 200. Default 50.
Page size, between 1 and 200. Default 50.
Responses
Section titled “Responses”A page of usage rows
object
object
object
object
Example
{ "period": "2026-10", "from": "2026-10-01T00:00:00.000Z", "to": "2026-11-01T00:00:00.000Z", "closed": false, "totals": { "activeGrantsPeak": 12, "mails": 4180, "backfillMails": 900, "gbMonths": 3.2 }, "projection": { "projectedGbMonths": 4.1, "allowanceGbMonths": 10, "overageGbMonths": 0, "mails": 4180, "allowanceMails": 50000, "projectedMails": 6200, "overageMails": 0, "storageOverageAmount": "0.00", "mailOverageAmount": "0.00" }, "data": [ { "grantId": "9b2f0c4e-6a1d-4f3b-8c55-0d7e2a91b3c4", "externalUserId": "crm-user-42", "profileKey": "default", "activeDays": 23, "mails": 410, "backfillMails": 90, "gbMonths": 0.3 } ], "nextCursor": null, "prevCursor": null}Invalid query or malformed cursor
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}The credential lacks the read:usage scope
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}Usage could not be read
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}Usage is not configured
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}