Open the sandbox poll or enter TRY3PX on the join page. It has three Choice and Scale questions you can answer at your own pace. Everyone sees the same totals, and all responses clear daily at 00
Send a vote
Call GET /api/v1/join/TRY3PX and keep the signed voter cookie from the response. Use the question ID and revision from that response when you call POST /api/v1/join/TRY3PX/vote. Send the same cookie with each request. You don’t need an API key.
base=https://poll.express
join="$base/api/v1/join/TRY3PX"
cookies=$(mktemp)
state=$(curl -fsS -c "$cookies" "$join")
echo "$state" | jq -c '{
questionId: .questions[0].question.id,
revision: .revision,
answer: [0]
}' | curl -fsS -b "$cookies" \
-H "Origin: $base" -H 'Content-Type: application/json' \
--data-binary @- "$join/vote"
rm "$cookies"Choice answers are arrays of zero-based option indexes. Scale answers are integers from 1 to the question’s config.max. To check which answers you’ve sent, call GET /api/v1/join/TRY3PX/state with your voter cookie.
Read the results
Open shared results or use the embed in an iframe. The JSON feed, CSV feed and JSON snapshot are public.
Limits
You can answer each question once per reset. The sandbox accepts up to 60 vote requests per minute from one network. The usual join and results feed limits also apply. If you get 429, wait for the time in Retry-After before trying again.
To try the owner APIs, create a poll with a free account and make a personal API key. The sandbox is only for voting and reading public results.