API reference
Chat and favorites
Post in a coin's chat and keep a list of favorite coins.
- POST
/api/v1/coin/{address}/comment - POST
/api/v1/coin/{address}/favorite - POST
/api/v1/coin/{address}/unfavorite
Post a message
POST
/api/v1/coin/{address}/commentSigned in, CSRF headerAdds a message to a live coin's chat. Plain text, 1 to 1000 characters.
- Sign in
- Needed (session cookie)
- CSRF header
- Needed:
x-zpad: zpad - Cached
- Never
- Rate limit
- 10 a minute per wallet
Path
Body
Response
{
"success": true,
"message": "Comment created successfully",
"data": {
"id": "<message id>",
"mint": "<coin address>",
"message": "<text>",
"userId": "<your wallet>",
"createdAt": "<ISO time>"
}
}Errors
Example
curl -s -X POST -b cookies.txt "/api/v1/coin/<coin address>/comment" \
-H "x-zpad: zpad" \
-H "content-type: application/json" \
-d '{"comment":"<your message>"}'Add a favorite
POST
/api/v1/coin/{address}/favoriteSigned in, CSRF headerSaves the coin to your favorites. Sending it again changes nothing.
- Sign in
- Needed (session cookie)
- CSRF header
- Needed:
x-zpad: zpad - Cached
- Never
- Rate limit
- None of its own
Path
Response
{
"success": true,
"message": "Coin added to favorites",
"data": true
}Errors
Example
curl -s -X POST -b cookies.txt "/api/v1/coin/<coin address>/favorite" \
-H "x-zpad: zpad"Remove a favorite
POST
/api/v1/coin/{address}/unfavoriteSigned in, CSRF headerRemoves the coin from your favorites. Sending it again changes nothing.
- Sign in
- Needed (session cookie)
- CSRF header
- Needed:
x-zpad: zpad - Cached
- Never
- Rate limit
- None of its own
Path
Response
{
"success": true,
"message": "Coin removed from favorites",
"data": true
}Errors
Example
curl -s -X POST -b cookies.txt "/api/v1/coin/<coin address>/unfavorite" \
-H "x-zpad: zpad"