Funding sources API
Everything an agent can spend from, ndStill-held or connected, plus the money overview.
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 funding sources#
/v2/funding-sources- kindstring
- 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).
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"funding_source"
- org_idId
- created_atTimestamp
- updated_atTimestampoptional
- test_modebooleanoptional
True for test-mode objects (simulations, sandbox).
- namestring
- kindFundingSourceKind
"bank""cloud""spend_platform""ai_provider""wallet""checkout""ndstill_account""connected_card_program" - connectionRef | null
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- account_idId | null
- wallet_idId | null
- control_levelstring enum
null"authorize""issue""observe_stop" - balanceMoney | null
Balance where the rail exposes one (ndStill accounts, banks, wallets).
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- agents_with_accessnumber
- statusstring enum
"active""frozen""disconnected"
- 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.
curl -X GET "https://api.ndstill.com/v2/funding-sources?limit=2" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "list",
"data": [
{
"id": "fs_01KHHYDEME7D9A5AA3XYHBJD5E",
"object": "funding_source",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-02-16T00:43:11.374Z",
"name": "Agent spend (ndStill account)",
"kind": "ndstill_account",
"connection": null,
"account_id": "acct_01KHHYDEME9D4XFWX5S0F3GNY2",
"wallet_id": null,
"control_level": "authorize",
"balance": {
"amount": 4218000,
"asset": "USD"
},
"agents_with_access": 15,
"status": "active"
},
{
"id": "fs_01KW0P2WMEFAT3W1FF2V4WC2PV",
"object": "funding_source",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-06-26T00:43:11.374Z",
"name": "Anthropic (admin key)",
"kind": "ai_provider",
"connection": {
"id": "con_01KW0P2WMEQNDEC441S2F7SYQZ",
"name": "Anthropic"
},
"account_id": null,
"wallet_id": null,
"control_level": "observe_stop",
"balance": null,
"agents_with_access": 6,
"status": "active"
}
],
"has_more": true,
"next_cursor": "Mg==",
"total": 11
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Retrieve a funding source#
/v2/funding-sources/{id}- idIdrequired
A prefixed ID from this org.
The same FundingSource object as List funding sources.
- 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.
curl -X GET "https://api.ndstill.com/v2/funding-sources/fs_01KHHYDEME7D9A5AA3XYHBJD5E" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"id": "fs_01KHHYDEME7D9A5AA3XYHBJD5E",
"object": "funding_source",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-02-16T00:43:11.374Z",
"name": "Agent spend (ndStill account)",
"kind": "ndstill_account",
"connection": null,
"account_id": "acct_01KHHYDEME9D4XFWX5S0F3GNY2",
"wallet_id": null,
"control_level": "authorize",
"balance": {
"amount": 4218000,
"asset": "USD"
},
"agents_with_access": 15,
"status": "active"
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Get the money overview#
/v2/money/overview- object"money_overview"
- ndstill_balanceMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- accountsobject[]
5 fields
- idId
- namestring
- 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"
- pendingMoneyoptional
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- connectedobject[]
7 fields
- connectionRef
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- kindConnectorClass
"bank""cloud""ndstill_card_program""card_program""spend_platform""ai_provider""ai_gateway""wallet""checkout""card_network""accounting" - balanceMoney | null
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- spend_mtdMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- balance_notestring | nulloptional
Why there's no balance ("Ramp doesn't share balances with connected apps").
- control_levelstring enumoptional
"authorize""issue""observe_stop" - statusstring enumoptional
"connected""syncing""error""disconnected"
- upcoming_payoutsobject[]
5 fields
- idId
- payeestring
- amountMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- atTimestamp
- statusstring enumoptional
"pending""submitted""settled""failed""returned""pending_approval""canceled"
- alertsobject[]
4 fields
- levelstring enum
"info""danger""warn" - messagestring
- hrefstring | null
- action_labelstring | nulloptional
- walletsobject[]optional
USDC wallets (never added to USD totals).
4 fields
- idId
- namestring
- chainstring enum
"base""ethereum""solana""polygon" - balanceMoney
An amount: integer minor units + asset.
Money: 2 fields
- amountnumber
- assetAssetCode
"USD""USDC""EUR""GBP"
- balance_historyobject[]optional
End-of-day total across ndStill accounts, last 30 days, oldest first (USD minor units).
2 fields
- datestring
- amountnumber
- 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.
curl -X GET "https://api.ndstill.com/v2/money/overview" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "money_overview",
"ndstill_balance": {
"amount": 22650055,
"asset": "USD"
},
"accounts": [
{
"id": "acct_01KFYEF2ME06XAB4EK595YGSS2",
"name": "Operating",
"balance": {
"amount": 18432055,
"asset": "USD"
},
"available": {
"amount": 18394755,
"asset": "USD"
},
"pending": {
"amount": 118300,
"asset": "USD"
}
},
{
"id": "acct_01KHHYDEME9D4XFWX5S0F3GNY2",
"name": "Agent spend",
"balance": {
"amount": 4218000,
"asset": "USD"
},
"available": {
"amount": 4001900,
"asset": "USD"
},
"pending": {
"amount": 127600,
"asset": "USD"
}
}
],
"connected": [
{
"connection": {
"id": "con_01KNZJ8ZMEPSJCB8ZQKYZ7K5WW",
"name": "Stripe Issuing"
},
"kind": "card_program",
"balance": {
"amount": 6125000,
"asset": "USD"
},
"spend_mtd": {
"amount": 524507,
"asset": "USD"
},
"balance_note": null,
"control_level": "authorize",
"status": "connected"
},
{
"connection": {
"id": "con_01KQ667RMEPRF87EQEW9XS3VQE",
"name": "Ramp"
},
"kind": "spend_platform",
"balance": null,
"spend_mtd": {
"amount": 3883118,
"asset": "USD"
},
"balance_note": "Ramp doesn't share balances with connected apps.",
"control_level": "issue",
"status": "syncing"
},
{
"connection": {
"id": "con_01KRCT6HMETPT7ANTR7YQXBQTJ",
"name": "Mercury"
},
"kind": "bank",
"balance": {
"amount": 41288000,
"asset": "USD"
},
"spend_mtd": {
"amount": 4349632,
"asset": "USD"
},
"balance_note": null,
"control_level": "authorize",
"status": "connected"
}
],
"upcoming_payouts": [
{
"id": "po_01M81YSY0ECEJSPB0A5HJ74D0Z",
"payee": "Jordan Rivera (contractor)",
"amount": {
"amount": 627900,
"asset": "USD"
},
"at": "2026-11-23T21:00:00.000Z",
"status": "pending_approval"
},
{
"id": "po_01M82KD3RE9TK4DMFK786B3TYN",
"payee": "Northside Design LLC",
"amount": {
"amount": 520300,
"asset": "USD"
},
"at": "2026-11-23T23:00:00.000Z",
"status": "pending_approval"
},
{
"id": "po_01M82PTZCE5QZZ3T2K3XE2C20A",
"payee": "Lumen Translation",
"amount": {
"amount": 883200,
"asset": "USD"
},
"at": "2026-11-24T19:00:00.000Z",
"status": "pending"
}
],
"alerts": [
{
"level": "danger",
"message": "A $840.00 payout to Harbor Office Leasing was returned: Insufficient funds at the receiving account.",
"href": "/money/payouts?tab=orders&payout=po_01M6J051ME96FAG13KBK51PV9N",
"action_label": "Open payout"
},
{
"level": "warn",
"message": "Ramp: Transactions are syncing 40 minutes behind.",
"href": "/money/connections/con_01KQ667RMEPRF87EQEW9XS3VQE",
"action_label": "Open connection"
},
{
"level": "warn",
"message": "2 payouts are waiting for approval.",
"href": "/money/payouts?tab=orders&status=pending_approval",
"action_label": "Review"
}
],
"wallets": [
{
"id": "wal_01KYDY0EMEWQ1QSA801D6NAPA4",
"name": "Agent USDC wallet",
"chain": "base",
"balance": {
"amount": 2707242967,
"asset": "USDC"
}
},
{
"id": "wal_01KV6Y3PME9W6BE3S68F8E8MPA",
"name": "Treasury USDC",
"chain": "base",
"balance": {
"amount": 18250000000,
"asset": "USDC"
}
},
{
"id": "wal_01M01DYTMEPJ2AS3Z98G7QYQ44",
"name": "Solana pilot wallet",
"chain": "solana",
"balance": {
"amount": 412500000,
"asset": "USDC"
}
}
],
"balance_history": [
{
"date": "2026-10-25",
"amount": 28580893
},
{
"date": "2026-10-26",
"amount": 28520264
},
{
"date": "2026-10-27",
"amount": 28333147
}
]
}Runs against the in-browser mock with a test key. Nothing leaves your browser.