> ## Documentation Index
> Fetch the complete documentation index at: https://docs.leadlex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Welcome to LeadLex API

> Build powerful integrations with your LeadLex workspace

## What is the LeadLex API?

The LeadLex API enables you to programmatically interact with your workspace data, automate prospect research, manage contacts and campaigns, and leverage Lexi AI capabilities from your own applications.

<Card title="Get Started in Minutes" icon="rocket" href="/quickstart" horizontal>
  Follow our quickstart guide to make your first API call.
</Card>

## Key Features

<CardGroup cols={2}>
  <Card title="Prospect Search" icon="magnifying-glass" href="/api-reference/prospects/search">
    Search for prospects using advanced filters (job titles, locations, company size)
  </Card>

  <Card title="Contact Management" icon="address-book" href="/api-reference/contacts/list">
    Create, update, and manage contacts in your CRM
  </Card>

  <Card title="Campaign Automation" icon="paper-plane" href="/api-reference/campaigns/list">
    Create and launch outreach campaigns programmatically
  </Card>

  <Card title="Lexi AI Integration" icon="robot" href="/api-reference/lexi/chat">
    Chat with Lexi AI and automate workflows with task approvals
  </Card>
</CardGroup>

## Authentication

All API requests require an API key. Learn how to create and manage your keys:

<Card title="Authentication Guide" icon="key" href="/authentication">
  API keys, permissions, and rate limits explained
</Card>

## Base URL

```
https://data.leadlex.com/functions/v1/api-gateway
```

All endpoints are prefixed with `/v1/`.

## Quick Example

<CodeGroup>
  ```bash cURL theme={null}
  curl https://data.leadlex.com/functions/v1/api-gateway/v1/contacts \
    -H "Authorization: Bearer wbk_your_api_key_here"
  ```

  ```python Python theme={null}
  import requests

  API_KEY = "wbk_your_api_key_here"
  BASE_URL = "https://data.leadlex.com/functions/v1/api-gateway"

  headers = {"Authorization": f"Bearer {API_KEY}"}
  response = requests.get(f"{BASE_URL}/v1/contacts", headers=headers)
  contacts = response.json()["data"]["contacts"]
  ```

  ```javascript JavaScript theme={null}
  const API_KEY = 'wbk_your_api_key_here';
  const BASE_URL = 'https://data.leadlex.com/functions/v1/api-gateway';

  const response = await fetch(`${BASE_URL}/v1/contacts`, {
    headers: { 'Authorization': `Bearer ${API_KEY}` }
  });
  const { data } = await response.json();
  console.log(data.contacts);
  ```
</CodeGroup>

## Need Help?

<CardGroup cols={2}>
  <Card title="Code Examples" icon="code" href="/examples">
    Complete workflows in Python, JavaScript, and cURL
  </Card>

  <Card title="Contact Support" icon="life-ring" href="mailto:support@leadlex.com">
    Reach out to our team for help
  </Card>
</CardGroup>
