Skip to main content

GET /flexi/initiated

List bots awaiting payment and surface the payment address + required amount.

One-stop read for the pre-funding step — no separate payment-address call needed.

Use case

Show the user exactly how much to send and where, right after /flexi/initialize.

Response 200 (SOL-paid bots)

{
"initiatedBots": [
{
"_id": "...", "sGroupId": "...", "eStatus": "1",
"sTokenAddress": "...", "sPoolId": "...", "ePoolChosen": "RAYDIUM",
"nSOL": 5, "nWaitTime": 30, "nMaxWaitTime": 120,
"nMinSwapSol": 0.1, "nMaxSwapSol": 1.5
}
],
"paymentAddress": "<solana_pubkey>",
"amountToPaySol": 5.0
}

Response 200 (token-paid bots)

Returned when the initiated bot group uses token payment (bIsToken: true).

{
"initiatedBots": [ ... ],
"paymentAddress": "<solana_pubkey>",
"amountToPayToken": 1234.5678,
"tokenSymbol": "USDC",
"amountToPaySol": 0.01,
"totalBotsValueInSol": 5.0
}

amountToPaySol on token-paid groups is a small fee top-up (0.01 SOL) sent alongside the token amount.

Response 200 (no initiated bots)

{ "initiatedBots": [] }

Errors

StatusMeaning
500Pool lookup failed while pricing token payment.

Example

curl -H "Authorization: Bearer $ACCESS" -H "x-user-id: $USER_ID" \
"$BASE_URL/flexi/initiated"