get
Get billing usage
Returns metered feature usage for the team's billing period. Defaults to the current period; use `range=previous` or `range=custom` with `start` and `end` to query other windows.
Required API key scope
billing:read
/api/v1/team/billing/usageCode samples
curl --request GET \
--url 'https://api.emailguard.co/api/v1/team/billing/usage?range=example&start=example&end=example' \
--header 'Authorization: Bearer YOUR_API_KEY'Parameters
Query parameters
| Name | Type | Description |
|---|---|---|
| range | string | Period selector: current, previous, or custom |
| start | string | Custom range start (RFC3339 or YYYY-MM-DD); required when range=custom |
| end | string | Custom range end (RFC3339 or YYYY-MM-DD); required when range=custom |