All endpoints

Developers / StrawPoll API / Codes and invites

Invite everyone on one of your invite lists

POST/forms/{slug}/invites/import

Entries with an email become email invites, the others unique codes. Entries already in the form are skipped; invites that came from this list take on its current weights.

Needs an API key.

Parameters

Path

  • slug string required max. 20

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

Request body application/json

  • inviteListId string (uuid) required

Responses

How many email invites and codes were added, and how many entries were skipped.

  • data object

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.

POST https://new.strawpoll.com/api/v4/forms/{slug}/invites/import

Paste an API key to send requests that need one.

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