Skip to Content
MinexonMinexon

vote.visit

Verifies the player’s vote on the selected voting site.

POST/api/v1/{locale}/vote

API scope vote.visit

Request

Send Authorization: Bearer <key> with each request.

Path parameters

FieldTypeRequirementDescription
localetr or enRequiredRequest locale.

Request body

FieldTypeRequirementDescription
siteintegerRequiredVoting site ID.

Run samples from your application server. See Quickstart for variables and sessions.

curl --fail-with-body --request POST \
  -H "Authorization: Bearer $MINEXON_API_KEY" \
  -H 'Content-Type: application/json' \
  --data '{
  "site": 1
}' \
  "${MINEXON_BASE_URL}/api/v1/en/vote"

Response

HTTP 200 · application/json

FieldTypeRequirementDescription
nextstringRequiredURL of the next player page.
noticesstring[]ConditionalSuccess and state codes.
errorstringConditionalError code.
errorsstring[]ConditionalField or operation error codes.
resultstringConditionalVote verification result code, when present.
{
  "next": "/en/vote",
  "result": "confirmed"
}

When the form is shown again, the response can contain data instead of next. Check the HTTP status and the error fields together.

Form response fields
FieldTypeRequirementDescription
localestringRequiredResponse locale.
errorstring or nullConditionalAction error. Can be empty on success.
errorsarray or objectConditionalField or form validation errors.
noticestring or nullConditionalAction notice.
listingsJSON valueConditionalValue determined by screen and configuration.

Flow and error cases

Shared error and authentication contract