Integrate the power of AI lead generation directly into your own applications and workflows.
Welcome to the Closeforce AI API documentation. Our RESTful API allows you to programmatically access our lead generation engine, manage your leads, and integrate our features into your existing systems.
npm install @closeforce-ai/sdk99.9% uptime with sub-200ms response times
OAuth 2.0, API keys, and rate limiting
Intuitive endpoints following REST principles
Simple API key authentication
/api/v1/leads/generateGenerate new leads based on criteria
/api/v1/leadsRetrieve your generated leads
/api/v1/leads/{id}Get details of a specific lead
/api/v1/leads/{id}Update lead information
/api/v1/leads/{id}/enrichEnrich lead with additional data
/api/v1/analyticsGet lead generation analytics
// Initialize Closeforce AI API
const closeforceApi = new CloseforceAPI({
apiKey: 'your-api-key-here',
baseUrl: 'https://api.closeforce.ai/v1'
});
// Generate leads
const generateLeads = async () => {
try {
const response = await closeforceApi.leads.generate({
target_industry: 'technology',
company_size: '11-50',
location: 'United States',
limit: 50
});
console.log('Generated leads:', response.data);
return response.data;
} catch (error) {
console.error('Error generating leads:', error);
}
};
// Get lead details
const getLeadDetails = async (leadId) => {
try {
const response = await closeforceApi.leads.get(leadId);
return response.data;
} catch (error) {
console.error('Error fetching lead:', error);
}
};Complete API reference and guides
Official SDKs for popular languages
Sample code and use cases
Get your API key and start integrating AI-powered lead generation into your applications today.