Direct API
Make your first authenticated request in under a minute.
1. Create an API key
Sign in to the Agent Console.
Create a sub-wallet if you don't have one yet.
Open API Keys → New key. Pick:
Name — something memorable, e.g.
quickstart-laptop.Permissions —
readis enough for this quickstart.Allowed chains — leave the default (all supported) or restrict.
Daily / monthly limits — any value; reads don't consume them.
Copy the
sk_live_…value. It is shown only once.
export SHREDPAY_API_KEY="sk_live_..."
export SHREDPAY_BASE_URL="https://agent-api.shredpay.xyz"2. Fetch your wallet addresses
curl "$SHREDPAY_BASE_URL/api/wallet/address" \
-H "X-Api-Key: $SHREDPAY_API_KEY"{
"addresses": {
"evm": "0xA1b2C3d4e5F60718293A4B5c6d7E8f9012345678"
},
"sub_wallet_id": "sw_01HRZK..."
}The same EVM address is used across every chain.
3. Check a balance
balance is always in the smallest unit (here, 1.5 USDC = 1,500,000).
4. Send a transaction
Requires a key with
tradepermission and a funded sub-wallet (USDC + a small amount of native gas, or usegas_swapon Base).
The example below transfers 0.10 USDC to another address on Base.
Poll status with GET /api/tx/{tx_id} or — better — register a webhook and let ShredPay push the confirmation.
What just happened
Your
X-Api-Keyresolved to a sub-wallet.Spend limits were checked (here, the value is denominated and counted).
The recipient address was screened.
ShredPay co-signed alongside Privy (2/2 quorum).
The signed tx was broadcast on Base and an ID was returned.
Next steps
Send a Transaction guide — full request/response with error handling.
Swap Tokens guide — sponsored swaps via Router.
API Reference — every endpoint and field.
Last updated