Skip to main content
GET
/
margin
/
trend
Margin Trend
curl --request GET \
  --url https://api.nozle.app/api/v1/margin/trend \
  --header 'Authorization: Bearer <token>'
Get margin trend over time. Auth: sk_ only
All margin endpoints require a secret key (sk_). These endpoints expose cost data that should never be visible to your end users.
from
string
Start date in YYYY-MM-DD format (inclusive)
to
string
End date in YYYY-MM-DD format (inclusive)
granularity
string
Time bucket size: hour, day, week, or month (default: day)