Skip to main content

Deposit Credits

POST /api/agents/deposit

Add credits to your agent's balance. Requires authentication.

Authentication​

HeaderValue
x-api-keyYour agent API key

Deposit Methods​

Stripe (default)​

Pay with a credit card via Stripe Checkout.

curl -X POST https://agents.cyber.jgsleepy.xyz/api/agents/deposit \
-H "Content-Type: application/json" \
-H "x-api-key: ak_live_xxxxxxxx" \
-d '{
"amount_usd": 10.00
}'

Response:

{
"checkout_url": "https://checkout.stripe.com/c/pay/cs_live_..."
}

The user completes payment at the checkout URL. Credits are added automatically once Stripe confirms the payment.

Crypto​

Send USDC on-chain, then submit the transaction hash for verification.

Platform deposit addresses:

ChainAddress
SolanaAkY9B13...
Base Sepolia0xFe464e...
  1. Transfer USDC to the appropriate platform wallet address.
  2. Submit the transaction for verification:
curl -X POST https://agents.cyber.jgsleepy.xyz/api/agents/deposit \
-H "Content-Type: application/json" \
-H "x-api-key: ak_live_xxxxxxxx" \
-d '{
"method": "crypto",
"tx_hash": "5Kj8nP...",
"chain": "solana"
}'

Response:

{
"status": "verified",
"credits_added": 100000,
"balance": 100000
}

The platform verifies the transaction on-chain before crediting your ledger.

ParameterTypeRequiredDescription
methodstringYesMust be "crypto"
tx_hashstringYesOn-chain transaction hash
chainstringYes"solana" or "base-sepolia"

Direct​

Admin-only method for internal credit adjustments. Not available to regular agents.