---
title: "Search for deals"
method: GET
path: "/deals/search"
tags: ["Deals"]
---

# Search for deals

`GET /deals/search`

Search and filter deals based on various criteria including name, priority, stage, and more

## Query parameters

- `priority_id` integer
- `stage_id` integer
- `group_id` integer
- `commit_status` 'Committed' | 'Not Committed'
- `deal_name` string
- `account_name` string
- `owner` string

## Response `200`

Successfully retrieved deals (empty array if no matches found)

- object[]
  - `entity_type_id` integer — Type ID for deals (fixed value: 3)
  - `id` integer — Unique identifier for the deal
  - `name` string — Deal name
  - `revenue` number — Deal value/revenue
  - `currency` string — Deal currency
  - `close_date` string, date-time — Expected close date
  - `type` integer — Entity stage ID
  - `priority` integer — Entity priority ID
  - `group_id` integer — Group identifier
  - `stage` integer — Entity stage ID
  - `owner` string — Name of the deal owner
  - `is_committed` boolean — Deal commitment status

---

[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)
