Add a new lead to your database with contact information, company details, and custom attributes. Leads can be created manually or imported from various sources.
Requires the leads:write
permission.
Request
Your API key with leads:write
permission
Body Parameters
Lead source (e.g., “website”, “referral”, “linkedin”)
Array of tag strings for categorization
Object containing custom field key-value pairs
Examples
Basic Lead Creation
curl -X POST "https://api.buena.ai/api/v2/leads" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"firstName": "John",
"lastName": "Doe",
"email": "john@techcorp.com",
"company": "Tech Corp",
"title": "Software Engineer",
"phone": "+1-555-123-4567",
"linkedinUrl": "https://linkedin.com/in/johndoe",
"source": "linkedin"
}'
curl -X POST "https://api.buena.ai/api/v2/leads" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"firstName": "Jane",
"lastName": "Smith",
"email": "jane@startup.io",
"company": "Startup Inc",
"title": "CEO",
"industry": "Technology",
"location": "San Francisco, CA",
"source": "referral",
"tags": ["hot-lead", "enterprise", "decision-maker"],
"customFields": {
"companySize": "50-100",
"budget": "100k+",
"timeline": "Q2 2024"
}
}'
Response
Always true
for successful requests
The created lead object Unique identifier for the lead
Lead status (e.g., “new”, “contacted”, “qualified”)
ISO 8601 timestamp when the lead was created
ISO 8601 timestamp when the lead was last updated
{
"success" : true ,
"data" : {
"id" : "lead_123abc" ,
"firstName" : "John" ,
"lastName" : "Doe" ,
"email" : "john@techcorp.com" ,
"company" : "Tech Corp" ,
"title" : "Software Engineer" ,
"phone" : "+1-555-123-4567" ,
"linkedinUrl" : "https://linkedin.com/in/johndoe" ,
"source" : "linkedin" ,
"status" : "new" ,
"tags" : [],
"customFields" : {},
"createdAt" : "2024-01-20T15:30:00Z" ,
"updatedAt" : "2024-01-20T15:30:00Z"
}
}
Next Steps