Clienvy API documentation

List integrations

GET
https://api.clienvy.io/employee/v1
/integrations/instances

Returns the organization's integrations, Clienvy-managed ones first. Use it to find the integration another endpoint asks for, such as the accounting integration a company is linked at.

List integrations › query Parameters

category
​string

Only integrations of this category, such as accounting.

List integrations › Headers

X-Organization-Id
​string · uuid · required

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

List integrations › Responses

Array of IntegrationInstanceListResource

id
​string · uuid
name
​string
category
​IntegrationCategory · enum
Enum values:
accounting
payment
registrar
dns
voip
hosting
mailbox
smtp
provider
​IntegrationProvider · enum
Enum values:
moneybird
wefact
mollie
open-provider
digitalocean
voys
pressable
kinsta
status
​IntegrationInstanceStatus · enum
Enum values:
authenticated
unauthenticated
configuration-required
is_global
​boolean

When this field is true, the integration is managed by Clienvy. Usage may be billed by Clienvy depending on the type.

supports_logs
​boolean
​array
delete_blockers
​string[]

Reasons why this integration cannot be deleted yet. Deletion is allowed when this list is empty.


Create an integration

POST
https://api.clienvy.io/employee/v1
/integrations/instances

Creates an integration with one of the providers from the providers endpoint. It is not connected yet: set its settings with an update, such as the API key. Moneybird connects through a sign-in at Moneybird, which is done in Clienvy itself.

Create an integration › Headers

X-Organization-Id
​string · uuid · required

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

Create an integration › Request Body

name
​string · maxLength: 64 · required
provider
​string · enum · required
Enum values:
moneybird
wefact
mollie
open-provider
digitalocean
voys
pressable
kinsta

Create an integration › Responses

IntegrationInstanceResource

id
​string · uuid
name
​string
category
​IntegrationCategory · enum
Enum values:
accounting
payment
registrar
dns
voip
hosting
mailbox
smtp
provider
​IntegrationProvider · enum
Enum values:
moneybird
wefact
mollie
open-provider
digitalocean
voys
pressable
kinsta
status
​IntegrationInstanceStatus · enum
Enum values:
authenticated
unauthenticated
configuration-required
is_global
​boolean
supports_logs
​boolean
​array
​array
delete_blockers
​string[]

Reasons why this integration cannot be deleted yet. Deletion is allowed when this list is empty.


Get an integration

GET
https://api.clienvy.io/employee/v1
/integrations/instances/{integrationInstance}

Returns a single integration with its status, its current settings and settings_schema: the fields it takes, grouped in sections, with which of them are required or secret. Secret values are never returned.

Get an integration › path Parameters

integrationInstance
​string · uuid · required

The integration instance UUID

Get an integration › query Parameters

skip_settings
​string

Pass true to leave out the settings, which saves asking the provider for them.

Get an integration › Headers

X-Organization-Id
​string · uuid · required

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

Get an integration › Responses

IntegrationInstanceListResource

IntegrationInstanceResource

anyOf
At least one variant must match. Multiple variants may match simultaneously.

Decision Table

VariantMatching Criteria
type = object
type = object
Properties for IntegrationInstanceListResource:
id
​string · uuid
name
​string
category
​IntegrationCategory · enum
Enum values:
accounting
payment
registrar
dns
voip
hosting
mailbox
smtp
provider
​IntegrationProvider · enum
Enum values:
moneybird
wefact
mollie
open-provider
digitalocean
voys
pressable
kinsta
status
​IntegrationInstanceStatus · enum
Enum values:
authenticated
unauthenticated
configuration-required
is_global
​boolean

When this field is true, the integration is managed by Clienvy. Usage may be billed by Clienvy depending on the type.

supports_logs
​boolean
​array
delete_blockers
​string[]

Reasons why this integration cannot be deleted yet. Deletion is allowed when this list is empty.


Update an integration

PUT
https://api.clienvy.io/employee/v1
/integrations/instances/{integrationInstance}

Changes the name or the settings of an integration. The settings are checked with the provider before they are stored: wrong credentials are refused and nothing is stored. A secret that is left empty keeps the stored value. A Clienvy-managed integration (is_global) cannot be changed.

Update an integration › path Parameters

integrationInstance
​string · uuid · required

The integration instance UUID

Update an integration › Headers

X-Organization-Id
​string · uuid · required

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

Update an integration › Request Body

name
​string · maxLength: 64
settings
​object | null

The settings to store, keyed by the key of the fields in settings_schema. Settings left out stay as they are.

Update an integration › Responses

IntegrationInstanceResource

id
​string · uuid
name
​string
category
​IntegrationCategory · enum
Enum values:
accounting
payment
registrar
dns
voip
hosting
mailbox
smtp
provider
​IntegrationProvider · enum
Enum values:
moneybird
wefact
mollie
open-provider
digitalocean
voys
pressable
kinsta
status
​IntegrationInstanceStatus · enum
Enum values:
authenticated
unauthenticated
configuration-required
is_global
​boolean
supports_logs
​boolean
​array
​array
delete_blockers
​string[]

Reasons why this integration cannot be deleted yet. Deletion is allowed when this list is empty.


Delete an integration

DELETE
https://api.clienvy.io/employee/v1
/integrations/instances/{integrationInstance}

Deletes an integration. Refused while delete_blockers lists a reason, such as records that still depend on it. A Clienvy-managed integration (is_global) cannot be deleted.

Delete an integration › path Parameters

integrationInstance
​string · uuid · required

The integration instance UUID

Delete an integration › Headers

X-Organization-Id
​string · uuid · required

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

Delete an integration › Responses

IntegrationInstanceListResource

id
​string · uuid
name
​string
category
​IntegrationCategory · enum
Enum values:
accounting
payment
registrar
dns
voip
hosting
mailbox
smtp
provider
​IntegrationProvider · enum
Enum values:
moneybird
wefact
mollie
open-provider
digitalocean
voys
pressable
kinsta
status
​IntegrationInstanceStatus · enum
Enum values:
authenticated
unauthenticated
configuration-required
is_global
​boolean

When this field is true, the integration is managed by Clienvy. Usage may be billed by Clienvy depending on the type.

supports_logs
​boolean
​array
delete_blockers
​string[]

Reasons why this integration cannot be deleted yet. Deletion is allowed when this list is empty.


List integration providers

GET
https://api.clienvy.io/employee/v1
/integrations/providers

Returns the providers an integration can be created with, each with its category.

List integration providers › query Parameters

category
​string

Only providers of this category, such as accounting.

List integration providers › Headers

X-Organization-Id
​string · uuid · required

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

List integration providers › Responses

​object[]
provider
​string · required
label
​string · required
category
​string · required

List integration logs

GET
https://api.clienvy.io/employee/v1
/integrations/instances/{integrationInstance}/logs

Returns the run history of an integration, newest first: what was synchronized, whether it succeeded and what went wrong when it did not.

List integration logs › path Parameters

integrationInstance
​string · uuid · required

The integration instance UUID

List integration logs › query Parameters

status
​string

Only runs with this outcome.

event
​string

Only runs of this event type.

subject_type
​string

Only runs about this kind of record, such as invoice.

subject_id
​string · uuid

Only runs about this record, combined with subject_type.

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 integration logs › Headers

X-Organization-Id
​string · uuid · required

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

List integration logs › Responses

Array of IntegrationLogResource

​object