Mark a lead as exported
curl --request POST \
--url https://api.example.com/api/v2/leads/{leadId}/exportimport requests
url = "https://api.example.com/api/v2/leads/{leadId}/export"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/api/v2/leads/{leadId}/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/api/v2/leads/{leadId}/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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/api/v2/leads/{leadId}/export"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/api/v2/leads/{leadId}/export")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v2/leads/{leadId}/export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyLeads
Mark a lead as exported
Update a lead’s lifecycle to “exported” after moving it into your CRM
POST
/
api
/
v2
/
leads
/
{leadId}
/
export
Mark a lead as exported
curl --request POST \
--url https://api.example.com/api/v2/leads/{leadId}/exportimport requests
url = "https://api.example.com/api/v2/leads/{leadId}/export"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/api/v2/leads/{leadId}/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/api/v2/leads/{leadId}/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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/api/v2/leads/{leadId}/export"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/api/v2/leads/{leadId}/export")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v2/leads/{leadId}/export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyMarks a lead as exported. Sets
x_leads.exported_at = NOW() and logs an export event for batch-level audit.
After export, the lead appears in ?lifecycle=exported filters and disappears from ?lifecycle=new. Re-exporting overwrites exported_at to the latest timestamp.
Body
| Field | Type | Description |
|---|---|---|
exportType | string (required) | Free-form tag for the destination tool. Example: "csv", "heyreach", "apollo", "clay" |
platform | string | Optional platform tag (e.g. "x", "linkedin") |
Response
{ "leadId": 1234, "exported": true }
Auth
Bearer or session cookie.⌘I