Skip to content

Create a new distributor

POST
/surveys/{surveyId}/distributors
curl --request POST \
--url https://app.surveyrock.com/api/v1/surveys/example/distributors \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "channel": "web_link", "name": "example", "settings": {} }'

POST /api/v1/surveys/{surveyId}/distributors

Requirements: 7.1–7.5

surveyId
required
string
Media typeapplication/json
object
channel
required
string
Allowed values: web_link email qr_code embed facebook twitter linkedin slack teams sms whatsapp
name
string
settings
object

Distributor created

Validation error

Survey not found