Votes (v2)
Create a vote
Runs all three steps' rules, then opens the vote (the Share step) and answers its document with the share link; draft: true keeps it as an unshared draft instead (the Settings step's autosave). The vote is filed under the caller's trip as the Share step settles it: tripExternalId names one the caller may build on, else the place and dates typed match one, else a new trip is made. A free account at its trip limit with nothing matching gets the vote without a trip and needs_trip_choice with the candidates; POST /votes/{code}/trip files it afterwards.
post/api/v2/votes
Request
- Base URL: https://www.endlesstravelplans.com
- URL: https://www.endlesstravelplans.com/api/v2/votes
- Auth: HTTP bearer
Request body
Example request
{
"step": "settings",
"title": "Where do we go for spring break?",
"typeId": 1,
"description": "Et animi quos velit et fugiat.",
"tripExternalId": "01J9X",
"tripDestination": "l",
"departureDate": "2026-10-16",
"returnDate": "2026-10-16",
"options": [
{
"title": "Lisbon"
},
{
"title": "Porto"
}
],
"activePreset": 16,
"anonymous": true,
"rankedChoiceVoting": true,
"voterRoles": [
{
"name": "Sam",
"role": "parent"
}
],
"nameRequired": true,
"votingDeadline": "2026-11-30",
"consensusThresholdPercent": 22
}Response
Example response
{
"code": "7Q2K-9M4N",
"state": "open",
"title": "Where do we go for spring break?",
"options": [
{
"id": 1,
"title": "Lisbon",
"votes": 0
}
],
"share_url": "https://endlesstravelplans.com/vote/join/7Q2K9M4N",
"events": [
{
"name": "vote.shared",
"properties": {
"tool": "vote_tool"
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.