Alle Endpunkte

Entwickler / 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.

Braucht einen API-Schlüssel.

Parameter

Pfad

  • slug string Pflicht max. 20

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

Request-Body application/json

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

Antworten

How many invites were emailed.

  • data object

Ausprobieren

Schlüssel erstellen

Geht von deinem Browser direkt an die API und nirgendwo sonst hin. Mit „Merken“ bleibt er, bis du diesen Tab schließt. Mit einem Nur-Lesen-Schlüssel schaust du dich um, ohne etwas zu ändern.

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

Füge einen API-Schlüssel ein, um Anfragen zu senden, die einen brauchen.

Anfragen mit Schlüssel zählen gegen die täglichen API-Anfragen deines Tarifs.