betteroff-finance Money API

The money API from betteroff-finance — 9 operation(s) for money.

Operations 9

GET /money/activity Get money activity #
POST /money/connect Post money connect #
POST /money/disconnect Post money disconnect #
POST /money/transfers Post money transfers #
POST /money/requests/{id}/approve Post money requests id approve #
POST /money/rules Post money rules #
POST /money/rules/{id}/stop Post money rules id stop #
POST /money/operations Post money operations #
POST /money/payees Post money payees #

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/betteroff-finance:betteroff-finance-money-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

betteroff-finance-money-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: BetterOff Money API
  version: 0.5.0+cd65185c
servers:
- url: https://api.betteroff.finance
tags:
- name: money
paths:
  /money/activity:
    get:
      operationId: getMoneyActivity
      tags:
      - money
      security:
      - session: []
      responses:
        '200':
          description: Success
        default:
          description: Problem details
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      summary: Get money activity
      x-summary-source: derived
  /money/connect:
    post:
      operationId: postMoneyConnect
      tags:
      - money
      security:
      - session: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                includeAcceptance:
                  default: false
                  type: boolean
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: https://json-schema.org/draft/2020-12/schema
                type: object
                properties:
                  url:
                    type: string
                    format: uri
                required:
                - url
                additionalProperties: false
        default:
          description: Problem details
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      summary: Post money connect
      x-summary-source: derived
  /money/disconnect:
    post:
      operationId: postMoneyDisconnect
      tags:
      - money
      security:
      - session: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: https://json-schema.org/draft/2020-12/schema
                type: object
                properties:
                  ok:
                    type: boolean
                    const: true
                required:
                - ok
                additionalProperties: false
        default:
          description: Problem details
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      summary: Post money disconnect
      x-summary-source: derived
  /money/transfers:
    post:
      operationId: postMoneyTransfers
      tags:
      - money
      security:
      - session: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                sourceAccountId:
                  type: string
                  pattern: ^eac_[0-9a-f]{32}$
                destinationAccountId:
                  type: string
                  pattern: ^eac_[0-9a-f]{32}$
                amountCents:
                  type: integer
                  minimum: 100
                  maximum: 9007199254740991
                requestId:
                  type: string
                  format: uuid
                  pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
              required:
              - sourceAccountId
              - destinationAccountId
              - amountCents
              - requestId
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: https://json-schema.org/draft/2020-12/schema
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                required:
                - id
                additionalProperties: false
        '201':
          description: Success
          content:
            application/json:
              schema:
                $schema: https://json-schema.org/draft/2020-12/schema
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                required:
                - id
                additionalProperties: false
        default:
          description: Problem details
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      summary: Post money transfers
      x-summary-source: derived
  /money/requests/{id}/approve:
    post:
      operationId: postMoneyRequestsIdApprove
      tags:
      - money
      security:
      - session: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                digest:
                  type: string
                  pattern: ^[0-9a-f]{64}$
              required:
              - digest
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: https://json-schema.org/draft/2020-12/schema
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                required:
                - id
                additionalProperties: false
        '201':
          description: Success
          content:
            application/json:
              schema:
                $schema: https://json-schema.org/draft/2020-12/schema
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                required:
                - id
                additionalProperties: false
        default:
          description: Problem details
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      summary: Post money requests id approve
      x-summary-source: derived
  /money/rules:
    post:
      operationId: postMoneyRules
      tags:
      - money
      security:
      - session: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                sourceAccountId:
                  type: string
                  pattern: ^eac_[0-9a-f]{32}$
                destinationAccountId:
                  type: string
                  pattern: ^eac_[0-9a-f]{32}$
                amountCents:
                  type: integer
                  minimum: 100
                  maximum: 9007199254740991
                requestId:
                  type: string
                  format: uuid
                  pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                cadence:
                  type: string
                  enum:
                  - weekly
                  - biweekly
                  - monthly
                day:
                  type: integer
                  minimum: 0
                  maximum: 28
              required:
              - sourceAccountId
              - destinationAccountId
              - amountCents
              - requestId
              - cadence
              - day
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: https://json-schema.org/draft/2020-12/schema
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                required:
                - id
                additionalProperties: false
        '201':
          description: Success
          content:
            application/json:
              schema:
                $schema: https://json-schema.org/draft/2020-12/schema
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                required:
                - id
                additionalProperties: false
        default:
          description: Problem details
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      summary: Post money rules
      x-summary-source: derived
  /money/rules/{id}/stop:
    post:
      operationId: postMoneyRulesIdStop
      tags:
      - money
      security:
      - session: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: https://json-schema.org/draft/2020-12/schema
                type: object
                properties:
                  ok:
                    type: boolean
                    const: true
                required:
                - ok
                additionalProperties: false
        default:
          description: Problem details
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      summary: Post money rules id stop
      x-summary-source: derived
  /money/operations:
    post:
      operationId: postMoneyOperations
      tags:
      - money
      security:
      - session: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              oneOf:
              - type: object
                properties:
                  requestId:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  description:
                    default: ''
                    type: string
                    maxLength: 80
                  action:
                    type: string
                    const: pay
                  walletId:
                    type: string
                    pattern: ^wal_[0-9a-f]{32}$
                  amountCents:
                    type: integer
                    exclusiveMinimum: 0
                    maximum: 50000
                  counterparty:
                    oneOf:
                    - type: object
                      properties:
                        type:
                          type: string
                          const: email
                        value:
                          type: string
                          maxLength: 254
                          format: email
                          pattern: ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
                      required:
                      - type
                      - value
                      additionalProperties: false
                    - type: object
                      properties:
                        type:
                          type: string
                          const: phone
                        value:
                          type: string
                          pattern: ^\+[1-9]\d{7,14}$
                      required:
                      - type
                      - value
                      additionalProperties: false
                    - type: object
                      properties:
                        type:
                          type: string
                          const: handle
                        value:
                          type: string
                          pattern: ^@[a-z0-9._]{3,30}(-[a-z0-9._]{1,30})?$
                      required:
                      - type
                      - value
                      additionalProperties: false
                required:
                - requestId
                - action
                - walletId
                - amountCents
                - counterparty
                additionalProperties: false
              - type: object
                properties:
                  requestId:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  description:
                    default: ''
                    type: string
                    maxLength: 80
                  action:
                    type: string
                    const: request
                  walletId:
                    type: string
                    pattern: ^wal_[0-9a-f]{32}$
                  amountCents:
                    type: integer
                    exclusiveMinimum: 0
                    maximum: 50000
                  counterparty:
                    oneOf:
                    - type: object
                      properties:
                        type:
                          type: string
                          const: email
                        value:
                          type: string
                          maxLength: 254
                          format: email
                          pattern: ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
                      required:
                      - type
                      - value
                      additionalProperties: false
                    - type: object
                      properties:
                        type:
                          type: string
                          const: phone
                        value:
                          type: string
                          pattern: ^\+[1-9]\d{7,14}$
                      required:
                      - type
                      - value
                      additionalProperties: false
                    - type: object
                      properties:
                        type:
                          type: string
                          const: handle
                        value:
                          type: string
                          pattern: ^@[a-z0-9._]{3,30}(-[a-z0-9._]{1,30})?$
                      required:
                      - type
                      - value
                      additionalProperties: false
                required:
                - requestId
                - action
                - walletId
                - amountCents
                - counterparty
                additionalProperties: false
              - type: object
                properties:
                  requestId:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  description:
                    default: ''
                    type: string
                    maxLength: 80
                  action:
                    type: string
                    const: deposit
                  walletId:
                    type: string
                    pattern: ^wal_[0-9a-f]{32}$
                  amountCents:
                    type: integer
                    minimum: 100
                    maximum: 50000
                  externalAccountId:
                    type: string
                    pattern: ^eac_[0-9a-f]{32}$
                required:
                - requestId
                - action
                - walletId
                - amountCents
                - externalAccountId
                additionalProperties: false
              - type: object
                properties:
                  requestId:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  description:
                    default: ''
                    type: string
                    maxLength: 80
                  action:
                    type: string
                    const: withdraw
                  walletId:
                    type: string
                    pattern: ^wal_[0-9a-f]{32}$
                  amountCents:
                    type: integer
                    exclusiveMinimum: 0
                    maximum: 50000
                  externalAccountId:
                    type: string
                    pattern: ^eac_[0-9a-f]{32}$
                required:
                - requestId
                - action
                - walletId
                - amountCents
                - externalAccountId
                additionalProperties: false
              - type: object
                properties:
                  requestId:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  description:
                    default: ''
                    type: string
                    maxLength: 80
                  action:
                    type: string
                    const: internal
                  walletId:
                    type: string
                    pattern: ^wal_[0-9a-f]{32}$
                  amountCents:
                    type: integer
                    exclusiveMinimum: 0
                    maximum: 50000
                  destinationWalletId:
                    type: string
                    pattern: ^wal_[0-9a-f]{32}$
                required:
                - requestId
                - action
                - walletId
                - amountCents
                - destinationWalletId
                additionalProperties: false
              - type: object
                properties:
                  requestId:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  description:
                    default: ''
                    type: string
                    maxLength: 80
                  action:
                    type: string
                    const: checkout
                  amountCents:
                    type: integer
                    minimum: 50
                    maximum: 50000
                required:
                - requestId
                - action
                - amountCents
                additionalProperties: false
              - type: object
                properties:
                  requestId:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  description:
                    default: ''
                    type: string
                    maxLength: 80
                  action:
                    type: string
                    const: fulfill
                  walletId:
                    type: string
                    pattern: ^wal_[0-9a-f]{32}$
                  amountCents:
                    type: integer
                    exclusiveMinimum: 0
                    maximum: 50000
                  resourceId:
                    type: string
                    pattern: ^prq_[0-9a-f]{32}$
                required:
                - requestId
                - action
                - walletId
                - amountCents
                - resourceId
                additionalProperties: false
              - type: object
                properties:
                  requestId:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  description:
                    default: ''
                    type: string
                    maxLength: 80
                  action:
                    type: string
                    const: pay_bill
                  walletId:
                    type: string
                    pattern: ^wal_[0-9a-f]{32}$
                  amountCents:
                    type: integer
                    exclusiveMinimum: 0
                    maximum: 50000
                  payeeAccountId:
                    type: string
                    pattern: ^epa_[0-9a-f]{32}$
                  reference:
                    default: ''
                    type: string
                    maxLength: 80
                    pattern: ^[\w .,#/-]*$
                required:
                - requestId
                - action
                - walletId
                - amountCents
                - payeeAccountId
                additionalProperties: false
              - type: object
                properties:
                  requestId:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  description:
                    default: ''
                    type: string
                    maxLength: 80
                  action:
                    type: string
                    const: cancel_bill
                  resourceId:
                    type: string
                    pattern: ^ach_[0-9a-f]{32}$
                required:
                - requestId
                - action
                - resourceId
                additionalProperties: false
              - type: object
                properties:
                  requestId:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  description:
                    default: ''
                    type: string
                    maxLength: 80
                  action:
                    type: string
                    const: cancel_payment
                  resourceId:
                    type: string
                    pattern: ^pay_[0-9a-f]{32}$
                required:
                - requestId
                - action
                - resourceId
                additionalProperties: false
              - type: object
                properties:
                  requestId:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  description:
                    default: ''
                    type: string
                    maxLength: 80
                  action:
                    type: string
                    const: cancel_request
                  resourceId:
                    type: string
                    pattern: ^prq_[0-9a-f]{32}$
                required:
                - requestId
                - action
                - resourceId
                additionalProperties: false
              - type: object
                properties:
                  requestId:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  description:
                    default: ''
                    type: string
                    maxLength: 80
                  action:
                    type: string
                    const: cancel_checkout
                  resourceId:
                    type: string
                    pattern: ^pmi_[0-9a-f]{32}$
                required:
                - requestId
                - action
                - resourceId
                additionalProperties: false
              - type: object
                properties:
                  requestId:
                    type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  description:
                    default: ''
                    type: string
                    maxLength: 80
                  action:
                    type: string
                    const: refund
                  resourceId:
                    type: string
                    pattern: ^cpy_[0-9a-f]{32}$
                  amountCents:
                    type: integer
                    exclusiveMinimum: 0
                    maximum: 50000
                  reason:
                    type: string
                    enum:
                    - duplicate
                    - fraudulent
                    - requestedByPayer
                required:
                - requestId
                - action
                - resourceId
                - amountCents
                - reason
                additionalProperties: false
      responses:
        '200':
          description: Success
        default:
          description: Problem details
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      summary: Post money operations
      x-summary-source: derived
  /money/payees:
    post:
      operationId: postMoneyPayees
      tags:
      - money
      security:
      - session: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                requestId:
                  type: string
                  format: uuid
                  pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                kind:
                  type: string
                  enum:
                  - business
                  - individual
                name:
                  type: string
                  minLength: 2
                  maxLength: 100
                accountType:
                  type: string
                  enum:
                  - checking
                  - savings
                accountNumber:
                  type: string
                  pattern: ^\d{4,17}$
                routingNumber:
                  type: string
              required:
              - requestId
              - kind
              - name
              - accountType
              - accountNumber
              - routingNumber
              additionalProperties: false
      responses:
        '200':
          description: Success
        default:
          description: Problem details
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      summary: Post money payees
      x-summary-source: derived
components:
  schemas:
    ProblemDetails:
      $schema: https://json-schema.org/draft/2020-12/schema
      type: object
      properties:
        type:
          type: string
          description: Always "about:blank"; branch on `code`.
        title:
          type: string
        status:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        detail:
          type: string
        code:
          type: string
          description: Stable UPPER_SNAKE code.
        error:
          type: string
          description: Older clients' copy of `detail`.
        message:
          type: string
          description: Older clients' copy of `detail`.
        requestId:
          description: Diagnostic only; quote it to support.
          type: string
        instance:
          type: string
        details:
          type: object
          propertyNames:
            type: string
          additionalProperties: {}
      required:
      - type
      - title
      - status
      - detail
      - code
      - error
      - message
      additionalProperties: {}
      description: RFC 9457 problem details. Some refusals add fields; ignore ones you don't know.
  securitySchemes:
    session:
      type: http
      scheme: bearer
      description: 'The BetterOff app acting for its signed-in user. Not available to integrations: Better Auth session tokens and browser session cookies are rejected. Use an API token or agent OAuth.'
    apiToken:
      type: http
      scheme: bearer
      description: Personal API token (bo_pat_), created in BetterOff settings with the scopes it may use.
    agentOAuth:
      type: openIdConnect
      openIdConnectUrl: https://app.betteroff.finance/api/auth/.well-known/openid-configuration
      description: Agent OAuth grant; the same token and scopes as /mcp.