block-quote On this pagechevron-down
copy Copy chevron-down
Documentation candy APIThis page documents the API that powers sugar.money
To make integration easier, we provide official SDKs:
Please open an issue herearrow-up-right if you run into issues using any of our SDKs.
Most endpoints require authentication via a session cookie (__Secure-next-auth.session-token). To extract this cookie from your browser session, please refer to our authentication guidearrow-up-right for detailed instructions. Alternatively, use the SDKs listed above.
Please note that most API endpoints are rate-limited to ensure fair usage and platform stability.
Our API includes:
📈 Coins & Trading: Coin creation, candlestick data, holder information, and search capabilities
🎮 Rewards: Automate collecting rewards
💰 Payouts & Rewards: Unified payout system for rewards, referrals, ticket redeeming, and creator rewards.
All API endpoints are available at: https://sugar.money/api/v1
Get coin candlestick data
get
/api/v1 /coin/ {address} /candlestick resolution string · enum Required Time resolution for candlestick data
Possible values: 1S5S13603601D5D offset integer Optional Default: 0 limit integer · min: 1 Required Number of candlesticks to return
toTimestamp integer · min: 1 Required isFirstDataRequest boolean Optional Whether this is the first data request
chevron-right
200 Candlestick data retrieved successfully
application/json
Response object
Show properties plus
Create a coin comment
post
/api/v1 /coin/ {address} /comment next-auth.session-token string Required Session authentication cookie
Body
application/json chevron-down application/json
chevron-right
200 Comment created successfully
application/json
Response object
Show properties plus
get
/api/v1 /coin/ {address} /comments page integer Optional Default: 0 limit integer Optional Number of comments per page
Default: 40 chevron-right
200 Comments retrieved successfully
application/json
Response object
Show properties plus
Get coin details
get
/api/v1 /coin/ {address} chevron-right
200 Coin details retrieved successfully
application/json
Response object
Show properties plus
post
/api/v1 /coin/ {address} /delete next-auth.session-token string Required Session authentication cookie
Response object
Show properties plus
Mark coin as favorite
post
/api/v1 /coin/ {address} /favorite next-auth.session-token string Required Session authentication cookie
Response object
Show properties plus
Remove coin from favorites
post
/api/v1 /coin/ {address} /unfavorite next-auth.session-token string Required Session authentication cookie
chevron-right
200 Coin removed from favorites
application/json
Response object
Show properties plus
Get coin holders
get
/api/v1 /coin/ {address} /holders chevron-right
200 Coin holders retrieved successfully
application/json
Response object
Show properties plus
Get coin trading history
get
/api/v1 /coin/ {address} /trades page integer Optional Default: 0 limit integer Optional Number of trades per page
Default: 20 chevron-right
200 Trading history retrieved successfully
application/json
Response object
Show properties plus
chevron-right
200 Featured coin retrieved successfully
application/json
Response object
Show properties plus
Upload coin metadata
post
/api/v1 /coin/metadata next-auth.session-token string Required Session authentication cookie
Body
application/json chevron-down application/json
chunkIndex integer Required totalChunks integer · min: 1 Required chunk string Required Base64 encoded chunk data
operation string · enum Required Operation type (coin-creation-via-api or ipfs-url-for-metadata)
Possible values: coin-creation-via-apiipfs-url-for-metadata metadata object Optional
Show properties plus
chevron-right
200 Metadata uploaded successfully
application/json
Response object
Show properties plus
Get coin minting information
next-auth.session-token string Required Session authentication cookie
chevron-right
200 Coin minting information retrieved successfully
application/json
Response object
Show properties plus
next-auth.session-token string Required Session authentication cookie
Body
application/json chevron-down application/json
fileId string Required File ID from metadata upload
ipfsUrlOriginalImage string Optional IPFS URL for original image
ipfsUrlMetadata string Optional migrationInPsol boolean Optional Whether to migrate in PSOL
chevron-right
200 Coin created successfully
application/json
Response object
Show properties plus
Get paginated list of coins
page integer Optional Default: 0 bondingCurveFrom number Optional Minimum bonding curve value
bondingCurveTo number Optional Maximum bonding curve value
marketCapFrom number Optional marketCapTo number Optional coinAgeFrom number Optional toShow string Optional Comma-separated strings to include
doNotShow string Optional Comma-separated strings to exclude
coinHoldersFrom number Optional Minimum number of coin holders
coinHoldersTo number Optional Maximum number of coin holders
solPriceUsd number Optional chevron-right
200 Coins retrieved successfully
application/json
Response object
Show properties plus
page integer Optional Default: 0 chevron-right
200 Search results retrieved successfully
application/json
Response object
Show properties plus
next-auth.session-token string Required Session authentication cookie
chevron-right
200 Fees information retrieved successfully
application/json
Response object
Show properties plus
chevron-right
200 SOL price retrieved successfully
application/json
Response object
Show properties plus
next-auth.session-token string Required Session authentication cookie
Body
application/json chevron-down application/json
tickets integer · min: 1 Required chevron-right
200 Game created successfully
application/json
Response object
Show properties plus
next-auth.session-token string Required Session authentication cookie
chevron-right
200 Current game retrieved successfully
application/json
Response object
Show properties plus
next-auth.session-token string Required Session authentication cookie
page integer Optional Default: 0 pageSize integer Optional Default: 10 chevron-right
200 Game history retrieved successfully
application/json
Response object
Show properties plus
Check game payout progress
get
/api/v1 /game/payout/in-progress next-auth.session-token string Required Session authentication cookie
chevron-right
200 Payout progress retrieved successfully
application/json
Response object
Show properties plus
next-auth.session-token string Required Session authentication cookie
Body
application/json chevron-down application/json
index integer · max: 19 Required chevron-right
200 Game updated successfully
application/json
Response object
Show properties plus
Request game payout
post
/api/v1 /game/payout/request next-auth.session-token string Required Session authentication cookie
chevron-right
200 Payout requested successfully
application/json
Response object
Show properties plus
Submit game payout transaction
post
/api/v1 /game/payout/submit next-auth.session-token string Required Session authentication cookie
Body
application/json chevron-down application/json
lastValidBlockHeight number Required chevron-right
200 Payout submitted successfully
application/json
Response object
Show properties plus
chevron-right
200 Recent games retrieved successfully
application/json
Response object
Show properties plus
Get points to tickets exchange rate
get
/api/v1 /points/tickets-rate next-auth.session-token string Required Session authentication cookie
chevron-right
200 Exchange rate retrieved successfully
application/json
Response object
Show properties plus
next-auth.session-token string Required Session authentication cookie
chevron-right
200 Ranks retrieved successfully
application/json
Response object
Show properties plus
Check if referral code exists
get
/api/v1 /referrals/code-exists next-auth.session-token string Required Session authentication cookie
chevron-right
200 Code existence checked successfully
application/json
Response object
Show properties plus
Link referral code
post
/api/v1 /referrals/link next-auth.session-token string Required Session authentication cookie
Body
application/json chevron-down application/json
chevron-right
200 Referral code linked successfully
application/json
Response object
Show properties plus
next-auth.session-token string Required Session authentication cookie
chevron-right
200 User referral data retrieved successfully
application/json
Response object
Show properties plus
next-auth.session-token string Required Session authentication cookie
Body
application/json chevron-down application/json
chevron-right
200 Referral code created successfully
application/json
Response object
Show properties plus
Check referral payout progress
get
/api/v1 /referrals/me/payout/in-progress next-auth.session-token string Required Session authentication cookie
chevron-right
200 Payout progress retrieved successfully
application/json
Response object
Show properties plus
Request referral payout
post
/api/v1 /referrals/me/payout/request next-auth.session-token string Required Session authentication cookie
chevron-right
200 Payout requested successfully
application/json
Response object
Show properties plus
Submit referral payout transaction
post
/api/v1 /referrals/me/payout/submit next-auth.session-token string Required Session authentication cookie
Body
application/json chevron-down application/json
lastValidBlockHeight number Required chevron-right
200 Payout submitted successfully
application/json
Response object
Show properties plus
Get ticket exchange rate
get
/api/v1 /tickets/exchange-rate next-auth.session-token string Required Session authentication cookie
chevron-right
200 Exchange rate retrieved successfully
application/json
Response object
Show properties plus
Get maximum ticket amount
get
/api/v1 /tickets/max-amount next-auth.session-token string Required Session authentication cookie
chevron-right
200 Maximum amount retrieved successfully
application/json
Response object
Show properties plus
Check ticket payout progress
get
/api/v1 /tickets/payout/in-progress next-auth.session-token string Required Session authentication cookie
chevron-right
200 Payout progress retrieved successfully
application/json
Response object
Show properties plus
Request ticket payout
post
/api/v1 /tickets/payout/request next-auth.session-token string Required Session authentication cookie
Body
application/json chevron-down application/json
tickets integer · min: 1 Required Number of tickets to cash out
chevron-right
200 Payout requested successfully
application/json
Response object
Show properties plus
Submit ticket payout transaction
post
/api/v1 /tickets/payout/submit next-auth.session-token string Required Session authentication cookie
Body
application/json chevron-down application/json
lastValidBlockHeight number Required chevron-right
200 Payout submitted successfully
application/json
Response object
Show properties plus
Check transaction status
get
/api/v1 /transaction/status next-auth.session-token string Required Session authentication cookie
signature string Required Transaction signature to check
chevron-right
200 Transaction status retrieved successfully
application/json
Response object
Show properties plus
Sign a transaction
post
/api/v1 /transaction/sign next-auth.session-token string Required Session authentication cookie
Body
application/json chevron-down application/json
serialisedTx string Required Serialized transaction data
blockhash string Required Recent blockhash for the transaction
lastValidBlockHeight number Required Last valid block height for the transaction
chevron-right
200 Transaction signed successfully
application/json
Response object
Show properties plus
Get user coin trade metrics
get
/api/v1 /user/coin/ {address} /trade-metrics next-auth.session-token string Required Session authentication cookie
chevron-right
200 Trade metrics retrieved successfully
application/json
Response object
Show properties plus
next-auth.session-token string Required Session authentication cookie
chevron-right
200 User created coins retrieved successfully
application/json
Response object
Show properties plus
Check creator rewards payout progress
get
/api/v1 /user/creator-rewards/payout/in-progress next-auth.session-token string Required Session authentication cookie
chevron-right
200 Payout progress retrieved successfully
application/json
Response object
Show properties plus
Request creator rewards payout
post
/api/v1 /user/creator-rewards/payout/request next-auth.session-token string Required Session authentication cookie
chevron-right
200 Payout requested successfully
application/json
Response object
Show properties plus
Submit creator rewards payout transaction
post
/api/v1 /user/creator-rewards/payout/submit next-auth.session-token string Required Session authentication cookie
Body
application/json chevron-down application/json
lastValidBlockHeight number Required chevron-right
200 Payout submitted successfully
application/json
Response object
Show properties plus
Get user favorite coins
get
/api/v1 /user/favorites next-auth.session-token string Required Session authentication cookie
chevron-right
200 User favorites retrieved successfully
application/json
Response object
Show properties plus
next-auth.session-token string Required Session authentication cookie
solPriceUsd number Optional chevron-right
200 User holdings retrieved successfully
application/json
Response object
Show properties plus
Get user points history
get
/api/v1 /user/points/history next-auth.session-token string Required Session authentication cookie
chevron-right
200 Points history retrieved successfully
application/json
Response object
Show properties plus
Get user preferences
get
/api/v1 /user/preferences chevron-right
200 User preferences retrieved successfully
application/json
Response object
Show properties plus
Update user preferences
patch
/api/v1 /user/preferences next-auth.session-token string Required Session authentication cookie
Body
application/json chevron-down application/json
bribeAmount number · nullable Optional
priorityFeeAmount number · nullable Optional
maxFee number · nullable Optional
sellPrefersCoin boolean Required
maxSlippage number · nullable Optional
selectedQuickBuy number Required
autoSortingEnabled boolean Required
username string · nullable Optional
usernameUpdatedAt string · nullable Optional
creatorPayout number Required
pointsPumpFun number Required
antiMevProtection boolean Required
tradingSettingsAuto boolean Required
sidebarOpen boolean Required
revealedBonusPoints boolean Required
chevron-right
200 User preferences updated successfully
application/json
Response object
Show properties plus
next-auth.session-token string Required Session authentication cookie
chevron-right
200 User tickets retrieved successfully
application/json
Response object
Show properties plus
CandlestickDataShow properties plus
CoinCommentShow properties plus
CoinTradeShow properties plus
CoinHolderShow properties plus
UserPreferencesShow properties plus
GameHistoryShow properties plus
GameCreateResponseShow properties plus
GameUpdateResponseShow properties plus
PayoutRequestResponseShow properties plus
CreateReferralCodeResponseShow properties plus
TicketsMaxAmountResponseShow properties plus
TicketsExchangeRateResponseShow properties plus
PointsTicketsRateResponseShow properties plus
CoinMintResponseShow properties plus
RecentGameItemShow properties plus
RecentGamesResponseShow properties plus
RanksDataResponseShow properties plus
PointsHistoryItemShow properties plus
PointsHistoryResponseShow properties plus
UserReferralDataResponseShow properties plus
UserTradeMetricsResponseShow properties plus
CoinCommentCreateResponseShow properties plus
PayoutProgressShow properties plus
UserHoldingShow properties plus
TransactionStatusShow properties plus
CheckTransactionResponseShow properties plus
Last updated 4 months ago