# List Contacts

> List and search the contacts in your organization

URL: https://docs.lemuai.com/api-reference/contacts/list

Returns your contacts a page at a time, newest first, with optional search and filters.

**Endpoint:** `GET /api/v1/contacts`

## Query parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `page` | integer | No | Page number, starting at `1`. Default `1`. |
| `limit` | integer | No | Contacts per page, `1` to `500`. Default `50`. |
| `search` | string | No | Text to look for in first, last or full name, email, company, external ID and phone. A phone-like value also matches the last 4 digits, and the full number with or without the country code (`9876543210`, `+919876543210`). |
| `tags` | string | No | Comma-separated tags. Returns contacts with any of them. |
| `has_email` | boolean | No | `true` for contacts with an email, `false` for contacts without one. |
| `has_phone` | boolean | No | `true` for contacts with a phone number, `false` for contacts without one. |
| `list_id` | integer | No | Only contacts in this list. |
| `sort_by` | string | No | `created_at` (default), `first_name`, `last_name`, `phone`, `email`, `company`, `title`, `opted_out` or `id`. |
| `sort_dir` | string | No | `desc` (default) or `asc`. |

**Example request:**

**cURL**

```bash
curl -G https://app.lemuai.com/api/v1/contacts \
  -H "X-API-Key: lemu_your_api_key" \
  --data-urlencode "search=Priya" \
  --data-urlencode "tags=renewal,gold" \
  --data-urlencode "limit=25"
```

**JavaScript**

```js
const params = new URLSearchParams({
  "search": "Priya",
  "tags": "renewal,gold",
  "limit": "25",
});
const res = await fetch(`https://app.lemuai.com/api/v1/contacts?${params}`, {
  method: "GET",
  headers: {
    "X-API-Key": process.env.LEMU_API_KEY,
  },
});
if (!res.ok) throw new Error(`LemuAI API ${res.status}: ${await res.text()}`);
const data = await res.json();
console.log(data);
```

**Python**

```python
import os

import requests

response = requests.get(
    "https://app.lemuai.com/api/v1/contacts",
    headers={
        "X-API-Key": os.environ["LEMU_API_KEY"],
    },
    params={
        "search": "Priya",
        "tags": "renewal,gold",
        "limit": "25",
    },
    timeout=30,
)
response.raise_for_status()
print(response.json())
```

## Response

**`200`**
```json
{
  "contacts": [
    {
      "id": 901,
      "organization_id": 7,
      "external_id": "crm-58213",
      "phone": "+919876543210",
      "phone_last4": "3210",
      "phone_masked": false,
      "email": "priya@example.com",
      "first_name": "Priya",
      "last_name": "Sharma",
      "company": "Sharma Traders",
      "title": "Owner",
      "tags": ["renewal", "gold"],
      "custom_fields": { "plan": "Gold" },
      "created_at": "2026-10-20T10:00:00Z",
      "updated_at": "2026-10-24T09:12:40Z"
    }
  ],
  "total_count": 1,
  "page": 1,
  "limit": 25,
  "total_pages": 1
}
```

| Field | Type | Description |
|---|---|---|
| `contacts` | array | The contacts on this page. See [contact fields](https://docs.lemuai.com/api-reference/contacts/overview#contact-fields). |
| `total_count` | integer | Contacts matching your filters across all pages. |
| `page` | integer | The page returned. |
| `limit` | integer | Contacts per page. |
| `total_pages` | integer | Number of pages at this `limit`. |
