REST API
The Doppio API lets you create polls, stream votes, and export results from code. Base URL: https://api.doppio.app/v1.
Authentication
Pass a workspace API key as a bearer token. Create keys in Settings → API.
bash
curl -H "Authorization: Bearer $DOPPIO_KEY" \
https://api.doppio.app/v1/pollsCreate a poll
js
const poll = await doppio.polls.create({
deckId: "1aZ…kQ",
type: "multiple_choice",
prompt: "How are you brewing the team?",
options: ["Single-origin", "House blend", "Decaf"],
});Endpoints
| Method | Path | Description |
|---|---|---|
GET | /polls | List polls in the workspace |
POST | /polls | Create a poll |
GET | /sessions/:id | Fetch a session and its totals |
GET | /sessions/:id/responses.csv | Export responses as CSV |
RATE LIMITS
The API allows 600 requests per minute per key. Streaming vote events over the webhook channel does not count against this limit.