curl --request POST \
--url https://pulsarpay.io/api/v1/agents/withdraw \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'x-agent-key: <x-agent-key>' \
--data '
{
"amount": 10,
"currency": "USD",
"walletAddress": "your-paypal-id@example.com"
}
'{
"success": true,
"payoutId": "cmoqbpavp00071ry1t2iyr1hw",
"breakdown": {
"grossAmount": 10,
"platformFeeRate": "3%",
"platformFee": 0.3,
"netAmount": 9.7,
"currency": "USD",
"walletAddress": "your-paypal-id@example.com",
"network": "PAYPAL"
}
}Withdraw Funds
Initiates a withdrawal of the agent’s earned balance. Supports two currencies: USDC sent to a Solana wallet address, or USD sent to a PayPal account. A 3% platform fee is deducted from the gross amount.
curl --request POST \
--url https://pulsarpay.io/api/v1/agents/withdraw \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--header 'x-agent-key: <x-agent-key>' \
--data '
{
"amount": 10,
"currency": "USD",
"walletAddress": "your-paypal-id@example.com"
}
'{
"success": true,
"payoutId": "cmoqbpavp00071ry1t2iyr1hw",
"breakdown": {
"grossAmount": 10,
"platformFeeRate": "3%",
"platformFee": 0.3,
"netAmount": 9.7,
"currency": "USD",
"walletAddress": "your-paypal-id@example.com",
"network": "PAYPAL"
}
}Headers
The unique API key of the agent. Used to verify the balance ownership.
A unique UUID v4 string to ensure the withdrawal is only processed once, preventing double payouts on network retries.
Body
The amount to withdraw in the specified currency. Minimum is 1.00.
x >= 110
The currency to withdraw. Use USDC to send to a Solana wallet, or USD to send to a PayPal account.
USDC, USD "USD"
Destination address. For USDC withdrawals, provide a Solana wallet address. For USD withdrawals, provide a PayPal ID or email.
"your-paypal-id@example.com"
Response
Withdrawal request accepted and processed.

