List Contacts
curl --request GET \
--url https://api.example.com/v1/contactsimport requests
url = "https://api.example.com/v1/contacts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/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.example.com/v1/contacts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/v1/contacts"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/v1/contacts")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/contacts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"contacts": [
{
"id": "<string>",
"full_name": "<string>",
"email": "<string>",
"phone": "<string>",
"job_title": "<string>",
"company_name": "<string>",
"linkedin_url": "<string>",
"created_at": "<string>",
"updated_date": "<string>"
}
]
},
"meta": {
"page": 123,
"per_page": 123,
"total": 123
},
"error": {
"code": "<string>",
"message": "<string>"
}
}Contacts
List Contacts
Retrieve a paginated list of contacts in your workspace
GET
/
v1
/
contacts
List Contacts
curl --request GET \
--url https://api.example.com/v1/contactsimport requests
url = "https://api.example.com/v1/contacts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/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.example.com/v1/contacts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/v1/contacts"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/v1/contacts")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/contacts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"contacts": [
{
"id": "<string>",
"full_name": "<string>",
"email": "<string>",
"phone": "<string>",
"job_title": "<string>",
"company_name": "<string>",
"linkedin_url": "<string>",
"created_at": "<string>",
"updated_date": "<string>"
}
]
},
"meta": {
"page": 123,
"per_page": 123,
"total": 123
},
"error": {
"code": "<string>",
"message": "<string>"
}
}Request
Query Parameters
integer
default:"1"
Page number for pagination
integer
default:"50"
Number of contacts per page (max: 100)
string
Search by name or email (partial match)
string
Filter by list membership (UUID)
string
Filter contacts created after this date (ISO 8601 format)
string
default:"created_at"
Sort field:
Prefix with
created_at, updated_date, full_namePrefix with
- for descending order (e.g., -created_at)Headers
Authorization: Bearer wbk_your_api_key_here
Response
object
object
curl https://data.leadlex.com/functions/v1/api-gateway/v1/contacts \
-H "Authorization: Bearer wbk_your_api_key_here"
import requests
API_KEY = "wbk_your_api_key_here"
BASE_URL = "https://data.leadlex.com/functions/v1/api-gateway"
headers = {"Authorization": f"Bearer {API_KEY}"}
response = requests.get(f"{BASE_URL}/v1/contacts", headers=headers)
contacts = response.json()["data"]["contacts"]
const response = await fetch(
'https://data.leadlex.com/functions/v1/api-gateway/v1/contacts',
{
headers: { 'Authorization': 'Bearer wbk_your_api_key_here' }
}
);
const { data } = await response.json();
console.log(data.contacts);
Example Response
{
"data": {
"contacts": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"full_name": "Jane Doe",
"email": "jane@example.com",
"phone": "+1234567890",
"job_title": "General Counsel",
"company_name": "Acme Legal",
"linkedin_url": "https://linkedin.com/in/janedoe",
"created_at": "2026-02-24T10:00:00Z",
"updated_date": "2026-02-24T10:00:00Z"
}
]
},
"meta": {
"page": 1,
"per_page": 50,
"total": 235
}
}
Examples
Search by Name
curl "https://data.leadlex.com/functions/v1/api-gateway/v1/contacts?search=jane" \
-H "Authorization: Bearer wbk_your_api_key_here"
Filter by List
curl "https://data.leadlex.com/functions/v1/api-gateway/v1/contacts?list_id=abc-123" \
-H "Authorization: Bearer wbk_your_api_key_here"
Sort by Name (Ascending)
curl "https://data.leadlex.com/functions/v1/api-gateway/v1/contacts?sort=full_name" \
-H "Authorization: Bearer wbk_your_api_key_here"
Errors
object
Common Errors
| Status | Code | Description |
|---|---|---|
| 401 | invalid_key | Invalid or expired API key |
| 403 | insufficient_permissions | Missing read permission |
| 429 | rate_limited | Rate limit exceeded |