The Application's production spend over an optional window, split by component, agent and model.
`totalCostUsd` and `creditsCharged` are the support KPIs' own figures. The split is read from the Application's run records: components are conversations, relevance checks, automations (any run a trigger fired), knowledge upkeep, review and other; `conversationCostUsd` and `conversationCredits` are the conversational components alone, for a cost per conversation without knowledge upkeep, reviews or automations. `creditsRefunded` counts credits handed back for superseded turns. A window reaching past the workspace's run history is split from `countedFromMs`. `from`/`to` are Unix ms (half-open), defaulting to the last 30 days; all time is `from=0`.
Authorization
Bearer JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.
In: header
Path Parameters
The Application (Network) id.
uuidThe tenant identifier
Query Parameters
Window start, Unix ms inclusive. Defaults to 30 days before to; 0 for all time.
int64Window end, Unix ms exclusive. Defaults to now.
int64Response Body
curl -X GET "https://api.fruxon.com/v1/tenants/string/networks/497f6eca-6276-4993-bfeb-53cbbbba6f08/spend"{
"networkId": "00000000-0000-0000-0000-000000000000",
"window": {
"fromMs": 0,
"toMs": 0
},
"countedFromMs": 0,
"totalCostUsd": 0,
"creditsCharged": 0,
"creditsRefunded": 0,
"components": [
{
"component": "CONVERSATIONS",
"costUsd": 0,
"credits": 0,
"runs": 0
}
],
"agents": [
{
"agentId": "string",
"displayName": "string",
"costUsd": 0,
"credits": 0,
"runs": 0
}
],
"models": [
{
"providerId": "string",
"modelId": "string",
"costUsd": 0,
"inputTokens": 0,
"outputTokens": 0
}
],
"conversationCostUsd": 0,
"conversationCredits": 0
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}The Application's agents, connections and LLM configs now, and the environments it served in a window.
Agents are the Application's members other than removed ones, each with its role — a knowledge base's or reply style's helper by who built it, otherwise answering for a chat agent and other for anything else — its live revision, its most recent deploy attempt, its agent-wide production cost caps with the current period's spend, and whether a reviewer reads its conversations. Integrations are the connections the members' live revisions reference or the Application is granted through an active binding, with credential health as the agent overview reports it. LLM configs are the ones those revisions run on. `activeEnvironments` counts the customer environments with a production run of this Application in `[from, to)` (Unix ms, defaulting to the last 30 days; all time is `from=0`). Channels are listed by `networks/{network}/entryPoints`.
The Application's calendar month so far, in dollars and credits, projected to the month's end.
The agent cost card's forecast for the whole Application: the same projection over four weeks of daily history, in the same shape. Production runs only, and no budget line — an Application has no cap of its own.