Cast a vote against the current campaign step.
POST /campaigns/{campaignId}/votes
Accepts X-Device-Id (anonymous) or a bearer token carrying the vote scope. Rate-limited at 10 votes per minute per caller. polstId MUST match the caller’s current step; out-of-order votes return 409 OUT_OF_ORDER. The DB upsert on (polstId, deviceId) prevents double-counting, so the endpoint is naturally idempotent without a client-supplied key.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Campaign UUID.
Campaign UUID.
Request Body required
Section titled “Request Body required ”object
Responses
Section titled “ Responses ”Vote recorded; returns updated progress.
object
object
object
object
object
object
object
object
Caller identity is malformed: X-Device-Id is not a v4 UUID, or the bearer token’s subject is not a v4 UUID.
Missing bearer and X-Device-Id, or the bearer token’s subject references an unknown device.
Bearer token lacks the vote scope.
Campaign or polst not found.
OUT_OF_ORDER or CAMPAIGN_CLOSED.
Request body or campaignId failed validation.
Rate limit exceeded.