Clienvy API documentation

List deal statuses

GET
https://api.clienvy.io/employee/v1
/deal-statuses

Returns all deal pipeline statuses, ordered by their position.

List deal statuses › query Parameters

search
​string

Filter statuses by name.

List deal statuses › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

List deal statuses › Responses

Array of DealStatusResource

id
​string · uuid
name
​string
color
​Color · enum
Enum values:
gray
blue
orange
green
red
position
​integer
type
​string | null · enum
Enum values:
new
sent
accepted
declined

Create a deal status

POST
https://api.clienvy.io/employee/v1
/deal-statuses

Creates a new pipeline status and appends it to the end of the pipeline.

Create a deal status › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Create a deal status › Request Body

name
​string · maxLength: 32 · required
color
​string · required

Status color: gray, blue, orange, green or red.

Create a deal status › Responses

DealStatusResource

id
​string · uuid
name
​string
color
​Color · enum
Enum values:
gray
blue
orange
green
red
position
​integer
type
​string | null · enum
Enum values:
new
sent
accepted
declined

Reorder deal statuses

PUT
https://api.clienvy.io/employee/v1
/deal-statuses/reorder

Sets the position of one or more pipeline statuses and returns the full ordered list.

Reorder deal statuses › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Reorder deal statuses › Request Body

​object[] · required

The statuses and their new positions.

Reorder deal statuses › Responses

Array of DealStatusResource

id
​string · uuid
name
​string
color
​Color · enum
Enum values:
gray
blue
orange
green
red
position
​integer
type
​string | null · enum
Enum values:
new
sent
accepted
declined

Get a deal status

GET
https://api.clienvy.io/employee/v1
/deal-statuses/{dealStatus}

Returns a single deal pipeline status by ID.

Get a deal status › path Parameters

dealStatus
​string · uuid · required

The deal status UUID

Get a deal status › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Get a deal status › Responses

DealStatusResource

id
​string · uuid
name
​string
color
​Color · enum
Enum values:
gray
blue
orange
green
red
position
​integer
type
​string | null · enum
Enum values:
new
sent
accepted
declined

Update a deal status

PUT
https://api.clienvy.io/employee/v1
/deal-statuses/{dealStatus}

Updates a pipeline status. Only the fields present in the request are changed.

Update a deal status › path Parameters

dealStatus
​string · uuid · required

The deal status UUID

Update a deal status › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Update a deal status › Request Body

name
​string · maxLength: 32
color
​string

Status color: gray, blue, orange, green or red.

Update a deal status › Responses

DealStatusResource

id
​string · uuid
name
​string
color
​Color · enum
Enum values:
gray
blue
orange
green
red
position
​integer
type
​string | null · enum
Enum values:
new
sent
accepted
declined

Delete a deal status

DELETE
https://api.clienvy.io/employee/v1
/deal-statuses/{dealStatus}

Deletes a pipeline status. A status that is still in use by deals, or a built-in status with a fixed type, cannot be deleted.

Delete a deal status › path Parameters

dealStatus
​string · uuid · required

The deal status UUID

Delete a deal status › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Delete a deal status › Responses

DealStatusResource

id
​string · uuid
name
​string
color
​Color · enum
Enum values:
gray
blue
orange
green
red
position
​integer
type
​string | null · enum
Enum values:
new
sent
accepted
declined