REST API

API Reference

Program every part of the platform — deploy coins, manage wallets, claim earnings, and drive the sniper and auto-deploy engines. JSON in, JSON out. 35 endpoints across 10 groups.

Base URL

pumplaunch.io

Auth

Session cookie

Format

JSON

Rate limit

100 / min

Authentication

Programmatic endpoints (marked API key, under /api/v1) authenticate with your personal API key — get it in your profile and send it as Authorization: Bearer <key>. In-app endpoints (marked Session) use the NextAuth session cookie. Public endpoints need no auth. Private keys are never returned by any endpoint except the PIN-gated export.

Example

curl https://pumplaunch.io/api/settings

Programmatic API (v1)

4

Authenticated with your personal API key — grab it in your profile and send it as Authorization: Bearer <key> (or x-api-key). Actions run on your account's API wallet.

POST/api/v1/deployAPI key

Launch a token from your API wallet.

Request body

{
  "name": "My Token",
  "symbol": "TKN",
  "imageUrl": "https://.../logo.png",
  "buyAmount": 0.1
}

Response 200

{
  "success": true,
  "mint": "6ybz...pump",
  "signature": "...",
  "pumpFunUrl": "https://pump.fun/coin/...",
  "solscanUrl": "https://solscan.io/token/..."
}
POST/api/v1/buyAPI key

Buy a token on the bonding curve.

Request body

{ "mint": "...", "amountSol": 0.1, "slippageBps": 1500 }

Response 200

{ "success": true, "signature": "...", "solscanUrl": "https://solscan.io/tx/..." }
POST/api/v1/sellAPI key

Sell a percentage of your holding (1–100, default 100).

Request body

{ "mint": "...", "percent": 100, "slippageBps": 1500 }

Response 200

{ "success": true, "signature": "...", "percent": 100, "solscanUrl": "https://solscan.io/tx/..." }
POST/api/v1/watchAPI key

Recent tweets (≤24h) from your watched accounts + platform defaults.

Request body

{ "accounts": ["elonmusk", "pumpdotfun"] }

Response 200

{ "tweets": [ ... ], "accounts": [ ... ] }

Deploy

1

Launch a token to pump.fun from an account wallet. Signing happens server-side — private keys never leave the server.

POST/api/wallets/deploySession

Create and launch a coin. Supports bundle or sniper mode, dev buy, extra buyer wallets, Mayhem, cashback, charity, auto-sell, multi-deploy, and vanity mints.

Request body

{
  "walletId": "wlt_abc123",
  "name": "My Token",
  "symbol": "TKN",
  "description": "Launched on Pumplaunch.io",
  "imageUrl": "https://.../logo.png",
  "buyAmount": 0.1,
  "launchMode": "bundle",
  "mayhemMode": false,
  "cashback": false,
  "buyers": [{ "walletId": "wlt_x", "amountSol": 0.05 }],
  "autoSell": { "enabled": true, "delaySeconds": 300, "percent": 100 }
}

Response 200

{
  "success": true,
  "mint": "6ybz...pump",
  "signature": "5Nq8...",
  "mode": "bundle",
  "feeCharged": true,
  "pumpFunUrl": "https://pump.fun/coin/6ybz...pump",
  "solscanUrl": "https://solscan.io/token/6ybz...pump"
}

Wallets

10

Account-bound custodial wallets. Keys are AES-encrypted at rest and returned only through the PIN-gated export.

GET/api/walletsSession

List the account's wallets. Keys are never returned.

Response 200

{ "wallets": [
  { "id": "wlt_abc123", "address": "9xQ...", "name": "Dev", "createdAt": 1737600000000 }
] }
POST/api/walletsSession

Create a new wallet, encrypted and stored on the account.

Request body

{ "name": "Sniper 1" }

Response 200

{ "wallet": { "id": "wlt_new", "address": "3aF...", "name": "Sniper 1" } }
PATCH/api/wallets/{id}Session

Rename a wallet.

Request body

{ "name": "Treasury" }

Response 200

{ "success": true }
DELETE/api/wallets/{id}Session

Remove a wallet from the account. Export the key first if you still need it.

Response 200

{ "success": true }
POST/api/wallets/importSession

Import an existing base58 private key (encrypted server-side).

Request body

{ "name": "Imported", "privateKey": "base58..." }

Response 200

{ "wallet": { "id": "wlt_i", "address": "7kL...", "name": "Imported" } }
POST/api/wallets/exportSession

Export a wallet's private key. Requires the account export PIN.

Request body

{ "id": "wlt_abc123", "pin": "your-pin" }

Response 200

{ "privateKey": "base58..." }
GET/api/wallets/pinSession

Whether an export PIN is set. POST { pin } to set it, DELETE to clear.

Response 200

{ "hasPin": true }
POST/api/wallets/distributeSession

Fund several wallets from one source wallet.

Request body

{
  "fromWalletId": "wlt_hub",
  "targets": [{ "walletId": "wlt_x", "amountSol": 0.1 }]
}

Response 200

{ "results": [{ "walletId": "wlt_x", "ok": true, "signature": "..." }] }
POST/api/wallets/consolidateSession

Sweep the balance of several wallets into one (minus a small fee reserve).

Request body

{ "toWalletId": "wlt_hub", "fromWalletIds": ["wlt_x", "wlt_y"] }

Response 200

{ "results": [{ "walletId": "wlt_x", "ok": true, "sweptSol": 0.42 }] }
GET/api/wallets/holdingsSession

Token-2022 balances held by a wallet, enriched with pump.fun name/symbol/image.

Query

?walletId=wlt_abc123

Response 200

{ "walletId": "wlt_abc123", "address": "9xQ...", "holdings": [
  { "mint": "...", "uiAmount": 1200000, "name": "My Token", "symbol": "TKN" }
] }

Earnings

3

Read and claim creator fees and trading cashback accrued by your wallets. Claims are signed server-side.

GET/api/wallets/earningsSession

Claimable creator fees and cashback (SOL) per wallet on the account.

Response 200

{ "earnings": [
  { "walletId": "wlt_abc123", "creatorFeesSol": 0.184, "cashbackSol": 0.021 }
] }
POST/api/wallets/claim-feesSession

Sweep accrued creator fees to the wallet.

Request body

{ "walletId": "wlt_abc123" }

Response 200

{ "success": true, "signature": "...", "solscanUrl": "https://solscan.io/tx/..." }
POST/api/wallets/claim-cashbackSession

Claim accrued trading cashback to the wallet.

Request body

{ "walletId": "wlt_abc123" }

Response 200

{ "success": true, "signature": "...", "solscanUrl": "https://solscan.io/tx/..." }

Trading

2

Sell holdings and inspect scheduled auto-sells.

POST/api/wallets/sellSession

Sell a percentage of a wallet's holding of a mint (1–100; 100 sells all).

Request body

{ "walletId": "wlt_abc123", "mint": "...", "percent": 50, "slippageBps": 1500 }

Response 200

{ "success": true, "signature": "...", "percent": 50, "solscanUrl": "https://solscan.io/tx/..." }
GET/api/wallets/auto-sellsSession

Pending auto-sell jobs for the account.

Response 200

{ "jobs": [{ "mint": "...", "sellAt": 1737600300000, "percent": 100 }] }

Automation

8

Server-side engines that buy or deploy on their own. Sniper watches for mints and keywords; Auto-deploy launches when a watched account tweets a match.

GET/api/sniperSession

List sniper tasks with live status.

Response 200

{ "tasks": [{ "id": "tsk_1", "type": "keyword", "keyword": "doge", "active": true, "status": "armed" }] }
POST/api/sniperSession

Arm a sniper task — snipe a mint, or auto-buy new coins matching a keyword.

Request body

{
  "walletId": "wlt_abc123",
  "type": "keyword",
  "keyword": "doge",
  "amountSol": 0.1,
  "maxBuys": 3,
  "slippageBps": 1500
}

Response 200

{ "task": { "id": "tsk_1", "active": true, "status": "armed" } }
PATCH/api/sniper/{id}Session

Pause or resume a task.

Request body

{ "active": false }

Response 200

{ "success": true }
DELETE/api/sniper/{id}Session

Delete a sniper task.

Response 200

{ "success": true }
GET/api/automationsSession

List auto-deploy automations with live status.

Response 200

{ "automations": [{ "id": "aut_1", "keywords": ["moon"], "active": true, "deploysDone": 0 }] }
POST/api/automationsSession

Arm an auto-deploy automation from watched accounts + trigger keywords.

Request body

{
  "walletId": "wlt_abc123",
  "accounts": ["elonmusk"],
  "keywords": ["doge", "moon"],
  "buyAmountSol": 0.05,
  "launchMode": "bundle",
  "maxDeploys": 1
}

Response 200

{ "automation": { "id": "aut_1", "active": true } }
PATCH/api/automations/{id}Session

Pause or resume an automation.

Request body

{ "active": false }

Response 200

{ "success": true }
DELETE/api/automations/{id}Session

Delete an automation.

Response 200

{ "success": true }

Watch & Tweets

3

The realtime tweet feed and Twitter lookups that power the terminal and automations.

GET/api/watch/feedPublic

Recent tweets from the default accounts plus your own, newest first, with media.

Query

?accounts=elonmusk,pumpdotfun

Response 200

{ "tweets": [...], "accounts": ["elonmusk", "pumpdotfun"], "source": "syndication" }
GET/api/watch/accountsPublic

Default watched accounts and trigger keywords.

Response 200

{ "accounts": ["pumpdotfun"], "keywords": ["launch"] }
GET/api/tweets/searchPublic

Search tweets (q), a user's tweets (username), or one tweet (tweetId).

Query

?q=memecoin

Response 200

{ "tweets": [
  { "id": "...", "text": "...", "authorUsername": "...", "likeCount": 100, "url": "..." }
] }

Token library

1

A continuously-scraped index of pump.fun tokens, searchable by word or matched against a tweet.

GET/api/libraryPublic

Top tokens by market cap; add ?q=word to search or ?match=text to word-match a tweet.

Query

?q=doge

Response 200

{ "tokens": [{ "mint": "...", "name": "Doge", "symbol": "DOGE", "image": "..." }] }

AI

2

Generate token metadata and images from a tweet. Uses the operator's configured model key.

POST/api/generatePublic

Derive a name, symbol, description, and image prompt from a tweet.

Request body

{ "tweet": { "text": "...", "authorName": "...", "authorUsername": "..." } }

Response 200

{ "metadata": { "name": "...", "symbol": "...", "description": "...", "imagePrompt": "..." } }
POST/api/generate-imageSession

Generate a token logo. Returns a base64 data URL.

Request body

{ "prompt": "a shiba astronaut" }

Response 200

{ "image": "data:image/png;base64,..." }

System

1

Public configuration status. No secrets are ever returned.

GET/api/settingsPublic

Operator RPC and whether AI / Twitter integrations are configured.

Response 200

{ "solanaRpc": "https://...", "hasTwitter": true, "hasOpenAI": false }

Errors

Failures return the matching HTTP status and a JSON body with a single error string. Messages are safe to surface to users.

{ "error": "walletId is required" }
200Success.
400Invalid or missing parameters.
401Not signed in — a valid session is required.
404Resource (e.g. wallet) not found.
500Unexpected server or on-chain error.

Build on Pumplaunch

Sign in to get a session and start calling protected endpoints.

Sign in