Deals
get_ deals
Get list of deals for the authenticated user's organization
Parameters
pagenumber1Page number for pagination
limitnumber10Number of items per page
searchstringSearch term for deal title
relationsArray<string>Relations to include (e.g., ["client", "createdByUser"])
stagestringLEADQUALIFIED_LEADPROPOSAL_MADENEGOTIATIONCLOSED_WONCLOSED_LOSTFilter by deal stage
clientIdstring<uuid>Filter by client ID
createdByUserIdstring<uuid>Filter by creator user ID
get_ deal_ count
Get deal count in the authenticated user's organization
Parameters
stagestringLEADQUALIFIED_LEADPROPOSAL_MADENEGOTIATIONCLOSED_WONCLOSED_LOSTFilter by deal stage
clientIdstring<uuid>Filter by client ID
createdByUserIdstring<uuid>Filter by creator user ID
get_ deal
Get a specific deal by ID
Parameters
idstring<uuid>requiredThe deal ID
relationsArray<string>Relations to include (e.g., ["client", "createdByUser", "properties"])
create_ deal
Create a new deal in the authenticated user's organization
Body
deal_ dataobjectrequiredThe data for creating the deal
update_ deal
Update an existing deal
Parameters
idstring<uuid>requiredThe deal ID
deal_ dataobjectrequiredThe data for updating the deal
update_ deal_ stage
Update the stage of a deal
Parameters
idstring<uuid>requiredThe deal ID
stagestringLEADQUALIFIED_LEADPROPOSAL_MADENEGOTIATIONCLOSED_WONCLOSED_LOSTrequiredThe new stage for the deal
delete_ deal
Delete a deal
Parameters
idstring<uuid>requiredThe deal ID
get_ deals_ by_ client
Get deals for a specific client
Parameters
clientIdstring<uuid>requiredThe client ID
pagenumber1Page number for pagination
limitnumber10Number of items per page
stagestringLEADQUALIFIED_LEADPROPOSAL_MADENEGOTIATIONCLOSED_WONCLOSED_LOSTFilter by deal stage
relationsArray<string>Relations to include
get_ my_ deals
Get deals created by the current authenticated user
Parameters
pagenumber1Page number for pagination
limitnumber10Number of items per page
stagestringLEADQUALIFIED_LEADPROPOSAL_MADENEGOTIATIONCLOSED_WONCLOSED_LOSTFilter by deal stage
relationsArray<string>Relations to include
get_ deal_ statistics
Get deal statistics for the authenticated user's organization
Parameters
clientIdstring<uuid>Filter by specific client ID
createdByUserIdstring<uuid>Filter by creator user ID
startDatestringStart date for statistics (ISO format)
endDatestringEnd date for statistics (ISO format)
add_ deal_ property
Add a custom property to a deal
Body
dealIdstring<uuid>requiredThe deal ID
propertyobjectrequiredThe property to add
update_ deal_ property
Update a custom property of a deal
Parameters
dealIdstring<uuid>requiredThe deal ID
propertyNamestringrequiredThe property name to update
valuestringrequiredThe new property value
remove_ deal_ property
Remove a custom property from a deal
Parameters
dealIdstring<uuid>requiredThe deal ID
propertyNamestringrequiredThe property name to remove
get_ deals_ pipeline
Get deals organized by pipeline stages for the authenticated user's organization
Parameters
clientIdstring<uuid>Filter by client ID
createdByUserIdstring<uuid>Filter by creator user ID
search_ deals
Search deals by title or properties
Parameters
querystringrequiredSearch query
limitnumber20Maximum number of results
stagestringLEADQUALIFIED_LEADPROPOSAL_MADENEGOTIATIONCLOSED_WONCLOSED_LOSTFilter by deal stage
clientIdstring<uuid>Filter by client ID