Skip to content
ndStill is in development. These docs describe the v2 API as designed; the SDKs and the hosted MCP server are previews and not generally available.
Docs

Accounts API

ndStill accounts held at the partner bank: funding instructions, top-ups, rules and statements.

8 endpointsGenerated from the typed registry

Base URL https://api.ndstill.com/v2. Send Authorization: Bearer with a key, Ndstill-Version: 2026-11-01, and an Idempotency-Key on every POST. Conventions, scopes and errors are in the API overview and Errors and decline reasons. Examples come from the mock backend; the shapes are the TypeScript types in packages/api.

List accounts#

GET/v2/accounts
Query parameters all optional
  • cursorstring
  • limitnumber

    1–200, default 50.

  • qstring

    Free-text search over names, ids and descriptors.

  • sortstring

    Sort field, prefix "-" for descending ("-created_at" is the default).

  • created_gteTimestamp

    created_at >= (ISO).

  • created_lteTimestamp

    created_at <= (ISO).

Response list of Account

Returns a list envelope: object "list", data[], has_more, next_cursor (pass it back as cursor) and total when cheap to count. Items:

  • idId
  • object"account"
  • org_idId
  • created_atTimestamp
  • updated_atTimestampoptional
  • test_modebooleanoptional

    True for test-mode objects (simulations, sandbox).

  • namestring
  • ownerobject
    3 fields
    • typestring enum
      "org""agent"
    • idId
    • namestring
  • partner_bankstring

    Shown verbatim with the account: "Banking services provided by …, Member FDIC".

  • disclosurestring
  • routing_numberstring
  • account_number_last4string
  • balanceMoney

    An amount: integer minor units + asset.

    Money: 2 fields
    • amountnumber
    • assetAssetCode
      "USD""USDC""EUR""GBP"
  • availableMoney

    An amount: integer minor units + asset.

    Money: 2 fields
    • amountnumber
    • assetAssetCode
      "USD""USDC""EUR""GBP"
  • pendingMoney

    An amount: integer minor units + asset.

    Money: 2 fields
    • amountnumber
    • assetAssetCode
      "USD""USDC""EUR""GBP"
  • statusstring enum
    "pending""open""frozen""closed"
  • sub_ledgersobject[]

    Per-agent sub-ledgers inside this account.

    3 fields
    • agentRef

      Small reference used for denormalized names in lists (no N+1 lookups in tables).

      Ref: 2 fields
      • idId
      • namestring
    • balanceMoney

      An amount: integer minor units + asset.

      Money: 2 fields
      • amountnumber
      • assetAssetCode
        "USD""USDC""EUR""GBP"
    • allowanceMoney | null

      An amount: integer minor units + asset.

      Money: 2 fields
      • amountnumber
      • assetAssetCode
        "USD""USDC""EUR""GBP"
  • auto_top_upobject
    4 fields
    • enabledboolean
    • belowMoney | null

      An amount: integer minor units + asset.

      Money: 2 fields
      • amountnumber
      • assetAssetCode
        "USD""USDC""EUR""GBP"
    • amountMoney | null

      An amount: integer minor units + asset.

      Money: 2 fields
      • amountnumber
      • assetAssetCode
        "USD""USDC""EUR""GBP"
    • sourcestring | null
  • allowance_scheduleAllowanceScheduleEntry[]
    AllowanceScheduleEntry: 4 fields
    • agentRef

      Small reference used for denormalized names in lists (no N+1 lookups in tables).

      Ref: 2 fields
      • idId
      • namestring
    • amountMoney

      An amount: integer minor units + asset.

      Money: 2 fields
      • amountnumber
      • assetAssetCode
        "USD""USDC""EUR""GBP"
    • everystring enum
      "week""month"
    • next_run_atTimestamp | nulloptional
  • recent_top_upsTopUp[]

    Newest first. Pending top-ups count toward `pending`, not `available`.

    TopUp: 8 fields
    • idId
    • atTimestamp
    • methodTopUpMethod
      "card""ach""wire""usdc"
    • amountMoney

      An amount: integer minor units + asset.

      Money: 2 fields
      • amountnumber
      • assetAssetCode
        "USD""USDC""EUR""GBP"
    • statusstring enum
      "pending""settled""failed""returned"
    • sourcestring

      Where it came from ("Mercury checking ····2291", "Visa debit ····4242", "Wire ref ACME-7Q2").

    • expected_atTimestamp | null
    • settled_atTimestamp | null
  • linked_banksLinkedBank[]

    External bank accounts linked for ACH pulls (masked).

    LinkedBank: 3 fields
    • idId
    • namestring
    • last4string
Errors
  • 400invalid_request

    A query parameter is invalid.

  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example from the mock backend
Request
curl -X GET "https://api.ndstill.com/v2/accounts?limit=2" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Response 200
{
  "object": "list",
  "data": [
    {
      "id": "acct_01KFYEF2ME06XAB4EK595YGSS2",
      "object": "account",
      "org_id": "org_A99F918124609C9DAAACB209D8",
      "created_at": "2026-01-27T00:43:11.374Z",
      "name": "Operating",
      "owner": {
        "type": "org",
        "id": "org_A99F918124609C9DAAACB209D8",
        "name": "Acme Robotics"
      },
      "partner_bank": "Sample Partner Bank, N.A. (demo)",
      "disclosure": "Banking services provided by Sample Partner Bank, N.A., Member FDIC. Demo data.",
      "routing_number": "021000021",
      "account_number_last4": "1336",
      "balance": {
        "amount": 18432055,
        "asset": "USD"
      },
      "available": {
        "amount": 18394755,
        "asset": "USD"
      },
      "pending": {
        "amount": 118300,
        "asset": "USD"
      },
      "status": "open",
      "sub_ledgers": [],
      "auto_top_up": {
        "enabled": false,
        "below": null,
        "amount": null,
        "source": null
      },
      "allowance_schedule": [],
      "recent_top_ups": [],
      "linked_banks": []
    },
    {
      "id": "acct_01KHHYDEME9D4XFWX5S0F3GNY2",
      "object": "account",
      "org_id": "org_A99F918124609C9DAAACB209D8",
      "created_at": "2026-02-16T00:43:11.374Z",
      "name": "Agent spend",
      "owner": {
        "type": "org",
        "id": "org_A99F918124609C9DAAACB209D8",
        "name": "Acme Robotics"
      },
      "partner_bank": "Sample Partner Bank, N.A. (demo)",
      "disclosure": "Banking services provided by Sample Partner Bank, N.A., Member FDIC. Demo data.",
      "routing_number": "021000021",
      "account_number_last4": "5488",
      "balance": {
        "amount": 4218000,
        "asset": "USD"
      },
      "available": {
        "amount": 4001900,
        "asset": "USD"
      },
      "pending": {
        "amount": 127600,
        "asset": "USD"
      },
      "status": "open",
      "sub_ledgers": [
        {
          "agent": {
            "id": "agt_01KQ667RMEP9Y30VHM3RCA9HZN",
            "name": "Research orchestrator"
          },
          "balance": {
            "amount": 60200,
            "asset": "USD"
          },
          "allowance": {
            "amount": 250000,
            "asset": "USD"
          }
        },
        {
          "agent": {
            "id": "agt_01KQM4HZWEB7WBQNPK4NFJY5A0",
            "name": "Literature scout"
          },
          "balance": {
            "amount": 206500,
            "asset": "USD"
          },
          "allowance": null
        },
        {
          "agent": {
            "id": "agt_01KR356VCEP0FG7CVSJRS0QD2V",
            "name": "Data buyer"
          },
          "balance": {
            "amount": 331100,
            "asset": "USD"
          },
          "allowance": null
        }
      ],
      "auto_top_up": {
        "enabled": true,
        "below": {
          "amount": 1000000,
          "asset": "USD"
        },
        "amount": {
          "amount": 2500000,
          "asset": "USD"
        },
        "source": "Transfer from Operating"
      },
      "allowance_schedule": [
        {
          "agent": {
            "id": "agt_01KQ667RMEP9Y30VHM3RCA9HZN",
            "name": "Research orchestrator"
          },
          "amount": {
            "amount": 250000,
            "asset": "USD"
          },
          "every": "month",
          "next_run_at": "2026-12-01T09:00:00.000Z"
        },
        {
          "agent": {
            "id": "agt_01KTGQE08EZ4VT9QRAZH131H64",
            "name": "Hotel booker"
          },
          "amount": {
            "amount": 50000,
            "asset": "USD"
          },
          "every": "month",
          "next_run_at": "2026-12-01T09:00:00.000Z"
        },
        {
          "agent": {
            "id": "agt_01KW0P2WME52Y6RB8NQX9XBJ35",
            "name": "Ad buyer"
          },
          "amount": {
            "amount": 50000,
            "asset": "USD"
          },
          "every": "month",
          "next_run_at": "2026-12-01T09:00:00.000Z"
        }
      ],
      "recent_top_ups": [],
      "linked_banks": []
    }
  ],
  "has_more": false,
  "next_cursor": null,
  "total": 2
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

List statements#

GET/v2/statements
Query parameters all optional
  • account_idId
  • cursorstring
  • limitnumber

    1–200, default 50.

  • qstring

    Free-text search over names, ids and descriptors.

  • sortstring

    Sort field, prefix "-" for descending ("-created_at" is the default).

  • created_gteTimestamp

    created_at >= (ISO).

  • created_lteTimestamp

    created_at <= (ISO).

Response list of Statement

Returns a list envelope: object "list", data[], has_more, next_cursor (pass it back as cursor) and total when cheap to count. Items:

  • idId
  • object"statement"
  • org_idId
  • created_atTimestamp
  • updated_atTimestampoptional
  • test_modebooleanoptional

    True for test-mode objects (simulations, sandbox).

  • accountRef

    Small reference used for denormalized names in lists (no N+1 lookups in tables).

    Ref: 2 fields
    • idId
    • namestring
  • periodstring
  • openingMoney

    An amount: integer minor units + asset.

    Money: 2 fields
    • amountnumber
    • assetAssetCode
      "USD""USDC""EUR""GBP"
  • closingMoney

    An amount: integer minor units + asset.

    Money: 2 fields
    • amountnumber
    • assetAssetCode
      "USD""USDC""EUR""GBP"
  • document_urlstring
Errors
  • 400invalid_request

    A query parameter is invalid.

  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example from the mock backend
Request
curl -X GET "https://api.ndstill.com/v2/statements?limit=2" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Response 200
{
  "object": "list",
  "data": [
    {
      "id": "stmt_01M3TC5H00XN8K5RX3MNAK9RTX",
      "object": "statement",
      "org_id": "org_A99F918124609C9DAAACB209D8",
      "created_at": "2026-11-03T00:00:00.000Z",
      "account": {
        "id": "acct_01KFYEF2ME06XAB4EK595YGSS2",
        "name": "Operating"
      },
      "period": "2026-10",
      "opening": {
        "amount": 15337900,
        "asset": "USD"
      },
      "closing": {
        "amount": 3556400,
        "asset": "USD"
      },
      "document_url": "/demo/statements/acct_01KFYEF2ME06XAB4EK595YGSS2-2026-10.pdf"
    },
    {
      "id": "stmt_01M3TC5H000ATJ8H1WNRKHG1DP",
      "object": "statement",
      "org_id": "org_A99F918124609C9DAAACB209D8",
      "created_at": "2026-11-03T00:00:00.000Z",
      "account": {
        "id": "acct_01KHHYDEME9D4XFWX5S0F3GNY2",
        "name": "Agent spend"
      },
      "period": "2026-10",
      "opening": {
        "amount": 9548700,
        "asset": "USD"
      },
      "closing": {
        "amount": 6263800,
        "asset": "USD"
      },
      "document_url": "/demo/statements/acct_01KHHYDEME9D4XFWX5S0F3GNY2-2026-10.pdf"
    }
  ],
  "has_more": true,
  "next_cursor": "Mg==",
  "total": 6
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Retrieve an account#

GET/v2/accounts/{id}
Path parameters
  • idIdrequired

    A prefixed ID from this org.

Response Account

The same Account object as List accounts.

Errors
  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 404not_found

    No object with that id in this org.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example from the mock backend
Request
curl -X GET "https://api.ndstill.com/v2/accounts/acct_01KFYEF2ME06XAB4EK595YGSS2" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Response 200
{
  "id": "acct_01KFYEF2ME06XAB4EK595YGSS2",
  "object": "account",
  "org_id": "org_A99F918124609C9DAAACB209D8",
  "created_at": "2026-01-27T00:43:11.374Z",
  "name": "Operating",
  "owner": {
    "type": "org",
    "id": "org_A99F918124609C9DAAACB209D8",
    "name": "Acme Robotics"
  },
  "partner_bank": "Sample Partner Bank, N.A. (demo)",
  "disclosure": "Banking services provided by Sample Partner Bank, N.A., Member FDIC. Demo data.",
  "routing_number": "021000021",
  "account_number_last4": "1336",
  "balance": {
    "amount": 18432055,
    "asset": "USD"
  },
  "available": {
    "amount": 18394755,
    "asset": "USD"
  },
  "pending": {
    "amount": 118300,
    "asset": "USD"
  },
  "status": "open",
  "sub_ledgers": [],
  "auto_top_up": {
    "enabled": false,
    "below": null,
    "amount": null,
    "source": null
  },
  "allowance_schedule": [],
  "recent_top_ups": [],
  "linked_banks": []
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Retrieve a statement#

GET/v2/statements/{id}
Path parameters
  • idIdrequired

    A prefixed ID from this org.

Response Statement

The same Statement object as List statements.

Errors
  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 404not_found

    No object with that id in this org.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example from the mock backend
Request
curl -X GET "https://api.ndstill.com/v2/statements/stmt_01M3TC5H00XN8K5RX3MNAK9RTX" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Response 200
{
  "id": "stmt_01M3TC5H00XN8K5RX3MNAK9RTX",
  "object": "statement",
  "org_id": "org_A99F918124609C9DAAACB209D8",
  "created_at": "2026-11-03T00:00:00.000Z",
  "account": {
    "id": "acct_01KFYEF2ME06XAB4EK595YGSS2",
    "name": "Operating"
  },
  "period": "2026-10",
  "opening": {
    "amount": 15337900,
    "asset": "USD"
  },
  "closing": {
    "amount": 3556400,
    "asset": "USD"
  },
  "document_url": "/demo/statements/acct_01KFYEF2ME06XAB4EK595YGSS2-2026-10.pdf"
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Get funding instructions#

GET/v2/accounts/{id}/funding-instructions
Path parameters
  • idIdrequired

    A prefixed ID from this org.

Response FundingInstructions
  • object"funding_instructions"
  • account_idId
  • achobject
    4 fields
    • linkedLinkedBank[]
      LinkedBank: 3 fields
      • idId
      • namestring
      • last4string
    • arrivalstring
    • limit_per_dayMoney

      An amount: integer minor units + asset.

      Money: 2 fields
      • amountnumber
      • assetAssetCode
        "USD""USDC""EUR""GBP"
    • notestring
  • wireobject
    8 fields
    • beneficiary_namestring
    • bank_namestring
    • bank_addressstring
    • routing_numberstring
    • account_number_last4string
    • referencestring

      Put this in the wire memo so the money lands in the right account (identifier).

    • arrivalstring
    • notestring
  • cardobject
    5 fields
    • fee_bpsnumber
    • fee_fixedMoney

      An amount: integer minor units + asset.

      Money: 2 fields
      • amountnumber
      • assetAssetCode
        "USD""USDC""EUR""GBP"
    • limit_per_dayMoney

      An amount: integer minor units + asset.

      Money: 2 fields
      • amountnumber
      • assetAssetCode
        "USD""USDC""EUR""GBP"
    • arrivalstring
    • notestring
  • usdcobject
    6 fields
    • chainstring enum
      "base""ethereum""solana""polygon"
    • addressstring
    • custodianstring
    • minimumMoney

      An amount: integer minor units + asset.

      Money: 2 fields
      • amountnumber
      • assetAssetCode
        "USD""USDC""EUR""GBP"
    • arrivalstring
    • notestring
Errors
  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 404not_found

    No object with that id in this org.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example from the mock backend
Request
curl -X GET "https://api.ndstill.com/v2/accounts/acct_01KFYEF2ME06XAB4EK595YGSS2/funding-instructions" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Response 200
{
  "object": "funding_instructions",
  "account_id": "acct_01KFYEF2ME06XAB4EK595YGSS2",
  "ach": {
    "linked": [],
    "arrival": "1 to 3 business days",
    "limit_per_day": {
      "amount": 25000000,
      "asset": "USD"
    },
    "note": "ndStill pulls from your linked bank. The money shows as pending until it clears, and a bank can still return an ACH pull for a few days after that."
  },
  "wire": {
    "beneficiary_name": "Sample Partner Bank, N.A. FBO Acme Robotics",
    "bank_name": "Sample Partner Bank, N.A. (demo)",
    "bank_address": "100 Demo Street, Wilmington, DE 19801 (demo)",
    "routing_number": "021000021",
    "account_number_last4": "1336",
    "reference": "NDS-9E2B50",
    "arrival": "Same business day if it arrives before 17:00",
    "note": "Send from your own bank. Put the reference in the memo so the wire lands in this account."
  },
  "card": {
    "fee_bps": 290,
    "fee_fixed": {
      "amount": 30,
      "asset": "USD"
    },
    "limit_per_day": {
      "amount": 250000,
      "asset": "USD"
    },
    "arrival": "Available right away",
    "note": "Debit cards only. The card processor's fee is shown before you confirm (demo figures)."
  },
  "usdc": {
    "chain": "base",
    "address": "0xdfd79a1757fdf5d50e854f071d3708856580c397",
    "custodian": "Circle (demo)",
    "minimum": {
      "amount": 10000000,
      "asset": "USDC"
    },
    "arrival": "About 2 minutes after the transfer confirms",
    "note": "Send USDC on Base only. The custodian redeems it 1:1 to US dollars and credits this account (demo). Other tokens or networks can be lost."
  }
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Set an account's funding rules#

POST/v2/accounts/{id}/funding-rules
Path parameters
  • idIdrequired

    A prefixed ID from this org.

Request body FundingRulesBody
  • auto_top_upobject
    4 fields
    • enabledbooleanrequired
    • belowMoney | nullrequired

      An amount: integer minor units + asset.

      Money: 2 fields
      • amountnumberrequired
      • assetAssetCoderequired
        "USD""USDC""EUR""GBP"
    • amountMoney | nullrequired

      An amount: integer minor units + asset.

      Money: 2 fields
      • amountnumberrequired
      • assetAssetCoderequired
        "USD""USDC""EUR""GBP"
    • sourcestring | nullrequired
  • allowance_scheduleobject[]
    3 fields
    • agent_idIdrequired
    • amountMoneyrequired

      An amount: integer minor units + asset.

      Money: 2 fields
      • amountnumberrequired
      • assetAssetCoderequired
        "USD""USDC""EUR""GBP"
    • everystring enumrequired
      "week""month"
  • step_upstring
Response Account

The same Account object as List accounts.

Errors
  • 400invalid_request

    A field is missing or invalid; fields names each one.

  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 404not_found

    No object with that id in this org.

  • 409conflict

    The object changed or already exists, or the Idempotency-Key was reused with a different body.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example from the mock backend
Request
curl -X POST "https://api.ndstill.com/v2/accounts/acct_01KFYEF2ME06XAB4EK595YGSS2/funding-rules" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "step_up": "passkey_assertion_from_webauthn"
  }'
Response 200
{
  "id": "acct_01KFYEF2ME06XAB4EK595YGSS2",
  "object": "account",
  "org_id": "org_A99F918124609C9DAAACB209D8",
  "created_at": "2026-01-27T00:43:11.374Z",
  "name": "Operating",
  "owner": {
    "type": "org",
    "id": "org_A99F918124609C9DAAACB209D8",
    "name": "Acme Robotics"
  },
  "partner_bank": "Sample Partner Bank, N.A. (demo)",
  "disclosure": "Banking services provided by Sample Partner Bank, N.A., Member FDIC. Demo data.",
  "routing_number": "021000021",
  "account_number_last4": "1336",
  "balance": {
    "amount": 18432055,
    "asset": "USD"
  },
  "available": {
    "amount": 18394755,
    "asset": "USD"
  },
  "pending": {
    "amount": 168300,
    "asset": "USD"
  },
  "status": "open",
  "sub_ledgers": [],
  "auto_top_up": {
    "enabled": false,
    "below": null,
    "amount": null,
    "source": null
  },
  "allowance_schedule": [],
  "recent_top_ups": [
    {
      "id": "tu_224d52e99bcdcf857e2f",
      "at": "2026-11-23T00:43:13.566Z",
      "method": "ach",
      "amount": {
        "amount": 50000,
        "asset": "USD"
      },
      "status": "pending",
      "source": "Linked bank ····0000",
      "expected_at": "2026-11-25T00:43:13.566Z",
      "settled_at": null
    }
  ],
  "linked_banks": [],
  "updated_at": "2026-11-23T00:43:13.574Z"
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Reveal account numbers#

POST/v2/accounts/{id}/reveal
Path parameters
  • idIdrequired

    A prefixed ID from this org.

Request body JSON
  • step_upstringrequired
Response AccountDetails
  • object"account_details"
  • account_idId
  • routing_numberstring
  • account_numberstring
  • expires_atTimestamp
Errors
  • 400invalid_request

    A field is missing or invalid; fields names each one.

  • 400step_up_required

    A person must confirm with a passkey first, when the org requires it.

  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 404not_found

    No object with that id in this org.

  • 409conflict

    The object changed or already exists, or the Idempotency-Key was reused with a different body.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example from the mock backend
Request
curl -X POST "https://api.ndstill.com/v2/accounts/acct_01KFYEF2ME06XAB4EK595YGSS2/reveal" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "step_up": "passkey_assertion_from_webauthn"
  }'
Response 200
{
  "object": "account_details",
  "account_id": "acct_01KFYEF2ME06XAB4EK595YGSS2",
  "routing_number": "021000021",
  "account_number": "546585851336",
  "expires_at": "2026-11-23T00:44:13.572Z"
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Top up an account#

POST/v2/accounts/{id}/top-up
Path parameters
  • idIdrequired

    A prefixed ID from this org.

Request body TopUpBody
  • amountMoneyrequired

    An amount: integer minor units + asset.

    Money: 2 fields
    • amountnumberrequired
    • assetAssetCoderequired
      "USD""USDC""EUR""GBP"
  • methodTopUpMethodrequired
    "card""ach""wire""usdc"
  • source_idId
  • referencestring
Response Account

The same Account object as List accounts.

Errors
  • 400invalid_request

    A field is missing or invalid; fields names each one.

  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 404not_found

    No object with that id in this org.

  • 409conflict

    The object changed or already exists, or the Idempotency-Key was reused with a different body.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example from the mock backend
Request
curl -X POST "https://api.ndstill.com/v2/accounts/acct_01KFYEF2ME06XAB4EK595YGSS2/top-up" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": {
      "amount": 50000,
      "asset": "USD"
    },
    "method": "ach"
  }'
Response 200
{
  "id": "acct_01KFYEF2ME06XAB4EK595YGSS2",
  "object": "account",
  "org_id": "org_A99F918124609C9DAAACB209D8",
  "created_at": "2026-01-27T00:43:11.374Z",
  "name": "Operating",
  "owner": {
    "type": "org",
    "id": "org_A99F918124609C9DAAACB209D8",
    "name": "Acme Robotics"
  },
  "partner_bank": "Sample Partner Bank, N.A. (demo)",
  "disclosure": "Banking services provided by Sample Partner Bank, N.A., Member FDIC. Demo data.",
  "routing_number": "021000021",
  "account_number_last4": "1336",
  "balance": {
    "amount": 18432055,
    "asset": "USD"
  },
  "available": {
    "amount": 18394755,
    "asset": "USD"
  },
  "pending": {
    "amount": 168300,
    "asset": "USD"
  },
  "status": "open",
  "sub_ledgers": [],
  "auto_top_up": {
    "enabled": false,
    "below": null,
    "amount": null,
    "source": null
  },
  "allowance_schedule": [],
  "recent_top_ups": [
    {
      "id": "tu_224d52e99bcdcf857e2f",
      "at": "2026-11-23T00:43:13.566Z",
      "method": "ach",
      "amount": {
        "amount": 50000,
        "asset": "USD"
      },
      "status": "pending",
      "source": "Linked bank ····0000",
      "expected_at": "2026-11-25T00:43:13.566Z",
      "settled_at": null
    }
  ],
  "linked_banks": [],
  "updated_at": "2026-11-23T00:43:13.566Z"
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.