# Get a planner scenario projection

> Month-by-month balance projection: as-of month baseline (real income/expense transactions + unmaterialized recurrences) and future months (recurrences), plus the scenario lines. In accounts mode, the current-month start balance is live minus net paid MTD. Requires Authorization: Bearer with a Better Auth session token.

`GET /finance/profiles/{studioId}/planner/scenarios/{scenarioId}/projection`

## OpenAPI

````yaml openapi/agata-v1.yaml get /finance/profiles/{studioId}/planner/scenarios/{scenarioId}/projection
openapi: 3.0.3
info:
  title: Agata canonical API
  version: 1.0.0
  description: Canonical contract of the Agata Go API. Every documented route is
    registered in internal/delivery/http/handler.go. Monetary amounts are
    expressed in cents and local date keys use YYYY-MM-DD.
servers:
  - url: http://localhost:{port}/api
    description: Local server
    variables:
      port:
        default: "8080"
        description: Local HTTP port
  - url: "{scheme}://{host}/api"
    description: Configurable server
    variables:
      scheme:
        default: https
        enum:
          - http
          - https
      host:
        default: api.example.com
tags:
  - name: Health check
    description: Health-check operations.
  - name: Users
    description: Users domain operations.
  - name: Profiles
    description: Studio domain operations.
  - name: Organizations
    description: Company accounts that own people and Studios. Not followable.
  - name: Public profiles
    description: Public studio reads and one-way follows. Membership is not required.
  - name: Membership
    description: Studio membership plans, Connect status, and fan subscriptions.
  - name: Messages
    description: 1:1 owner chat between a studio owner and a subscriber with the
      owner_chat perk.
  - name: Feedback
    description: Feedback domain operations.
  - name: Internal system
    description: Internal system operations.
  - name: AI capabilities
    description: Durable leases, outcomes, and reversible effects for integrated AI actions.
  - name: Finance
    description: Finance domain operations.
  - name: Goals
    description: Goals domain operations.
  - name: Pomodoro
    description: Pomodoro domain operations.
  - name: Activities
    description: Activities domain operations.
  - name: Calendar
    description: Calendar domain operations.
  - name: Library
    description: Library domain operations.
  - name: Health
    description: Health domain operations.
  - name: Nutrition
    description: Nutrition domain operations.
  - name: Notebook
    description: Notebook domain operations.
  - name: Week plan
    description: Week-plan domain operations.
  - name: Files
    description: Files domain operations.
  - name: Tags
    description: Tags domain operations.
  - name: Tasks
    description: Tasks domain operations.
  - name: Projects
    description: Projects domain operations.
  - name: Internal
    description: Internal integrations protected by Bearer session.
  - name: Internal cron
    description: Internal cron operations.
paths:
  /finance/profiles/{studioId}/planner/scenarios/{scenarioId}/projection:
    get:
      tags:
        - Finance
      operationId: getPlannerScenarioProjection
      summary: Get a planner scenario projection
      description: "Month-by-month balance projection: as-of month baseline (real
        income/expense transactions + unmaterialized recurrences) and future
        months (recurrences), plus the scenario lines. In accounts mode, the
        current-month start balance is live minus net paid MTD. Requires
        Authorization: Bearer with a Better Auth session token."
      security:
        - sessionBearer: []
      parameters:
        - name: studioId
          in: path
          required: true
          description: Identifier or key studioId.
          schema:
            type: string
        - name: scenarioId
          in: path
          required: true
          description: Identifier or key scenarioId.
          schema:
            type: string
            format: uuid
        - name: months
          in: query
          required: false
          description: Horizon in months (1-36, default 6).
          schema:
            type: integer
            format: int32
        - name: startYear
          in: query
          required: false
          description: Window start year (defaults to the current UTC month).
          schema:
            type: integer
            format: int32
        - name: startMonth
          in: query
          required: false
          description: Window start month 1-12 (defaults to the current UTC month).
          schema:
            type: integer
            format: int32
        - name: from
          in: query
          required: false
          description: YYYY-MM alias of the start month.
          schema:
            type: string
            example: 2026-08
      responses:
        "200":
          description: OK.
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    $ref: "#/components/schemas/FinancePlannerProjection"
                  request_id:
                    type: string
                    format: uuid
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/Forbidden"
        "404":
          $ref: "#/components/responses/NotFound"
        "409":
          $ref: "#/components/responses/Conflict"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/ServerError"
components:
  schemas:
    FinancePlannerProjection:
      type: object
      properties:
        startingBalanceCents:
          type: integer
          format: int64
          example: 12500
          description: Base series balance at the start of the window.
        scenarioStartingBalanceCents:
          type: integer
          format: int64
          example: 12500
          description: Scenario series balance at the start of the window.
        startYear:
          type: integer
          format: int32
          example: 2026
        startMonth:
          type: integer
          format: int32
          example: 7
        months:
          type: array
          items:
            $ref: "#/components/schemas/FinancePlannerProjectionMonth"
      required:
        - startingBalanceCents
        - scenarioStartingBalanceCents
        - startYear
        - startMonth
        - months
    FinancePlannerProjectionMonth:
      type: object
      properties:
        monthKey:
          type: string
          example: 2026-08
        year:
          type: integer
          format: int32
          example: 2026
        month:
          type: integer
          format: int32
          example: 8
        baselineIncomeCents:
          type: integer
          format: int64
          example: 12500
        baselineExpenseCents:
          type: integer
          format: int64
          example: 12500
        baselineEndBalanceCents:
          type: integer
          format: int64
          example: 12500
        scenarioIncomeCents:
          type: integer
          format: int64
          example: 12500
        scenarioExpenseCents:
          type: integer
          format: int64
          example: 12500
        scenarioEndBalanceCents:
          type: integer
          format: int64
          example: 12500
      required:
        - monthKey
        - year
        - month
        - baselineIncomeCents
        - baselineExpenseCents
        - baselineEndBalanceCents
        - scenarioIncomeCents
        - scenarioExpenseCents
        - scenarioEndBalanceCents
    ErrorDetail:
      type: object
      required:
        - message
      properties:
        code:
          type: string
          example: VALIDATION_ERROR
        message:
          type: string
          example: The request is not valid.
        limit_key:
          type: string
        limit:
          type: integer
        required_plan:
          type: string
          enum:
            - pro
            - business
        resolution:
          type: string
          enum:
            - upgrade_plan
            - purchase_addon
        addon_key:
          type: string
          enum:
            - extra_members
            - ai_credit_packs
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          $ref: "#/components/schemas/ErrorDetail"
        request_id:
          type: string
          format: uuid
  responses:
    BadRequest:
      description: Invalid request.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/ErrorResponse"
    Unauthorized:
      description: Missing or invalid authentication.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/ErrorResponse"
    Forbidden:
      description: Acceso denegado.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/ErrorResponse"
    NotFound:
      description: Recurso no encontrado.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/ErrorResponse"
    Conflict:
      description: Conflict with the current state.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/ErrorResponse"
    RateLimited:
      description: Request limit exceeded.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/ErrorResponse"
    ServerError:
      description: Internal server error.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/ErrorResponse"
````
