API Documentation
Build powerful sales automation into your applications with our comprehensive API
API Features
RESTful API
Simple, intuitive endpoints that follow REST conventions
Secure Authentication
API key authentication with rate limiting and usage tracking
Rich Data Access
Full access to prospects, messages, sequences, and analytics
Webhooks
Real-time notifications for events in your account
Versioned
Stable API versions with clear migration paths
SDKs Available
Official libraries for Node.js, Python, Ruby, and PHP
Quick Start
Authentication
All API requests require authentication using your API key. Include it in the Authorization header:
# Example Request
curl https://api.yourdomain.com/v1/prospects \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
Get your API key from Settings → API Keys after creating an account.
Example: Research a Prospect
# Start research job
curl -X POST https://api.yourdomain.com/v1/research \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"linkedinUrl": "https://linkedin.com/in/john-doe",
"depth": "standard"
'}'
# Response
{
"jobId": "job_abc123",
"status": "processing",
"creditsUsed": 5
}
Webhooks
Subscribe to events in your account with webhooks. Available events:
- •
prospect.created- New prospect added - •
research.completed- Research job finished - •
message.sent- Message sent to prospect - •
engagement.detected- Prospect engaged with message
Configure webhooks in Settings → Integrations → Webhooks
API Endpoints
Prospects
POST
/api/v1/prospectsCreate a new prospect
GET
/api/v1/prospectsList all prospects
GET
/api/v1/prospects/:idGet a specific prospect
PATCH
/api/v1/prospects/:idUpdate a prospect
DELETE
/api/v1/prospects/:idDelete a prospect
Research
POST
/api/v1/researchStart a research job
GET
/api/v1/research/:idGet research job status
GET
/api/v1/research/:id/resultsGet research results
Messages
POST
/api/v1/messages/generateGenerate AI message
GET
/api/v1/messagesList all messages
POST
/api/v1/messages/:id/sendSend a message
Sequences
POST
/api/v1/sequencesCreate a sequence
GET
/api/v1/sequencesList all sequences
POST
/api/v1/sequences/:id/enrollEnroll prospect in sequence
Official SDKs
Node.js / JavaScript
npm install @ai-sales/sdk
# Usage
import { AISales } from '@ai-sales/sdk'
const client = new AISales(API_KEY)
Python
pip install ai-sales-sdk
# Usage
from ai_sales import AISales
client = AISales(api_key=API_KEY)
Ruby
gem install ai_sales
# Usage
require 'ai_sales'
client = AISales::Client.new(API_KEY)
PHP
composer require ai-sales/php-sdk
// Usage
use AISales\Client;
$client = new Client($apiKey);