All endpoints

Developers / StrawPoll API / Codes and invites

Add email invites

POST/forms/{slug}/invites

One invite { name, email, code, weight } or up to 1000 as { "invites": [...] }. Emails are lower-cased. Addresses already invited, and in a batch invalid emails or weights, are skipped and counted in skipped. Every invite gets a code: a requested code already in use, or none, is replaced by a generated one. The new invites come without responded.

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

InviteInput | object

Responses

Created invites.

  • data array of Invite
  • skipped integer

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

Paste an API key to send requests that need one.

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