Skip to main content

Community Governance API

Admin-only proposal creation and community voting for claimed token holders. Governance proposals are surfaced in the community program response.

Create proposal

Creates a new governance proposal. Requires admin session authentication.

Request body

FieldTypeRequiredDescription
titlestringYesProposal title (max 120 characters)
summarystringYesShort summary (max 280 characters)
detailsstringNoExtended description (max 4000 characters)
endsAtstringNoISO 8601 end date. Omit for open-ended proposals.

Example request

Response

Response fields

FieldTypeDescription
successbooleantrue when the proposal was created
proposal.idstringUnique proposal identifier (prefixed with cgp_)
proposal.slugstringURL-safe slug derived from the title

Errors

CodeDescription
400Missing required title or summary
403Forbidden — admin session required

Vote on proposal

Submits or updates a vote on an active governance proposal. Requires session authentication and a claimed holder status.

Path parameters

ParameterTypeDescription
proposalIdstringThe proposal identifier to vote on

Request body

FieldTypeRequiredDescription
choicestringYesVote choice: yes, no, or abstain

Example request

Response

Voting rules

  • Only users who have claimed community rewards can vote.
  • Voting power is determined by the voter’s tier: Whale (10), Builder (3), Holder (1).
  • Submitting a new vote on the same proposal replaces the previous vote.
  • Only proposals with active status accept votes.

Errors

CodeDescription
400Missing or invalid choice. Must be yes, no, or abstain.
401Unauthorized — no valid session
403Claimed holder status required to vote
404Proposal not found or not open for voting