POST /classic/initialize
Create a new group of classic bots for the selected packages.
Only one pending group can exist at a time per client — once the request passes validation, any previous unpaid group is canceled.
Pricing comes from packages, not free-form SOL amounts (see
/classic/packages).
Use case
User picks one or more packages from a product page, you submit the
ids + token/pool, and display the resulting sGroupId + deposit
address to fund.
Body
| Field | Type | Required | Description |
|---|---|---|---|
aSelectedPackageIds | string[] | yes | 1–20 active standard package ids (see /classic/packages). The same id may appear more than once to order a package several times. |
aSelectedMicroIds | string[] | no | Up to 20 active micro-package ids. |
sTokenAddress | string | yes | Token mint the bots trade. |
sPoolId | string | yes | Pool the bots trade against. |
ePoolChosen | string | yes | Pool type: RAYDIUM, METEORA, PUMPFUN, PUMPSWAP, LAUNCHLAB, DBC, MOONIT, MOONSHOT, HEAVEN. |
sMode | string | yes | Controls how long the bot runs: FAST (shortest), NORMAL (~2× longer), STEADY (longest — single wallet, largest swap sizes). |
aAllowedSwapModes | string[] | no | Swap methods for the standard bots: a non-empty subset of BUY_SELL, MULTI_WALLET, JITO, JUPITER_MULTI_WALLET, MULTI_BUY, JUPITER_ONE_WALLET, no duplicates. Default: BUY_SELL, MULTI_WALLET, JITO, JUPITER_MULTI_WALLET minus the methods the pair cannot run. See Flexi swap modes for the Jupiter methods. Micro bots always use MULTI_WALLET and ignore this field. |
Response 200
{
"message": "Bots initialized",
"sGroupId": "<13-char-id>",
"paymentAddress": "<solana_pubkey>"
}
paymentAddress is the SOL deposit address to fund.
Errors
| Status | Meaning |
|---|---|
400 | Validation failed, or one or more package ids were not found or are inactive (or a micro id is not a micro package). |
500 | Pool validation or persistence failed. |
Example
curl -X POST "$BASE_URL/classic/initialize" \
-H "Authorization: Bearer $ACCESS" \
-H "x-user-id: $USER_ID" \
-H "Content-Type: application/json" \
-d '{
"aSelectedPackageIds": ["<pkgId>"],
"sTokenAddress": "<mint>",
"sPoolId": "<pool>",
"ePoolChosen": "RAYDIUM",
"sMode": "NORMAL"
}'