cURL
curl --request POST \ --url https://api.buena.ai/api/v2/leads \ --header 'Content-Type: <content-type>' \ --header 'x-api-key: <x-api-key>' \ --data '{ "firstName": "<string>", "lastName": "<string>", "email": "<string>", "company": "<string>", "title": "<string>", "phone": "<string>", "linkedinUrl": "<string>", "industry": "<string>", "location": "<string>", "source": "<string>", "tags": [ {} ], "customFields": {} }'
{ "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" } }
Create a new lead in your database
leads:write
application/json
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" } }'
true
Show Lead Object