Get current-period usage and plan limits
const url = 'https://your-notavia-host/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://your-notavia-host/v1/usage \ --header 'Authorization: Bearer <token>'Returns the calling organization’s live (non-test) send usage for the current calendar-month billing period, the resolved plan, its included send allowance, and a per-channel breakdown. Test-environment sends are not counted. Readable by any valid API key.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Current-period usage and plan limits.
Current-period live usage and resolved plan limits.
object
Resolved plan key (e.g. free, oem).
Inclusive UTC start of the current billing period (first of the month).
Exclusive UTC end of the current billing period (first of the next month).
Monthly included send allowance, or null for unmetered plans.
Live (non-test) sends consumed in the current period.
Sends remaining before the cap, or null when there is no cap.
When true, sends are rejected once the included allowance is exhausted.
Live sends consumed in the current period, keyed by lowercase channel name.
object
Example generated
{ "plan": "example", "period_start": "2026-04-15T12:00:00Z", "period_end": "2026-04-15T12:00:00Z", "included_sends": 1, "used_sends": 1, "remaining_sends": 1, "hard_limit": true, "by_channel": { "additionalProperty": 1 }}Missing or invalid credentials.
object
object
Example generated
{ "error": { "type": "example", "code": "example", "message": "example", "param": "example" }}