List client groups
curl --request GET \
--url https://api.leanpay.fr/v1/public/client-groups \
--header 'Authorization: <api-key>'import requests
url = "https://api.leanpay.fr/v1/public/client-groups"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.leanpay.fr/v1/public/client-groups', 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.leanpay.fr/v1/public/client-groups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <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.leanpay.fr/v1/public/client-groups"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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.leanpay.fr/v1/public/client-groups")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.leanpay.fr/v1/public/client-groups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "0ed8b2e1-2b70-44c9-a56b-8362730cde79",
"tenantId": "510b7326-6200-4bb4-8a5c-9d3f1aa7849a",
"name": "Acme Group",
"clients": [
{
"id": "03142370-15e5-468f-9224-d490d13432b8",
"name": "Acme",
"externalId": "CLI-0042"
}
],
"createdAt": "2025-03-12T10:00:00.000Z",
"updatedAt": "2026-10-01T09:30:00.000Z"
}
],
"count": 1,
"total": 1,
"page": 1,
"pageCount": 1
}client-groups
List client groups
List the client groups, with their clients.
See also
GET /reminders/doneandGET /reminders/todo, where a reminder sent to a client group hasrecipient.typeset togroup.
GET
/
client-groups
List client groups
curl --request GET \
--url https://api.leanpay.fr/v1/public/client-groups \
--header 'Authorization: <api-key>'import requests
url = "https://api.leanpay.fr/v1/public/client-groups"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.leanpay.fr/v1/public/client-groups', 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.leanpay.fr/v1/public/client-groups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <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.leanpay.fr/v1/public/client-groups"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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.leanpay.fr/v1/public/client-groups")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.leanpay.fr/v1/public/client-groups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "0ed8b2e1-2b70-44c9-a56b-8362730cde79",
"tenantId": "510b7326-6200-4bb4-8a5c-9d3f1aa7849a",
"name": "Acme Group",
"clients": [
{
"id": "03142370-15e5-468f-9224-d490d13432b8",
"name": "Acme",
"externalId": "CLI-0042"
}
],
"createdAt": "2025-03-12T10:00:00.000Z",
"updatedAt": "2026-10-01T09:30:00.000Z"
}
],
"count": 1,
"total": 1,
"page": 1,
"pageCount": 1
}Query Parameters
JSON filter, as described in the Filtering section.
| Field | Type | Operators |
|---|---|---|
id | uuid | $eq $ne $in $notin |
name | string | $eq $cont $starts $ends $in |
createdAt | date-time | $gt $gte $lt $lte $between |
updatedAt | date-time | $gt $gte $lt $lte $between |
- Names that contain acme, any case:
{"name":{"$contL":"acme"}} - Updated since June 1:
{"updatedAt":{"$gte":"2026-06-01"}}
Example:
"{\"name\":{\"$contL\":\"acme\"}}"
Response
200 - application/json
One page of client groups.
