---
title: "List all deals"
method: GET
path: "/crm/{connection_id}/deal"
tags: ["crm", "deal"]
---

# List all deals

`GET /crm/{connection_id}/deal`

## Request

- Base URL: `http://api.unified.to`
- URL: `http://api.unified.to/crm/{connection_id}/deal`
- Auth: API key in header `authorization`

## Path parameters

- `connection_id` string, required

## Query parameters

- `limit` number
- `offset` number
- `updated_gte` string, date-time
- `sort` 'name' | 'updated_at' | 'created_at'
- `order` 'asc' | 'desc'
- `query` string
- `company_id` string
- `contact_id` string
- `user_id` string
- `pipeline_id` string
- `fields` string[]
- `raw` string

## Response `200`

Successful

- CrmDeal[]
  - `id` string: Unique identifier for this deal object
  - `created_at` string, date-time: The date that this deal object was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: The last date that this deal object was updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `name` string: The name of this deal
  - `amount` number: The potential amount that deal could be worth
  - `currency` string: The currency for the deal amount (3 letter ISO code; eg. USD)
  - `closed_at` string, date-time: The date that this deal closed (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `closing_at` string, date-time: expected closing date (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `stages` CrmReference[]
    - `id` string
    - `name` string
    - `type` string
  - `pipelines` CrmReference[]
    - `id` string
    - `name` string
    - `type` string
  - `source` string: The source for this deal
  - `probability` number
  - `tags` string[]
  - `lost_reason` string
  - `won_reason` string
  - `user_id` string: (reference to HrisEmployee)
  - `contact_ids` string[]
  - `company_ids` string[]
  - `description` string
  - `metadata` CrmMetadata[]
    - `id` string
    - `slug` string
    - `value` unknown
    - `namespace` string
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'FILE' | 'TEXTAREA' | 'SINGLE_SELECT' | 'MULTIPLE_SELECT' | 'MEASUREMENT' | 'PRICE' | 'YES_NO' | 'CURRENCY' | 'URL'
    - `extra_data` unknown
  - `raw` unknown

---

[API](https://skmtc.dev/unified/apis/unified-to-api-2.md) · [All operations](https://skmtc.dev/unified/apis/unified-to-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/unified/apis/unified-to-api-2/revisions/7a38bdd7f089?raw)
