Skip to main content

Search Deal

Search Deal
GET

Search deal records using one or more supported filters.

Request

GET

GET /v1/deal/search

Headers

  • Authorization: Bearer your_access_token

Query Parameters

ParameterTypeDescription
deal_slugstringDirect lookup by deal slug. Takes priority over other filters when provided.
namestringDeal name.
deal_typeintegerDeal type. Allowed values: 1 = New Business, 2 = Existing Business.
deal_stage_idintegerDeal stage ID.
organization_slugstringOrganization slug connected to the deal.
organization_namestringOrganization name connected to the deal.
owner_idintegerOwner user ID.
owner_namestringOwner full name.
owner_emailstringOwner email address.
close_date_fromdateReturn deals with close date on or after this date. Format: YYYY-MM-DD.
close_date_todateReturn deals with close date on or before this date.
created_fromISO 8601 timestampReturn deals created at or after this timestamp.
created_toISO 8601 timestampReturn deals created at or before this timestamp.
updated_fromISO 8601 timestampReturn deals updated at or after this timestamp.
updated_toISO 8601 timestampReturn deals updated at or before this timestamp.
exact_searchboolean stringUse true for exact text matching. Default: partial matching.
sort_bystringAllowed values: created_at, updated_at. Default: updated_at.
sort_orderstringAllowed values: asc, desc. Default: desc.
maximizestringComma-separated response expansions. Use all to expand all supported deal fields.
pageintegerPage number. Default: 1.
limitintegerRecords per page. Default: 25. Requests above 50 are capped at 50.

Search Behavior

  • Include at least one search filter to receive results.
  • deal_slug performs a direct lookup and takes priority over all other filters.
  • Text filters use partial matching by default. Pass exact_search=true for exact text matching.
  • Date range filters are inclusive. For each date range, the *_to value must be greater than or equal to the matching *_from value.
  • close_date_from and close_date_to use the YYYY-MM-DD date format.
  • Results are sorted by updated_at in descending order unless sorting parameters are provided.

Supported maximize values

owner, created_by, updated_by, organization, job, candidate, stage, contact, all

Request Examples

Search by deal name

GET /v1/deal/search?name=Renewal
GET /v1/deal/search?name=Acme%20Renewal&exact_search=true

Search by close date

GET /v1/deal/search?close_date_from=2026-07-01&close_date_to=2026-07-31

Search by organization and owner

GET /v1/deal/search?organization_name=Acme&owner_email=owner@example.com&maximize=organization,owner

Direct slug lookup

GET /v1/deal/search?deal_slug=deal_68ba678fcd2a83f4640c

Response

200
{
"total": 1,
"per_page": 25,
"current_page": 1,
"last_page": 1,
"next_page_url": null,
"prev_page_url": null,
"from": 1,
"to": 1,
"data": [
{
"id": 28,
"slug": "deal_68ba678fcd2a83f4640c",
"name": "Acme Renewal",
"deal_type": 1,
"close_date": "2026-07-31",
"deal_amount": 50000,
"stage": {
"id": 1
},
"organization": {
"id": 12
},
"created_at": "2026-06-21T02:49:00.000Z",
"updated_at": "2026-07-08T17:47:00.000Z"
}
]
}
400
[
{
"field_name": "close_date_to",
"error_message": "close_date_to must be greater than or equal to close_date_from"
}
]