nozle.margin. All methods accept optional query params (from, to date strings).
Summary
By Customer
By Metric
By Plan
By Model
Trend
Parameters
MarginQueryParams:from(string, optional) — Start date (ISO 8601)to(string, optional) — End date (ISO 8601)
granularity('hour'|'day'|'week'|'month', default:'day')
All margin endpoints require a secret key (
sk_). These are the same endpoints exposed at GET /api/v1/margin/* on the Nozle API.