All endpoints

Developers / StrawPoll API / Codes and invites

Email invites

POST/forms/{slug}/invites/send

Emails invites that were not sent yet, or the ones in ids (with resend: true also those sent before). subject and message may use {{name}}, {{form}} and {{link}}, and may hold no other links. Each email costs the form owner's credits; nothing is sent when the batch costs more than they have. Unsubscribed addresses are skipped and cost nothing.

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

  • subject string required
  • message string required
  • ids array of string (uuid)
  • resend boolean
  • domain string

    One of your active custom domains for the links; defaults to your first one, else strawpoll.com.

Responses

How many invites were emailed.

  • 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/send

Paste an API key to send requests that need one.

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