Download OpenAPI specification:
Decentralized blockchain voting platform API.
Roles & access levels:
auditor: Full read-only access to all polls, votes, and cryptographic proofsoperator: Manage communities, polls, invitationsmember: Vote, delegate, view resultsjournalist: Explorer access, public results onlyAll blockchain data is verifiable independently. Audit API provides cryptographic proofs.
Full list of votes with cryptographic signatures. Auditor only.
| poll_id required | string |
| limit | integer Default: 100 |
| offset | integer Default: 0 |
{- "data": [
- {
- "transaction_hash": "string",
- "voter_wallet": "string",
- "choice": "string",
- "timestamp": "2019-08-24T14:15:22Z",
- "block_height": 0,
- "weight": 0,
- "signature": "string"
}
], - "pagination": {
- "limit": 100,
- "offset": 0,
- "total": 0
}
}Returns Merkle root and proof for a specific vote. Auditor only.
| poll_id required | any |
| transaction_hash required | string |
{- "poll_id": "string",
- "merkle_root": "string",
- "vote_hash": "string",
- "proof": [
- "string"
], - "verified": true
}Automatic verification of votes, delegations, quorum, and contract immutability.
| poll_id required | any |
{- "poll_id": "string",
- "checks": {
- "total_votes_on_chain": 0,
- "total_votes_off_chain": 0,
- "vote_count_match": true,
- "delegation_weights_consistent": true,
- "quorum_reached": true,
- "no_votes_after_deadline": true,
- "smart_contract_unchanged": true
}, - "merkle_root_verified": true,
- "signatures_verified": true,
- "generated_at": "2019-08-24T14:15:22Z"
}| community_id | string |
| status | string Enum: "active" "closed" "draft" |
{- "data": [
- {
- "id": "string",
- "community_id": "string",
- "title": "string",
- "description": "string",
- "options": [
- "string"
], - "status": "draft",
- "start_time": "2019-08-24T14:15:22Z",
- "end_time": "2019-08-24T14:15:22Z",
- "quorum_percent": 0,
- "security_level": "low",
- "vote_auth_mode": "none",
- "allow_delegation": true,
- "results_public_before_end": true,
- "blockchain_contract_address": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
]
}| community_id required | string |
| title required | string |
| description | string |
| options required | Array of strings |
| start_time required | string <date-time> |
| end_time required | string <date-time> |
| security_level | string Enum: "low" "medium" "high" |
| vote_auth_mode | string |
| quorum_percent | integer |
| allow_delegation | boolean |
{- "community_id": "string",
- "title": "string",
- "description": "string",
- "options": [
- "string"
], - "start_time": "2019-08-24T14:15:22Z",
- "end_time": "2019-08-24T14:15:22Z",
- "security_level": "low",
- "vote_auth_mode": "string",
- "quorum_percent": 0,
- "allow_delegation": true
}| choice required | string |
| wallet_password | string Required if security level > low |
{- "choice": "string",
- "wallet_password": "string"
}{- "transaction_hash": "string",
- "block_height": 0
}| poll_id required | any |
{- "poll_id": "string",
- "total_votes": 0,
- "turnout_percent": 0,
- "quorum_reached": true,
- "results": [
- {
- "option": "string",
- "votes": 0,
- "percent": 0
}
], - "winner": "string"
}{- "data": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "organization_id": "string",
- "deposit_balance": 0,
- "default_security_level": "string",
- "allow_delegation": true,
- "blockchain_contract_address": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
]
}| name required | string |
| description | string |
| organization_id required | string |
| deposit_amount | number |
| default_security_level | string |
| allow_delegation | boolean |
{- "name": "string",
- "description": "string",
- "organization_id": "string",
- "deposit_amount": 0,
- "default_security_level": "string",
- "allow_delegation": true
}{- "community_id": "string",
- "blockchain_contract_address": "string",
- "transaction_hash": "string"
}| token required | string |
| account_name required | string |
| password required | string |
| biometrics_enabled | boolean |
{- "token": "string",
- "account_name": "string",
- "password": "string",
- "biometrics_enabled": true
}| to_wallet required | string |
| poll_id | string Required if scope = single_poll |
| scope required | string Enum: "single_poll" "all_polls" |
{- "to_wallet": "string",
- "poll_id": "string",
- "scope": "single_poll"
}{- "data": [
- {
- "id": "string",
- "from_wallet": "string",
- "to_wallet": "string",
- "poll_id": "string",
- "scope": "single_poll",
- "status": "active",
- "created_at": "2019-08-24T14:15:22Z",
- "revoked_at": "2019-08-24T14:15:22Z"
}
]
}| transaction_hash required | string |
{- "valid": true,
- "poll_id": "string",
- "timestamp": "string",
- "choice": "string",
- "voter_wallet": "string",
- "signature_valid": true
}