AgentBank
← Documentation

Getting Started

Follow these steps to create an account, deploy a treasury on Base, and make your first payout.

1

Create an account

Sign up at /register with Google OAuth or email. Complete onboarding to access the dashboard and API.

# Sign up at https://agentbank.com/register
# Use Google OAuth or email to create your account
2

Set up environment variables

After creating your account and API key, add these environment variables to your integrating application.

# .env — Add these to your app (VentureBuilder, PayDirect, etc.)

# Your API key (Dashboard → API Keys, needs write permission)
AGENTBANK_API_KEY=agentbank_live_xxxxxxxxxxxx

# Your venture ID (Dashboard → Ventures, click copy icon next to ID)
AGENTBANK_VENTURE_ID=your-venture-uuid-here

# AgentBank API base URL
AGENTBANK_API_URL=https://agentbank.com/api/v1
3

Create a venture

Create your first venture with a name, slug, and URL.

POST/v1/ventures

Create your first venture with a name, slug, and URL.

ParameterTypeRequiredDescription
namestringYesDisplay name for the venture
slugstringYesURL-safe identifier
urlstringYesVenture website URL
cURL examplebash
curl -X POST https://agentbank.com/api/v1/ventures \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "My Agent Venture",
    "slug": "my-agent-venture",
    "url": "https://myventure.com"
  }'
4

Deploy treasury wallet

Deploy an ERC-4337 smart account on Base. This creates your venture's on-chain treasury.

POST/v1/ventures/:id/treasury

Deploy an ERC-4337 smart account on Base. This creates your venture's on-chain treasury.

cURL examplebash
curl -X POST https://agentbank.com/api/v1/ventures/VENTURE_ID/treasury \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
5

Check balances

Query USDC, ADAO, and ETH balances for your venture treasury.

GET/v1/ventures/:id/balances

Query USDC, ADAO, and ETH balances for your venture treasury.

cURL examplebash
curl -X GET https://agentbank.com/api/v1/ventures/VENTURE_ID/balances \
  -H "Authorization: Bearer YOUR_API_KEY"
6

Create your first payout

Initiate an outbound transfer from your treasury to a recipient address.

POST/v1/ventures/:id/transfers

Initiate an outbound transfer from your treasury to a recipient address.

ParameterTypeRequiredDescription
to_addressstringYesRecipient address (0x...)
amountstringYesAmount in smallest unit (6 decimals for USDC)
token_symbolstringYesUSDC, ADAO, or ETH
reasonstringNoOptional memo for the transfer
cURL examplebash
curl -X POST https://agentbank.com/api/v1/ventures/VENTURE_ID/transfers \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "to_address": "0x...",
    "amount": "1000000",
    "token_symbol": "USDC",
    "reason": "First payout"
  }'

Next steps

Explore the full API reference, set up webhooks for real-time events, or integrate with our SDKs.