Skip to main content
Get all votes cast by the authenticated user.

Request

curl https://api.fucksornot.com/api/vote \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Response

{
  "votes": [
    {
      "id": "vote-uuid-1",
      "user_id": "user-uuid",
      "upload_id": "upload-uuid-1",
      "vote": "fucks",
      "created_at": "2025-01-24T12:00:00Z"
    },
    {
      "id": "vote-uuid-2",
      "user_id": "user-uuid",
      "upload_id": "upload-uuid-2",
      "vote": "does_not_fuck",
      "created_at": "2025-01-24T11:00:00Z"
    }
  ]
}

Vote Fields

FieldTypeDescription
idUUIDVote identifier
user_idUUIDYour user ID
upload_idUUIDUpload that was voted on
votestringfucks or does_not_fuck
created_attimestampWhen the vote was cast

Use Cases

  • Display which uploads the user has voted on
  • Show vote status in UI
  • Prevent duplicate vote attempts