For the complete documentation index, see llms.txt. This page is also available as Markdown.

Direct API

Make your first authenticated request in under a minute.

1. Create an API key

  1. Sign in to the Agent Console.

  2. Create a sub-wallet if you don't have one yet.

  3. Open API Keys → New key. Pick:

    • Name — something memorable, e.g. quickstart-laptop.

    • Permissionsread is enough for this quickstart.

    • Allowed chains — leave the default (all supported) or restrict.

    • Daily / monthly limits — any value; reads don't consume them.

  4. 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 trade permission and a funded sub-wallet (USDC + a small amount of native gas, or use gas_swap on 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

  1. Your X-Api-Key resolved to a sub-wallet.

  2. Spend limits were checked (here, the value is denominated and counted).

  3. The recipient address was screened.

  4. ShredPay co-signed alongside Privy (2/2 quorum).

  5. The signed tx was broadcast on Base and an ID was returned.

Next steps

Last updated