Skip to main content
GET
Margin Trend
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.
string
Start date in YYYY-MM-DD format (inclusive)
string
End date in YYYY-MM-DD format (inclusive)
string
Time bucket size: hour, day, week, or month (default: day)