---
title: "Vote on a post"
method: POST
path: "/posts/{postId}/votes"
---

# Vote on a post

`POST /posts/{postId}/votes`

## Request

- Base URL: `https://app.voteship.app/api/v1`
- URL: `https://app.voteship.app/api/v1/posts/{postId}/votes`
- Auth: HTTP bearer

Add a vote to a feature request. Each user can only vote once per post.

## Path parameters

- `postId` string, required

## Request body

- object
  - `boardUserId` string: ID of a registered board user
  - `anonymousId` string: Anonymous identifier (if no board user)

## Response `201`

Vote created

- object
  - `data` Vote
    - `id` string
    - `boardUserId` string, nullable
    - `anonymousId` string, nullable
    - `createdAt` string, date-time
    - `boardUserName` string, nullable
    - `boardUserEmail` string, nullable

## Other responses

- `409`: Duplicate vote

---

[API](https://skmtc.dev/voteship/apis/voteship-api.md) · [All operations](https://skmtc.dev/voteship/apis/voteship-api/llms.txt) · [OpenAPI document](https://skmtc.dev/voteship/apis/voteship-api/revisions/51ab9e650f82?raw)
