Create a new collector
POST/collector/
Create a new collector that will distribute a given survey to contacts through a specified channel (e.g., Email, SMS, or Widget).
Key Details:
- Provide the
survey_idthat this collector is associated with. - Define the type of collector (
EMAIL,SMS, orWIDGET). - Optionally attach groups or individual contacts for immediate survey distribution.
- Customize messages, sender information, and limit constraints.
When contacts or groups are given, the response includes sendOutcome: how many people are being sent the message (invited) and how many were skipped, by reason. Two contacts in one request that share the address the collector sends to (the same email on an email collector, the same phone on an SMS collector) are sent one message; the second is counted in sendOutcome under duplicate. Send an Idempotency-Key header to make a retry safe.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 422
- 500
Successful Response
Bad Request
Unauthorized
Forbidden
Not Found
Validation Error
Internal Server Error
Was this page helpful?