customers array with the customer information you want to create. Each customer object in the array should include the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | No | The customer’s full name |
| phoneNumber | string | No | The customer’s phone number in E.164 format (e.g., +12345678901) |
| string | No | The customer’s email address | |
| identifier | string | Yes | A unique identifier for the customer in your system |
| metadata | object/string/number/boolean/null | No | Additional data about the customer that you want to store |
| priority | integer | No | Calling priority for the customer. Default: 5. Ascending order. |
priority to control how the customers are picked during campaign runs. It is calculated in ascending order. Lower the value, higher the priority. 0 is the highest priority.
In addition to the customers array, the request body can include the following top-level parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| strategy | string | No | The strategy to use when creating customers. Can be upsert or insert. Defaults to insert |
| partial | boolean | No | When set to true, allows partial batch processing. Only valid when strategy is set to insert. This ensures customers without errors are still inserted even if others in the batch fail. |
| Field | Type | Description |
|---|---|---|
| jobId | string | The unique identifier of the job |