4.3 Get Leads from ReactIn via API
Need to pull your enriched leads from a SmartList? This API lets you fetch leads securely and in real-time for use in CRMs, dashboards, or internal tools.
Written By Theo Remola
Last updated 4 months ago
β What youβll need before you start
Before using this API, make sure you have:
A ReactIn API SmartList
Your Organization ID, List ID, and API Key
π π Not sure how to get these? Follow this guide
π API Endpoint
Send a GET request to this endpoint to get a lead:
GET https://app.reactin.io/api/[organizationId]/lists/[listId]/leadsThis will return a paginated list of enriched leads in your SmartList.
π Authentication & Headers
You need to send your API key in the headers using a Bearer token.
π Your API key is visible when you create a ReactIn API SmartList or in the settings. Never expose it in public code.
π Query Parameters
Each page contains up to 50 leads.
π§ͺ Example (JavaScript)
const fetchLeads = async (organizationId, listId, page = 1) => {
try {
const response = await fetch(
`https://app.reactin.io/api/v1/${organizationId}/lists/${listId}/leads?page=${page}&pageSize=${pageSize}`,
{
method: 'GET',
headers: {
'Authorization': 'YOUR_API_KEY',
'Content-Type': 'application/json'
}
}
);
if (!response.ok) {
throw new Error(`HTTP Error: ${response.status}`);
}
const data = await response.json();
console.log('Leads:', data.data);
console.log('Page:', data.page);
console.log('Next Page:', data.nextPage);
return data;
} catch (error) {
console.error('Error fetching leads:', error);
}
};
π§Ύ Response format
{
"data": [
{
"First Name": "John",
"Last Name": "Doe",
"Email": "john.doe@example.com",
"Profile": "https://www.linkedin.com/in/johndoe/",
"My AI Column": "Generated insight"
}
],
"page": 1,
"nextPage": 2
}
data: the list of leadspage: current page numbernextPage: the next page number (ornullif done)
β Success Response
200 OKβ Leads fetched successfully
π« Common Errors
π‘ Best Practices
β‘ Use pagination to avoid overloading your app
π₯ Cache results when possible to reduce API calls
π Keep your API key private β use a backend server or proxy
π Add retry logic for occasional network or server errors
π‘ Pro tip: Cache API responses on your end to optimize performance and reduce unnecessary calls.
Ready to move on?
π Next Step: Connect External Tools to Push Leads into ReactIn β