curl --request GET \
--url https://api.closedloop.sh/v1/customers \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.closedloop.sh/v1/customers"
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.closedloop.sh/v1/customers', 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.closedloop.sh/v1/customers",
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.closedloop.sh/v1/customers"
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.closedloop.sh/v1/customers")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.closedloop.sh/v1/customers")
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{
"data": [
{
"id": "c0ffee00-0000-4000-8000-000000000001",
"name": "Acme Co",
"parent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"parent_name": "<string>",
"domain": "acme.example",
"industry": "Software",
"employee_count": 250,
"arr": 48000,
"currency": "USD",
"is_active_customer": true,
"is_paying": true,
"churn_state": "active",
"insight_count": 23,
"last_seen": "2026-06-10T09:00:00Z",
"external_ids": [
{
"integration_id": "1e7e6600-0000-4000-8000-000000000001",
"source": "salesforce",
"external_id": "001A000001AbCdEAAZ"
}
],
"parents": [
{
"id": "c0ffee00-0000-4000-8000-000000000002",
"name": "Acme Group",
"source": "salesforce",
"external_id": "001A000001AbCdFAAZ"
}
],
"family": {
"id": "fa111e00-0000-4000-8000-000000000001",
"name": "Acme",
"is_grouped": true,
"member_count": 3,
"members": [
{
"id": "c0ffee00-0000-4000-8000-000000000003",
"name": "Acme Germany",
"external_ids": [
{
"integration_id": "1e7e6600-0000-4000-8000-000000000001",
"source": "salesforce",
"external_id": "001A000001AbCdEAAZ"
}
],
"domain": "acme.com"
}
]
}
}
],
"pagination": {
"total": 508,
"limit": 50,
"offset": 0
}
}{
"error": "API key authentication is temporarily unavailable. Please retry shortly.",
"code": "API_KEY_AUTH_UNAVAILABLE"
}List / search customers
Your CRM accounts, with ARR, status, and insight count. Related accounts are
grouped into a family (family); a theme’s or feature’s customer count counts
each family once. An insight’s customer_id is an account here. parent_id and
parents show the account hierarchy from your CRM. Results are sorted by id.
To read your accounts with the most insights first, use
has_insights=true&sort=insight_count.
curl --request GET \
--url https://api.closedloop.sh/v1/customers \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.closedloop.sh/v1/customers"
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.closedloop.sh/v1/customers', 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.closedloop.sh/v1/customers",
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.closedloop.sh/v1/customers"
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.closedloop.sh/v1/customers")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.closedloop.sh/v1/customers")
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{
"data": [
{
"id": "c0ffee00-0000-4000-8000-000000000001",
"name": "Acme Co",
"parent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"parent_name": "<string>",
"domain": "acme.example",
"industry": "Software",
"employee_count": 250,
"arr": 48000,
"currency": "USD",
"is_active_customer": true,
"is_paying": true,
"churn_state": "active",
"insight_count": 23,
"last_seen": "2026-06-10T09:00:00Z",
"external_ids": [
{
"integration_id": "1e7e6600-0000-4000-8000-000000000001",
"source": "salesforce",
"external_id": "001A000001AbCdEAAZ"
}
],
"parents": [
{
"id": "c0ffee00-0000-4000-8000-000000000002",
"name": "Acme Group",
"source": "salesforce",
"external_id": "001A000001AbCdFAAZ"
}
],
"family": {
"id": "fa111e00-0000-4000-8000-000000000001",
"name": "Acme",
"is_grouped": true,
"member_count": 3,
"members": [
{
"id": "c0ffee00-0000-4000-8000-000000000003",
"name": "Acme Germany",
"external_ids": [
{
"integration_id": "1e7e6600-0000-4000-8000-000000000001",
"source": "salesforce",
"external_id": "001A000001AbCdEAAZ"
}
],
"domain": "acme.com"
}
]
}
}
],
"pagination": {
"total": 508,
"limit": 50,
"offset": 0
}
}{
"error": "API key authentication is temporarily unavailable. Please retry shortly.",
"code": "API_KEY_AUTH_UNAVAILABLE"
}Authorizations
Team-scoped API key created in the app (Settings → API Keys).
Sent as X-API-Key: <key> on every request. The header name apikey
is also accepted as an alias.
Query Parameters
Free-text search over titles and content.
true returns accounts your CRM marks as active customers; false returns accounts it marks as not active. Accounts with an unknown status are not returned by either value; omit the filter to include them. For who pays, use is_paying.
Return only paying customers. Only true is accepted.
true Return the child accounts under this CRM parent account.
Return only top-level accounts.
Return the accounts in one family. Use the family.id shown on any of its accounts.
Find a customer by its id in the tool it came from, such as a Salesforce Account Id (exact match).
1 - 255Return only accounts with at least one insight (insight_count above 0). Only true is accepted.
true insight_count sorts by insight_count, highest first, then by name, then by id. Requires has_insights=true; without it the request is refused with a 400. Omit for the default order by id.
insight_count Page size (max 200).
1 <= x <= 200Number of records to skip.
x >= 0