> ## Documentation Index
> Fetch the complete documentation index at: https://monid.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get top-up configuration

> Fees and limits for wallet top-ups, plus the workspace's applied promotion (tiers, presets) and the auto-reload checkout offer.



## OpenAPI

````yaml https://monid.ai/openapi.json get /v1/wallet/topup
openapi: 3.1.0
info:
  title: Monid API
  version: 0.1.0
  description: >-
    Agentic payment platform for data — agents discover and buy data on demand.
    Authenticated `/v1/*` routes accept a Monid API key or Clerk JWT as a Bearer
    token. All errors return `{ code, message }`. List endpoints use cursor
    pagination; consult each operation schema for its last-page cursor encoding.
servers:
  - url: https://api.monid.ai
    description: Production
  - url: https://monid.ai
    description: Public registry alias (public/v1 only)
security: []
paths:
  /v1/wallet/topup:
    get:
      tags:
        - Wallet
      summary: Get top-up configuration
      description: >-
        Fees and limits for wallet top-ups, plus the workspace's applied
        promotion (tiers, presets) and the auto-reload checkout offer.
      parameters:
        - $ref: '#/components/parameters/AgentModelHeader'
        - $ref: '#/components/parameters/AgentHarnessHeader'
        - $ref: '#/components/parameters/AgentSessionIdHeader'
      responses:
        '200':
          description: Top-up fees, limits, promotion tiers, and presets
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletTopupConfigResponse'
        '401':
          description: Unauthorized — missing or invalid credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden — caller has no workspace or no access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: >-
            Rate limited (errorCode `RATE_LIMITED`, message `Rate limited. Retry
            after Ns.`) — the `Retry-After` header carries whole seconds until
            the caller may retry; `RateLimit-Limit/-Remaining/-Reset` describe
            the binding limit as numbers only (also sent on allowed responses
            that matched a rule; responses that matched no rule, or an
            `unlimited` exemption, carry none of them). Applies to every
            authenticated `/v1` route (per API key / user / workspace); POST
            /v1/run additionally enforces per-provider/endpoint run limits.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: >-
            Wallet not ACTIVE (provisioning, failed, or being set up). Transient
            states include a Retry-After header (seconds).
          headers:
            Retry-After:
              description: Seconds to wait before retrying (present for transient states).
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletUnavailableError'
      security:
        - Bearer:
            - wallet:read
components:
  parameters:
    AgentModelHeader:
      name: X-Monid-Agent-Model
      in: header
      required: false
      description: >-
        Model driving the calling agent. Optional; a value that is empty, longer
        than 256 characters or not printable ASCII is ignored (never an error).
      schema:
        type: string
        maxLength: 256
      example: claude-opus-5-5
    AgentHarnessHeader:
      name: X-Monid-Agent-Harness
      in: header
      required: false
      description: >-
        Agent harness or client making the call (e.g. a coding agent, an agent
        framework). Optional; a value that is empty, longer than 256 characters
        or not printable ASCII is ignored (never an error).
      schema:
        type: string
        maxLength: 256
      example: claude-code
    AgentSessionIdHeader:
      name: X-Monid-Agent-Session-Id
      in: header
      required: false
      description: >-
        Caller-side session identifier, so the calls of one agent session
        (discover → inspect → run → polling) can be correlated. Optional; a
        value that is empty, longer than 256 characters or not printable ASCII
        is ignored (never an error).
      schema:
        type: string
        maxLength: 256
      example: 01JABCDEF0123456789XYZ
  schemas:
    WalletTopupConfigResponse:
      type: object
      properties:
        minAmount:
          type: number
          description: Minimum top-up amount in dollars.
          example: 5
        maxAmount:
          type: number
          description: >-
            Maximum top-up amount in dollars. Omitted when no app-level cap is
            configured.
          example: 1000
        currency:
          type: string
          enum:
            - USD
          description: Top-up currency (currently always USD).
        processingFee:
          type: object
          properties:
            type:
              type: string
              enum:
                - PERCENTAGE
            rate:
              type: number
              description: Processing fee rate (e.g. 0.05 for 5%).
              example: 0.05
            description:
              type: string
              example: Processing fee (5%)
          required:
            - type
            - rate
            - description
        promotion:
          type: object
          properties:
            key:
              type: string
              description: Promotion key (config-defined).
              example: firstTopup
            label:
              type: string
              description: Server-defined display text for the badge.
              example: New user promotion
          required:
            - key
            - label
          description: >-
            Active promotion. Absent when the baseline (`default`) applies — no
            promotion badge.
        tiers:
          type: array
          items:
            type: object
            properties:
              minAmount:
                type: number
                description: Inclusive tier minimum in dollars.
                example: 100
              rate:
                type: number
                description: Bonus rate applied to the actual amount.
                example: 0.15
            required:
              - minAmount
              - rate
          description: >-
            Bonus tiers for the applied promotion, ascending. Any amount rounds
            DOWN to a tier; the rate applies to the actual amount.
        presets:
          type: array
          items:
            type: number
          description: >-
            Preset amounts in dollars, display order. Bonuses are client-derived
            from `tiers` (round-down tier match).
        defaultPreset:
          type: number
          description: Pre-selected preset amount in dollars.
          example: 100
        autoReload:
          type: object
          properties:
            enabled:
              type: boolean
              description: >-
                Whether auto-reload is currently enabled on the workspace. True
                means checkout shows a passive 'auto-reload is on' note instead
                of an enrollment toggle — disabling lives on the wallet page.
            topUpToAmount:
              type: number
              description: >-
                Balance (dollars) each automatic reload tops up TO — the same
                'Top up to' amount the wallet settings panel shows. Metronome
                charges this minus the current balance.
              example: 20
            threshold:
              type: number
              description: Balance level (dollars) that triggers a reload.
              example: 5
          required:
            - enabled
            - topUpToAmount
            - threshold
      required:
        - minAmount
        - currency
        - processingFee
        - tiers
        - presets
        - defaultPreset
        - autoReload
    Error:
      type: object
      properties:
        code:
          type: integer
          description: HTTP status code, duplicated in the body.
          example: 400
        message:
          type: string
          description: Human-readable error description.
          example: Bad Request
        hints:
          type: object
          additionalProperties:
            anyOf:
              - type: string
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - command
                      - discover
                      - inspect
                      - run
                      - getRun
                      - stop
                      - releaseResource
                      - topup
                  command:
                    type: string
                  query:
                    type: string
                  provider:
                    type: string
                  endpoint:
                    type: string
                  runId:
                    type: string
                  resourceId:
                    type: string
                  stripe:
                    type: string
                  dashboard:
                    type: string
                  docs:
                    type: string
                  comment:
                    type: string
                required:
                  - kind
          description: >-
            Optional next actions, rendered for the calling client like
            run-response hints (e.g. the paid TinyFish version on a free-quota
            429 — spending permission required).
        errorCode:
          type: string
          enum:
            - RATE_LIMITED
            - X402_WORKSPACE_RESOURCES
            - X402_WORKSPACE_ONLY
            - X402_ACCRUING_COST
            - X402_EXCEEDS_SETTLEMENT_WINDOW
            - X402_VALIDITY_WINDOW_TOO_SHORT
            - X402_UNBOUNDED_PRICE
            - X402_PROMOTION
            - INSUFFICIENT_SCOPE
            - WALLET_INSUFFICIENT_FUNDS
            - IDENTITY_PROVIDER_UNKNOWN
            - IDENTITY_LINK_REQUIRES_SESSION
            - IDENTITY_LINK_STATE_INVALID
            - IDENTITY_VERIFICATION_FAILED
            - IDENTITY_PROVIDER_UNAVAILABLE
            - IDENTITY_ALREADY_LINKED
            - IDENTITY_USER_ALREADY_LINKED
            - IDENTITY_LINK_RATE_LIMITED
            - IDENTITY_REQUIRED
            - PROMO_IDENTITY_REDEEMED
            - PROMO_REDEEM_REQUIRES_SESSION
            - PROMO_CODE_REDEEMED_BY_WORKSPACE
            - PROMO_CODE_REDEEMED_BY_USER
          description: >-
            OPTIONAL machine-readable discriminant from the documented
            `ApiErrorCode` registry. Absent on legacy errors; clients MUST treat
            unknown values as absent.
      required:
        - code
        - message
    WalletUnavailableError:
      type: object
      properties:
        code:
          type: integer
          description: HTTP status code, duplicated in the body.
          example: 503
        message:
          type: string
          description: Human-readable error description.
          example: Wallet is being provisioned.
        walletStatus:
          type:
            - string
            - 'null'
          description: >-
            Wallet provisioning status (e.g. PROVISIONING, FAILED). Null when
            the wallet does not exist yet.
          example: PROVISIONING
      required:
        - code
        - message
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      description: >-
        Monid API key (`Authorization: Bearer mk_...`) or Clerk-issued JWT. Each
        operation lists the ONE scope an API key needs. `{resource}:*` grants
        every action on that resource; `*` grants everything; Clerk sessions
        hold `*`. Operations with an empty list need no scope. Scope catalog:
        `GET /v1/api-keys/scopes`.
      x-aep-authentication-method: api-key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.