Clienvy API documentation

List versions

GET
https://api.clienvy.io/employee/v1
/spaces/{space}/nodes/{space_node}/page/versions

Returns the version history of the record, newest first. Changes by the same employee, through the same AI connection, within a few minutes are combined into one version. The 100 most recent versions are kept.

List versions › path Parameters

space
​string · uuid · required

The space UUID

space_node
​string · uuid · required

The space node UUID

List versions › Headers

X-Organization-Id
​string · uuid · required

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

List versions › Responses

Array of VersionResource

id
​string · uuid
​object[]

The content as it was, as blocks of the editor.

​object | null

What the record was besides its content, such as its title; null for a record that versions only its content.

​EmployeeReferenceResource | null
​ContactReferenceResource | null

The contact who made the version in the customer portal, if not an employee.

​OAuthConnectionReferenceResource | null

The AI connection the change was made through, if any.

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

Restore a version

POST
https://api.clienvy.io/employee/v1
/spaces/{space}/nodes/{space_node}/page/versions/{version}/restore

Puts an earlier version of the record back. The restore itself is stored as a new version, so it can be undone. Answers with the version that was put back.

Restore a version › path Parameters

space
​string · uuid · required

The space UUID

space_node
​string · uuid · required

The space node UUID

version
​string · uuid · required

The version UUID, as listed by the versions endpoint.

Restore a version › Headers

X-Organization-Id
​string · uuid · required

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

Restore a version › Responses

VersionResource

id
​string · uuid
​object[]

The content as it was, as blocks of the editor.

​object | null

What the record was besides its content, such as its title; null for a record that versions only its content.

​EmployeeReferenceResource | null
​ContactReferenceResource | null

The contact who made the version in the customer portal, if not an employee.

​OAuthConnectionReferenceResource | null

The AI connection the change was made through, if any.

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

List versions

GET
https://api.clienvy.io/employee/v1
/collection-items/{collection_item}/versions

Returns the version history of the record, newest first. Changes by the same employee, through the same AI connection, within a few minutes are combined into one version. The 100 most recent versions are kept.

List versions › path Parameters

collection_item
​string · uuid · required

The collection item UUID

List versions › Headers

X-Organization-Id
​string · uuid · required

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

List versions › Responses

Array of VersionResource

id
​string · uuid
​object[]

The content as it was, as blocks of the editor.

​object | null

What the record was besides its content, such as its title; null for a record that versions only its content.

​EmployeeReferenceResource | null
​ContactReferenceResource | null

The contact who made the version in the customer portal, if not an employee.

​OAuthConnectionReferenceResource | null

The AI connection the change was made through, if any.

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

Restore a version

POST
https://api.clienvy.io/employee/v1
/collection-items/{collection_item}/versions/{version}/restore

Puts an earlier version of the record back. The restore itself is stored as a new version, so it can be undone. Answers with the version that was put back.

Restore a version › path Parameters

collection_item
​string · uuid · required

The collection item UUID

version
​string · uuid · required

The version UUID, as listed by the versions endpoint.

Restore a version › Headers

X-Organization-Id
​string · uuid · required

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

Restore a version › Responses

VersionResource

id
​string · uuid
​object[]

The content as it was, as blocks of the editor.

​object | null

What the record was besides its content, such as its title; null for a record that versions only its content.

​EmployeeReferenceResource | null
​ContactReferenceResource | null

The contact who made the version in the customer portal, if not an employee.

​OAuthConnectionReferenceResource | null

The AI connection the change was made through, if any.

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