{"openapi":"3.1.0","info":{"title":"SANTA FACTORY Public API","version":"1.0.0","description":"Public Solana/Pump.fun integration API. No API key required. Wallet signatures authorize creation. Shared per-process limits: 300 requests/minute; 30 writes/minute; 10 prepares/minute, plus existing launch safeguards. Acknowledgement is not finality. Never retry with a replacement launch after an uncertain submit."},"servers":[{"url":"https://santafactor.com/api/public/v1"}],"paths":{"/config":{"get":{"operationId":"getPublicApiConfig","summary":"Launch readiness and current protocol rules","description":"Read ready/issues before offering token creation. No account or API key required. New launches use Pump.fun, not Raydium LaunchLab.","responses":{"200":{"description":"Current server launch configuration.","content":{"application/json":{"schema":{"type":"object","required":["ready","issues","rewardSymbol","reserveSol","minSwapSol","maxSwapSol"],"properties":{"assets":{"type":"array","items":{"type":"object","required":["symbol","mint","name","decimals"],"properties":{"symbol":{"type":"string"},"displaySymbol":{"type":"string","description":"Human ticker; display only, never a unique identity."},"category":{"type":"string","enum":["xstock","custom"]},"logoUrl":{"type":"string","description":"Public logo URL pinned to the exact mint; display only, optional."},"mint":{"type":"string"},"name":{"type":"string"},"decimals":{"type":"integer"}}}},"ready":{"type":"boolean"},"issues":{"type":"array","items":{"type":"string"}},"rewardSymbol":{"type":"string"},"reserveSol":{"type":"number"},"minSwapSol":{"type":"number"},"maxSwapSol":{"type":"number"},"capabilities":{"type":"object","required":["activeVenue","activeQuoteMint","customPairsEnabled","meteoraEnabled","stakingEnabled","advancedRewardsEnabled","newFeeModelEnabled","plannedFeeBps","blockers"],"description":"Server-authoritative launch capabilities. New launches use only the SANTA FACTORY quote mint, never a user-selected pair. A null activeQuoteMint means the CA and financial integration are pending and creation is disabled. Historical signed policies are unchanged.","properties":{"activeVenue":{"type":"string","enum":["pump"]},"activeQuoteMint":{"type":["string","null"]},"customPairsEnabled":{"type":"boolean"},"meteoraEnabled":{"type":"boolean"},"stakingEnabled":{"type":"boolean"},"advancedRewardsEnabled":{"type":"boolean"},"newFeeModelEnabled":{"type":"boolean"},"santaMinHold":{"type":"integer"},"plannedFeeBps":{"type":"object","deprecated":true,"description":"Retired CAPITAL model metadata, not the allocation for new SANTA launches.","required":["holders","capitalStakers","protocol","buyback"],"properties":{"holders":{"type":"integer"},"capitalStakers":{"type":"integer"},"protocol":{"type":"integer"},"buyback":{"type":"integer"}}},"plannedSantaFeeBps":{"type":"object","description":"SANTA allocation after execution costs: 70% launch holders, 30% SANTA holders, zero separate platform share. Never mutates historical policies.","required":["launchHolders","santaHolders","platform"],"properties":{"launchHolders":{"type":"integer"},"santaHolders":{"type":"integer"},"platform":{"type":"integer"}}},"blockers":{"type":"array","items":{"type":"string"}}}}}}}}},"default":{"description":"Structured API error. 400 invalid_request; 403 forbidden; 404 not_found; 409 conflict; 429 rate_limited (honor Retry-After); 500 internal_error; 503 service_unavailable. Never create a replacement launch after an uncertain submit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/stocks":{"get":{"operationId":"getPublicApiStocks","summary":"Supported tokenized stocks and indicative quotes","description":"Quotes can be unavailable/null. A quote is not guaranteed execution liquidity. No upstream API credentials are disclosed.","responses":{"200":{"description":"Stock registry and latest quote status.","content":{"application/json":{"schema":{"type":"object","required":["quotes","updatedAt"],"properties":{"updatedAt":{"type":"string","format":"date-time"},"quotes":{"type":"array","items":{"type":"object","required":["symbol","mint","priceUsd","sourceUrl"],"properties":{"symbol":{"type":"string"},"mint":{"type":["string","null"]},"priceUsd":{"type":["number","null"]},"sourceUrl":{"type":["string","null"]}}}}}}}}},"default":{"description":"Structured API error. 400 invalid_request; 403 forbidden; 404 not_found; 409 conflict; 429 rate_limited (honor Retry-After); 500 internal_error; 503 service_unavailable. Never create a replacement launch after an uncertain submit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/tokens":{"get":{"operationId":"getPublicApiTokens","summary":"List platform tokens","parameters":[{"in":"query","name":"owner","schema":{"type":"string"},"description":"Optional creator wallet."},{"in":"query","name":"sort","schema":{"type":"string","enum":["recent","marketCap"],"default":"marketCap"}},{"in":"query","name":"limit","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Token list. No treasury private keys, encrypted keys or signed transaction payloads.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","required":["id","owner","mint","treasury","name","symbol","status","cycleSeconds","minHold","imageUrl","createdAt"],"properties":{"quoteMint":{"type":"string","description":"Immutable trading pair mint; defaults to wrapped SOL for legacy launches."},"source":{"type":"string","description":"native for legacy launches; native_v2 for explicitly signed versioned fees; capital_fee_sharing for imported CAPITAL. Imported setup is not a token creation."},"payoutMode":{"type":"string","enum":["holder_rewards","creator_sol"]},"payoutRecipient":{"type":"string","description":"Immutable creator wallet for native SOL mode only."},"recipientXUrl":{"type":"string","description":"X profile proven at launch. Payments use the immutable wallet, not future username lookups."},"initialBuySol":{"type":"string","description":"Approved initial purchase SOL budget; 0 for launches without a purchase."},"xUrl":{"type":["string","null"]},"website":{"type":"string"},"description":{"type":"string"},"marketCapUsd":{"type":["number","null"]},"volume24hUsd":{"type":["number","null"]},"rewardSymbol":{"type":"string"},"rewardAssetId":{"type":"string","description":"Immutable reward identity saved with the signed draft; crypto assets use the full mint."},"rewardMint":{"type":"string"},"rewardDecimals":{"type":"integer","minimum":0,"maximum":18},"id":{"type":"string"},"owner":{"type":"string"},"mint":{"type":"string"},"treasury":{"type":"string"},"name":{"type":"string"},"symbol":{"type":"string"},"status":{"type":"string"},"cycleSeconds":{"type":"integer"},"minHold":{"type":"integer"},"imageUrl":{"type":"string"},"createdAt":{"type":"string"},"signature":{"type":["string","null"]},"lastError":{"type":["string","null"]},"totalRewardsRaw":{"type":"string"}}}}}}},"default":{"description":"Structured API error. 400 invalid_request; 403 forbidden; 404 not_found; 409 conflict; 429 rate_limited (honor Retry-After); 500 internal_error; 503 service_unavailable. Never create a replacement launch after an uncertain submit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/tokens/{mint}":{"get":{"operationId":"getPublicApiToken","summary":"Token identity and market snapshot","parameters":[{"in":"path","name":"mint","required":true,"schema":{"type":"string"},"description":"Solana token mint."}],"responses":{"200":{"description":"Public launch record. Market fields can be unavailable.","content":{"application/json":{"schema":{"type":"object","required":["id","owner","mint","treasury","name","symbol","status","cycleSeconds","minHold","imageUrl","createdAt"],"properties":{"quoteMint":{"type":"string","description":"Immutable trading pair mint; defaults to wrapped SOL for legacy launches."},"source":{"type":"string","description":"native for legacy launches; native_v2 for explicitly signed versioned fees; capital_fee_sharing for imported CAPITAL. Imported setup is not a token creation."},"payoutMode":{"type":"string","enum":["holder_rewards","creator_sol"]},"payoutRecipient":{"type":"string","description":"Immutable creator wallet for native SOL mode only."},"recipientXUrl":{"type":"string","description":"X profile proven at launch. Payments use the immutable wallet, not future username lookups."},"initialBuySol":{"type":"string","description":"Approved initial purchase SOL budget; 0 for launches without a purchase."},"xUrl":{"type":["string","null"]},"website":{"type":"string"},"description":{"type":"string"},"marketCapUsd":{"type":["number","null"]},"volume24hUsd":{"type":["number","null"]},"rewardSymbol":{"type":"string"},"rewardAssetId":{"type":"string","description":"Immutable reward identity saved with the signed draft; crypto assets use the full mint."},"rewardMint":{"type":"string"},"rewardDecimals":{"type":"integer","minimum":0,"maximum":18},"id":{"type":"string"},"owner":{"type":"string"},"mint":{"type":"string"},"treasury":{"type":"string"},"name":{"type":"string"},"symbol":{"type":"string"},"status":{"type":"string"},"cycleSeconds":{"type":"integer"},"minHold":{"type":"integer"},"imageUrl":{"type":"string"},"createdAt":{"type":"string"},"signature":{"type":["string","null"]},"lastError":{"type":["string","null"]},"totalRewardsRaw":{"type":"string"}}}}}},"default":{"description":"Structured API error. 400 invalid_request; 403 forbidden; 404 not_found; 409 conflict; 429 rate_limited (honor Retry-After); 500 internal_error; 503 service_unavailable. Never create a replacement launch after an uncertain submit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/tokens/{mint}/market":{"get":{"operationId":"getPublicApiMarket","summary":"Token price, market cap and 24-hour volume","parameters":[{"in":"path","name":"mint","required":true,"schema":{"type":"string"},"description":"Solana token mint."}],"responses":{"200":{"description":"Verified available market figures, or explicit unavailable status.","content":{"application/json":{"schema":{"type":"object","required":["mint","marketCapUsd","priceUsd","volume24hUsd","marketUrl","updatedAt"],"properties":{"mint":{"type":"string"},"marketCapUsd":{"type":["number","null"]},"priceUsd":{"type":["number","null"]},"volume24hUsd":{"type":["number","null"]},"marketUrl":{"type":["string","null"]},"updatedAt":{"type":"string","format":"date-time"}}}}}},"default":{"description":"Structured API error. 400 invalid_request; 403 forbidden; 404 not_found; 409 conflict; 429 rate_limited (honor Retry-After); 500 internal_error; 503 service_unavailable. Never create a replacement launch after an uncertain submit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/tokens/{mint}/holders":{"get":{"operationId":"getPublicApiHolders","summary":"Top 20 token holders, excluding pool accounts","parameters":[{"in":"path","name":"mint","required":true,"schema":{"type":"string"},"description":"Solana token mint."}],"responses":{"200":{"description":"Holder snapshot; unavailable is explicit, not an empty verified result.","content":{"application/json":{"schema":{"type":"object","required":["mint","status","holders","totalHolders","updatedAt"],"properties":{"mint":{"type":"string"},"status":{"type":"string","enum":["ready","unavailable"]},"holders":{"type":"array","items":{"type":"object","required":["owner","amount","percentage"],"properties":{"owner":{"type":"string"},"amount":{"type":"string","description":"Exact decimal token balance summed across the owner's token accounts."},"percentage":{"type":"number","description":"Percent of on-chain total supply."}}}},"totalHolders":{"type":["integer","null"]},"updatedAt":{"type":"string","format":"date-time"}}}}}},"default":{"description":"Structured API error. 400 invalid_request; 403 forbidden; 404 not_found; 409 conflict; 429 rate_limited (honor Retry-After); 500 internal_error; 503 service_unavailable. Never create a replacement launch after an uncertain submit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/tokens/{mint}/chart":{"get":{"operationId":"getPublicApiChart","summary":"Token price history","parameters":[{"in":"path","name":"mint","required":true,"schema":{"type":"string"},"description":"Solana token mint."},{"in":"query","name":"range","schema":{"type":"string","enum":["24h","7d"],"default":"24h"}}],"responses":{"200":{"description":"Chart series with source and availability metadata.","content":{"application/json":{"schema":{"type":"object","required":["mint","range","interval","status","points","sourceUrl","updatedAt"],"properties":{"mint":{"type":"string"},"range":{"type":"string","enum":["24h","7d"]},"interval":{"type":"string","enum":["5m","1h"]},"status":{"type":"string","enum":["ready","empty","unavailable"]},"sourceUrl":{"type":"string"},"updatedAt":{"type":"string"},"points":{"type":"array","items":{"type":"object","required":["timestamp","priceUsd"],"properties":{"timestamp":{"type":"number","description":"UTC Unix time in milliseconds for the observed candle."},"priceUsd":{"type":"number","description":"Actual candle close in USD per token, never market cap."}}}}}}}}},"default":{"description":"Structured API error. 400 invalid_request; 403 forbidden; 404 not_found; 409 conflict; 429 rate_limited (honor Retry-After); 500 internal_error; 503 service_unavailable. Never create a replacement launch after an uncertain submit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/tokens/{mint}/rewards":{"get":{"operationId":"getPublicApiRewards","summary":"Confirmed lifetime stock rewards for a token","parameters":[{"in":"path","name":"mint","required":true,"schema":{"type":"string"},"description":"Solana token mint."}],"responses":{"200":{"description":"Confirmed stock amounts only; excludes plans, unknown signatures and collection/swap transactions.","content":{"application/json":{"schema":{"type":"object","required":["mint","rewardSymbol","rewardMint","decimals","totalRewardsRaw","confirmedPayoutCount","lastPayoutAt"],"properties":{"mint":{"type":"string"},"rewardSymbol":{"type":"string"},"rewardMint":{"type":["string","null"],"description":"Null for native SOL, which has no SPL mint."},"payoutMode":{"type":"string","enum":["holder_rewards","creator_sol"]},"payoutRecipient":{"type":"string"},"recipientXUrl":{"type":"string"},"decimals":{"type":"integer"},"totalRewardsRaw":{"type":"string","description":"Confirmed payout base units, not USD. Native SOL creator payouts use lamports (9 decimals); holder modes use reward-token decimals."},"confirmedPayoutCount":{"type":"integer"},"lastPayoutAt":{"type":["string","null"],"format":"date-time","description":"Ledger creation time of the latest confirmed payout; not a chain block timestamp."}}}}}},"default":{"description":"Structured API error. 400 invalid_request; 403 forbidden; 404 not_found; 409 conflict; 429 rate_limited (honor Retry-After); 500 internal_error; 503 service_unavailable. Never create a replacement launch after an uncertain submit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/tokens/{mint}/payouts":{"get":{"operationId":"getPublicApiPayouts","summary":"Latest confirmed holder payments","parameters":[{"in":"path","name":"mint","required":true,"schema":{"type":"string"},"description":"Solana token mint."},{"in":"query","name":"limit","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Most recent confirmed payouts, newest first. This is a bounded recent feed, not a complete historical export.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","required":["signature","recipient","amountRaw","createdAt"],"properties":{"signature":{"type":"string"},"recipient":{"type":"string"},"amountRaw":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}}}}}},"default":{"description":"Structured API error. 400 invalid_request; 403 forbidden; 404 not_found; 409 conflict; 429 rate_limited (honor Retry-After); 500 internal_error; 503 service_unavailable. Never create a replacement launch after an uncertain submit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/stats":{"get":{"operationId":"getPublicApiStats","summary":"Platform-wide token and payout statistics","responses":{"200":{"description":"Lifetime and 24-hour aggregates. Incomplete market coverage is explicit.","content":{"application/json":{"schema":{"type":"object","required":["launchedTokens","totalConfirmedPayouts","totalMarketCapUsd","totalVolume24hUsd","quotedVolume24hUsd","quotedVolumeTokens","totalRewardsUsd","missingMarketCaps","missingVolumes","missingRewardPrices","updatedAt"],"properties":{"launchedTokens":{"type":"integer","minimum":0},"totalConfirmedPayouts":{"type":"integer","minimum":0,"description":"Count of confirmed positive reward transfers to holders across all launched tokens. Each recipient transfer counts once, including transfers grouped in one on-chain transaction. Not unique wallets or buy/sell activity."},"totalMarketCapUsd":{"type":["number","null"],"description":"Null if any launched token has no market cap; never a partial sum."},"totalVolume24hUsd":{"type":["number","null"],"description":"Combined rolling 24-hour trading volume of all launched tokens in USD. Null if any token has no volume quote; never a partial sum."},"quotedVolume24hUsd":{"type":["number","null"],"description":"Sum of available valid 24h USD volume quotes. May be partial; always display with quotedVolumeTokens / launchedTokens coverage. Null when no launched token has a quote or the sum is not finite; zero for an empty platform."},"quotedVolumeTokens":{"type":"integer","minimum":0,"description":"Number of launched tokens contributing valid volume quotes, including genuine zero-volume quotes."},"totalRewardsUsd":{"type":["number","null"],"description":"Confirmed holder payouts valued at current reward-asset prices, not historical USD proceeds."},"missingMarketCaps":{"type":"integer","minimum":0},"missingVolumes":{"type":"integer","minimum":0},"missingRewardPrices":{"type":"integer","minimum":0},"updatedAt":{"type":"string","format":"date-time"}}}}}},"default":{"description":"Structured API error. 400 invalid_request; 403 forbidden; 404 not_found; 409 conflict; 429 rate_limited (honor Retry-After); 500 internal_error; 503 service_unavailable. Never create a replacement launch after an uncertain submit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/launches/challenge":{"post":{"operationId":"createPublicApiLaunchChallenge","summary":"Request a wallet authorization message for a complete launch draft","description":"No funds move. Sign the exact returned message locally with the draft owner and encode the signature as base58. Do not send any private key. Draft image maximum is 1 MiB decoded.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["owner","name","symbol","description","image","cycleSeconds","minHold"],"properties":{"quoteMint":{"type":"string","minLength":32,"maxLength":44,"description":"Optional Pump-supported quote mint from GET /launchpad/pairs. Omit for legacy SOL launches. Non-SOL creator fees are collected and converted to SOL before the existing reward engine. Non-SOL initial buys are not supported in this release; initialBuySol must be zero or omitted."},"launchModel":{"type":"object","additionalProperties":false,"required":["version","venue","quoteMint","hook","rewardAssets","policy","protocolAddress","capitalMint"],"properties":{"version":{"type":"integer","enum":[2]},"venue":{"type":"string","enum":["pump"]},"quoteMint":{"type":"string","minLength":32,"maxLength":44,"description":"The actual immutable trading pair mint. Must match LaunchDraft.quoteMint (SOL when omitted)."},"hook":{"type":"string","enum":["reward"]},"rewardAssets":{"type":"array","minItems":1,"maxItems":1,"items":{"type":"string"},"description":"Exactly one reward in this release. Basket execution stays unavailable until mixed-asset reporting is integrated."},"policy":{"type":"string","enum":["capital-hourly-v1"]},"protocolAddress":{"type":"string","enum":["CsS1b8GjwhW1VDSyxsnaEzdnQAAA6EmJtTcezGvJkZPr"]},"capitalMint":{"type":"string","enum":["5EdajXG624C7uVLArueGjFxEAdbJnSs12orQJ8RZpump"]}}},"santaModel":{"type":"object","additionalProperties":false,"required":["version","policy","santaMint","rewardAsset","launchHoldersBps","santaHoldersBps","platformBps","santaMinHold"],"properties":{"version":{"type":"integer","enum":[3]},"policy":{"type":"string","enum":["santa-dual-holders-v1"]},"santaMint":{"type":"string","enum":["856eo2Q9FRC5Wb9GxAFpUR4SdaHiod3bP6Z6bGbopump"]},"rewardAsset":{"type":"string"},"launchHoldersBps":{"type":"integer","enum":[7000]},"santaHoldersBps":{"type":"integer","enum":[3000]},"platformBps":{"type":"integer","enum":[0]},"santaMinHold":{"type":"integer","enum":[50000]}}},"xUrl":{"type":"string","maxLength":200},"payoutMode":{"type":"string","enum":["holder_rewards","creator_sol"],"description":"Omit for existing holder rewards. creator_sol sends collected native SOL fees to the creator's proof-linked owner wallet, with no swaps or holder rewards."},"solRecipientVerificationId":{"type":"string","maxLength":64,"description":"Required for creator_sol. Server proof must bind this owner and xUrl. Included in the signed immutable draft."},"rewardSymbol":{"type":"string","minLength":1,"maxLength":44,"default":"TSLAx","description":"Immutable asset ID from config.assets[].symbol: a legacy stock symbol or the full Solana mint for a Custom cryptocurrency. Never submit displaySymbol; tickers are not unique. The server rejects IDs outside its pinned catalog and checks mint compatibility and Custom swap availability before preparation."},"owner":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":32},"symbol":{"type":"string","minLength":1,"maxLength":10},"description":{"type":"string","maxLength":1000},"image":{"type":"string","description":"PNG/JPEG/WebP data URL, maximum 1MB file"},"cycleSeconds":{"type":"integer","enum":[900,3600,86400]},"minHold":{"type":"integer","minimum":1,"maximum":1000000000},"initialBuySol":{"type":"string","maxLength":24,"description":"Optional maximum SOL spend for the creator's atomic initial purchase, including Pump.fun trade fees and slippage allowance but excluding creation reserve, rent and network fees. Omitted or 0 skips purchase; otherwise 0.001–100 SOL, up to 9 decimal places."}}}}}},"responses":{"200":{"description":"Five-minute, one-action authorization bound to the full normalized draft.","content":{"application/json":{"schema":{"type":"object","required":["id","message"],"properties":{"id":{"type":"string"},"message":{"type":"string"}}}}}},"default":{"description":"Structured API error. 400 invalid_request; 403 forbidden; 404 not_found; 409 conflict; 429 rate_limited (honor Retry-After); 500 internal_error; 503 service_unavailable. Never create a replacement launch after an uncertain submit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/launches/prepare":{"post":{"operationId":"preparePublicApiLaunch","summary":"Prepare the authorized owner-unsigned v0 creation transaction","description":"Verifies the owner signature, validates stock mint, and reuses an existing draft identity on retries. At most 3 preparations per wallet per hour. Initial buy budget is separate from treasury reserve, rent and network costs.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["draft","challengeId","signature"],"properties":{"draft":{"type":"object","required":["owner","name","symbol","description","image","cycleSeconds","minHold"],"properties":{"quoteMint":{"type":"string","minLength":32,"maxLength":44,"description":"Optional Pump-supported quote mint from GET /launchpad/pairs. Omit for legacy SOL launches. Non-SOL creator fees are collected and converted to SOL before the existing reward engine. Non-SOL initial buys are not supported in this release; initialBuySol must be zero or omitted."},"launchModel":{"type":"object","additionalProperties":false,"required":["version","venue","quoteMint","hook","rewardAssets","policy","protocolAddress","capitalMint"],"properties":{"version":{"type":"integer","enum":[2]},"venue":{"type":"string","enum":["pump"]},"quoteMint":{"type":"string","minLength":32,"maxLength":44,"description":"The actual immutable trading pair mint. Must match LaunchDraft.quoteMint (SOL when omitted)."},"hook":{"type":"string","enum":["reward"]},"rewardAssets":{"type":"array","minItems":1,"maxItems":1,"items":{"type":"string"},"description":"Exactly one reward in this release. Basket execution stays unavailable until mixed-asset reporting is integrated."},"policy":{"type":"string","enum":["capital-hourly-v1"]},"protocolAddress":{"type":"string","enum":["CsS1b8GjwhW1VDSyxsnaEzdnQAAA6EmJtTcezGvJkZPr"]},"capitalMint":{"type":"string","enum":["5EdajXG624C7uVLArueGjFxEAdbJnSs12orQJ8RZpump"]}}},"santaModel":{"type":"object","additionalProperties":false,"required":["version","policy","santaMint","rewardAsset","launchHoldersBps","santaHoldersBps","platformBps","santaMinHold"],"properties":{"version":{"type":"integer","enum":[3]},"policy":{"type":"string","enum":["santa-dual-holders-v1"]},"santaMint":{"type":"string","enum":["856eo2Q9FRC5Wb9GxAFpUR4SdaHiod3bP6Z6bGbopump"]},"rewardAsset":{"type":"string"},"launchHoldersBps":{"type":"integer","enum":[7000]},"santaHoldersBps":{"type":"integer","enum":[3000]},"platformBps":{"type":"integer","enum":[0]},"santaMinHold":{"type":"integer","enum":[50000]}}},"xUrl":{"type":"string","maxLength":200},"payoutMode":{"type":"string","enum":["holder_rewards","creator_sol"],"description":"Omit for existing holder rewards. creator_sol sends collected native SOL fees to the creator's proof-linked owner wallet, with no swaps or holder rewards."},"solRecipientVerificationId":{"type":"string","maxLength":64,"description":"Required for creator_sol. Server proof must bind this owner and xUrl. Included in the signed immutable draft."},"rewardSymbol":{"type":"string","minLength":1,"maxLength":44,"default":"TSLAx","description":"Immutable asset ID from config.assets[].symbol: a legacy stock symbol or the full Solana mint for a Custom cryptocurrency. Never submit displaySymbol; tickers are not unique. The server rejects IDs outside its pinned catalog and checks mint compatibility and Custom swap availability before preparation."},"owner":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":32},"symbol":{"type":"string","minLength":1,"maxLength":10},"description":{"type":"string","maxLength":1000},"image":{"type":"string","description":"PNG/JPEG/WebP data URL, maximum 1MB file"},"cycleSeconds":{"type":"integer","enum":[900,3600,86400]},"minHold":{"type":"integer","minimum":1,"maximum":1000000000},"initialBuySol":{"type":"string","maxLength":24,"description":"Optional maximum SOL spend for the creator's atomic initial purchase, including Pump.fun trade fees and slippage allowance but excluding creation reserve, rent and network fees. Omitted or 0 skips purchase; otherwise 0.001–100 SOL, up to 9 decimal places."}}},"challengeId":{"type":"string"},"signature":{"type":"string"}}}}}},"responses":{"200":{"description":"Sign transaction locally as VersionedTransaction; preserve exact message and mint. No private key is requested.","content":{"application/json":{"schema":{"type":"object","required":["token","transaction"],"properties":{"token":{"type":"object","required":["id","owner","mint","treasury","name","symbol","status","cycleSeconds","minHold","imageUrl","createdAt"],"properties":{"quoteMint":{"type":"string","description":"Immutable trading pair mint; defaults to wrapped SOL for legacy launches."},"source":{"type":"string","description":"native for legacy launches; native_v2 for explicitly signed versioned fees; capital_fee_sharing for imported CAPITAL. Imported setup is not a token creation."},"payoutMode":{"type":"string","enum":["holder_rewards","creator_sol"]},"payoutRecipient":{"type":"string","description":"Immutable creator wallet for native SOL mode only."},"recipientXUrl":{"type":"string","description":"X profile proven at launch. Payments use the immutable wallet, not future username lookups."},"initialBuySol":{"type":"string","description":"Approved initial purchase SOL budget; 0 for launches without a purchase."},"xUrl":{"type":["string","null"]},"website":{"type":"string"},"description":{"type":"string"},"marketCapUsd":{"type":["number","null"]},"volume24hUsd":{"type":["number","null"]},"rewardSymbol":{"type":"string"},"rewardAssetId":{"type":"string","description":"Immutable reward identity saved with the signed draft; crypto assets use the full mint."},"rewardMint":{"type":"string"},"rewardDecimals":{"type":"integer","minimum":0,"maximum":18},"id":{"type":"string"},"owner":{"type":"string"},"mint":{"type":"string"},"treasury":{"type":"string"},"name":{"type":"string"},"symbol":{"type":"string"},"status":{"type":"string"},"cycleSeconds":{"type":"integer"},"minHold":{"type":"integer"},"imageUrl":{"type":"string"},"createdAt":{"type":"string"},"signature":{"type":["string","null"]},"lastError":{"type":["string","null"]},"totalRewardsRaw":{"type":"string"}}},"transaction":{"type":"string","description":"Base64 unsigned Solana v0 transaction. The owner wallet signs first; the server adds the mint signature on submission without recompiling the message."},"lookupTables":{"type":"array","description":"Trusted server-resolved address tables for the stored prepared transaction. Submission resolves these independently on the server; client-supplied resolutions are never accepted.","maxItems":4,"items":{"type":"object","required":["address","addresses"],"properties":{"address":{"type":"string"},"addresses":{"type":"array","maxItems":256,"items":{"type":"string"}}}}}}}}}},"default":{"description":"Structured API error. 400 invalid_request; 403 forbidden; 404 not_found; 409 conflict; 429 rate_limited (honor Retry-After); 500 internal_error; 503 service_unavailable. Never create a replacement launch after an uncertain submit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/launches/submit":{"post":{"operationId":"submitPublicApiLaunch","summary":"Submit the exact owner-signed prepared transaction","description":"A response signature is an acknowledgement, not chain confirmation. On timeout poll the SAME launch ID. Never create a replacement token or transfer a second reserve. Only the exact original signed transaction may be retried.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","transaction"],"properties":{"id":{"type":"string"},"transaction":{"type":"string","maxLength":16000,"description":"Base64 approved Solana transaction signed by the owner wallet. New launches use v0; saved legacy submissions remain supported. Original instructions, account privileges, payer and blockhash must remain unchanged. Only allowlisted read-only Lighthouse assertions may be appended. The server verifies the owner signature over the returned message and adds the mint signature without rebuilding it."}}}}}},"responses":{"200":{"description":"Persisted original signature. Poll launch status until active, failed, or review_required.","content":{"application/json":{"schema":{"type":"object","required":["signature"],"properties":{"signature":{"type":"string"}}}}}},"default":{"description":"Structured API error. 400 invalid_request; 403 forbidden; 404 not_found; 409 conflict; 429 rate_limited (honor Retry-After); 500 internal_error; 503 service_unavailable. Never create a replacement launch after an uncertain submit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/launches/{id}":{"get":{"operationId":"getPublicApiLaunch","summary":"Poll a prepared or submitted launch by its immutable ID","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","maxLength":100}}],"responses":{"200":{"description":"Public status. submitted/review_required are not proof of creation; active means finalized activation.","content":{"application/json":{"schema":{"type":"object","required":["id","owner","mint","treasury","name","symbol","status","cycleSeconds","minHold","imageUrl","createdAt"],"properties":{"quoteMint":{"type":"string","description":"Immutable trading pair mint; defaults to wrapped SOL for legacy launches."},"source":{"type":"string","description":"native for legacy launches; native_v2 for explicitly signed versioned fees; capital_fee_sharing for imported CAPITAL. Imported setup is not a token creation."},"payoutMode":{"type":"string","enum":["holder_rewards","creator_sol"]},"payoutRecipient":{"type":"string","description":"Immutable creator wallet for native SOL mode only."},"recipientXUrl":{"type":"string","description":"X profile proven at launch. Payments use the immutable wallet, not future username lookups."},"initialBuySol":{"type":"string","description":"Approved initial purchase SOL budget; 0 for launches without a purchase."},"xUrl":{"type":["string","null"]},"website":{"type":"string"},"description":{"type":"string"},"marketCapUsd":{"type":["number","null"]},"volume24hUsd":{"type":["number","null"]},"rewardSymbol":{"type":"string"},"rewardAssetId":{"type":"string","description":"Immutable reward identity saved with the signed draft; crypto assets use the full mint."},"rewardMint":{"type":"string"},"rewardDecimals":{"type":"integer","minimum":0,"maximum":18},"id":{"type":"string"},"owner":{"type":"string"},"mint":{"type":"string"},"treasury":{"type":"string"},"name":{"type":"string"},"symbol":{"type":"string"},"status":{"type":"string"},"cycleSeconds":{"type":"integer"},"minHold":{"type":"integer"},"imageUrl":{"type":"string"},"createdAt":{"type":"string"},"signature":{"type":["string","null"]},"lastError":{"type":["string","null"]},"totalRewardsRaw":{"type":"string"}}}}}},"default":{"description":"Structured API error. 400 invalid_request; 403 forbidden; 404 not_found; 409 conflict; 429 rate_limited (honor Retry-After); 500 internal_error; 503 service_unavailable. Never create a replacement launch after an uncertain submit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/openapi.json":{"get":{"operationId":"getPublicApiSpec","summary":"Download this version's OpenAPI 3.1 document","responses":{"200":{"description":"Self-contained public API specification; excludes admin routes.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"description":"Structured API error. 400 invalid_request; 403 forbidden; 404 not_found; 409 conflict; 429 rate_limited (honor Retry-After); 500 internal_error; 503 service_unavailable. Never create a replacement launch after an uncertain submit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}}}}