Leads
Poll recent landing-page leads
Return this org’s most recent landing-page leads, newest first, capped at
50. Optional ?since=<ISO> returns leads created strictly after that
timestamp. Only source=landing_page leads are returned — CRM-synced
leads are never polled back out. De-dupe by id.
Setup aid: an org with no real leads yet receives exactly one clearly
flagged sample lead (test: true, fixed all-zero id) so a Zap’s “Test
trigger” step can map fields. It disappears once a real lead exists.
GET
/
api
/
v1
/
integrations
/
leads
Poll recent landing-page leads
curl --request GET \
--url https://app.getmailr.com/api/v1/integrations/leads \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.getmailr.com/api/v1/integrations/leads"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.getmailr.com/api/v1/integrations/leads', 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://app.getmailr.com/api/v1/integrations/leads",
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://app.getmailr.com/api/v1/integrations/leads"
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://app.getmailr.com/api/v1/integrations/leads")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.getmailr.com/api/v1/integrations/leads")
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{
"leads": [
{
"id": "c1d2e3f4-0000-0000-0000-000000000020",
"name": "Dana Reyes",
"first_name": "Dana",
"last_name": "Reyes",
"email": "dana.reyes@example.com",
"phone": "+15125550143",
"address": "3134 River Valley Dr",
"city": "Austin",
"state": "TX",
"postal_code": "78701",
"country": "United States",
"full_address": "3134 River Valley Dr, Austin, TX 78701",
"campaign_id": "aa11bb22-0000-0000-0000-0000000000cc",
"campaign_name": "Spring roof reactivation",
"source": "Mailr",
"created_at": "2026-08-19T15:04:00Z"
}
]
}{
"error": "Unauthorized"
}{
"error": "Failed to list leads"
}Authorizations
Organization-scoped Mailr API key. Header: Authorization: Bearer ak_….
Query Parameters
Return leads with created_at strictly greater than this ISO-8601 timestamp.
Response
Newest-first leads (or one sample lead for a brand-new org).
Show child attributes
Show child attributes
⌘I
Poll recent landing-page leads
curl --request GET \
--url https://app.getmailr.com/api/v1/integrations/leads \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.getmailr.com/api/v1/integrations/leads"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.getmailr.com/api/v1/integrations/leads', 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://app.getmailr.com/api/v1/integrations/leads",
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://app.getmailr.com/api/v1/integrations/leads"
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://app.getmailr.com/api/v1/integrations/leads")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.getmailr.com/api/v1/integrations/leads")
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{
"leads": [
{
"id": "c1d2e3f4-0000-0000-0000-000000000020",
"name": "Dana Reyes",
"first_name": "Dana",
"last_name": "Reyes",
"email": "dana.reyes@example.com",
"phone": "+15125550143",
"address": "3134 River Valley Dr",
"city": "Austin",
"state": "TX",
"postal_code": "78701",
"country": "United States",
"full_address": "3134 River Valley Dr, Austin, TX 78701",
"campaign_id": "aa11bb22-0000-0000-0000-0000000000cc",
"campaign_name": "Spring roof reactivation",
"source": "Mailr",
"created_at": "2026-08-19T15:04:00Z"
}
]
}{
"error": "Unauthorized"
}{
"error": "Failed to list leads"
}