Deals

Manage deals within workspaces

List deals

get

Returns deals from workspaces the user has access to.

Authorizations
AuthorizationstringRequired

All API requests require a Bearer token in the Authorization header. Contact the Zero team to obtain your API token.

Query parameters
workspaceIdstring · uuidOptional

Filter by workspace ID

fieldsstringOptional

Comma-separated list of fields to return. Defaults to all fields.

Example: id,name,domain
wherestringOptional

JSON string with filter conditions

Example: {"workspaceId":"workspace-uuid"}
limitintegerOptional

Maximum number of records to return

Default: 100
offsetintegerOptional

Pagination offset

Default: 0
orderBystringOptional

JSON string for sort order

Example: {"name":"asc"}
Responses
chevron-right
200

Successful response

application/json
get
/api/deals

Create a deal

post

Create a new deal in a workspace.

Note: If stage is not provided, it will default to the workspace's defaultDealStage setting.

Authorizations
AuthorizationstringRequired

All API requests require a Bearer token in the Authorization header. Contact the Zero team to obtain your API token.

Body
workspaceIdstring · uuidRequired
companyIdstring · uuidOptional
contactIdsstring · uuid[]Optional
namestringOptional
stagestringOptional

If not provided, defaults to the workspace defaultDealStage setting.

valuenumberOptional
confidencenumber · max: 100Optional
closeDatestring · dateOptional
startDatestring · dateOptional
endDatestring · dateOptional
listIdsstring · uuid[]Optional
ownerIdsstring · uuid[]Optional
customobjectOptional
externalIdstringOptional
sourcestringOptional
Responses
chevron-right
200

Deal created successfully

application/json
post
/api/deals

Delete a deal

delete

Delete a deal. Use archive=true for soft delete.

Authorizations
AuthorizationstringRequired

All API requests require a Bearer token in the Authorization header. Contact the Zero team to obtain your API token.

Path parameters
dealIdstring · uuidRequired
Query parameters
archivebooleanOptional

If true, soft deletes (archives) the deal instead of permanently deleting it.

Default: false
Responses
chevron-right
200

Deal deleted successfully

No content

delete
/api/deals/{dealId}

No content

Update a deal

patch

Update an existing deal.

Authorizations
AuthorizationstringRequired

All API requests require a Bearer token in the Authorization header. Contact the Zero team to obtain your API token.

Path parameters
dealIdstring · uuidRequired
Body
companyIdstring · uuidOptional
contactIdsstring · uuid[]Optional
namestringOptional
stagestringOptional
valuenumberOptional
confidencenumber · max: 100Optional
closeDatestring · dateOptional
startDatestring · dateOptional
endDatestring · dateOptional
listIdsstring · uuid[]Optional
ownerIdsstring · uuid[]Optional
customobjectOptional
externalIdstringOptional
sourcestringOptional
Responses
chevron-right
200

Deal updated successfully

application/json
patch
/api/deals/{dealId}

Last updated