Clienvy API documentation

List deal flows

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

Returns all deal flows.

List deal flows › query Parameters

search
​string

Filter flows by name.

List deal flows › Headers

X-Organization-Id
​string · uuid · required

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

List deal flows › Responses

Array of DealFlowResource

id
​string · uuid
name
​string
send_mail_subject
​string | null
send_mail_body
​string | null
expires_after_days
​integer
signed_mail_subject
​string | null
signed_mail_body
​string | null
​FileResource[]
created_at
​string · date-time
updated_at
​string · date-time

Create a deal flow

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

Creates a new deal flow.

Create a deal flow › Headers

X-Organization-Id
​string · uuid · required

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

Create a deal flow › Request Body

name
​string · maxLength: 64 · required
send_mail_subject
​string

Default subject of the proposal e-mail.

send_mail_body
​string

Default body of the proposal e-mail.

expires_after_days
​integer

Default proposal validity in days (minimum 7).

signed_mail_subject
​string

Default subject of the confirmation e-mail sent after signing.

signed_mail_body
​string

Default body of the confirmation e-mail sent after signing.

attachment_ids
​string[]

UUIDs of uploaded files attached to every proposal in this flow.

Create a deal flow › Responses

DealFlowResource

id
​string · uuid
name
​string
send_mail_subject
​string | null
send_mail_body
​string | null
expires_after_days
​integer
signed_mail_subject
​string | null
signed_mail_body
​string | null
​FileResource[]
created_at
​string · date-time
updated_at
​string · date-time

Get a deal flow

GET
https://api.clienvy.io/employee/v1
/deal-flows/{dealFlow}

Returns a single deal flow by ID. A deal flow holds the default proposal settings (validity, e-mail templates and attachments) applied to new deals.

Get a deal flow › path Parameters

dealFlow
​string · uuid · required

The deal flow UUID

Get a deal flow › Headers

X-Organization-Id
​string · uuid · required

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

Get a deal flow › Responses

DealFlowResource

id
​string · uuid
name
​string
send_mail_subject
​string | null
send_mail_body
​string | null
expires_after_days
​integer
signed_mail_subject
​string | null
signed_mail_body
​string | null
​FileResource[]
created_at
​string · date-time
updated_at
​string · date-time

Update a deal flow

PUT
https://api.clienvy.io/employee/v1
/deal-flows/{dealFlow}

Updates a deal flow. Only the fields present in the request are changed.

Update a deal flow › path Parameters

dealFlow
​string · uuid · required

The deal flow UUID

Update a deal flow › Headers

X-Organization-Id
​string · uuid · required

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

Update a deal flow › Request Body

name
​string · maxLength: 64
send_mail_subject
​string

Default subject of the proposal e-mail.

send_mail_body
​string

Default body of the proposal e-mail.

expires_after_days
​integer

Default proposal validity in days (minimum 7).

signed_mail_subject
​string

Default subject of the confirmation e-mail sent after signing.

signed_mail_body
​string

Default body of the confirmation e-mail sent after signing.

attachment_ids
​string[]

UUIDs of uploaded files attached to every proposal in this flow.

Update a deal flow › Responses

DealFlowResource

id
​string · uuid
name
​string
send_mail_subject
​string | null
send_mail_body
​string | null
expires_after_days
​integer
signed_mail_subject
​string | null
signed_mail_body
​string | null
​FileResource[]
created_at
​string · date-time
updated_at
​string · date-time

Delete a deal flow

DELETE
https://api.clienvy.io/employee/v1
/deal-flows/{dealFlow}

Deletes a deal flow. A flow that is still in use by deals cannot be deleted, and at least one flow must always remain.

Delete a deal flow › path Parameters

dealFlow
​string · uuid · required

The deal flow UUID

Delete a deal flow › Headers

X-Organization-Id
​string · uuid · required

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

Delete a deal flow › Responses

DealFlowResource

id
​string · uuid
name
​string
send_mail_subject
​string | null
send_mail_body
​string | null
expires_after_days
​integer
signed_mail_subject
​string | null
signed_mail_body
​string | null
​FileResource[]
created_at
​string · date-time
updated_at
​string · date-time