Send a broadcast
Sends one message to many participants on a study. Each of them gets a new conversation carrying the broadcast’s subject, topic and study, with the message as its first message. Replies stay in that conversation, between the participant and the sender.
The broadcast is saved as it was sent and never changes. The conversations are created in the background, so they can take a short while to appear.
Pass your own id to make sending safe to repeat. Sending again with an id you’ve already used returns that broadcast rather than sending it twice.
Every recipient must have a submission for the study, in any status. A broadcast can go to as many people as a bulk message, 4,000 by default, and going over returns a 400 that gives the limit. The study must belong to a workspace you are in. A study you can’t broadcast about returns 404, as does the endpoint while broadcasts aren’t enabled for the study’s workspace.
Authentication
The Prolific API uses API token to authenticate requests. You can create an API token directly from your settings.
Your API token does not have an expiry date and carries full permission, so be sure to keep them secure.
If your token is leaked, delete it and create a new one directly in the app.
In your requests add Authorization header with the value Token <your token>.