// Replace API_KEY with your api key
curl --location --request POST 'https://api.supahub.com/api/v1/votes/upvote_post' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer API_KEY' \
--data-urlencode 'postId=clryjbggw000g12evcnbcv0cqa' \
--data-urlencode '[email protected]' \
--data-urlencode 'name=user name'
POST
method
/votes/upvote_post
path

Path Parameters

Below are the query parameters available for customizing the response:
postId
string
required
Identifier of the post to be upvoted.
email
string
required
Email address of the user performing the upvote.
name
string | undefined
Name of the user performing the upvote (optional).
// Replace API_KEY with your api key
curl --location --request POST 'https://api.supahub.com/api/v1/votes/upvote_post' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer API_KEY' \
--data-urlencode 'postId=clryjbggw000g12evcnbcv0cqa' \
--data-urlencode '[email protected]' \
--data-urlencode 'name=user name'