Queues a batch import job for customer records. Use strategy=upsert to merge existing customers by identifier or contact fields instead of inserting only new records.
Documentation Index
Fetch the complete documentation index at: https://docs.oration.ai/llms.txt
Use this file to discover all available pages before exploring further.
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 |
Bearer token issued for an authenticated Oration user or service account.
Workspace API key used for server-to-server authentication.
Human-readable workspace slug. Provide this or x-workspace-id depending on your integration setup.
Workspace UUID. Useful when the workspace slug is not available.
Customer records to import in a single async batch job.
Request body for asynchronously importing or upserting customer records.
Customer records to create or update.
Whether to only insert new customers or upsert matching records.
upsert, insert If true, valid records are accepted even when some records in the batch fail validation.
Customer import job created successfully.
Async job handle returned after scheduling a customer import.
Identifier of the background job that tracks import progress.