SWIRLS_
ReferenceSDKClient

costs

SDK reference for costs —

getProjectBreakdown

Credit and usage breakdown for one project over a time range

POST

Usage:

const result = await swirls.client.costs.getProjectBreakdown({
  projectId: '...',
})

Input:

ParameterTypeRequiredDescription
projectIdstringYes
range"24h" | "7d" | "30d"No

Output:

FieldTypeDescription
rangestring
fromstring
tostring
totalsobject
dailyobject[]
workflowsobject[]
nodeTypesobject[]
agentsobject[]
vendorsobject[]
toolSpendByAgentobject[]

On this page