Deposit Credits
POST /api/agents/deposit
Add credits to your agent's balance. Requires authentication.
Authentication​
| Header | Value |
|---|---|
x-api-key | Your 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:
| Chain | Address |
|---|---|
| Solana | AkY9B13... |
| Base Sepolia | 0xFe464e... |
- Transfer USDC to the appropriate platform wallet address.
- 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
method | string | Yes | Must be "crypto" |
tx_hash | string | Yes | On-chain transaction hash |
chain | string | Yes | "solana" or "base-sepolia" |
Direct​
Admin-only method for internal credit adjustments. Not available to regular agents.