Skip to main content
A customer list is a group of contacts that a campaign calls, such as a list uploaded from a spreadsheet. These endpoints let you read and create customer lists from your own systems. To manage the people in a list, use Contacts.
Renaming and deleting customer lists isn’t available through the API. Do it in the Dashboard.

Authentication

Send your API key in the X-API-KEY header on every request, to the base URL https://api-eg.olimi.ai. See API Authentication. You only ever see the customer lists that belong to the company your API key is issued to.

Variants

A customer list can have extra columns beyond name and phone number, such as an order number, that the agent can mention during a call. These are called variants. Each one has:
  • slug: the name the agent’s script uses. A script that says {{order_number}} needs a variant with the slug order_number.
  • name: the column’s display name, for example Order number.
Two things depend on slugs matching:
  • Campaigns: a campaign is refused with missing_variants_… if its agent’s script uses a variable that one of its customer lists has no variant for. See Campaigns.
  • Contacts: each contact stores its value for a variant under the variant’s id. See Custom fields.
Choose slugs carefully when you create a list. They can’t be changed through the API afterwards.

Customer list fields

Variant object

Errors

Always branch on statusCode first. Most errors also carry a machine-readable errorCode:
Validation errors (422) have a different body. message is a list of what went wrong, and there’s no errorCode:
The message text is for humans and may change, so don’t match on it.