curl --request GET \
--url https://api.example.com/contacts/export \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/contacts/export"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/contacts/export', 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/contacts/export",
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: Bearer <token>"
],
]);
$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/contacts/export"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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/contacts/export")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/contacts/export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Export Contacts as CSV
Stream contacts as a CSV download. Same filters as the list endpoint.
curl --request GET \
--url https://api.example.com/contacts/export \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/contacts/export"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/contacts/export', 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/contacts/export",
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: Bearer <token>"
],
]);
$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/contacts/export"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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/contacts/export")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/contacts/export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}account_id, and at most 500 rows — see the caveat below) as text/csv. The column set is fixed — it does not track the raw table 1:1. In particular, several export columns are computed by flattening capture_payload.enrichment rather than being raw columns:
| CSV column | Source |
|---|---|
company_domain | contacts.company_domain, else capture_payload.company_domain, else capture_payload.enrichment.apollo_organization.primary_domain |
linkedin | contacts.linkedin_url, else capture_payload.linkedin |
enriched_at | contacts.enriched_at, else capture_payload.enriched_at |
industry | capture_payload.enrichment.apollo_organization.industry |
employees | capture_payload.enrichment.apollo_organization.estimated_num_employees |
email_verified | capture_payload.enrichment.hunter_email.status |
id, first_name, last_name, title, company, email, phone, stage, source, tags, notes, owner_id, created_at, updated_at, target_at, lead_at, contact_at, disqualified_at, captured_by_card_id, agent_demo_id, agent_demo_url, agent_demo_phone, converted_to_account_id, converted_to_deal_id, converted_at. Array/object cells are flattened (tags joined with ; , any nested object JSON-encoded); empty cells are the empty string, not null.
Accepts the same filters as List contacts, except there’s no account_id filter here. Free-text q matches the same fields (first/last name, email, title, company, company_domain).
limit up to 10000, but the underlying query builder re-clamps to 500, so anything above that has no effect — and the default limit=5000 is already silently truncated. The CSV carries no truncation indicator: you get a well-formed 500-row file with no way to tell rows were dropped. If your org has more than 500 matching contacts, page through GET /contacts with limit/offset and use the X-Total-Count header to know when you’ve read them all, rather than treating this endpoint’s output as a full extract.Auth
Requires a CRM read scope and an active organization on the token. Any ofcontacts:read, deals:read, companies:read, or activities:read qualifies, as does any *:manage scope — manage implies read.
Response
200 — text/csv body with a Content-Disposition: attachment; filename="contacts-<timestamp>.csv" header. No JSON envelope.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Funnel stage filter: a single value ('contact') or a comma list ('target,lead').
Filter to contacts owned by this Logto user id.
Filter by origin tag; exact match. Values written by the backend: 'manual', 'import' (CSV import), 'customer_intel', 'scan_badge', 'scan_card', 'share_back'.
Filter by disqualification: true for disqualified only, false for active only.
Free-text search across first/last name, email, title, company, and company domain.
Requested row count. Accepted up to 10000, but the export currently returns at most 500 rows — larger values (including the 5000 default) have no effect and the CSV is truncated with no indicator. Page GET /contacts with limit/offset and X-Total-Count for a full extract.
Response
Successful Response