Skip to main content
POST
cURL

Overview

This endpoint creates multiple sequences from an array of patient data rows. Key details:
  • Maximum 100 rows per request
  • Each row requires phoneNumber, firstName, and lastName
  • Additional fields are mapped to sequence inputs based on the definition’s inputs_definition
  • All row input fields must be in camelCase as per agent convention

Multiple Phone Numbers

Rows can include an optional phoneNumbers list of up to 3 numbers, in priority order. Clarion sets which number each campaign step contacts.
  • phoneNumber is still required and must also be in the list.
  • The row is rejected if the list is missing phoneNumber, is empty, has more than 3 entries, or isn’t a list.
  • Invalid or duplicate entries are ignored. The other numbers keep their position.
  • If a step’s number is missing or invalid, the step is skipped or moves to the next number, depending on the campaign.

Validation Mode

Set validate_only: true to validate rows without creating sequences. This lets you preview errors and warnings before committing the upload.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Batch upload request

sequence_definition_id
integer
required

ID of the sequence definition to use

rows
object[]
required

Patient data rows (max 100). Each row requires phoneNumber, firstName, and lastName, plus any additional fields defined in the sequence definition's inputs_definition. All row input fields must be in camelCase as per agent convention.

Maximum array length: 100
next_activity_date
string<date-time>

ISO 8601 date for when the first activity should be scheduled. Defaults to now if not provided.

validate_only
boolean
default:false

If true, validate without creating sequences

Response

Batch upload result with validation status and any errors/warnings

valid
boolean

True if all rows passed validation (warnings don't affect this)

total_attempted
integer

Total rows in the request

valid_count
integer

Rows that passed validation

created_count
integer

Sequences created (0 if validate_only was true)

created
object[]

Created sequence identifiers

errors
object[]

Validation errors (rows with errors are not created)

warnings
object[]

Warnings (rows with warnings can still be created)