support.supper.poll.getVotes

Read public vote totals for an exact Supper poll URI and CID. No authentication is required. Optional viewer is a public actor DID, not authentication, and adds that actor latest valid vote. Only support.supper.poll.vote records on support.supper.poll.poll are included. Member-only polls and votes are never exposed.

Repository @supper.support did:plc:mcsqdltevtjpu26xthzzmm2l not from the namespace authority
Details · query
Kindquery
Authoritypoll.supper.support
Indexed

Query

query · GET

Parameters

query string

subject

requiredstring · at-uri

Public support.supper.poll.poll AT URI.

subjectCid

requiredstring · cid

CID of the exact poll revision whose choices are being tallied.

viewer

string · did

Optional public actor DID whose currently selected vote is requested.

Output

application/json

counts

requiredarray

One count per poll option in its original order, including zero-vote options. Counts sum to total.

  • minLength: 2
  • maxLength: 10
itemsinteger
  • minimum: 0

subject

requiredstring · at-uri

Exact public poll URI requested.

subjectCid

requiredstring · cid

Exact public poll revision requested.

total

requiredinteger

Number of distinct actors with a valid surviving vote on this exact revision.

  • minimum: 0

Requested actor latest valid surviving vote, omitted if none exists.

Reference

Errors

InvalidRequest

The subject, revision or viewer is invalid.

NotFound

The exact public poll revision is unavailable.

#viewerVote

object

Public record identity of the requested actor latest valid vote.

Properties

cid

requiredstring · cid

CID of that vote record.

option

requiredinteger

Zero-based selected option.

  • minimum: 0
  • maximum: 9

uri

requiredstring · at-uri

AT URI of the actor-owned support.supper.poll.vote record.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • support.supper.poll.vote

    record not from the namespace authority

    A public vote authored by the repository owner on an exact Supper poll revision. Consumers count one valid vote per actor and subject URI/CID, choosing the greatest TID record key (URI breaks ties). A changed choice creates a new vote record; deleting it exposes any previous surviving valid vote. Validate that the subject is support.supper.poll.poll and the option exists. Never publish member-only votes in a public repository.

  • One poll of a content space the viewer reads, with its results counted now: each member's newest vote cast between opensAt and closesAt by a member the viewer may see.

  • Get a user's vote on a specific proposal, if they have voted

  • List votes for a specific governance proposal

  • A member's answer to a us.off-the-clock.polls.poll in the same space. The member's newest vote counts; one with no entries is an abstention. Votes are records in the space, so every member who reads it can see who voted and how. A client may add createdAt, the time it cast the vote; the AppView trusts it up to five minutes before it indexes the vote and never after.