Skip to main content
Get the authenticated user’s vote on a specific upload.

Request

curl "https://fucksornot.com/api/vote?uploadId=550e8400-e29b-41d4-a716-446655440000" \
  -H "Cookie: auth-token=YOUR_JWT_TOKEN"

Parameters

ParameterTypeRequiredDescription
uploadIdUUIDYesThe upload to check the current user’s vote for
uploadId is required. If it’s missing, the request returns a 400 error with the message "Upload ID required".

Response

{
  "vote": "fucks"
}
If the authenticated user has not voted on this upload, vote is null:
{
  "vote": null
}

Response Fields

FieldTypeDescription
votestring | nullfucks, does_not_fuck, or null if the user hasn’t voted on this upload

Use Cases

  • Check whether the current user has already voted on an upload
  • Display the user’s existing vote state in the UI
  • Prevent duplicate vote attempts before submitting