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 endpoint validates a voter’s N1 authentication code — a one-time token issued at registration. It is called during Step 1 of the voting flow at /vote. A true response confirms the voter is eligible to proceed; a false response blocks further progress through the voting stepper.
POST /voters/check_n1

Request body

n1
string
required
The voter’s N1 authentication code received during registration.

Response fields

is_N1_exist
boolean
true if the N1 code is valid and the voter is eligible to vote. false if the code is not recognised.

Example request

curl -X POST "$API_URL/voters/check_n1" \
  -H "Content-Type: application/json" \
  -d '{"n1": "your-n1-code-here"}'

Example responses

{
  "is_N1_exist": true
}
This endpoint is called during Step 1 of the voting stepper at /vote. When is_N1_exist is false, the voter is not permitted to proceed to subsequent steps.
N1 codes are single-use authentication tokens. Do not share them — anyone who obtains an N1 code can authenticate as that voter.

Build docs developers (and LLMs) love