All endpoints

Developers / StrawPoll API / Polls

Delete a poll

DELETE/polls/{id}

Moves the poll to the trash, where you can restore it from the dashboard or with POST /forms/{slug}/restore. permanent=true deletes it and its votes for good.

Needs an API key.

Parameters

Path

  • id string required max. 20

    The poll's id, as in https://strawpoll.com/r/{id}. The same as its form's slug.

Query

  • permanent boolean

    Default: false

Responses

Done.

  • success boolean

Try it

Create a key

Sent from your browser straight to the API, nowhere else. With “Remember” on it stays until you close this tab. A read-only key lets you look around without changing anything.

DELETE https://new.strawpoll.com/api/v4/polls/{id}

Paste an API key to send requests that need one.

Requests with a key count against your plan’s daily API requests.