A bulk sender object represents a campaign worker which sends messages to the borrowers returned by a campaign's query results.
For each row returned by the campaign in its query result a message is sent via the Send endpoint.
Some of the query results columns are automatically mapped to the request body of the Send endpoint, these columns are:
caseIdcontactIdcontextinteractionExternalIdisTransactionalloanIdpreviousInteractionIdstatementIdsendAtuseTemplate
In order for a bulk sender to function, at a minimum the campaign's query results must return at least the column borrowerId.
Note that bulk senders send with { strictUndefined: true } so any missing context variables will cause the send request to fail rather than sending with a default (empty) value, which is the standard behavior for the /communicator/send endpoint.
For more details on required columns see per-InteractionSubject documentation for Campaign run.
Get a list of all bulk senders.
- oauth2
- bearerAuth
- apiKeyHeader
curl -i -X GET \
'https://sandboxapi.peach.finance/api/campaign-workers/bulk-senders?sortBy=string&limit=25&startingAfter=string' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'success
{ "count": 0, "nextUrl": "string", "previousUrl": "string", "status": 0, "total": 0, "data": [ { … } ] }