Closeforce AI API

Integrate the power of AI lead generation directly into your own applications and workflows.

Getting Started

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.

Get Started in 3 Steps

  1. 1Sign up for a Closeforce AI account and get your API key
  2. 2Install our SDK or use direct HTTP requests
  3. 3Start generating leads with a simple API call
Install our SDK
npm install @closeforce-ai/sdk

API Features

High Performance

99.9% uptime with sub-200ms response times

Enterprise Security

OAuth 2.0, API keys, and rate limiting

RESTful Design

Intuitive endpoints following REST principles

Easy Authentication

Simple API key authentication

API Endpoints

POST
/api/v1/leads/generate

Generate new leads based on criteria

target_industry
company_size
location
limit
GET
/api/v1/leads

Retrieve your generated leads

page
limit
status
created_after
GET
/api/v1/leads/{id}

Get details of a specific lead

id
PUT
/api/v1/leads/{id}

Update lead information

id
status
notes
tags
POST
/api/v1/leads/{id}/enrich

Enrich lead with additional data

id
GET
/api/v1/analytics

Get lead generation analytics

date_from
date_to
metrics

Code Examples

// 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);
  }
};
Rate Limits
Starter Plan
1,000 requests/hour
Professional Plan
5,000 requests/hour
Enterprise Plan
Custom / High Volume
Error Handling
400 Bad Request
Invalid parameters
401 Unauthorized
Invalid API key
429 Too Many Requests
Rate limit exceeded

Developer Resources

Documentation

Complete API reference and guides

SDKs

Official SDKs for popular languages

Examples

Sample code and use cases

Ready to Start Building?

Get your API key and start integrating AI-powered lead generation into your applications today.