Get a customer list
curl --request GET \
--url https://api-eg.olimi.ai/api/v2/customer-lists/{id} \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api-eg.olimi.ai/api/v2/customer-lists/{id}"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api-eg.olimi.ai/api/v2/customer-lists/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-eg.olimi.ai/api/v2/customer-lists/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-eg.olimi.ai/api/v2/customer-lists/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-eg.olimi.ai/api/v2/customer-lists/{id}")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-eg.olimi.ai/api/v2/customer-lists/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"message": "Customer fetched successfully",
"data": {
"id": "9c4e1b7a-2d5f-4a83-b6e0-3f7d9a1c5e24",
"organizationId": "5f2c8a91-7d3e-4b60-8c1a-9e4f2b7d6a35",
"name": "September renewals",
"allowDuplication": false,
"totalContacts": 1240,
"createdAt": "2026-09-20T08:02:11.904Z",
"updatedAt": "2026-09-20T08:02:11.904Z",
"variants": [
{
"id": "7e3c9b15-6a2d-4f8e-b1c4-5d9a3e7f2b60",
"slug": "order_number",
"name": "Order number",
"createdAt": "2026-09-20T08:02:11.904Z",
"updatedAt": "2026-09-20T08:02:11.904Z"
}
]
}
}{
"statusCode": 404,
"errorCode": "agent_not_found",
"message": "Agent not found"
}{
"statusCode": 404,
"errorCode": "agent_not_found",
"message": "Agent not found"
}Customer Lists
Get a customer list
Returns one customer list with its contact count and custom columns (variants).
GET
/
api
/
v2
/
customer-lists
/
{id}
Get a customer list
curl --request GET \
--url https://api-eg.olimi.ai/api/v2/customer-lists/{id} \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api-eg.olimi.ai/api/v2/customer-lists/{id}"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api-eg.olimi.ai/api/v2/customer-lists/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-eg.olimi.ai/api/v2/customer-lists/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-eg.olimi.ai/api/v2/customer-lists/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-eg.olimi.ai/api/v2/customer-lists/{id}")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-eg.olimi.ai/api/v2/customer-lists/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"message": "Customer fetched successfully",
"data": {
"id": "9c4e1b7a-2d5f-4a83-b6e0-3f7d9a1c5e24",
"organizationId": "5f2c8a91-7d3e-4b60-8c1a-9e4f2b7d6a35",
"name": "September renewals",
"allowDuplication": false,
"totalContacts": 1240,
"createdAt": "2026-09-20T08:02:11.904Z",
"updatedAt": "2026-09-20T08:02:11.904Z",
"variants": [
{
"id": "7e3c9b15-6a2d-4f8e-b1c4-5d9a3e7f2b60",
"slug": "order_number",
"name": "Order number",
"createdAt": "2026-09-20T08:02:11.904Z",
"updatedAt": "2026-09-20T08:02:11.904Z"
}
]
}
}{
"statusCode": 404,
"errorCode": "agent_not_found",
"message": "Agent not found"
}{
"statusCode": 404,
"errorCode": "agent_not_found",
"message": "Agent not found"
}It doesn’t return the contacts themselves; use List contacts for those. For what variants are and how they’re used, see Variants.