Polls in your product, your scripts and your assistant

Create and publish polls, collect responses and read results through the API. Or connect Claude and other assistants to the StrawPoll MCP server.

Votes and responses are never metered, through the API too.

curl https://api.strawpoll.com/v4/forms \
  -H "X-API-Key: sp_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Where should we go for lunch?",
    "status": "published",
    "sections": [{
      "type": "multiple_choice",
      "fields": [{
        "type": "multiple_choice",
        "label": "Where should we go for lunch?",
        "choices": [
          { "label": "Pizza" },
          { "label": "Sushi" },
          { "label": "Tacos" }
        ]
      }]
    }]
  }'

Polls through a REST API

The API creates and publishes polls, collects responses and reads results, with an OpenAPI spec to generate a client from. Embed the poll in your page with one script tag.

  • REST API with an OpenAPI spec
  • Embed with one script tag
  • Duplicate checks and live results included
The share options with the link, QR code and embed code

An MCP server for AI assistants

Add the StrawPoll MCP server to Claude, ChatGPT or Cursor and sign in once. Your assistant creates polls and surveys, closes them and reads the results. Assistants without tools can hand you a prefilled editor link instead.

  • Claude, ChatGPT, Cursor and other MCP clients
  • Create polls, close them and read results
  • Prefilled links open the editor ready to go
The poll editor with a poll ready to publish

Every response, sent where you need it

Webhooks send each response as a signed payload to your server. Slack, Discord, Google Sheets, Notion, Airtable, Zapier, Make and n8n work too, and hidden fields carry your own IDs along.

  • Webhooks with every response
  • Notion, Airtable, Zapier, Make and n8n
  • Hidden fields for your own IDs
The integrations page with the tools responses can go to

Good to know

Building with StrawPoll: API, webhooks and MCP

How to create polls from code, receive responses as they arrive, carry your own IDs through, and let AI assistants work with polls for you.

2 min read

Three ways in

  • The [REST API](/docs/api) creates and publishes polls, collects responses and reads results. Version 4 is the one for new work, with an OpenAPI spec to generate a client from.
  • Webhooks push each response to your server as it arrives, as a signed payload.
  • The MCP server lets Claude, ChatGPT, Cursor and other assistants create polls, close them and read results after you sign in once.

The API is part of every account, and votes and responses are never metered.

Receive every response

  1. 1 Open Integrations in your dashboard and add a webhook with your endpoint.
  2. 2 Choose which polls it applies to.
  3. 3 Click Send test and check the sample arrives.
  4. 4 Verify each request with the signing secret, using the example on the integration page. Create a new secret any time it might have leaked.

Not writing a server? Zapier, Make and n8n take the same responses into thousands of other apps, and Slack, Discord, Google Sheets, Notion and Airtable connect directly.

Carry your own data through

Every poll can be answered ahead through its link. Each question has a parameter, shown under Prefill label, so `?favorite_food=Pizza` preselects an option. Respondents still see prefilled answers and can change them.

Add a Hidden fields block and list parameters like `user_id, plan`. Respondents don’t see them, and their values arrive with every response, in the webhook, the API and the CSV export.

Put polls in your product

Embed a poll with one snippet, inline, as a popup or as a full page. It uses the same settings as the link, and edits you publish show up without replacing the code.

Assistants and prefilled editor links

With the MCP server, ask your assistant to “make a poll for Friday’s team lunch and close it at noon”, and it does. Assistants without tools can hand you a prefilled editor link instead: you open it, check the poll and publish.

Questions people ask

Developers & AI agents

Bug reports that land where your team works

Start from the bug report form, connect a webhook and let every report reach your tracker.

Bug report 5 questions · ~2 min