Skip to main content

Get Your API Key

  1. Log in to your LeadLex Dashboard
  2. Navigate to SettingsAPI & Integrations
  3. Click Create API Key
  4. Give your key a name (e.g., “My Bot”)
  5. Select permissions:
    • Read: View contacts, lists, campaigns
    • Write: Create and update data
    • Lexi: Interact with Lexi AI
  6. 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://nbkxaqxwvkgbddekwsma.supabase.co/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
  }
}

Create a Contact

Now let’s create a new contact:
curl -X POST \
  https://nbkxaqxwvkgbddekwsma.supabase.co/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