Add multiple contacts to a collector
POST/collector/:collector_id/contacts
Add a batch of contacts and/or contact groups to an existing collector. The collector will then initiate message sends according to its configuration (e.g. sending survey invites).
A person whose invitation on this collector was sent, or is still going out, is skipped and is not sent the message again. A collector with a sending rule keeps deciding by its rule. 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. The response includes sendOutcome: how many people are being sent the message (invited) and how many were skipped, by reason. Send an Idempotency-Key header to make a retry safe.
One add runs on a collector at a time: a request that waits more than five seconds for another add on the same collector returns 503 (collector_busy) with a Retry-After header, nothing was added, and the same request can be sent again.
Request
Responses
- 202
- 400
- 401
- 403
- 404
- 422
- 500
Successful Response
Bad Request
Unauthorized
Forbidden
Not Found
Validation Error
Internal Server Error