---
title: "Get Ai Breakdown"
method: POST
path: "/api/analysis/ai-breakdown/{user_id}"
tags: ["Analysis"]
---

# Get Ai Breakdown

`POST /api/analysis/ai-breakdown/{user_id}`

## Request

- Base URL: `https://api.earmarkiq.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.earmarkiq.app/api/analysis/ai-breakdown/{user_id}`
- Auth: HTTP bearer

Generate a personalised AI-driven financial breakdown for the onboarding flow.
Returns cached result if available (7-day TTL) and no new goals are provided.
Otherwise generates fresh via Claude API.

## Path parameters

- `user_id` string, uuid, required

## Request body

- AIBreakdownRequest
  - `goals` object[], nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/earmarkiq/apis/earmark-api.md) · [All operations](https://skmtc.dev/earmarkiq/apis/earmark-api/llms.txt) · [OpenAPI document](https://skmtc.dev/earmarkiq/apis/earmark-api/revisions/4a2c41907105?raw)
