Alle endpoints

Ontwikkelaars / 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}}, {{title}} 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.

Vereist een API-sleutel.

Parameters

Pad

  • slug string verplicht max. 20

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

Request-body application/json

  • subject string verplicht
  • message string verplicht
  • 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.

Antwoorden

How many invites were emailed.

  • data object

Probeer het

Sleutel aanmaken

Wordt vanuit je browser rechtstreeks naar de API verstuurd en nergens anders heen. Met ‘Onthouden’ blijft hij bewaard tot je dit tabblad sluit. Met een alleen-lezen-sleutel kun je de API verkennen zonder gegevens te wijzigen.

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

Plak een API-sleutel om verzoeken te versturen die er een nodig hebben.

Verzoeken met een sleutel tellen mee voor de dagelijkse API-verzoeken van je abonnement.