> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.levrage.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.levrage.ai/_mcp/server.

# List leads

GET https://api.levrage.ai/v1/crm/leads

Leads in the key's workspace, oldest change first — remember the last `updated_at` and ask for `updated_since` next time to keep a copy in sync.

Reference: https://docs.levrage.ai/api-reference/crm/list-leads

## Request

### Query parameters

- `updated_since` (string, optional) — ISO time — only leads changed at or after it.
- `created_since` (string, optional) — ISO time — only leads created at or after it.
- `stage_id` (string, optional) — One stage id, or several comma-separated.
- `pipeline_id` (string, optional) — Only this pipeline.
- `source` (string, optional) — Only leads from this source.
- `tag` (string, optional) — Only leads with this tag.
- `owner_user_id` (string, optional) — Only this owner's leads (`none` = no owner).
- `q` (string, optional) — Name, email, your id, or digits of a phone number.
- `sort` (string, optional) — updated_at (default), -updated_at, created_at, -created_at.
- `limit` (string, optional) — 1–200, default 50.
- `cursor` (string, optional) — next_cursor from the previous page.

## Response

### 200

Successful Response

- `data` (list of CrmLead, required)
- `has_more` (boolean, required)
- `next_cursor` (string, optional, nullable)

## Errors

### 400 Bad Request Error

Something in the request is wrong — `message` says what.

- `error` (CrmErrorBody, required)

### 401 Unauthorized Error

No key, or an unknown / revoked / expired key.

- `error` (CrmErrorBody, required)

### 403 Forbidden Error

The key has no CRM access, or read-only access.

- `error` (CrmErrorBody, required)

### 429 Too Many Requests Error

Over 600 requests a minute for this key — wait Retry-After seconds.

- `error` (CrmErrorBody, required)

## Types

### CrmLead

- `id` (string, required)
- `name` (string, optional, nullable)
- `phone` (string, optional, nullable)
- `email` (string, optional, nullable)
- `external_id` (string, optional, nullable)
- `company` (string, optional, nullable)
- `city` (string, optional, nullable)
- `source` (string, optional, nullable)
- `stage` (CrmStage, optional, nullable)
- `pipeline_id` (string, optional, nullable)
- `owner_user_id` (string, optional, nullable)
- `tags` (list of string, optional, default: [])
- `score` (integer, optional, nullable)
- `score_label` (string, optional, nullable)
- `fields` (CrmLeadFields, optional, default: {})
- `consent` (CrmLeadConsent, optional, default: {})
- `deal_value` (double, optional, nullable)
- `last_call_at` (string, optional, nullable)
- `last_call_outcome` (string, optional, nullable)
- `created_at` (string, optional, nullable)
- `updated_at` (string, optional, nullable)

### CrmErrorBody

- `code` (string, required)
- `message` (string, required)
- `existing_id` (string, optional, nullable)

### CrmStage

- `id` (string, required)
- `name` (string, required)
- `kind` (enum, required)
  - Allowed values: `open`, `qualified`, `won`, `lost`

### CrmLeadFields

### CrmLeadConsent

## Examples

**Response**

```json
{
  "data": [
    {
      "id": "string",
      "name": "string",
      "phone": "string",
      "email": "string",
      "external_id": "string",
      "company": "string",
      "city": "string",
      "source": "string",
      "stage": {
        "id": "string",
        "name": "string",
        "kind": "open"
      },
      "pipeline_id": "string",
      "owner_user_id": "string",
      "tags": [
        "string"
      ],
      "score": 1,
      "score_label": "string",
      "fields": {},
      "consent": {},
      "deal_value": 1.1,
      "last_call_at": "string",
      "last_call_outcome": "string",
      "created_at": "string",
      "updated_at": "string"
    }
  ],
  "has_more": true,
  "next_cursor": "string"
}
```

**SDK Code**

```python
import requests

url = "https://api.levrage.ai/v1/crm/leads"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://api.levrage.ai/v1/crm/leads';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.levrage.ai/v1/crm/leads"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.levrage.ai/v1/crm/leads")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.levrage.ai/v1/crm/leads")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.levrage.ai/v1/crm/leads');

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.levrage.ai/v1/crm/leads");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://api.levrage.ai/v1/crm/leads")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```