Skip to content

Bulk Senders

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:

  • caseId
  • contactId
  • context
  • interactionExternalId
  • isTransactional
  • loanId
  • previousInteractionId
  • statementId
  • sendAt
  • useTemplate

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.

List bulk senders

Request

Get a list of all bulk senders.

Security
oauth2(Required scopes: bulksender:list) or bearerAuth or apiKeyHeader
Query
sortByArray of strings

The data attributes by which to sort the results.

limitinteger, [ 1 .. 100 ]

The maximum count of results to retrieve.

Default:25
startingAfterstring

Return results starting after the provided object identifier.

GET
/campaign-workers/bulk-senders
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>'

Responses

success

Bodyapplication/json
countintegerread-only

Number of items returned by the current request.

nextUrlstring or nullread-only

URL of the next set of results.

previousUrlstring or nullread-only

URL of the previous set of results.

statusinteger

HTTP status code.

totalintegerread-only

Total number of items in this result.

dataArray of objects(BulkSender)
Response
{ "count": 0, "nextUrl": "string", "previousUrl": "string", "status": 0, "total": 0, "data": [ { … } ] }