---
title: "Search leads"
method: GET
path: "/leads/search"
---

# Search leads

`GET /leads/search`

Search leads based on various parameters. Requires a valid Bearer token.

## Query parameters

- `email` string
- `phone` string
- `company` string
- `description` string
- `first_name` string
- `last_name` string
- `title` string
- `groupId` string
- `stageId` string
- `priorityId` string

## Response `200`

Successful search

- object[]
  - `group_id` string
  - `entity_base_id` string
  - `entity_type_id` integer
  - `phone_book_data` object

## Other responses

- `400` — Bad request (missing parameters)
- `404` — No matching leads found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/supabase/apis/dalil-oauth-resource-api.md) · [All operations](https://skmtc.dev/supabase/apis/dalil-oauth-resource-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/supabase/dalil-oauth-resource-api/revisions/40a7125e0355/schema)
