Integrations
List integrations
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.
query Parameters
categoryOnly integrations of this category, such as accounting.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List integrations › Responses
Array of IntegrationInstanceListResource
idnamecategoryproviderstatusis_globalWhen this field is true, the integration is managed by Clienvy. Usage may be billed by Clienvy depending on the type.
supports_logsdelete_blockersReasons why this integration cannot be deleted yet. Deletion is allowed when this list is empty.
Create an integration
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.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Create an integration › Request Body
nameproviderCreate an integration › Responses
IntegrationInstanceResource
idnamecategoryproviderstatusis_globalsupports_logsdelete_blockersReasons why this integration cannot be deleted yet. Deletion is allowed when this list is empty.
Get an integration
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.
path Parameters
integrationInstanceThe integration instance UUID
query Parameters
skip_settingsPass true to leave out the settings, which saves asking the provider for them.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Get an integration › Responses
IntegrationInstanceListResource
IntegrationInstanceResource
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object | |
| type = object |
idnamecategoryproviderstatusis_globalWhen this field is true, the integration is managed by Clienvy. Usage may be billed by Clienvy depending on the type.
supports_logsdelete_blockersReasons why this integration cannot be deleted yet. Deletion is allowed when this list is empty.
Update an integration
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.
path Parameters
integrationInstanceThe integration instance UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Update an integration › Request Body
namesettingsThe 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
idnamecategoryproviderstatusis_globalsupports_logsdelete_blockersReasons why this integration cannot be deleted yet. Deletion is allowed when this list is empty.
Delete an integration
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.
path Parameters
integrationInstanceThe integration instance UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Delete an integration › Responses
IntegrationInstanceListResource
idnamecategoryproviderstatusis_globalWhen this field is true, the integration is managed by Clienvy. Usage may be billed by Clienvy depending on the type.
supports_logsdelete_blockersReasons why this integration cannot be deleted yet. Deletion is allowed when this list is empty.
List integration providers
Returns the providers an integration can be created with, each with its category.
query Parameters
categoryOnly providers of this category, such as accounting.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List integration providers › Responses
providerlabelcategoryList integration logs
Returns the run history of an integration, newest first: what was synchronized, whether it succeeded and what went wrong when it did not.
path Parameters
integrationInstanceThe integration instance UUID
query Parameters
statusOnly runs with this outcome.
eventOnly runs of this event type.
subject_typeOnly runs about this kind of record, such as invoice.
subject_idOnly runs about this record, combined with subject_type.
pagePage number of the paginated result set.
per_pageNumber of items per page. Defaults to the endpoint's own page size; capped at 500.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List integration logs › Responses
Array of IntegrationLogResource