Skip to content

docs(api-reference): document byEndpoint and bin for credit usage - #1682

Closed
mintlify[bot] wants to merge 1 commit into
mainfrom
autopilot/006167f0
Closed

mintlify[bot] wants to merge 1 commit into
mainfrom
autopilot/006167f0

Conversation

@mintlify

@mintlify mintlify Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Documents the new byEndpoint and bin query parameters on the Historical Credit Usage endpoint, plus the endpoint and bin response fields and the new 400 errors.

The endpoint can now break usage down by the endpoint that billed it and return daily periods instead of monthly ones. The page only described monthly totals and the byApiKey breakdown.

Based on break historical credit usage down by endpoint and by day, which added both options.

Needs a human look: the spec listed the per-period credits field as totalCredits, but the API returns creditsUsed, so I renamed it. I also marked endDate nullable (the latest period has none) and changed its example to the next period's start, matching the code.

@mintlify
mintlify Bot requested a review from rakshith48 October 20, 2026 23:52
@mintlify

mintlify Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
firecrawl 🟢 Ready View Preview Oct 20, 2026, 11:54 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@mintlify

mintlify Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor Author

Folded into #1754, which consolidates the backlog of gap PRs.

@mintlify mintlify Bot closed this Oct 30, 2026

This branch was successfully deployed

1 active deployment
staging — e439ea31 Deployed Oct 20, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant