Clienvy API documentation

List deals

GET
https://api.clienvy.io/employee/v1
/deals

Returns a paginated list of deals, the deal that most recently moved into its status first.

List deals › query Parameters

search
​string

Full-text search across the deal reference, company name and proposal number.

company_ids
​string

Only return deals for these companies. Accepts a comma-separated list of UUIDs.

status_ids
​string

Only return deals in these pipeline statuses. Accepts a comma-separated list of UUIDs.

page
​integer

Page number of the paginated result set.

per_page
​integer

Number of items per page. Defaults to the endpoint's own page size; capped at 500.

List deals › Headers

X-Organization-Id
​string · uuid · required

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

List deals › Responses

Array of DealListResource

​object

Create a deal

POST
https://api.clienvy.io/employee/v1
/deals

Creates a new deal for a company and contact, optionally with proposal line items. Each item holds one or more priced sub-items. The items can also be added later.

Create a deal › Headers

X-Organization-Id
​string · uuid · required

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

Create a deal › Request Body

company_id
​string · uuid · required

UUID of the company the deal is for.

contact_id
​string · uuid · required

UUID of the primary contact for the deal.

reference
​string · maxLength: 128 · required

Short reference/title of the deal.

chance_of_success
​integer · required

Estimated chance of success, 0–100.

information
​string | null · maxLength: 10000

Free-form internal information about the deal.

project_ids
​string[]

UUIDs of the projects the deal is linked to. Replaces the current links.

subscription_ids
​string[]

UUIDs of the subscriptions the deal is linked to. Replaces the current links.

estimated_price
​number | null · decimal

Estimated deal value excluding tax, at most 10,000,000.

status_id
​string · uuid

UUID of the pipeline status to start in. Defaults to the first status. To move an existing deal, use the status endpoint.

​object[]

Proposal line items. The price of a sub-item, the amount of a sub-item and the total of all sub-items are each limited to 10,000,000 excluding tax.

Create a deal › Responses

DealResource

id
​string · uuid
reference
​string
estimated_price
​number | null
chance_of_success
​integer
information
​string | null
expires_after_days
​integer
expires_on
​string | null · date

Until when the proposal is valid: the send date plus expires_after_days, so empty until it is sent.

is_expired
​boolean
view_url
​string
has_signature
​boolean
total_excluding_tax
​number
total_including_tax
​number
has_proposal
​boolean
proposal_type
​DealProposalType · enum
Enum values:
pdf
html
​FileResource | null
​HtmlBundleResource | null

The newest version of an html proposal: its start file for a sandboxed iframe, and its files. Null for a pdf proposal. Earlier versions, see the proposal versions endpoint.

​DealProposalSlideResource[]
number
​integer | null
formatted_number
​string | null
​object
sent_at
​string | null · date-time
processed_at
​string | null · date-time
in_status_since
​string | null · date-time
​object

Seconds the deal has spent in each status, keyed by status UUID.

​EmployeeReferenceResource | null
​FileResource[]
updated_at
​string · date-time
created_at
​string · date-time

Get a deal

GET
https://api.clienvy.io/employee/v1
/deals/{deal}

Returns a single deal by ID, including its line items.

Get a deal › path Parameters

deal
​string · uuid · required

The deal UUID

Get a deal › Headers

X-Organization-Id
​string · uuid · required

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

Get a deal › Responses

DealResource

id
​string · uuid
reference
​string
estimated_price
​number | null
chance_of_success
​integer
information
​string | null
expires_after_days
​integer
expires_on
​string | null · date

Until when the proposal is valid: the send date plus expires_after_days, so empty until it is sent.

is_expired
​boolean
view_url
​string
has_signature
​boolean
total_excluding_tax
​number
total_including_tax
​number
has_proposal
​boolean
proposal_type
​DealProposalType · enum
Enum values:
pdf
html
​FileResource | null
​HtmlBundleResource | null

The newest version of an html proposal: its start file for a sandboxed iframe, and its files. Null for a pdf proposal. Earlier versions, see the proposal versions endpoint.

​DealProposalSlideResource[]
number
​integer | null
formatted_number
​string | null
​object
sent_at
​string | null · date-time
processed_at
​string | null · date-time
in_status_since
​string | null · date-time
​object

Seconds the deal has spent in each status, keyed by status UUID.

​EmployeeReferenceResource | null
​FileResource[]
updated_at
​string · date-time
created_at
​string · date-time

Update a deal

PUT
https://api.clienvy.io/employee/v1
/deals/{deal}

Updates an existing deal. Only the fields present in the request are changed. When items is present it replaces the full set of line items (send existing item and sub-item IDs to keep them).

Update a deal › path Parameters

deal
​string · uuid · required

The deal UUID

Update a deal › Headers

X-Organization-Id
​string · uuid · required

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

Update a deal › Request Body

company_id
​string · uuid

UUID of the company the deal is for.

contact_id
​string · uuid

UUID of the primary contact for the deal.

reference
​string · maxLength: 128

Short reference/title of the deal.

information
​string | null · maxLength: 10000

Free-form internal information about the deal.

project_ids
​string[]

UUIDs of the projects the deal is linked to. Replaces the current links.

subscription_ids
​string[]

UUIDs of the subscriptions the deal is linked to. Replaces the current links.

estimated_price
​number | null · decimal

Estimated deal value excluding tax, at most 10,000,000.

chance_of_success
​integer

Estimated chance of success, 0–100.

​object[]

Proposal line items. Replaces the current items. The price of a sub-item, the amount of a sub-item and the total of all sub-items are each limited to 10,000,000 excluding tax.

Update a deal › Responses

DealResource

id
​string · uuid
reference
​string
estimated_price
​number | null
chance_of_success
​integer
information
​string | null
expires_after_days
​integer
expires_on
​string | null · date

Until when the proposal is valid: the send date plus expires_after_days, so empty until it is sent.

is_expired
​boolean
view_url
​string
has_signature
​boolean
total_excluding_tax
​number
total_including_tax
​number
has_proposal
​boolean
proposal_type
​DealProposalType · enum
Enum values:
pdf
html
​FileResource | null
​HtmlBundleResource | null

The newest version of an html proposal: its start file for a sandboxed iframe, and its files. Null for a pdf proposal. Earlier versions, see the proposal versions endpoint.

​DealProposalSlideResource[]
number
​integer | null
formatted_number
​string | null
​object
sent_at
​string | null · date-time
processed_at
​string | null · date-time
in_status_since
​string | null · date-time
​object

Seconds the deal has spent in each status, keyed by status UUID.

​EmployeeReferenceResource | null
​FileResource[]
updated_at
​string · date-time
created_at
​string · date-time

Delete a deal

DELETE
https://api.clienvy.io/employee/v1
/deals/{deal}

Deletes a deal. A deal can no longer be deleted once its proposal has been sent.

Delete a deal › path Parameters

deal
​string · uuid · required

The deal UUID

Delete a deal › Headers

X-Organization-Id
​string · uuid · required

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

Delete a deal › Responses

DealResource

id
​string · uuid
reference
​string
estimated_price
​number | null
chance_of_success
​integer
information
​string | null
expires_after_days
​integer
expires_on
​string | null · date

Until when the proposal is valid: the send date plus expires_after_days, so empty until it is sent.

is_expired
​boolean
view_url
​string
has_signature
​boolean
total_excluding_tax
​number
total_including_tax
​number
has_proposal
​boolean
proposal_type
​DealProposalType · enum
Enum values:
pdf
html
​FileResource | null
​HtmlBundleResource | null

The newest version of an html proposal: its start file for a sandboxed iframe, and its files. Null for a pdf proposal. Earlier versions, see the proposal versions endpoint.

​DealProposalSlideResource[]
number
​integer | null
formatted_number
​string | null
​object
sent_at
​string | null · date-time
processed_at
​string | null · date-time
in_status_since
​string | null · date-time
​object

Seconds the deal has spent in each status, keyed by status UUID.

​EmployeeReferenceResource | null
​FileResource[]
updated_at
​string · date-time
created_at
​string · date-time

Duplicate a deal

POST
https://api.clienvy.io/employee/v1
/deals/{deal}/duplicate

Creates a copy of the deal (including its items) and returns the new deal.

Duplicate a deal › path Parameters

deal
​string · uuid · required

The deal UUID

Duplicate a deal › Headers

X-Organization-Id
​string · uuid · required

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

Duplicate a deal › Responses

DealResource

id
​string · uuid
reference
​string
estimated_price
​number | null
chance_of_success
​integer
information
​string | null
expires_after_days
​integer
expires_on
​string | null · date

Until when the proposal is valid: the send date plus expires_after_days, so empty until it is sent.

is_expired
​boolean
view_url
​string
has_signature
​boolean
total_excluding_tax
​number
total_including_tax
​number
has_proposal
​boolean
proposal_type
​DealProposalType · enum
Enum values:
pdf
html
​FileResource | null
​HtmlBundleResource | null

The newest version of an html proposal: its start file for a sandboxed iframe, and its files. Null for a pdf proposal. Earlier versions, see the proposal versions endpoint.

​DealProposalSlideResource[]
number
​integer | null
formatted_number
​string | null
​object
sent_at
​string | null · date-time
processed_at
​string | null · date-time
in_status_since
​string | null · date-time
​object

Seconds the deal has spent in each status, keyed by status UUID.

​EmployeeReferenceResource | null
​FileResource[]
updated_at
​string · date-time
created_at
​string · date-time

Update the proposal

PUT
https://api.clienvy.io/employee/v1
/deals/{deal}/proposal

Sets the proposal document of the deal together with its validity and attachments. A pdf proposal is an uploaded PDF that is shown as slides. An html proposal is a page shown full screen: an HTML start file with what it uses (CSS, scripts, images) in their folders. Upload the files first as an HTML bundle with its start file (see Upload an HTML bundle, a single document is a bundle of one index.html) and give its id as html_bundle_id. New files are a new version, which the customer sees from then on; earlier versions are kept for 90 days (at most 20). The deal needs a proposal number first.

Update the proposal › path Parameters

deal
​string · uuid · required

The deal UUID

Update the proposal › Headers

X-Organization-Id
​string · uuid · required

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

Update the proposal › Request Body

proposal_type
​string · required

Proposal type: pdf or html.

proposal_file_id
​string · uuid

UUID of an uploaded PDF file. Required when proposal_type is pdf.

html_bundle_id
​string · uuid

An HTML bundle of yours that is not shown yet, with the files of the proposal.

expires_after_days
​integer

Number of days the proposal stays valid after it is sent (minimum 7). expires_on is set from it when the proposal is sent.

attachment_ids
​string[]

UUIDs of uploaded files to attach to the proposal.

Update the proposal › Responses

DealResource

id
​string · uuid
reference
​string
estimated_price
​number | null
chance_of_success
​integer
information
​string | null
expires_after_days
​integer
expires_on
​string | null · date

Until when the proposal is valid: the send date plus expires_after_days, so empty until it is sent.

is_expired
​boolean
view_url
​string
has_signature
​boolean
total_excluding_tax
​number
total_including_tax
​number
has_proposal
​boolean
proposal_type
​DealProposalType · enum
Enum values:
pdf
html
​FileResource | null
​HtmlBundleResource | null

The newest version of an html proposal: its start file for a sandboxed iframe, and its files. Null for a pdf proposal. Earlier versions, see the proposal versions endpoint.

​DealProposalSlideResource[]
number
​integer | null
formatted_number
​string | null
​object
sent_at
​string | null · date-time
processed_at
​string | null · date-time
in_status_since
​string | null · date-time
​object

Seconds the deal has spent in each status, keyed by status UUID.

​EmployeeReferenceResource | null
​FileResource[]
updated_at
​string · date-time
created_at
​string · date-time

Generate a proposal number

POST
https://api.clienvy.io/employee/v1
/deals/{deal}/proposal/generate-number

Generates and assigns a formal proposal number to the deal. Fails if the deal already has one.

Generate a proposal number › path Parameters

deal
​string · uuid · required

The deal UUID

Generate a proposal number › Headers

X-Organization-Id
​string · uuid · required

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

Generate a proposal number › Responses

DealResource

id
​string · uuid
reference
​string
estimated_price
​number | null
chance_of_success
​integer
information
​string | null
expires_after_days
​integer
expires_on
​string | null · date

Until when the proposal is valid: the send date plus expires_after_days, so empty until it is sent.

is_expired
​boolean
view_url
​string
has_signature
​boolean
total_excluding_tax
​number
total_including_tax
​number
has_proposal
​boolean
proposal_type
​DealProposalType · enum
Enum values:
pdf
html
​FileResource | null
​HtmlBundleResource | null

The newest version of an html proposal: its start file for a sandboxed iframe, and its files. Null for a pdf proposal. Earlier versions, see the proposal versions endpoint.

​DealProposalSlideResource[]
number
​integer | null
formatted_number
​string | null
​object
sent_at
​string | null · date-time
processed_at
​string | null · date-time
in_status_since
​string | null · date-time
​object

Seconds the deal has spent in each status, keyed by status UUID.

​EmployeeReferenceResource | null
​FileResource[]
updated_at
​string · date-time
created_at
​string · date-time

Send a deal proposal

POST
https://api.clienvy.io/employee/v1
/deals/{deal}/proposal/send

Sends the proposal. With type mail the proposal is e-mailed to the given contacts. With type manual it is only marked as sent. The deal must have a proposal, set through the proposal endpoint.

Send a deal proposal › path Parameters

deal
​string · uuid · required

The deal UUID

Send a deal proposal › Headers

X-Organization-Id
​string · uuid · required

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

Send a deal proposal › Request Body

type
​string · required

How the proposal is sent: mail or manual.

subject
​string · maxLength: 128

E-mail subject. Required when type is mail.

message
​string · maxLength: 10000

E-mail message. Required when type is mail.

contact_ids
​string[]

UUIDs of the contacts to e-mail. Required when type is mail.

Send a deal proposal › Responses

DealResource

id
​string · uuid
reference
​string
estimated_price
​number | null
chance_of_success
​integer
information
​string | null
expires_after_days
​integer
expires_on
​string | null · date

Until when the proposal is valid: the send date plus expires_after_days, so empty until it is sent.

is_expired
​boolean
view_url
​string
has_signature
​boolean
total_excluding_tax
​number
total_including_tax
​number
has_proposal
​boolean
proposal_type
​DealProposalType · enum
Enum values:
pdf
html
​FileResource | null
​HtmlBundleResource | null

The newest version of an html proposal: its start file for a sandboxed iframe, and its files. Null for a pdf proposal. Earlier versions, see the proposal versions endpoint.

​DealProposalSlideResource[]
number
​integer | null
formatted_number
​string | null
​object
sent_at
​string | null · date-time
processed_at
​string | null · date-time
in_status_since
​string | null · date-time
​object

Seconds the deal has spent in each status, keyed by status UUID.

​EmployeeReferenceResource | null
​FileResource[]
updated_at
​string · date-time
created_at
​string · date-time

Download the proposal signature

GET
https://api.clienvy.io/employee/v1
/deals/{deal}/proposal/download/signature

Returns the customer's signature image captured when the proposal was accepted.

Download the proposal signature › path Parameters

deal
​string · uuid · required

The deal UUID

Download the proposal signature › Headers

X-Organization-Id
​string · uuid · required

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

Download the proposal signature › Responses


List the versions of an HTML proposal

GET
https://api.clienvy.io/employee/v1
/deals/{deal}/proposal/versions

Every upload of new files is a version, newest first: a version put back counts from when it was put back. The proposal shows the newest. Earlier versions are kept for 90 days (at most 20). Only for an html proposal.

List the versions of an HTML proposal › path Parameters

deal
​string · uuid · required

The deal UUID

List the versions of an HTML proposal › Headers

X-Organization-Id
​string · uuid · required

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

List the versions of an HTML proposal › Responses

Array of HtmlBundleResource

id
​string · uuid
url
​string

The start file, meant for a sandboxed iframe. The other files are next to it at their relative paths. The link is signed and opens the page for at least 12 hours.

entry_path
​string

The path of the start file within the set.

Every file of the set, sorted by path.

​EmployeeReferenceResource | null

Who uploaded it.

​OAuthConnectionReferenceResource | null

The AI connection it was uploaded through, if any.

created_at
​string · date-time
updated_at
​string · date-time

The same as created_at: when it was uploaded, or put back last. The versions go by it.


Restore a version of an HTML proposal

POST
https://api.clienvy.io/employee/v1
/deals/{deal}/proposal/versions/{version}/restore

Shows an earlier version again, as the newest, so the one it showed before can be put back in turn. Answers with the version.

Restore a version of an HTML proposal › path Parameters

deal
​string · uuid · required

The deal UUID

version
​string · uuid · required

The version UUID, as listed by the versions endpoint.

Restore a version of an HTML proposal › Headers

X-Organization-Id
​string · uuid · required

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

Restore a version of an HTML proposal › Responses

HtmlBundleResource

id
​string · uuid
url
​string

The start file, meant for a sandboxed iframe. The other files are next to it at their relative paths. The link is signed and opens the page for at least 12 hours.

entry_path
​string

The path of the start file within the set.

Every file of the set, sorted by path.

​EmployeeReferenceResource | null

Who uploaded it.

​OAuthConnectionReferenceResource | null

The AI connection it was uploaded through, if any.

created_at
​string · date-time
updated_at
​string · date-time

The same as created_at: when it was uploaded, or put back last. The versions go by it.


Download a version of an HTML proposal

GET
https://api.clienvy.io/employee/v1
/deals/{deal}/proposal/versions/{version}/download

The files of a version as one zip, in their folder layout, named after the proposal number and when the version was uploaded. Upload it again to open the same files on another start file.

Download a version of an HTML proposal › path Parameters

deal
​string · uuid · required

The deal UUID

version
​string · uuid · required

The version UUID, as listed by the versions endpoint.

Download a version of an HTML proposal › Headers

X-Organization-Id
​string · uuid · required

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

Download a version of an HTML proposal › Responses

string · binary

Copy a version of an HTML proposal

POST
https://api.clienvy.io/employee/v1
/deals/{deal}/proposal/versions/{version}/copy

Copies the files of a version into a new HTML bundle of your own that is not shown yet, with the same start file, to change a few files in it without sending them all again (see Send files to an HTML bundle and Remove files from an HTML bundle). Then give it as html_bundle_id to make it the new version. A copy that is never shown is removed after a day. Answers with the new bundle.

Copy a version of an HTML proposal › path Parameters

deal
​string · uuid · required

The deal UUID

version
​string · uuid · required

The version UUID, as listed by the versions endpoint, or proposal_html.id for the current one.

Copy a version of an HTML proposal › Headers

X-Organization-Id
​string · uuid · required

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

Copy a version of an HTML proposal › Responses

HtmlBundleReferenceResource

id
​string · uuid
created_at
​string · date-time

Move a deal to a status

PUT
https://api.clienvy.io/employee/v1
/deals/{deal}/status

Moves the deal into the given pipeline status.

Move a deal to a status › path Parameters

deal
​string · uuid · required

The deal UUID

Move a deal to a status › Headers

X-Organization-Id
​string · uuid · required

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

Move a deal to a status › Request Body

status_id
​string · uuid · required

UUID of the pipeline status to move the deal to.

Move a deal to a status › Responses

DealResource

id
​string · uuid
reference
​string
estimated_price
​number | null
chance_of_success
​integer
information
​string | null
expires_after_days
​integer
expires_on
​string | null · date

Until when the proposal is valid: the send date plus expires_after_days, so empty until it is sent.

is_expired
​boolean
view_url
​string
has_signature
​boolean
total_excluding_tax
​number
total_including_tax
​number
has_proposal
​boolean
proposal_type
​DealProposalType · enum
Enum values:
pdf
html
​FileResource | null
​HtmlBundleResource | null

The newest version of an html proposal: its start file for a sandboxed iframe, and its files. Null for a pdf proposal. Earlier versions, see the proposal versions endpoint.

​DealProposalSlideResource[]
number
​integer | null
formatted_number
​string | null
​object
sent_at
​string | null · date-time
processed_at
​string | null · date-time
in_status_since
​string | null · date-time
​object

Seconds the deal has spent in each status, keyed by status UUID.

​EmployeeReferenceResource | null
​FileResource[]
updated_at
​string · date-time
created_at
​string · date-time

Set the responsible employee

PUT
https://api.clienvy.io/employee/v1
/deals/{deal}/responsible/{employee}

Assigns the employee (identified in the path) as the deal's responsible employee.

Set the responsible employee › path Parameters

deal
​string · uuid · required

The deal UUID

employee
​string · uuid · required

The employee UUID

Set the responsible employee › Headers

X-Organization-Id
​string · uuid · required

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

Set the responsible employee › Responses

DealResource

id
​string · uuid
reference
​string
estimated_price
​number | null
chance_of_success
​integer
information
​string | null
expires_after_days
​integer
expires_on
​string | null · date

Until when the proposal is valid: the send date plus expires_after_days, so empty until it is sent.

is_expired
​boolean
view_url
​string
has_signature
​boolean
total_excluding_tax
​number
total_including_tax
​number
has_proposal
​boolean
proposal_type
​DealProposalType · enum
Enum values:
pdf
html
​FileResource | null
​HtmlBundleResource | null

The newest version of an html proposal: its start file for a sandboxed iframe, and its files. Null for a pdf proposal. Earlier versions, see the proposal versions endpoint.

​DealProposalSlideResource[]
number
​integer | null
formatted_number
​string | null
​object
sent_at
​string | null · date-time
processed_at
​string | null · date-time
in_status_since
​string | null · date-time
​object

Seconds the deal has spent in each status, keyed by status UUID.

​EmployeeReferenceResource | null
​FileResource[]
updated_at
​string · date-time
created_at
​string · date-time

Process an accepted deal

POST
https://api.clienvy.io/employee/v1
/deals/{deal}/process

Processes an accepted deal in one go, with a destination for every accepted line. A project-revenue line is added to an existing project. A subscription line becomes a new subscription, which can optionally bill a recurring project. Create the projects beforehand with the project endpoints. The projects and subscriptions are linked to the deal. Pass skip as true to only mark the deal as processed. Only deals in the accepted status that have not been processed yet can be processed.

Process an accepted deal › path Parameters

deal
​string · uuid · required

The deal UUID

Process an accepted deal › Headers

X-Organization-Id
​string · uuid · required

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

Process an accepted deal › Request Body

​object[] · required

A destination for every accepted line of the deal. Required unless skip is given.

skip
​boolean

Mark the deal as processed without creating any revenue.

Process an accepted deal › Responses

DealResource

id
​string · uuid
reference
​string
estimated_price
​number | null
chance_of_success
​integer
information
​string | null
expires_after_days
​integer
expires_on
​string | null · date

Until when the proposal is valid: the send date plus expires_after_days, so empty until it is sent.

is_expired
​boolean
view_url
​string
has_signature
​boolean
total_excluding_tax
​number
total_including_tax
​number
has_proposal
​boolean
proposal_type
​DealProposalType · enum
Enum values:
pdf
html
​FileResource | null
​HtmlBundleResource | null

The newest version of an html proposal: its start file for a sandboxed iframe, and its files. Null for a pdf proposal. Earlier versions, see the proposal versions endpoint.

​DealProposalSlideResource[]
number
​integer | null
formatted_number
​string | null
​object
sent_at
​string | null · date-time
processed_at
​string | null · date-time
in_status_since
​string | null · date-time
​object

Seconds the deal has spent in each status, keyed by status UUID.

​EmployeeReferenceResource | null
​FileResource[]
updated_at
​string · date-time
created_at
​string · date-time

List activities

GET
https://api.clienvy.io/employee/v1
/deals/{deal}/activities

Returns a paginated list of activities logged on the parent resource, newest first. Activities cover both system-generated events and manually logged remarks.

With include_related the list is the timeline of the resource: its own activities together with those of the records that belong to it, such as the domain names, applications and mailbox domains of a website. Each activity then names the record it belongs to in subject.

List activities › path Parameters

deal
​string · uuid · required

The deal UUID

List activities › query Parameters

type
​string

Only return activities of this type (for example remark).

include_related
​boolean

Also return the activities of the records that belong to the resource, each naming its record in subject.

source
​string

With include_related: only return the activities of one record, as <type>:<id>, for example domain:<uuid>. The record has to be the resource itself or belong to it.

page
​integer

Page number of the paginated result set.

per_page
​integer

Number of items per page. Defaults to the endpoint's own page size; capped at 500.

List activities › Headers

X-Organization-Id
​string · uuid · required

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

List activities › Responses

Array of ActivityWithSubjectResource

Array of ActivityResource

​
​object

Log a remark

POST
https://api.clienvy.io/employee/v1
/deals/{deal}/activities

Logs a manual remark as an activity on the parent resource. The remark may contain basic HTML (p, br, b, strong, i, em, u, s, ul, ol, li, a, span). Other tags and attributes are stripped and line breaks become <br>. To mention an employee and notify them, add a span with a data-employee-id attribute holding the employee's UUID, for example <span data-employee-id="…">@Jan</span>. The answer names the record in subject, like the timeline does.

Log a remark › path Parameters

deal
​string · uuid · required

The deal UUID

Log a remark › Headers

X-Organization-Id
​string · uuid · required

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

Log a remark › Request Body

remark
​string · maxLength: 20000 · required

Log a remark › Responses

ActivityWithSubjectResource

id
​string · uuid
type
​string
title
​string
data
​string
​ContactReferenceResource | null

The contact who did it in the customer portal, if any.

​OAuthConnectionReferenceResource | null

The AI connection the activity was done through, if any.

updated_at
​string · date-time
created_at
​string · date-time
​ActivitySubjectResource | null

null when the record is gone