Right Money Onboarding API

The Onboarding API from Right Money — 6 operation(s) for onboarding.

GitHub OpenAPI

Operations 6

GET /api/onboarding/agent/status Check onboarding status #
POST /api/onboarding/classify Classify transactions #
POST /api/onboarding/agent/start Get financial summary #
GET /api/onboarding/agent/transactions Get raw merchant patterns for agent-side classification #
GET /api/onboarding/agent/review Review data quality and get improvement suggestions #
POST /api/onboarding/agent/confirm Confirm or adjust classifications #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/rightmoney-com:rightmoney-com-onboarding-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

rightmoney-com-onboarding-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Right Money Agent Onboarding API
  description: Integrate financial wellness into any AI agent or app. The Right Money Agent API lets you onboard users into the three-bucket system (Bills, Lifestyle, Freedom) programmatically.
  version: 1.0.0
  contact:
    name: Right Money
    url: https://rightmoney.com/developers
    email: otto@rightmoney.com
servers:
- url: https://app.rightmoney.com
  description: Production
security:
- agentKey: []
tags:
- name: Onboarding
paths:
  /api/onboarding/agent/status:
    get:
      operationId: getOnboardingStatus
      summary: Check onboarding status
      description: Returns the current onboarding step for a user. Use this to determine what action to take next.
      parameters:
      - name: userId
        in: query
        required: true
        schema:
          type: string
          format: uuid
        description: The user's unique identifier
      responses:
        '200':
          description: Current onboarding status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatusResponse'
              examples:
                needsConnect:
                  summary: User needs to connect bank
                  value:
                    onboarded: false
                    step: connect
                analyzing:
                  summary: Transactions being analyzed
                  value:
                    onboarded: false
                    step: analyzing
                needsConfirm:
                  summary: User needs to confirm classifications
                  value:
                    onboarded: false
                    step: confirm
                    unconfirmed_count: 5
                done:
                  summary: Onboarding complete
                  value:
                    onboarded: true
                    step: done
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
      tags:
      - Onboarding
  /api/onboarding/classify:
    post:
      operationId: classifyTransactions
      summary: Classify transactions
      description: Triggers AI classification of the user's bank transactions into buckets (bills, lifestyle, income, ignore). This is idempotent — calling it again after classification returns immediately.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserIdBody'
      responses:
        '200':
          description: Classification result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClassifyResponse'
              examples:
                alreadyClassified:
                  summary: Already classified (idempotent)
                  value:
                    success: true
                    message: Already classified
                    classified: 0
                    skipped: true
                freshClassification:
                  summary: Fresh classification
                  value:
                    success: true
                    classified: 47
                    rulesCreated: 12
                    totalTransactions: 210
                    merchantPatterns: 47
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
      tags:
      - Onboarding
  /api/onboarding/agent/start:
    post:
      operationId: startOnboarding
      summary: Get financial summary
      description: Returns the user's financial summary with transactions classified into the three-bucket system. If the user hasn't connected their bank or classified transactions yet, returns the appropriate next step.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserIdBody'
      responses:
        '200':
          description: Onboarding state or financial summary
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StartResponse'
              examples:
                needsPlaid:
                  summary: User needs to connect bank
                  value:
                    status: needs_plaid
                    message: User has no bank connections. Direct user to connect their bank.
                    link_url: https://app.rightmoney.com/onboarding
                needsClassification:
                  summary: Transactions need classification
                  value:
                    status: needs_classification
                    message: 'Bank connected but transactions not yet classified. Call POST /api/onboarding/classify with { "userId": "..." } first.'
                ready:
                  summary: Summary ready for review
                  value:
                    status: ready
                    summary:
                      income:
                        monthly_total: 5000
                        sources:
                        - pattern: ACME CORP PAYROLL
                          monthly_amount: 5000
                          frequency: biweekly
                          is_recurring: true
                      bills:
                        monthly_total: 2100
                        percentage: 42
                        items:
                        - pattern: ZILLOW MORTGAGE
                          monthly_amount: 1500
                          frequency: monthly
                          is_recurring: true
                          bill_group: housing
                        - pattern: GEICO AUTO
                          monthly_amount: 150
                          frequency: monthly
                          is_recurring: true
                          bill_group: insurance
                      lifestyle:
                        monthly_total: 1400
                        percentage: 28
                      freedom:
                        monthly_total: 1500
                        percentage: 30
                      months_of_freedom: 3.2
                      total_balance: 9600
                      top_recurring:
                      - pattern: ZILLOW MORTGAGE
                        bucket: bills
                        monthly_amount: 1500
                        frequency: monthly
                        bill_group: housing
                      - pattern: SPOTIFY
                        bucket: lifestyle
                        monthly_amount: 10.99
                        frequency: monthly
                        bill_group: null
                      unconfirmed_count: 47
                      classification_confidence: 0.87
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
      tags:
      - Onboarding
  /api/onboarding/agent/transactions:
    get:
      operationId: getAgentTransactions
      summary: Get raw merchant patterns for agent-side classification
      description: Returns unclassified transactions grouped by merchant pattern. The calling AI agent classifies each merchant into a bucket (bills, lifestyle, income, ignore) and submits results via POST /api/onboarding/agent/confirm with a classifications array. Falls back to backend classification recommended when >100 merchant patterns.
      parameters:
      - name: userId
        in: query
        required: true
        schema:
          type: string
          format: uuid
        description: The user's unique identifier
      responses:
        '200':
          description: Merchant patterns for classification
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionsResponse'
              example:
                userId: abc-123
                transactionCount: 47
                merchantCount: 12
                dateRange:
                  start: '2025-12-01'
                  end: '2026-03-01'
                merchants:
                - pattern: AMAZON
                  displayName: Amazon
                  totalAmount: 234.5
                  transactionCount: 8
                  avgAmount: 29.31
                  direction: outflow
                  sampleDates:
                  - '2026-01-15'
                  - '2026-02-01'
                  - '2026-02-28'
                  suggestedBucket: null
                buckets:
                - bills
                - lifestyle
                - income
                - ignore
                fallbackRecommended: false
                instructions: Classify each merchant into exactly one bucket...
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
      tags:
      - Onboarding
  /api/onboarding/agent/review:
    get:
      operationId: reviewClassifications
      summary: Review data quality and get improvement suggestions
      description: 'Returns a prioritized list of data quality issues: low-confidence classifications, likely misclassifications (streaming in bills), ambiguous transfers (Venmo/Zelle), missing income, and bill frequency issues. Walk through issues one at a time with the user.'
      parameters:
      - name: userId
        in: query
        required: true
        schema:
          type: string
          format: uuid
        description: The user's unique identifier
      responses:
        '200':
          description: Review results with prioritized issues
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReviewResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
      tags:
      - Onboarding
  /api/onboarding/agent/confirm:
    post:
      operationId: confirmClassifications
      summary: Confirm or adjust classifications
      description: Confirms the AI-generated transaction classifications. Optionally pass changes to reclassify specific merchants before confirming. Omit changes to confirm all as-is.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfirmBody'
      responses:
        '200':
          description: Confirmation result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConfirmResponse'
              example:
                success: true
                confirmed: 47
                rules_created: 35
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
      tags:
      - Onboarding
components:
  schemas:
    UserIdBody:
      type: object
      required:
      - userId
      properties:
        userId:
          type: string
          format: uuid
          description: The user's unique identifier
    ConfirmResponse:
      type: object
      required:
      - success
      properties:
        success:
          type: boolean
        confirmed:
          type: integer
          description: Number of classifications confirmed
        rules_created:
          type: integer
          description: Number of persistent merchant rules created
        auto_confirm_threshold:
          type: number
          description: Present when auto_confirm was true.
        needs_review_count:
          type: integer
          description: Unconfirmed classifications left for review. Present when auto_confirm was true.
        needs_review:
          type: array
          description: Up to 15 lowest-confidence unconfirmed classifications. Present when auto_confirm was true.
          items:
            type: object
    ReviewResponse:
      type: object
      required:
      - userId
      - score
      - issueCount
      - issues
      - nextAction
      properties:
        userId:
          type: string
          format: uuid
        score:
          type: integer
          minimum: 0
          maximum: 100
          description: Data quality score
        issueCount:
          type: integer
        issues:
          type: array
          items:
            type: object
            properties:
              type:
                type: string
                enum:
                - low_confidence
                - likely_wrong
                - missing_income
                - ambiguous_transfer
                - bill_frequency
                - income_validation
                - ignore_detection
              merchant:
                type:
                - string
                - 'null'
              currentBucket:
                type:
                - string
                - 'null'
              confidence:
                type:
                - number
                - 'null'
              suggestedBucket:
                type:
                - string
                - 'null'
              question:
                type: string
              options:
                type: array
                items:
                  type: string
              priority:
                type: integer
        nextAction:
          type: object
          properties:
            type:
              type: string
              enum:
              - improve
              - upgrade
              - view
            label:
              type: string
            url:
              type: string
              format: uri
    ClassifyResponse:
      type: object
      required:
      - success
      properties:
        success:
          type: boolean
        message:
          type: string
        classified:
          type: integer
          description: Number of merchant patterns classified
        skipped:
          type: boolean
          description: True if classifications already existed
        rulesCreated:
          type: integer
          description: Number of high-confidence merchant rules created
        totalTransactions:
          type: integer
          description: Total transactions analyzed
        merchantPatterns:
          type: integer
          description: Unique merchant patterns found
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
    StatusResponse:
      type: object
      required:
      - onboarded
      - step
      properties:
        onboarded:
          type: boolean
          description: Whether the user has completed onboarding
        step:
          type: string
          enum:
          - connect
          - analyzing
          - confirm
          - done
          description: Current onboarding step
        unconfirmed_count:
          type: integer
          description: Number of unconfirmed classifications. Only present when step is "confirm".
        needs_review_count:
          type: integer
          description: Present on step "done" when low-confidence classifications (below the auto-confirm threshold) remain unconfirmed for ongoing review.
    StartResponse:
      type: object
      required:
      - status
      properties:
        status:
          type: string
          enum:
          - needs_plaid
          - needs_classification
          - ready
          - confirmed
          description: Current state of the onboarding flow
        message:
          type: string
        link_url:
          type: string
          format: uri
          description: URL to direct the user to (when status is needs_plaid)
        summary:
          $ref: '#/components/schemas/FinancialSummary'
    TransactionsResponse:
      type: object
      required:
      - userId
      - transactionCount
      - merchantCount
      - merchants
      - buckets
      properties:
        userId:
          type: string
          format: uuid
        transactionCount:
          type: integer
          description: Total number of transactions in the date range
        merchantCount:
          type: integer
          description: Number of unique merchant patterns
        dateRange:
          type:
          - object
          - 'null'
          properties:
            start:
              type: string
              format: date
            end:
              type: string
              format: date
        merchants:
          type: array
          items:
            type: object
            properties:
              pattern:
                type: string
                description: Normalized merchant pattern
              displayName:
                type: string
              totalAmount:
                type: number
              transactionCount:
                type: integer
              avgAmount:
                type: number
              direction:
                type: string
                enum:
                - inflow
                - outflow
              sampleDates:
                type: array
                items:
                  type: string
                  format: date
              suggestedBucket:
                type:
                - string
                - 'null'
        buckets:
          type: array
          items:
            type: string
          description: Valid bucket values
        fallbackRecommended:
          type: boolean
          description: True if >100 merchant patterns — recommend backend classification instead
        instructions:
          type: string
          description: Classification guidance for the AI agent
    FinancialSummary:
      type: object
      description: Complete financial breakdown in the three-bucket system
      properties:
        income:
          type: object
          properties:
            monthly_total:
              type: number
            sources:
              type: array
              items:
                type: object
                properties:
                  pattern:
                    type: string
                  monthly_amount:
                    type: number
                  frequency:
                    type: string
                    enum:
                    - monthly
                    - biweekly
                    - weekly
                    - quarterly
                    - semi-annual
                    - annual
                    - one-time
                  is_recurring:
                    type: boolean
        bills:
          type: object
          properties:
            monthly_total:
              type: number
            percentage:
              type: number
            items:
              type: array
              items:
                type: object
                properties:
                  pattern:
                    type: string
                  monthly_amount:
                    type: number
                  frequency:
                    type: string
                  is_recurring:
                    type: boolean
                  bill_group:
                    type:
                    - string
                    - 'null'
                    enum:
                    - housing
                    - utilities
                    - insurance
                    - subscriptions
                    - transportation
                    - debt
                    - medical
                    - childcare
                    - education
                    - null
        lifestyle:
          type: object
          properties:
            monthly_total:
              type: number
            percentage:
              type: number
        freedom:
          type: object
          properties:
            monthly_total:
              type: number
            percentage:
              type: number
        months_of_freedom:
          type: number
          description: Net savings (cash minus credit-card balances owed) divided by monthly Bills + Lifestyle
        total_balance:
          type: number
        top_recurring:
          type: array
          items:
            type: object
            properties:
              pattern:
                type: string
              bucket:
                type: string
                enum:
                - bills
                - lifestyle
                - income
                - ignore
              monthly_amount:
                type: number
              frequency:
                type: string
              bill_group:
                type:
                - string
                - 'null'
        unconfirmed_count:
          type: integer
        classification_confidence:
          type: number
          minimum: 0
          maximum: 1
    ConfirmBody:
      type: object
      required:
      - userId
      properties:
        userId:
          type: string
          format: uuid
          description: The user's unique identifier
        classifications:
          type: array
          description: Full agent-side classifications. Use this when the agent classified merchants from GET /api/onboarding/agent/transactions.
          items:
            type: object
            required:
            - pattern
            - bucket
            properties:
              pattern:
                type: string
                description: Merchant pattern (exact match)
              bucket:
                type: string
                enum:
                - bills
                - lifestyle
                - income
                - ignore
              is_recurring:
                type: boolean
              estimated_frequency:
                type: string
                enum:
                - monthly
                - biweekly
                - weekly
                - quarterly
                - semi-annual
                - annual
                - one-time
              confidence:
                type: number
                minimum: 0
                maximum: 1
              bill_group:
                type:
                - string
                - 'null'
                enum:
                - housing
                - utilities
                - insurance
                - subscriptions
                - transportation
                - debt
                - medical
                - childcare
                - education
                - null
        changes:
          type: array
          description: Optional adjustments to existing backend classifications. Omit to confirm all as-is.
          items:
            type: object
            required:
            - merchant_pattern
            - new_bucket
            properties:
              merchant_pattern:
                type: string
                description: The merchant pattern to reclassify (e.g. "SPOTIFY")
              new_bucket:
                type: string
                enum:
                - bills
                - lifestyle
                - income
                - ignore
                description: The new bucket to assign
        auto_confirm:
          type: boolean
          default: false
          description: Confirm only classifications with confidence >= 0.85 plus merchants named in changes; the rest stay unconfirmed and are returned as needs_review (lowest confidence first, up to 15). Default false confirms everything.
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            missingUserId:
              value:
                error: userId is required
            invalidJson:
              value:
                error: Invalid JSON body
    ServiceUnavailable:
      description: Database not configured
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Database not configured
    Unauthorized:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Invalid or missing X-RM-Agent-Key header
  securitySchemes:
    agentKey:
      type: apiKey
      in: header
      name: X-RM-Agent-Key
      description: API key for agent access. Issued on request during beta.