Clienvy API documentation

List websites

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

Returns a paginated list of websites, newest first.

List websites › query Parameters

search
​string

Full-text search across the reference, company name and domain names.

company_ids
​string

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

statuses
​string

Only return websites in these statuses: active-no-subscription, active, cancelling or archived. Accepts a comma-separated list.

include_tag_ids
​string

Only return websites carrying any of these tag UUIDs (comma-separated).

exclude_tag_ids
​string

Exclude websites carrying any of these tag UUIDs (comma-separated).

sort_field
​string

Field to sort by: status.

sort_direction
​string

Sort direction: asc or desc.

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 websites › Headers

X-Organization-Id
​string · uuid · required

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

List websites › Responses

Array of WebsiteListResource

​object

Create a website

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

Creates a new website for a company and its contacts, optionally with tags.

Create a website › Headers

X-Organization-Id
​string · uuid · required

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

Create a website › Request Body

reference
​string · maxLength: 128 · required

Name/reference of the website (often the primary domain).

company_id
​string · uuid · required

UUID of the company the website belongs to.

contact_ids
​string[] · required

UUIDs of the company contacts on the website.

tag_ids
​string[]

UUIDs of tags to attach to the website.

remark
​string | null · maxLength: 10000

Create a website › Responses

WebsiteResource

id
​string · uuid
reference
​string
remark
​string | null
status
​WebsiteStatus · enum
Enum values:
active-no-subscription
active
cancelling
archived
archive_at
​string | null · date
updated_at
​string · date-time
created_at
​string · date-time

Get a website

GET
https://api.clienvy.io/employee/v1
/websites/{website}

Returns a single website by ID, including its domains, linked company and contacts, and tags.

Get a website › path Parameters

website
​string · uuid · required

The website UUID

Get a website › Headers

X-Organization-Id
​string · uuid · required

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

Get a website › Responses

WebsiteResource

id
​string · uuid
reference
​string
remark
​string | null
status
​WebsiteStatus · enum
Enum values:
active-no-subscription
active
cancelling
archived
archive_at
​string | null · date
updated_at
​string · date-time
created_at
​string · date-time

Update a website

PUT
https://api.clienvy.io/employee/v1
/websites/{website}

Updates an existing website. Only the fields present in the request are changed.

Update a website › path Parameters

website
​string · uuid · required

The website UUID

Update a website › Headers

X-Organization-Id
​string · uuid · required

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

Update a website › Request Body

reference
​string · maxLength: 128

Name/reference of the website (often the primary domain).

company_id
​string · uuid

UUID of the company the website belongs to.

contact_ids
​string[]

UUIDs of the company contacts on the website.

tag_ids
​string[]

UUIDs of tags to attach to the website.

remark
​string | null · maxLength: 10000

Update a website › Responses

WebsiteResource

id
​string · uuid
reference
​string
remark
​string | null
status
​WebsiteStatus · enum
Enum values:
active-no-subscription
active
cancelling
archived
archive_at
​string | null · date
updated_at
​string · date-time
created_at
​string · date-time

Delete a website

DELETE
https://api.clienvy.io/employee/v1
/websites/{website}

Deletes a website. A website with domains, subscriptions, applications or mailbox domains cannot be deleted.

Delete a website › path Parameters

website
​string · uuid · required

The website UUID

Delete a website › Headers

X-Organization-Id
​string · uuid · required

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

Delete a website › Responses

WebsiteResource

id
​string · uuid
reference
​string
remark
​string | null
status
​WebsiteStatus · enum
Enum values:
active-no-subscription
active
cancelling
archived
archive_at
​string | null · date
updated_at
​string · date-time
created_at
​string · date-time

List activities

GET
https://api.clienvy.io/employee/v1
/websites/{website}/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

website
​string · uuid · required

The website 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
/websites/{website}/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

website
​string · uuid · required

The website 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