Skip to main content

Documentation Index

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

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

This endpoint returns the current phase of the election as a single string value. Poll it before taking phase-sensitive actions: check for register before adding voters, confirm vote_started before accepting ballot submissions, or verify vote_ended before fetching results. The value is read directly from the voting_config table and reflects real-time state.

Request

GET /voting/vote-status
No request body or query parameters are required.

Response

voting_status
string
required
The current election phase. One of three possible values:

HTTP status codes

CodeMeaning
200Current election phase returned successfully.
404No voting configuration record was found in the database.

Example

curl --request GET \
  --url https://your-api-host/voting/vote-status
{
  "voting_status": "register"
}

Build docs developers (and LLMs) love