Public API
Create leads from external sources using API key authentication. Ideal for web forms, landing pages, and third-party integrations.
Public API endpoints use
X-API-Key header authentication.Core Endpoints
POST
/public/leads
Create lead (external)
API Key Required
Create a lead from an external source using API key authentication. Ideal for web forms and landing pages.
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| first_name | string | Required | |
| last_name | string | Required | |
| string | Required | ||
| phone | string | Optional | |
| company | string | Optional | |
| job_title | string | Optional | |
| source | string | Optional | |
| notes | string | Optional |
Response
Lead created
{
"success": true,
"data": {
"id": 1
},
"message": "..."
}Code Examples
curl -X POST "https://crm.revorbit.com/api/public/leads" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"first_name": "...",
"last_name": "...",
"email": "...",
"phone": "...",
"company": "...",
"job_title": "...",
"source": "...",
"notes": "..."
}'const response = await fetch(
"https://crm.revorbit.com/api/public/leads",
{
method: "POST",
headers: {
"X-API-Key": "YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify(
{
"first_name": "...",
"last_name": "...",
"email": "...",
"phone": "...",
"company": "...",
"job_title": "...",
"source": "...",
"notes": "..."
}
)
}
);
const data = await response.json();