Todos los endpoints

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

Requiere una clave de API.

Parámetros

Ruta

  • slug string obligatorio max. 20

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

Cuerpo de la petición application/json

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

Respuestas

How many invites were emailed.

  • data object

Pruébalo

Crear una clave

Se envía desde tu navegador directamente a la API, a ningún otro sitio. Con «Recordar» se queda hasta que cierres esta pestaña. Con una clave de solo lectura puedes explorar sin cambiar nada.

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

Pega una clave de API para enviar las peticiones que la necesitan.

Las peticiones con clave cuentan para las peticiones de API diarias de tu plan.