List contacts
curl --request GET \
--url https://api.leanpay.fr/v1/public/contacts \
--header 'Authorization: <api-key>'import requests
url = "https://api.leanpay.fr/v1/public/contacts"
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/contacts', 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/contacts",
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/contacts"
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/contacts")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.leanpay.fr/v1/public/contacts")
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": "2e97b9eb-334e-4d6c-a9f0-2bbf7069826e",
"tenantId": "344ca963-6bf0-4bbb-b00f-3e377e5dc358",
"clientId": "9bfc607e-4e58-4f4e-a93b-cd934958933f",
"title": "Madame",
"firstName": "Ada",
"lastName": "Martin",
"email": "ada.martin@acme.com",
"phoneNumber": "+33 1 84 80 12 34",
"mobilePhoneNumber": "+33 6 12 34 56 78",
"externalId": "CON-0042",
"main": true,
"createdAt": "2026-03-12T09:41:27.000Z",
"updatedAt": "2026-10-06T08:00:12.000Z"
}
],
"count": 1,
"total": 1,
"page": 1,
"pageCount": 1
}contacts
List contacts
List the contacts of the clients.
GET
/
contacts
List contacts
curl --request GET \
--url https://api.leanpay.fr/v1/public/contacts \
--header 'Authorization: <api-key>'import requests
url = "https://api.leanpay.fr/v1/public/contacts"
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/contacts', 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/contacts",
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/contacts"
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/contacts")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.leanpay.fr/v1/public/contacts")
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": "2e97b9eb-334e-4d6c-a9f0-2bbf7069826e",
"tenantId": "344ca963-6bf0-4bbb-b00f-3e377e5dc358",
"clientId": "9bfc607e-4e58-4f4e-a93b-cd934958933f",
"title": "Madame",
"firstName": "Ada",
"lastName": "Martin",
"email": "ada.martin@acme.com",
"phoneNumber": "+33 1 84 80 12 34",
"mobilePhoneNumber": "+33 6 12 34 56 78",
"externalId": "CON-0042",
"main": true,
"createdAt": "2026-03-12T09:41:27.000Z",
"updatedAt": "2026-10-06T08:00:12.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 |
clientId | uuid | $eq $ne $in $notin |
externalId | string | $eq $cont $starts $ends $in |
title | string | $eq $cont $starts $ends $in |
firstName | string | $eq $cont $starts $ends $in |
lastName | string | $eq $cont $starts $ends $in |
email | string | $eq $cont $starts $ends $in |
phoneNumber | string | $eq $cont $starts $ends $in |
mobilePhoneNumber | string | $eq $cont $starts $ends $in |
main | boolean | $eq $ne $in $notin |
createdAt | date-time | $gt $gte $lt $lte $between |
updatedAt | date-time | $gt $gte $lt $lte $between |
- Contacts of one client:
{"clientId":"9bfc607e-4e58-4f4e-a93b-cd934958933f"} - Main contacts updated since June 1:
{"main":true,"updatedAt":{"$gte":"2026-06-01"}} - One contact by its external id:
{"externalId":"CON-0042"}
Example:
"{\"clientId\":\"9bfc607e-4e58-4f4e-a93b-cd934958933f\"}"
Response
200 - application/json
One page of contacts.
