Costfluent Public API
​string · required​string · required​string · required​string · pattern: ​string[] · required​string[] · required​boolean · required​string · required​string · date · required​string · date · required​string | null · decimal · pattern: ​integer | null · int32​integer | null · int32​integer | null · int32​integer | null · int32​integer | null · int64​integer | null · int64​string | null
​string · date · required​string · pattern: ​string · decimal · pattern: ​boolean · required​string[] · required​integer · int64 · required​integer · int64 · required​integer · int32 · required​integer · int32 · required​string | null · date-time​string | null · decimal · pattern: ​string | null
Billing
Get the account's entitlement
GET
https://api.costfluent.com
/v1/entitlement
Bearer (API token)
The tier, every limit it carries, any limit raised for this account, and the published ladder so a caller can see what the next plan lifts.
Needs an organization token with viewOrganization.
Get the account's entitlement › Responses
Success
planCodeplanNamestatuscurrency^[A-Z]{3}$ · requiredfeaturesoverriddenLimitsingestionHaltedingestionHaltedReasoncurrentPeriodStartcurrentPeriodEnd​PlanLadderEntryResponse[] · required
spendCeiling^-?[0-9]+(\.[0-9]{1,…historyDaysmaxConnectionsmaxAllocationRulesmaxBackfillMonthsmaxRowsPerMonthmaxBytesStoredbandPlanCodeGet the account's metered usage
GET
https://api.costfluent.com
/v1/usage
Bearer (API token)
The same numbers the caps are enforced against, so a script can check headroom rather than discover a limit by being refused.
Needs an organization token with viewOrganization.
Get the account's metered usage › Responses
Success
periodStartcurrency^[A-Z]{3}$ · requiredtrackedSpend^-?[0-9]+(\.[0-9]{1,… · requiredisSpendCompleteunconvertedCurrenciesrowsIngestedbytesStoredconnectionCountactiveUserCount​UsageHistoryEntryResponse[] · required
computedAtaverageTrackedSpend^-?[0-9]+(\.[0-9]{1,…bandPlanCode