API

Run plan analysis

Run Plan Analysis and persist the cache.

Builds an AI-safe plan export server-side, runs Gemini Plan Analysis, persists lastPlanAnalysis* on the budget, records Activity History, and returns the review. Consumes one daily AI review slot (Pro 10/day, Ultra 20/day, shared with in-app Analyze and Transactions Analysis). Prefer get_plan_analysis first. Over quota → resource_exhausted (HTTP 429). Requires edit access.

POST/v1/run_plan_analysis

Corps

ChampTypeObligatoirePar défautDescription
budgetIdstringOui—Budget to analyze.
localestringNon—Optional locale for review language (see Locales). Defaults to user preferred language.

Réponse data

ChampTypeDescription
statusstringAlways current after a successful run.
analyzedAtstringISO-8601 timestamp of this run.
analysisobjectFresh Plan Analysis payload including dataHash.

Voir aussi