Pump.fun launch API quickstart: check credits and track a MassLauncher job
By MassLauncher · Updated · 3 min read
On MassLauncher, launching on Pump.fun through the API starts a job against your account credits. You can check the key, balance and saved profile before submitting anything that could create a coin.
Test your key without launching a coin
Create an API key in the signed-in app and store it in a server-side secret named MASSLAUNCHER_API_KEY. The key can spend account credits. Keep it out of browser bundles, logs and support screenshots. Send the key as a Bearer token (or in the X-API-Key header).
This GET reads your balance. A successful response contains credits, launches_today and deposit_pubkey. You do not need to deposit SOL, sign a transaction or queue a job to check authentication.
curl --fail-with-body --silent --show-error https://masslauncher.fun/api/v1/credits \
-H "Authorization: Bearer ${MASSLAUNCHER_API_KEY}"Match the launch request to a saved profile
Use GET /api/v1/coins with the same header and find the intended profile by name and symbol. Use its current index, a nonnegative integer. The example below is only a JSON body: it asks for one launch of the profile at index zero. Do not assume that is the profile you want.
POST /api/v1/launches is a live operation. Quantity must be an integer of at least one; the service caps it at the configured web launch maximum. Allow one credit per launched coin. An invalid profile index, a missing saved image or insufficient credits can produce HTTP 400. If you hit the daily or active-job limit, wait before starting another job.
{"coin_index": 0, "quantity": 1}Recover a job after a timeout
After an intentional submission, store job.job_id from the response. Read GET /api/v1/launches/{job_id} with that ID. Inspect status, success_count, failure_count, pending_count and results. A returned job ID means MassLauncher accepted the job; it does not mean every requested coin exists.
If the POST timed out before you got an ID, turn off automatic retries. GET /api/v1/launches lists recent jobs for this account. Compare their creation times, profile names, symbols and quantities with your submission. If two jobs look alike or the list is inconclusive, stop and reconcile the account history before submitting again. The v1 launch contract does not promise that repeating an identical POST reuses the first job.