Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Crypto-Project-ENSTA/front-end/llms.txt

Use this file to discover all available pages before exploring further.

This admin endpoint transitions the system from the register phase to the vote_started phase. Once called, registration closes immediately and all enrolled voters can begin casting ballots. It takes no request body — the action is the transition itself.
POST /voting/start-vote
No request body is required.

Response fields

status
"success" | "error"
Indicates whether the transition succeeded or failed.
message
string
A human-readable description of the outcome.
This endpoint is only available when voting_status === "register". Calls made during an active or ended vote will return an error.
This action transitions all voters to the voting phase immediately — registration closes the moment this request succeeds. Ensure voter enrollment is complete before calling this endpoint.

Example request

curl -X POST "$API_URL/voting/start-vote" \
  -H "Authorization: Bearer $ADMIN_TOKEN"

Example responses

{
  "status": "success",
  "message": "Voting has started."
}

Build docs developers (and LLMs) love