Skip to main content

list-budget-suggestions

dci list-budget-suggestions

Returns the pending AI-generated budget suggestions for your account. The set is small (a handful of pending suggestions) and is returned in full. Each suggestion can be accepted (after you create a matching budget via POST /analytics/v1/budgets) or dismissed.

CLI default view

dci list-budget-suggestions presents a curated table by default:

  • Columns: name, amount (the amount object folded into one money cell, e.g. $3,120), confidence, interval (from timeInterval), and status.
  • --output json and explicit -C/--fields selections return the raw fields documented below.

Output

OK - The request succeeded.

By default dci renders the result as a table. Use --output json to get the full structure described below — see Output formats.

FieldTypeDescription
itemsarray of objectArray of pending budget suggestions.
items[].idstring
items[].namestring
items[].descriptionstring
items[].rationalestringExplanation of why this budget is suggested.
items[].confidencestringOne of: "high", "medium", "low".
items[].amountobjectSuggested budget amount as a decimal-string value with its currency.
items[].amount.amountstringDecimal string, e.g. "1234.56".
items[].amount.currencystring
items[].timeIntervalstring
items[].alertThresholdsarray of number (double)Suggested alert thresholds as percentages of the amount.
items[].scopeChipsarray of objectHuman-readable summary of the suggested budget scope.
items[].scopeChips[].keystring
items[].scopeChips[].valuesarray of string
items[].configobjectDraft budget configuration to merge over the create-budget defaults.
items[].generatedTimestring (date-time)Timestamp when the suggestion was generated.
items[].statusstringOne of: "pending", "accepted", "dismissed", "skippedDraft".
rowCountinteger (int64)Number of suggestions returned.
Raw JSON schema
{
"type": "object",
"properties": {
"items": {
"type": "array",
"description": "Array of pending budget suggestions.",
"items": {
"type": "object",
"description": "An AI-generated budget recommendation.",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"rationale": {
"type": "string",
"description": "Explanation of why this budget is suggested."
},
"confidence": {
"type": "string",
"enum": [
"high",
"medium",
"low"
]
},
"amount": {
"type": "object",
"description": "Suggested budget amount as a decimal-string value with its currency.",
"properties": {
"amount": {
"type": "string",
"description": "Decimal string, e.g. \"1234.56\"."
},
"currency": {
"type": "string"
}
}
},
"timeInterval": {
"type": "string"
},
"alertThresholds": {
"type": "array",
"description": "Suggested alert thresholds as percentages of the amount.",
"items": {
"type": "number",
"format": "double"
}
},
"scopeChips": {
"type": "array",
"description": "Human-readable summary of the suggested budget scope.",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"values": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"config": {
"type": "object",
"description": "Draft budget configuration to merge over the create-budget defaults.",
"additionalProperties": true
},
"generatedTime": {
"type": "string",
"description": "Timestamp when the suggestion was generated.",
"format": "date-time"
},
"status": {
"type": "string",
"enum": [
"pending",
"accepted",
"dismissed",
"skippedDraft"
]
}
}
}
},
"rowCount": {
"type": "integer",
"description": "Number of suggestions returned.",
"format": "int64"
}
}
}

Errors

On failure, dci prints a single error message — with a hint when one is available — and exits with a typed code your scripts can branch on. See Errors and exit codes for the full contract.

HTTP statusExit codeError codeMeaning
40110AUTHENTICATION_FAILEDNot signed in, or the API token is invalid. Run dci login or check DCI_API_KEY.
40311PERMISSION_DENIEDThe DoiT user or the active customer context does not have access.
50040API_SERVER_ERRORThe API failed to process the request. Retryable; contact DoiT support if it persists.

Aliases: listbudgetsuggestions