{"openapi":"3.1.0","info":{"title":"Poll Express API","version":"1.0.0","description":"Manage polls and questions, control a live presentation, and read poll results."},"paths":{"/api/v1/me":{"get":{"tags":["Account"],"operationId":"decks.me","parameters":[],"security":[{"pollSession":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"example":{"id":"35106440-4840-4d89-aa0d-c6ec6f12b313","name":"Sam"}}}},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"Read your account ID and display name.","summary":"Get your account"}},"/api/v1/decks":{"get":{"tags":["Polls"],"operationId":"decks.list","parameters":[],"security":[{"pollSession":[]},{"pollApiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"title":{"type":"string","minLength":1,"maxLength":120},"code":{"type":"string"},"pacing":{"type":"string","enum":["live","self"]},"questionCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalResponses":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastResponseAt":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"updatedAt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","title","code","pacing","questionCount","totalResponses","lastResponseAt","updatedAt"],"additionalProperties":false}},"example":[]}}},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"List your polls with question counts and recent response totals.","summary":"List polls","x-scopes":["poll.read"]},"post":{"tags":["Polls"],"operationId":"decks.create","parameters":[],"security":[{"pollSession":[]},{"pollApiKey":[]}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"pacing":{"type":"string","enum":["live","self"]},"showResultsToVoters":{"type":"string","enum":["never","afterVote","afterClose"]},"allowChange":{"type":"boolean"},"showBranding":{"type":"boolean"},"shareResults":{"type":"boolean"},"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"code":{"type":"string"},"resultsKey":{"type":"string"},"createdAt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"responsesExpiredAt":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"prompt":{"type":"string","minLength":1,"maxLength":500},"config":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["choice"]},"options":{"type":"array","items":{"type":"string","minLength":1,"maxLength":160},"minItems":2,"maxItems":24,"uniqueItems":true},"maxPicks":{"type":"integer","minimum":1,"maximum":24}},"required":["type","options","maxPicks"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["scale"]},"max":{"type":"integer","minimum":2,"maximum":10},"lowLabel":{"type":"string","minLength":0,"maxLength":100},"highLabel":{"type":"string","minLength":0,"maxLength":100}},"required":["type","max","lowLabel","highLabel"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["text"]}},"required":["type"],"additionalProperties":false}]}},"required":["id","prompt","config"],"additionalProperties":false}}},"required":["title","pacing","showResultsToVoters","allowChange","showBranding","shareResults","id","code","resultsKey","createdAt","updatedAt","responsesExpiredAt","questions"],"additionalProperties":false},"example":{"id":"6b114677-7751-4930-a2da-31fcad879038","title":"Workshop check-in","code":"K7RD4M","resultsKey":"EXAMPLE_RESULTS_KEY_DO_NOT_REUSE","pacing":"live","showResultsToVoters":"afterVote","allowChange":true,"showBranding":true,"shareResults":true,"createdAt":1795620000000,"updatedAt":1795620000000,"responsesExpiredAt":null,"questions":[{"id":"d021f5e3-48d1-4caf-a29d-30a14273e650","prompt":"What should we cover next?","config":{"type":"choice","options":["Examples","Questions"],"maxPicks":1}}]}}}},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"Create a poll with optional questions. An empty draft cannot receive answers. New polls have results links enabled by default.","summary":"Create a poll","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"pacing":{"type":"string","enum":["live","self"]},"showResultsToVoters":{"type":"string","enum":["never","afterVote","afterClose"]},"allowChange":{"type":"boolean"},"showBranding":{"type":"boolean"},"shareResults":{"type":"boolean"},"questions":{"type":"array","items":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":500},"config":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["choice"]},"options":{"type":"array","items":{"type":"string","minLength":1,"maxLength":160},"minItems":2,"maxItems":24,"uniqueItems":true},"maxPicks":{"type":"integer","minimum":1,"maximum":24}},"required":["type","options"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["scale"]},"max":{"type":"integer","minimum":2,"maximum":10},"lowLabel":{"type":"string","minLength":0,"maxLength":100},"highLabel":{"type":"string","minLength":0,"maxLength":100}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["text"]}},"required":["type"],"additionalProperties":false}]}},"required":["prompt","config"],"additionalProperties":false},"maxItems":40}},"additionalProperties":false},"example":{"title":"Workshop check-in","questions":[{"prompt":"What should we cover next?","config":{"type":"choice","options":["Examples","Questions"]}}]}}},"required":true},"x-scopes":["poll.read","poll.write"]}},"/api/v1/decks/{deckId}/links":{"get":{"tags":["Polls"],"operationId":"decks.links","parameters":[{"name":"deckId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pollSession":[]},{"pollApiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"joinUrl":{"type":"string"},"resultsUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"embedUrls":{"anyOf":[{"type":"object","properties":{"paper":{"type":"string"},"dark":{"type":"string"},"transparent":{"type":"string"}},"required":["paper","dark","transparent"],"additionalProperties":false},{"type":"null"}]},"csvUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"jsonUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"downloadCsvUrl":{"type":"string"},"downloadJsonUrl":{"type":"string"},"qrSvgUrl":{"type":"string"},"qrPngUrl":{"type":"string"},"iframe":{"anyOf":[{"type":"string"},{"type":"null"}]},"code":{"type":"string"},"displayCode":{"type":"string"},"presenterUrl":{"type":"string"},"questions":{"type":"array","items":{"type":"object","properties":{"joinUrl":{"type":"string"},"resultsUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"embedUrls":{"anyOf":[{"type":"object","properties":{"paper":{"type":"string"},"dark":{"type":"string"},"transparent":{"type":"string"}},"required":["paper","dark","transparent"],"additionalProperties":false},{"type":"null"}]},"csvUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"jsonUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"downloadCsvUrl":{"type":"string"},"downloadJsonUrl":{"type":"string"},"qrSvgUrl":{"type":"string"},"qrPngUrl":{"type":"string"},"iframe":{"anyOf":[{"type":"string"},{"type":"null"}]},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"prompt":{"type":"string"}},"required":["joinUrl","resultsUrl","embedUrls","csvUrl","jsonUrl","downloadCsvUrl","downloadJsonUrl","qrSvgUrl","qrPngUrl","iframe","position","prompt"],"additionalProperties":false}}},"required":["joinUrl","resultsUrl","embedUrls","csvUrl","jsonUrl","downloadCsvUrl","downloadJsonUrl","qrSvgUrl","qrPngUrl","iframe","code","displayCode","presenterUrl","questions"],"additionalProperties":false}}}},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"Read join, QR and results links. Shared results URLs are null when sharing is off. Owner download URLs still require a browser session.","summary":"Get sharing links","x-scopes":["poll.read"]}},"/api/v1/decks/{deckId}/results-link/rotate":{"post":{"tags":["Polls"],"operationId":"decks.rotateResultsLink","parameters":[{"name":"deckId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pollSession":[]},{"pollApiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"joinUrl":{"type":"string"},"resultsUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"embedUrls":{"anyOf":[{"type":"object","properties":{"paper":{"type":"string"},"dark":{"type":"string"},"transparent":{"type":"string"}},"required":["paper","dark","transparent"],"additionalProperties":false},{"type":"null"}]},"csvUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"jsonUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"downloadCsvUrl":{"type":"string"},"downloadJsonUrl":{"type":"string"},"qrSvgUrl":{"type":"string"},"qrPngUrl":{"type":"string"},"iframe":{"anyOf":[{"type":"string"},{"type":"null"}]},"code":{"type":"string"},"displayCode":{"type":"string"},"presenterUrl":{"type":"string"},"questions":{"type":"array","items":{"type":"object","properties":{"joinUrl":{"type":"string"},"resultsUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"embedUrls":{"anyOf":[{"type":"object","properties":{"paper":{"type":"string"},"dark":{"type":"string"},"transparent":{"type":"string"}},"required":["paper","dark","transparent"],"additionalProperties":false},{"type":"null"}]},"csvUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"jsonUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"downloadCsvUrl":{"type":"string"},"downloadJsonUrl":{"type":"string"},"qrSvgUrl":{"type":"string"},"qrPngUrl":{"type":"string"},"iframe":{"anyOf":[{"type":"string"},{"type":"null"}]},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"prompt":{"type":"string"}},"required":["joinUrl","resultsUrl","embedUrls","csvUrl","jsonUrl","downloadCsvUrl","downloadJsonUrl","qrSvgUrl","qrPngUrl","iframe","position","prompt"],"additionalProperties":false}}},"required":["joinUrl","resultsUrl","embedUrls","csvUrl","jsonUrl","downloadCsvUrl","downloadJsonUrl","qrSvgUrl","qrPngUrl","iframe","code","displayCode","presenterUrl","questions"],"additionalProperties":false}}}},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"Replace all shared results, embed and feed URLs. The old links stop working. The join code stays the same.","summary":"Rotate results links","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"confirm":{"type":"boolean","enum":[true]}},"required":["confirm"],"additionalProperties":false},"example":{"confirm":true}}},"required":true},"x-scopes":["poll.read","poll.write","poll.live"]}},"/api/v1/decks/{deckId}":{"get":{"tags":["Polls"],"operationId":"decks.get","parameters":[{"name":"deckId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pollSession":[]},{"pollApiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"pacing":{"type":"string","enum":["live","self"]},"showResultsToVoters":{"type":"string","enum":["never","afterVote","afterClose"]},"allowChange":{"type":"boolean"},"showBranding":{"type":"boolean"},"shareResults":{"type":"boolean"},"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"code":{"type":"string"},"resultsKey":{"type":"string"},"createdAt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"responsesExpiredAt":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"prompt":{"type":"string","minLength":1,"maxLength":500},"config":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["choice"]},"options":{"type":"array","items":{"type":"string","minLength":1,"maxLength":160},"minItems":2,"maxItems":24,"uniqueItems":true},"maxPicks":{"type":"integer","minimum":1,"maximum":24}},"required":["type","options","maxPicks"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["scale"]},"max":{"type":"integer","minimum":2,"maximum":10},"lowLabel":{"type":"string","minLength":0,"maxLength":100},"highLabel":{"type":"string","minLength":0,"maxLength":100}},"required":["type","max","lowLabel","highLabel"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["text"]}},"required":["type"],"additionalProperties":false}]}},"required":["id","prompt","config"],"additionalProperties":false}}},"required":["title","pacing","showResultsToVoters","allowChange","showBranding","shareResults","id","code","resultsKey","createdAt","updatedAt","responsesExpiredAt","questions"],"additionalProperties":false},"example":{"id":"6b114677-7751-4930-a2da-31fcad879038","title":"Workshop check-in","code":"K7RD4M","resultsKey":"EXAMPLE_RESULTS_KEY_DO_NOT_REUSE","pacing":"live","showResultsToVoters":"afterVote","allowChange":true,"showBranding":true,"shareResults":true,"createdAt":1795620000000,"updatedAt":1795620000000,"responsesExpiredAt":null,"questions":[{"id":"d021f5e3-48d1-4caf-a29d-30a14273e650","prompt":"What should we cover next?","config":{"type":"choice","options":["Examples","Questions"],"maxPicks":1}}]}}}},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"Read one poll’s settings and questions in presentation order.","summary":"Get a poll","x-scopes":["poll.read"]},"patch":{"tags":["Polls"],"operationId":"decks.update","parameters":[{"name":"deckId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pollSession":[]},{"pollApiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"pacing":{"type":"string","enum":["live","self"]},"showResultsToVoters":{"type":"string","enum":["never","afterVote","afterClose"]},"allowChange":{"type":"boolean"},"showBranding":{"type":"boolean"},"shareResults":{"type":"boolean"},"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"code":{"type":"string"},"resultsKey":{"type":"string"},"createdAt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"responsesExpiredAt":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"prompt":{"type":"string","minLength":1,"maxLength":500},"config":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["choice"]},"options":{"type":"array","items":{"type":"string","minLength":1,"maxLength":160},"minItems":2,"maxItems":24,"uniqueItems":true},"maxPicks":{"type":"integer","minimum":1,"maximum":24}},"required":["type","options","maxPicks"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["scale"]},"max":{"type":"integer","minimum":2,"maximum":10},"lowLabel":{"type":"string","minLength":0,"maxLength":100},"highLabel":{"type":"string","minLength":0,"maxLength":100}},"required":["type","max","lowLabel","highLabel"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["text"]}},"required":["type"],"additionalProperties":false}]}},"required":["id","prompt","config"],"additionalProperties":false}}},"required":["title","pacing","showResultsToVoters","allowChange","showBranding","shareResults","id","code","resultsKey","createdAt","updatedAt","responsesExpiredAt","questions"],"additionalProperties":false},"example":{"id":"6b114677-7751-4930-a2da-31fcad879038","title":"Workshop Q&A","code":"K7RD4M","resultsKey":"EXAMPLE_RESULTS_KEY_DO_NOT_REUSE","pacing":"live","showResultsToVoters":"afterVote","allowChange":true,"showBranding":true,"shareResults":true,"createdAt":1795620000000,"updatedAt":1795620000000,"responsesExpiredAt":null,"questions":[{"id":"d021f5e3-48d1-4caf-a29d-30a14273e650","prompt":"What should we cover next?","config":{"type":"choice","options":["Examples","Questions"],"maxPicks":1}}]}}}},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"Change only the settings you send. Turning sharing back on restores the old URLs unless you rotate the results link first.","summary":"Update a poll","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"pacing":{"type":"string","enum":["live","self"]},"showResultsToVoters":{"type":"string","enum":["never","afterVote","afterClose"]},"allowChange":{"type":"boolean"},"showBranding":{"type":"boolean"},"shareResults":{"type":"boolean"}},"additionalProperties":false},"example":{"title":"Workshop Q&A"}}},"required":true},"x-scopes":["poll.read","poll.write"],"x-scopes-for-settings":["poll.read","poll.write","poll.live"]},"delete":{"tags":["Polls"],"operationId":"decks.remove","parameters":[{"name":"deckId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pollSession":[]},{"pollApiKey":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"Permanently delete the poll and its responses. Its join and results links stop working.","summary":"Delete a poll","x-scopes":["poll.read","poll.write"]}},"/api/v1/decks/{deckId}/questions":{"get":{"tags":["Questions"],"operationId":"decks.questions","parameters":[{"name":"deckId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pollSession":[]},{"pollApiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"prompt":{"type":"string","minLength":1,"maxLength":500},"config":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["choice"]},"options":{"type":"array","items":{"type":"string","minLength":1,"maxLength":160},"minItems":2,"maxItems":24,"uniqueItems":true},"maxPicks":{"type":"integer","minimum":1,"maximum":24}},"required":["type","options","maxPicks"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["scale"]},"max":{"type":"integer","minimum":2,"maximum":10},"lowLabel":{"type":"string","minLength":0,"maxLength":100},"highLabel":{"type":"string","minLength":0,"maxLength":100}},"required":["type","max","lowLabel","highLabel"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["text"]}},"required":["type"],"additionalProperties":false}]}},"required":["id","prompt","config"],"additionalProperties":false}},"example":[{"id":"d021f5e3-48d1-4caf-a29d-30a14273e650","prompt":"What should we cover next?","config":{"type":"choice","options":["Examples","Questions"],"maxPicks":1}}]}}},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"List a poll’s questions in presentation order.","summary":"List questions","x-scopes":["poll.read"]},"post":{"tags":["Questions"],"operationId":"decks.addQuestion","parameters":[{"name":"deckId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pollSession":[]},{"pollApiKey":[]}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"prompt":{"type":"string","minLength":1,"maxLength":500},"config":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["choice"]},"options":{"type":"array","items":{"type":"string","minLength":1,"maxLength":160},"minItems":2,"maxItems":24,"uniqueItems":true},"maxPicks":{"type":"integer","minimum":1,"maximum":24}},"required":["type","options","maxPicks"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["scale"]},"max":{"type":"integer","minimum":2,"maximum":10},"lowLabel":{"type":"string","minLength":0,"maxLength":100},"highLabel":{"type":"string","minLength":0,"maxLength":100}},"required":["type","max","lowLabel","highLabel"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["text"]}},"required":["type"],"additionalProperties":false}]}},"required":["id","prompt","config"],"additionalProperties":false},"example":{"id":"d021f5e3-48d1-4caf-a29d-30a14273e650","prompt":"What should we cover next?","config":{"type":"choice","options":["Examples","Questions"],"maxPicks":1}}}}},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"Add a choice, scale or short-text question at the end of the poll.","summary":"Add a question","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":500},"config":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["choice"]},"options":{"type":"array","items":{"type":"string","minLength":1,"maxLength":160},"minItems":2,"maxItems":24,"uniqueItems":true},"maxPicks":{"type":"integer","minimum":1,"maximum":24}},"required":["type","options"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["scale"]},"max":{"type":"integer","minimum":2,"maximum":10},"lowLabel":{"type":"string","minLength":0,"maxLength":100},"highLabel":{"type":"string","minLength":0,"maxLength":100}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["text"]}},"required":["type"],"additionalProperties":false}]}},"required":["prompt","config"],"additionalProperties":false},"example":{"prompt":"What should we cover next?","config":{"type":"choice","options":["Examples","Questions"]}}}},"required":true},"x-scopes":["poll.read","poll.write"]}},"/api/v1/decks/{deckId}/questions/order":{"patch":{"tags":["Questions"],"operationId":"decks.reorder","parameters":[{"name":"deckId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pollSession":[]},{"pollApiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"prompt":{"type":"string","minLength":1,"maxLength":500},"config":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["choice"]},"options":{"type":"array","items":{"type":"string","minLength":1,"maxLength":160},"minItems":2,"maxItems":24,"uniqueItems":true},"maxPicks":{"type":"integer","minimum":1,"maximum":24}},"required":["type","options","maxPicks"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["scale"]},"max":{"type":"integer","minimum":2,"maximum":10},"lowLabel":{"type":"string","minLength":0,"maxLength":100},"highLabel":{"type":"string","minLength":0,"maxLength":100}},"required":["type","max","lowLabel","highLabel"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["text"]}},"required":["type"],"additionalProperties":false}]}},"required":["id","prompt","config"],"additionalProperties":false}},"example":[{"id":"d021f5e3-48d1-4caf-a29d-30a14273e650","prompt":"What should we cover next?","config":{"type":"choice","options":["Examples","Questions"],"maxPicks":1}}]}}},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"Send every current question ID once. Confirm a change of order when the poll has responses. Numbered links follow the new order.","summary":"Reorder questions","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"questionIds":{"type":"array","items":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"maxItems":40},"expectedQuestionIds":{"type":"array","items":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"maxItems":40},"confirm":{"type":"boolean","enum":[true]}},"required":["questionIds"],"additionalProperties":false},"example":{"questionIds":["d021f5e3-48d1-4caf-a29d-30a14273e650"],"confirm":true}}},"required":true},"x-scopes":["poll.read","poll.write"]}},"/api/v1/decks/{deckId}/questions/{questionId}":{"get":{"tags":["Questions"],"operationId":"decks.question","parameters":[{"name":"deckId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"questionId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pollSession":[]},{"pollApiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"prompt":{"type":"string","minLength":1,"maxLength":500},"config":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["choice"]},"options":{"type":"array","items":{"type":"string","minLength":1,"maxLength":160},"minItems":2,"maxItems":24,"uniqueItems":true},"maxPicks":{"type":"integer","minimum":1,"maximum":24}},"required":["type","options","maxPicks"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["scale"]},"max":{"type":"integer","minimum":2,"maximum":10},"lowLabel":{"type":"string","minLength":0,"maxLength":100},"highLabel":{"type":"string","minLength":0,"maxLength":100}},"required":["type","max","lowLabel","highLabel"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["text"]}},"required":["type"],"additionalProperties":false}]}},"required":["id","prompt","config"],"additionalProperties":false},"example":{"id":"d021f5e3-48d1-4caf-a29d-30a14273e650","prompt":"What should we cover next?","config":{"type":"choice","options":["Examples","Questions"],"maxPicks":1}}}}},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"Read a question’s wording and configuration by ID.","summary":"Get a question","x-scopes":["poll.read"]},"put":{"tags":["Questions"],"operationId":"decks.updateQuestion","parameters":[{"name":"deckId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"questionId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pollSession":[]},{"pollApiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"prompt":{"type":"string","minLength":1,"maxLength":500},"config":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["choice"]},"options":{"type":"array","items":{"type":"string","minLength":1,"maxLength":160},"minItems":2,"maxItems":24,"uniqueItems":true},"maxPicks":{"type":"integer","minimum":1,"maximum":24}},"required":["type","options","maxPicks"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["scale"]},"max":{"type":"integer","minimum":2,"maximum":10},"lowLabel":{"type":"string","minLength":0,"maxLength":100},"highLabel":{"type":"string","minLength":0,"maxLength":100}},"required":["type","max","lowLabel","highLabel"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["text"]}},"required":["type"],"additionalProperties":false}]}},"required":["id","prompt","config"],"additionalProperties":false},"example":{"id":"d021f5e3-48d1-4caf-a29d-30a14273e650","prompt":"What should we cover next?","config":{"type":"choice","options":["Examples","Questions"],"maxPicks":1}}}}},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"Structural edits are blocked after a response is recorded. Close voting if needed and reset responses before replacing the structure.","summary":"Replace a question","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":500},"config":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["choice"]},"options":{"type":"array","items":{"type":"string","minLength":1,"maxLength":160},"minItems":2,"maxItems":24,"uniqueItems":true},"maxPicks":{"type":"integer","minimum":1,"maximum":24}},"required":["type","options"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["scale"]},"max":{"type":"integer","minimum":2,"maximum":10},"lowLabel":{"type":"string","minLength":0,"maxLength":100},"highLabel":{"type":"string","minLength":0,"maxLength":100}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["text"]}},"required":["type"],"additionalProperties":false}]}},"required":["prompt","config"],"additionalProperties":false},"example":{"prompt":"What should we cover next?","config":{"type":"choice","options":["Examples","Questions"]}}}},"required":true},"x-scopes":["poll.read","poll.write"]},"patch":{"tags":["Questions"],"operationId":"decks.updateQuestionWording","parameters":[{"name":"deckId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"questionId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pollSession":[]},{"pollApiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"prompt":{"type":"string","minLength":1,"maxLength":500},"config":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["choice"]},"options":{"type":"array","items":{"type":"string","minLength":1,"maxLength":160},"minItems":2,"maxItems":24,"uniqueItems":true},"maxPicks":{"type":"integer","minimum":1,"maximum":24}},"required":["type","options","maxPicks"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["scale"]},"max":{"type":"integer","minimum":2,"maximum":10},"lowLabel":{"type":"string","minLength":0,"maxLength":100},"highLabel":{"type":"string","minLength":0,"maxLength":100}},"required":["type","max","lowLabel","highLabel"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["text"]}},"required":["type"],"additionalProperties":false}]}},"required":["id","prompt","config"],"additionalProperties":false},"example":{"id":"d021f5e3-48d1-4caf-a29d-30a14273e650","prompt":"What should we cover next?","config":{"type":"choice","options":["Worked examples","Questions"],"maxPicks":1}}}}},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"Change a prompt, choice labels by zero-based index, or scale end labels without clearing responses.","summary":"Edit question wording","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":1,"maxLength":500},"optionLabels":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":23},"label":{"type":"string","minLength":1,"maxLength":160}},"required":["index","label"],"additionalProperties":false},"minItems":1,"maxItems":24},"lowLabel":{"type":"string","minLength":0,"maxLength":100},"highLabel":{"type":"string","minLength":0,"maxLength":100}},"additionalProperties":false,"minProperties":1},"example":{"optionLabels":[{"index":0,"label":"Worked examples"}]}}},"required":true},"x-scopes":["poll.read","poll.write"]},"delete":{"tags":["Questions"],"operationId":"decks.removeQuestion","parameters":[{"name":"deckId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"questionId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pollSession":[]},{"pollApiKey":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"Delete a question and its responses. Existing numbered links may now point somewhere else.","summary":"Delete a question","x-scopes":["poll.read","poll.write"]}},"/api/v1/decks/{deckId}/control":{"post":{"tags":["Live control"],"operationId":"decks.control","parameters":[{"name":"deckId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pollSession":[]},{"pollApiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"showBranding":{"type":"boolean"},"currentQuestionId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"pacing":{"type":"string","enum":["live","self"]},"ended":{"type":"boolean"},"responsesExpiredAt":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"deckId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"hasResponses":{"type":"boolean"},"display":{"type":"object","properties":{"theme":{"type":"string","enum":["paper","dark"]},"qr":{"type":"boolean"},"qrQuestion":{"type":"boolean"},"textView":{"type":"string","enum":["answers","cloud"]},"focusQuestionId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]}},"additionalProperties":false},"presence":{"type":"object","properties":{"displays":{"type":"integer","minimum":0,"maximum":9007199254740991},"remotes":{"type":"object","properties":{"phone":{"type":"integer","minimum":0,"maximum":9007199254740991},"window":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["phone","window"],"additionalProperties":false}},"required":["displays","remotes"],"additionalProperties":false},"questions":{"type":"array","items":{"type":"object","properties":{"question":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"prompt":{"type":"string","minLength":1,"maxLength":500},"config":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["choice"]},"options":{"type":"array","items":{"type":"string","minLength":1,"maxLength":160},"minItems":2,"maxItems":24,"uniqueItems":true},"maxPicks":{"type":"integer","minimum":1,"maximum":24}},"required":["type","options","maxPicks"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["scale"]},"max":{"type":"integer","minimum":2,"maximum":10},"lowLabel":{"type":"string","minLength":0,"maxLength":100},"highLabel":{"type":"string","minLength":0,"maxLength":100}},"required":["type","max","lowLabel","highLabel"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["text"]}},"required":["type"],"additionalProperties":false}]}},"required":["id","prompt","config"],"additionalProperties":false},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"open":{"type":"boolean"},"revealed":{"type":"boolean"},"count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"buckets":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"average":{"anyOf":[{"type":"number"},{"type":"null"}]},"text":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"text":{"type":"string"},"hidden":{"type":"boolean"}},"required":["id","text","hidden"],"additionalProperties":false}}},"required":["question","number","open","revealed","count","buckets","average","text"],"additionalProperties":false}}},"required":["title","showBranding","currentQuestionId","pacing","ended","responsesExpiredAt","deckId","hasResponses","questions"],"additionalProperties":false}}}},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"Move the presenter, change voting or results, moderate text, or set the display. Moving to a question does not open or close voting.","summary":"Control the presenter","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"action":{"type":"string","enum":["display"]},"theme":{"type":"string","enum":["paper","dark"]},"qr":{"type":"boolean"},"qrQuestion":{"type":"boolean"},"textView":{"type":"string","enum":["answers","cloud"]},"focusQuestionId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]}},"required":["action"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","enum":["go"]},"questionId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"expectedCurrentQuestionId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]}},"required":["action","questionId"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","enum":["open","close","reveal","conceal"]},"questionId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}},"required":["action","questionId"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","enum":["hideText","showText"]},"questionId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"responseId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}},"required":["action","questionId","responseId"],"additionalProperties":false}]},"example":{"action":"go","questionId":"d021f5e3-48d1-4caf-a29d-30a14273e650"}}},"required":true},"x-scopes":["poll.read","poll.live"]}},"/api/v1/decks/{deckId}/presenter":{"get":{"tags":["Live control"],"operationId":"decks.presenter","parameters":[{"name":"deckId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pollSession":[]},{"pollApiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"showBranding":{"type":"boolean"},"currentQuestionId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"pacing":{"type":"string","enum":["live","self"]},"ended":{"type":"boolean"},"responsesExpiredAt":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"deckId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"hasResponses":{"type":"boolean"},"display":{"type":"object","properties":{"theme":{"type":"string","enum":["paper","dark"]},"qr":{"type":"boolean"},"qrQuestion":{"type":"boolean"},"textView":{"type":"string","enum":["answers","cloud"]},"focusQuestionId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]}},"additionalProperties":false},"presence":{"type":"object","properties":{"displays":{"type":"integer","minimum":0,"maximum":9007199254740991},"remotes":{"type":"object","properties":{"phone":{"type":"integer","minimum":0,"maximum":9007199254740991},"window":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["phone","window"],"additionalProperties":false}},"required":["displays","remotes"],"additionalProperties":false},"questions":{"type":"array","items":{"type":"object","properties":{"question":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"prompt":{"type":"string","minLength":1,"maxLength":500},"config":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["choice"]},"options":{"type":"array","items":{"type":"string","minLength":1,"maxLength":160},"minItems":2,"maxItems":24,"uniqueItems":true},"maxPicks":{"type":"integer","minimum":1,"maximum":24}},"required":["type","options","maxPicks"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["scale"]},"max":{"type":"integer","minimum":2,"maximum":10},"lowLabel":{"type":"string","minLength":0,"maxLength":100},"highLabel":{"type":"string","minLength":0,"maxLength":100}},"required":["type","max","lowLabel","highLabel"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["text"]}},"required":["type"],"additionalProperties":false}]}},"required":["id","prompt","config"],"additionalProperties":false},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"open":{"type":"boolean"},"revealed":{"type":"boolean"},"count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"buckets":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"average":{"anyOf":[{"type":"number"},{"type":"null"}]},"text":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"text":{"type":"string"},"hidden":{"type":"boolean"}},"required":["id","text","hidden"],"additionalProperties":false}}},"required":["question","number","open","revealed","count","buckets","average","text"],"additionalProperties":false}}},"required":["title","showBranding","currentQuestionId","pacing","ended","responsesExpiredAt","deckId","hasResponses","questions"],"additionalProperties":false}}}},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"Read the on-screen results, plus display settings and presence when available.","summary":"Get presenter state","x-scopes":["poll.read"]}},"/api/v1/decks/{deckId}/responses/reset":{"post":{"tags":["Live control"],"operationId":"decks.resetResponses","parameters":[{"name":"deckId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pollSession":[]},{"pollApiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"showBranding":{"type":"boolean"},"currentQuestionId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"pacing":{"type":"string","enum":["live","self"]},"ended":{"type":"boolean"},"responsesExpiredAt":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"deckId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"hasResponses":{"type":"boolean"},"display":{"type":"object","properties":{"theme":{"type":"string","enum":["paper","dark"]},"qr":{"type":"boolean"},"qrQuestion":{"type":"boolean"},"textView":{"type":"string","enum":["answers","cloud"]},"focusQuestionId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]}},"additionalProperties":false},"presence":{"type":"object","properties":{"displays":{"type":"integer","minimum":0,"maximum":9007199254740991},"remotes":{"type":"object","properties":{"phone":{"type":"integer","minimum":0,"maximum":9007199254740991},"window":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["phone","window"],"additionalProperties":false}},"required":["displays","remotes"],"additionalProperties":false},"questions":{"type":"array","items":{"type":"object","properties":{"question":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"prompt":{"type":"string","minLength":1,"maxLength":500},"config":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["choice"]},"options":{"type":"array","items":{"type":"string","minLength":1,"maxLength":160},"minItems":2,"maxItems":24,"uniqueItems":true},"maxPicks":{"type":"integer","minimum":1,"maximum":24}},"required":["type","options","maxPicks"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["scale"]},"max":{"type":"integer","minimum":2,"maximum":10},"lowLabel":{"type":"string","minLength":0,"maxLength":100},"highLabel":{"type":"string","minLength":0,"maxLength":100}},"required":["type","max","lowLabel","highLabel"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["text"]}},"required":["type"],"additionalProperties":false}]}},"required":["id","prompt","config"],"additionalProperties":false},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"open":{"type":"boolean"},"revealed":{"type":"boolean"},"count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"buckets":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"average":{"anyOf":[{"type":"number"},{"type":"null"}]},"text":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"text":{"type":"string"},"hidden":{"type":"boolean"}},"required":["id","text","hidden"],"additionalProperties":false}}},"required":["question","number","open","revealed","count","buckets","average","text"],"additionalProperties":false}}},"required":["title","showBranding","currentQuestionId","pacing","ended","responsesExpiredAt","deckId","hasResponses","questions"],"additionalProperties":false}}}},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"Permanently clear responses to one question or the whole poll. Voting and results visibility stay as they were.","summary":"Reset responses","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"confirm":{"type":"boolean","enum":[true]},"questionId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"}},"required":["confirm"],"additionalProperties":false},"example":{"confirm":true,"questionId":"d021f5e3-48d1-4caf-a29d-30a14273e650"}}},"required":true},"x-scopes":["poll.read","poll.write","poll.live"]}},"/api/v1/decks/{deckId}/end":{"post":{"tags":["Live control"],"operationId":"decks.endDeck","parameters":[{"name":"deckId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pollSession":[]},{"pollApiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"showBranding":{"type":"boolean"},"currentQuestionId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"pacing":{"type":"string","enum":["live","self"]},"ended":{"type":"boolean"},"responsesExpiredAt":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"deckId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"hasResponses":{"type":"boolean"},"display":{"type":"object","properties":{"theme":{"type":"string","enum":["paper","dark"]},"qr":{"type":"boolean"},"qrQuestion":{"type":"boolean"},"textView":{"type":"string","enum":["answers","cloud"]},"focusQuestionId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]}},"additionalProperties":false},"presence":{"type":"object","properties":{"displays":{"type":"integer","minimum":0,"maximum":9007199254740991},"remotes":{"type":"object","properties":{"phone":{"type":"integer","minimum":0,"maximum":9007199254740991},"window":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["phone","window"],"additionalProperties":false}},"required":["displays","remotes"],"additionalProperties":false},"questions":{"type":"array","items":{"type":"object","properties":{"question":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"prompt":{"type":"string","minLength":1,"maxLength":500},"config":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["choice"]},"options":{"type":"array","items":{"type":"string","minLength":1,"maxLength":160},"minItems":2,"maxItems":24,"uniqueItems":true},"maxPicks":{"type":"integer","minimum":1,"maximum":24}},"required":["type","options","maxPicks"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["scale"]},"max":{"type":"integer","minimum":2,"maximum":10},"lowLabel":{"type":"string","minLength":0,"maxLength":100},"highLabel":{"type":"string","minLength":0,"maxLength":100}},"required":["type","max","lowLabel","highLabel"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["text"]}},"required":["type"],"additionalProperties":false}]}},"required":["id","prompt","config"],"additionalProperties":false},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"open":{"type":"boolean"},"revealed":{"type":"boolean"},"count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"buckets":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"average":{"anyOf":[{"type":"number"},{"type":"null"}]},"text":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"text":{"type":"string"},"hidden":{"type":"boolean"}},"required":["id","text","hidden"],"additionalProperties":false}}},"required":["question","number","open","revealed","count","buckets","average","text"],"additionalProperties":false}}},"required":["title","showBranding","currentQuestionId","pacing","ended","responsesExpiredAt","deckId","hasResponses","questions"],"additionalProperties":false}}}},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"Close voting on every question and stop Live pacing. Existing responses stay available.","summary":"End a poll","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"confirm":{"type":"boolean","enum":[true]}},"required":["confirm"],"additionalProperties":false},"example":{"confirm":true}}},"required":true},"x-scopes":["poll.read","poll.live"]}},"/api/v1/decks/{deckId}/results":{"get":{"tags":["Results and exports"],"operationId":"decks.results","parameters":[{"name":"deckId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"view","in":"query","schema":{"type":"string","enum":["private","presenter"]},"required":false}],"security":[{"pollSession":[]},{"pollApiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"showBranding":{"type":"boolean"},"currentQuestionId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"pacing":{"type":"string","enum":["live","self"]},"ended":{"type":"boolean"},"responsesExpiredAt":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"deckId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"hasResponses":{"type":"boolean"},"display":{"type":"object","properties":{"theme":{"type":"string","enum":["paper","dark"]},"qr":{"type":"boolean"},"qrQuestion":{"type":"boolean"},"textView":{"type":"string","enum":["answers","cloud"]},"focusQuestionId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]}},"additionalProperties":false},"presence":{"type":"object","properties":{"displays":{"type":"integer","minimum":0,"maximum":9007199254740991},"remotes":{"type":"object","properties":{"phone":{"type":"integer","minimum":0,"maximum":9007199254740991},"window":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["phone","window"],"additionalProperties":false}},"required":["displays","remotes"],"additionalProperties":false},"questions":{"type":"array","items":{"type":"object","properties":{"question":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"prompt":{"type":"string","minLength":1,"maxLength":500},"config":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["choice"]},"options":{"type":"array","items":{"type":"string","minLength":1,"maxLength":160},"minItems":2,"maxItems":24,"uniqueItems":true},"maxPicks":{"type":"integer","minimum":1,"maximum":24}},"required":["type","options","maxPicks"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["scale"]},"max":{"type":"integer","minimum":2,"maximum":10},"lowLabel":{"type":"string","minLength":0,"maxLength":100},"highLabel":{"type":"string","minLength":0,"maxLength":100}},"required":["type","max","lowLabel","highLabel"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["text"]}},"required":["type"],"additionalProperties":false}]}},"required":["id","prompt","config"],"additionalProperties":false},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"open":{"type":"boolean"},"revealed":{"type":"boolean"},"count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"buckets":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"average":{"anyOf":[{"type":"number"},{"type":"null"}]},"text":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"text":{"type":"string"},"hidden":{"type":"boolean"}},"required":["id","text","hidden"],"additionalProperties":false}}},"required":["question","number","open","revealed","count","buckets","average","text"],"additionalProperties":false}}},"required":["title","showBranding","currentQuestionId","pacing","ended","responsesExpiredAt","deckId","hasResponses","questions"],"additionalProperties":false}}}},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"Read the private results or use view=presenter for the projection shown on screen.","summary":"Get poll results","x-scopes":["poll.read"]}},"/api/v1/decks/{deckId}/questions/{questionId}/results":{"get":{"tags":["Results and exports"],"operationId":"decks.questionResults","parameters":[{"name":"deckId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"questionId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pollSession":[]},{"pollApiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"showBranding":{"type":"boolean"},"currentQuestionId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"pacing":{"type":"string","enum":["live","self"]},"ended":{"type":"boolean"},"responsesExpiredAt":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"deckId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"hasResponses":{"type":"boolean"},"display":{"type":"object","properties":{"theme":{"type":"string","enum":["paper","dark"]},"qr":{"type":"boolean"},"qrQuestion":{"type":"boolean"},"textView":{"type":"string","enum":["answers","cloud"]},"focusQuestionId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]}},"additionalProperties":false},"presence":{"type":"object","properties":{"displays":{"type":"integer","minimum":0,"maximum":9007199254740991},"remotes":{"type":"object","properties":{"phone":{"type":"integer","minimum":0,"maximum":9007199254740991},"window":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["phone","window"],"additionalProperties":false}},"required":["displays","remotes"],"additionalProperties":false},"questions":{"type":"array","items":{"type":"object","properties":{"question":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"prompt":{"type":"string","minLength":1,"maxLength":500},"config":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["choice"]},"options":{"type":"array","items":{"type":"string","minLength":1,"maxLength":160},"minItems":2,"maxItems":24,"uniqueItems":true},"maxPicks":{"type":"integer","minimum":1,"maximum":24}},"required":["type","options","maxPicks"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["scale"]},"max":{"type":"integer","minimum":2,"maximum":10},"lowLabel":{"type":"string","minLength":0,"maxLength":100},"highLabel":{"type":"string","minLength":0,"maxLength":100}},"required":["type","max","lowLabel","highLabel"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["text"]}},"required":["type"],"additionalProperties":false}]}},"required":["id","prompt","config"],"additionalProperties":false},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"open":{"type":"boolean"},"revealed":{"type":"boolean"},"count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"buckets":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"average":{"anyOf":[{"type":"number"},{"type":"null"}]},"text":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"text":{"type":"string"},"hidden":{"type":"boolean"}},"required":["id","text","hidden"],"additionalProperties":false}}},"required":["question","number","open","revealed","count","buckets","average","text"],"additionalProperties":false}}},"required":["title","showBranding","currentQuestionId","pacing","ended","responsesExpiredAt","deckId","hasResponses","questions"],"additionalProperties":false}}}},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"Read the private results for one question.","summary":"Get question results","x-scopes":["poll.read"]}},"/api/v1/decks/{deckId}/results.json":{"get":{"tags":["Results and exports"],"operationId":"decks.json","parameters":[{"name":"deckId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pollSession":[]},{"pollApiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"schema_version":{"type":"number","enum":[1]},"deck_id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"questions":{"type":"array","items":{"type":"object","properties":{"question_id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"question_number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"prompt":{"type":"string"},"question_type":{"type":"string","enum":["choice","scale","text"]},"visible":{"type":"boolean"},"total_responses":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"average":{"anyOf":[{"type":"number"},{"type":"null"}]},"options":{"type":"array","items":{"type":"object","properties":{"option":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"percent":{"type":"number"}},"required":["option","count","percent"],"additionalProperties":false}}},"required":["question_id","question_number","prompt","question_type","visible","total_responses","average","options"],"additionalProperties":false}}},"required":["schema_version","deck_id","questions"],"additionalProperties":false}}}},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"Read a JSON snapshot of exportable poll results.","summary":"Get poll results as JSON","x-scopes":["poll.read"]}},"/api/v1/decks/{deckId}/results.csv":{"get":{"tags":["Results and exports"],"operationId":"decks.csv","parameters":[{"name":"deckId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pollSession":[]},{"pollApiKey":[]}],"responses":{"200":{"description":"Success","content":{"text/csv; charset=utf-8":{"schema":{"type":"string"}}}},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"Read a UTF-8 CSV snapshot of exportable poll results.","summary":"Get poll results as CSV","x-scopes":["poll.read"]}},"/api/v1/decks/{deckId}/questions/{questionId}/results.json":{"get":{"tags":["Results and exports"],"operationId":"decks.questionJson","parameters":[{"name":"deckId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"questionId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pollSession":[]},{"pollApiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"schema_version":{"type":"number","enum":[1]},"deck_id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"questions":{"type":"array","items":{"type":"object","properties":{"question_id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"question_number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"prompt":{"type":"string"},"question_type":{"type":"string","enum":["choice","scale","text"]},"visible":{"type":"boolean"},"total_responses":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"average":{"anyOf":[{"type":"number"},{"type":"null"}]},"options":{"type":"array","items":{"type":"object","properties":{"option":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"percent":{"type":"number"}},"required":["option","count","percent"],"additionalProperties":false}}},"required":["question_id","question_number","prompt","question_type","visible","total_responses","average","options"],"additionalProperties":false}}},"required":["schema_version","deck_id","questions"],"additionalProperties":false}}}},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"Read a JSON snapshot of exportable results for one question.","summary":"Get question results as JSON","x-scopes":["poll.read"]}},"/api/v1/decks/{deckId}/questions/{questionId}/results.csv":{"get":{"tags":["Results and exports"],"operationId":"decks.questionCsv","parameters":[{"name":"deckId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true},{"name":"questionId","in":"path","schema":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"required":true}],"security":[{"pollSession":[]},{"pollApiKey":[]}],"responses":{"200":{"description":"Success","content":{"text/csv; charset=utf-8":{"schema":{"type":"string"}}}},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"Read a UTF-8 CSV snapshot of exportable results for one question.","summary":"Get question results as CSV","x-scopes":["poll.read"]}},"/api/v1/qr/{code}/{format}":{"get":{"tags":["Public"],"operationId":"audience.qr","parameters":[{"name":"code","in":"path","schema":{"type":"string"},"required":true},{"name":"format","in":"path","schema":{"type":"string","enum":["svg","png"]},"required":true},{"name":"question","in":"query","schema":{"type":"string"},"required":false},{"name":"ink","in":"query","schema":{"anyOf":[{"type":"string","enum":["ink","black","blue","red"]},{"type":"string"}]},"required":false},{"name":"transparent","in":"query","schema":{"type":"string","enum":["1","0"]},"required":false}],"security":[],"responses":{"200":{"description":"Success","content":{"image/svg+xml":{"schema":{"type":"string"}},"image/png":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"Render an SVG or PNG. Pass a question number starting at 1 to link directly to that question.","summary":"Render a voting QR code"}},"/api/v1/results/{key}":{"get":{"tags":["Public"],"operationId":"audience.results","parameters":[{"name":"key","in":"path","schema":{"type":"string"},"required":true},{"name":"question","in":"query","schema":{"type":"string"},"required":false}],"security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"showBranding":{"type":"boolean"},"currentQuestionId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]},"pacing":{"type":"string","enum":["live","self"]},"ended":{"type":"boolean"},"responsesExpiredAt":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"deckId":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"hasResponses":{"type":"boolean"},"display":{"type":"object","properties":{"theme":{"type":"string","enum":["paper","dark"]},"qr":{"type":"boolean"},"qrQuestion":{"type":"boolean"},"textView":{"type":"string","enum":["answers","cloud"]},"focusQuestionId":{"anyOf":[{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},{"type":"null"}]}},"additionalProperties":false},"presence":{"type":"object","properties":{"displays":{"type":"integer","minimum":0,"maximum":9007199254740991},"remotes":{"type":"object","properties":{"phone":{"type":"integer","minimum":0,"maximum":9007199254740991},"window":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["phone","window"],"additionalProperties":false}},"required":["displays","remotes"],"additionalProperties":false},"questions":{"type":"array","items":{"type":"object","properties":{"question":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"prompt":{"type":"string","minLength":1,"maxLength":500},"config":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["choice"]},"options":{"type":"array","items":{"type":"string","minLength":1,"maxLength":160},"minItems":2,"maxItems":24,"uniqueItems":true},"maxPicks":{"type":"integer","minimum":1,"maximum":24}},"required":["type","options","maxPicks"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["scale"]},"max":{"type":"integer","minimum":2,"maximum":10},"lowLabel":{"type":"string","minLength":0,"maxLength":100},"highLabel":{"type":"string","minLength":0,"maxLength":100}},"required":["type","max","lowLabel","highLabel"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["text"]}},"required":["type"],"additionalProperties":false}]}},"required":["id","prompt","config"],"additionalProperties":false},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"open":{"type":"boolean"},"revealed":{"type":"boolean"},"count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"buckets":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"average":{"anyOf":[{"type":"number"},{"type":"null"}]},"text":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid"},"text":{"type":"string"},"hidden":{"type":"boolean"}},"required":["id","text","hidden"],"additionalProperties":false}}},"required":["question","number","open","revealed","count","buckets","average","text"],"additionalProperties":false}}},"required":["title","showBranding","currentQuestionId","pacing","ended","responsesExpiredAt","deckId","hasResponses","questions"],"additionalProperties":false}}}},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"description":"Read visible results using an enabled results link key. Use the optional question number to narrow the snapshot.","summary":"Get shared results"}},"/api/v1/agent-setup/exchange":{"post":{"tags":["Account"],"operationId":"agentSetup.exchange","parameters":[{"name":"authorization","in":"header","schema":{"type":"string"},"required":false}],"security":[{"pollSetupToken":[]}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"key":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","enum":["poll.read","poll.write","poll.live"]},"uniqueItems":true},"expiresAt":{"type":"string"}},"required":["id","key","scopes","expiresAt"],"additionalProperties":false}}}},"400":{"description":"Invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"Conflict | StructuralEditBlocked","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConflictEncoded"},{"$ref":"#/components/schemas/StructuralEditBlockedEncoded"}]}}}},"413":{"description":"TooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnavailableEncoded"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"agentName":{"type":"string"}},"required":["agentName"],"additionalProperties":false},"example":{"agentName":"Workshop assistant"}}},"required":true},"summary":"Exchange an agent setup token","description":"Send the one-time setup token as a bearer credential. A successful exchange consumes it and shows the new MCP key once."}}},"components":{"schemas":{"UnavailableEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["Unavailable"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"RateLimitedEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["RateLimited"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"TooLargeEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["TooLarge"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"StructuralEditBlockedEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["StructuralEditBlocked"]},"message":{"type":"string"},"closeRequired":{"type":"boolean"},"resetRequired":{"type":"boolean"}},"required":["_tag","message","closeRequired","resetRequired"],"additionalProperties":false},"ConflictEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["Conflict"]},"message":{"type":"string"},"reason":{"type":"string","enum":["reorder-confirmation"]}},"required":["_tag","message"],"additionalProperties":false},"NotFoundEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["NotFound"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"ForbiddenEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["Forbidden"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"UnauthorizedEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["Unauthorized"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false},"InvalidEncoded":{"type":"object","properties":{"_tag":{"type":"string","enum":["Invalid"]},"message":{"type":"string"}},"required":["_tag","message"],"additionalProperties":false}},"securitySchemes":{"pollApiKey":{"type":"http","scheme":"bearer","bearerFormat":"Poll Express personal API key","description":"Create or revoke a scoped key under Account → Connections."},"pollSession":{"type":"apiKey","in":"cookie","name":"__Secure-better-auth.session_token","description":"Browser session established by signing in with a passkey."},"pollSetupToken":{"type":"http","scheme":"bearer","bearerFormat":"One-time setup token"}}},"security":[],"tags":[{"name":"Account"},{"name":"Polls"},{"name":"Questions"},{"name":"Live control"},{"name":"Results and exports"},{"name":"Public"}],"servers":[{"url":"https://poll.express"}],"externalDocs":{"url":"https://poll.express/docs/"}}