Request-Body application/json
titlestring Pflicht max. 255The question.
optionsarray of string PflichtThe answers to choose from, at least two (one for meeting polls).
typestringmultiple_choice: pick one option, or several withallowMultiple.ranking: order the options; each place earns points.ranked_choice: rank the options; an instant runoff finds the majority winner.meeting: mark which dates and times work.
Einer von:
multiple_choicerankingranked_choicemeetingdescriptionstring max. 2000Text under the question.
statusstringEiner von:
draftpublishedStandard:
publishedworkspaceIdstring (uuid)Defaults to the workspace your new polls go to.
allowMultiplebooleanStandard:
falseallowOtherbooleanStandard:
falserequireNamesbooleanStandard:
falseresultsVisibilitystringEiner von:
publicpublic_after_responsepublic_after_closeprivateduplicateCheckstringEiner von:
nonesessionipnameemailcodeclosesAtstring (date-time) | nulltimezonestringMeeting polls: the time zone of the slots. Default UTC.
Antworten
The created poll.
idstringThe poll's id, as in https://strawpoll.com/r/{id}.
titlestringdescriptionstringtypestringmultiple_choice: pick one option, or several withallowMultiple.ranking: order the options; each place earns points.ranked_choice: rank the options; an instant runoff finds the majority winner.meeting: mark which dates and times work.
Einer von:
multiple_choicerankingranked_choicemeetingstatusstringdeletedandblockedare set by moderation; such forms cannot be changed.Einer von:
draftpublishedarchiveddeletedblockedisOpenbooleanvoteCountintegerHow many people voted.
optionsarray of PollOptionotherAnswersarray of objectAnswers voters added themselves, when
allowOtheris on.winnerstring | nullRanked choice only.
tiedarray of stringRanked choice only; the options tied for the win.
roundsintegerRanked choice only.
settingsPollSettingsurlsPollUrlscreatedAtstring (date-time)updatedAtstring (date-time) | null
Ausprobieren
Geht von deinem Browser direkt an die API und nirgendwo sonst hin. Mit „Merken“ bleibt er, bis du diesen Tab schließt. Mit einem Nur-Lesen-Schlüssel schaust du dich um, ohne etwas zu ändern.
https://new.strawpoll.com/api/v4/pollsFüge einen API-Schlüssel ein, um Anfragen zu senden, die einen brauchen.
Anfragen mit Schlüssel zählen gegen die täglichen API-Anfragen deines Tarifs.