Agent SwarmAgent Swarm

Budgets

Budgets API endpoints

GET
/api/budgets

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Response Body

application/json

curl -X GET "http://localhost:3013/api/budgets"
{
  "budgets": [
    {
      "scope": "global",
      "scopeId": "string",
      "dailyBudgetUsd": 0,
      "createdAt": 0,
      "lastUpdatedAt": 0
    }
  ]
}
DELETE
/api/budgets/{scope}/{scopeId}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

scope*string
Value in"global" | "agent"
scopeId*string

Scope identifier — empty string for global, agent UUID otherwise

Lengthlength <= 255

Response Body

curl -X DELETE "http://localhost:3013/api/budgets/global/string"
Empty
Empty
GET
/api/budgets/{scope}/{scopeId}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

scope*string
Value in"global" | "agent"
scopeId*string

Scope identifier — empty string for global, agent UUID otherwise

Lengthlength <= 255

Response Body

application/json

curl -X GET "http://localhost:3013/api/budgets/global/string"
{
  "scope": "global",
  "scopeId": "string",
  "dailyBudgetUsd": 0,
  "createdAt": 0,
  "lastUpdatedAt": 0
}
Empty
PUT
/api/budgets/{scope}/{scopeId}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

scope*string
Value in"global" | "agent"
scopeId*string

Scope identifier — empty string for global, agent UUID otherwise

Lengthlength <= 255

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PUT "http://localhost:3013/api/budgets/global/string" \  -H "Content-Type: application/json" \  -d '{    "dailyBudgetUsd": 0  }'
{
  "scope": "global",
  "scopeId": "string",
  "dailyBudgetUsd": 0,
  "createdAt": 0,
  "lastUpdatedAt": 0
}
Empty
GET
/api/budgets/refusals

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Query Parameters

limit?integer
Range0 < value <= 500

Response Body

application/json

curl -X GET "http://localhost:3013/api/budgets/refusals"
{
  "refusals": [
    {
      "taskId": "string",
      "date": "string",
      "agentId": "string",
      "cause": "agent",
      "agentSpendUsd": 0,
      "agentBudgetUsd": 0,
      "globalSpendUsd": 0,
      "globalBudgetUsd": 0,
      "followUpTaskId": "string",
      "createdAt": 0
    }
  ]
}