Get Your API Key
- Log in to your LeadLex Dashboard
- Navigate to Settings → API & Integrations
- Click Create API Key
- Give your key a name (e.g., “My Bot”)
- Select permissions:
- Read: View contacts, lists, campaigns
- Write: Create and update data
- Lexi: Interact with Lexi AI
- Click Create
Save your API key immediately! You won’t be able to see it again after closing the dialog.
Your API key will start with wbk_ (workspace key) and look like this:
wbk_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6
Make Your First Request
Let’s list your contacts using cURL:
curl https://data.leadlex.com/functions/v1/api-gateway/v1/contacts \
-H "Authorization: Bearer wbk_your_api_key_here"
Expected Response
{
"data": {
"contacts": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"full_name": "Jane Doe",
"email": "jane@example.com",
"phone": "+1234567890",
"job_title": "General Counsel",
"company_name": "Acme Legal",
"created_at": "2026-02-24T10:00:00Z"
}
]
},
"meta": {
"page": 1,
"per_page": 50,
"total": 1
}
}
Now let’s create a new contact:
curl -X POST \
https://data.leadlex.com/functions/v1/api-gateway/v1/contacts \
-H "Authorization: Bearer wbk_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"full_name": "John Smith",
"email": "john@example.com",
"job_title": "CEO",
"company_name": "Tech Corp"
}'
Check Rate Limits
Every API response includes rate limit headers:
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 995
X-RateLimit-Reset: 1708905600
Rate limits reset at midnight UTC. Check the X-RateLimit-Remaining header to track your usage.
Next Steps
Authentication
Learn about API keys, permissions, and rate limits
Code Examples
Complete workflows for common use cases
API Reference
Browse all available endpoints
Webhooks
Get notified when events occur in your workspace