Votes
Submit Token Vote
submitTokenVotePOSTThis submits a vote for the current token. This feature is purely cosmetic and does not affect scoring.
The endpoint accepts only a token mint.
Note: This endpoint is not intended to be used programmatically.
Endpoint
POSThttps://api.rugcheck.xyz/v1/tokens/{id}/voteParameters
idstring required pathToken mint address
requestobject required bodyVote request
mintstring req Token mint address
sideboolean req true for upvote, false for downvote
Result
objectUpdated vote statistics
upintegerTotal upvotes
downintegerTotal downvotes
userVotedbooleanWhether user has voted
Code Examples
Request
Shellcurl -X POST "https://api.rugcheck.xyz/v1/tokens/TokenMintAddress/vote" \
-H "Content-Type: application/json" \
-H "X-API-KEY: <your-API-key>" \
-d '{
"mint": "TokenMintAddress",
"side": true
}'Response
JSON{
"up": 150,
"down": 25,
"userVoted": true
}