Clienvy API documentation

Website application Kinsta


Create a Kinsta application

POST
https://api.clienvy.io/employee/v1
/websites/{website}/applications/create-kinsta

Creates a new managed WordPress production application on Kinsta for the website. The application is provisioned asynchronously and starts in the creating status.

Create a Kinsta application › path Parameters

website
​string · uuid · required

The website UUID

Create a Kinsta application › Headers

X-Organization-Id
​string · uuid · required

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

Create a Kinsta application › Request Body

name
​string · maxLength: 64 · required
datacenter
​string · maxLength: 32 · required
php_version
​string · maxLength: 16 · required
hosting_instance_id
​string · uuid · required

UUID of the Kinsta hosting integration to provision on.

woocommerce
​boolean

Create a Kinsta application › Responses

WebsiteApplicationResource

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

Decision Table

VariantMatching Criteria
type = object
type = object
type = object
Properties for Unmanaged:
id
​string · uuid
name
​string
status
​WebsiteApplicationStatus · enum
Enum values:
creating
active
deletion-scheduled
deleting
environment_type
​WebsiteApplicationEnvironmentType · enum
Enum values:
production
staging
type
​WebsiteApplicationType · enum
Enum values:
wordpress
shopify
laravel
main_url
​string | null
main_domain
​string
​IntegrationInstanceListResource | null
remarks
​string | null
parent_application_id
​string | null · uuid
​WebsiteApplicationOperationResource[]
unmanaged_hosting_name
​string | null
unmanaged_hosting_url
​string | null
​WebsiteApplicationWordpressResource | null
updated_at
​string · date-time
created_at
​string · date-time

Create a staging environment

POST
https://api.clienvy.io/employee/v1
/websites/{website}/applications/{websiteApplication}/managed/kinsta/create-staging

Creates a staging copy of an active Kinsta production application. Only one staging environment is allowed per production application. The environment is provisioned asynchronously and starts in the creating status.

Create a staging environment › path Parameters

website
​string · uuid · required

The website UUID

websiteApplication
​string · uuid · required

The website application UUID

Create a staging environment › Headers

X-Organization-Id
​string · uuid · required

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

Create a staging environment › Request Body

name
​string · maxLength: 64 · required

Create a staging environment › Responses

WebsiteApplicationResource

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

Decision Table

VariantMatching Criteria
type = object
type = object
type = object
Properties for Unmanaged:
id
​string · uuid
name
​string
status
​WebsiteApplicationStatus · enum
Enum values:
creating
active
deletion-scheduled
deleting
environment_type
​WebsiteApplicationEnvironmentType · enum
Enum values:
production
staging
type
​WebsiteApplicationType · enum
Enum values:
wordpress
shopify
laravel
main_url
​string | null
main_domain
​string
​IntegrationInstanceListResource | null
remarks
​string | null
parent_application_id
​string | null · uuid
​WebsiteApplicationOperationResource[]
unmanaged_hosting_name
​string | null
unmanaged_hosting_url
​string | null
​WebsiteApplicationWordpressResource | null
updated_at
​string · date-time
created_at
​string · date-time

Undo a scheduled deletion

POST
https://api.clienvy.io/employee/v1
/websites/{website}/applications/{websiteApplication}/managed/kinsta/undo-deletion

Cancels a pending deletion and returns the application to the active status.

Undo a scheduled deletion › path Parameters

website
​string · uuid · required

The website UUID

websiteApplication
​string · uuid · required

The website application UUID

Undo a scheduled deletion › Headers

X-Organization-Id
​string · uuid · required

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

Undo a scheduled deletion › Responses

WebsiteApplicationResource

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

Decision Table

VariantMatching Criteria
type = object
type = object
type = object
Properties for Unmanaged:
id
​string · uuid
name
​string
status
​WebsiteApplicationStatus · enum
Enum values:
creating
active
deletion-scheduled
deleting
environment_type
​WebsiteApplicationEnvironmentType · enum
Enum values:
production
staging
type
​WebsiteApplicationType · enum
Enum values:
wordpress
shopify
laravel
main_url
​string | null
main_domain
​string
​IntegrationInstanceListResource | null
remarks
​string | null
parent_application_id
​string | null · uuid
​WebsiteApplicationOperationResource[]
unmanaged_hosting_name
​string | null
unmanaged_hosting_url
​string | null
​WebsiteApplicationWordpressResource | null
updated_at
​string · date-time
created_at
​string · date-time

Update a Kinsta application

PUT
https://api.clienvy.io/employee/v1
/websites/{website}/applications/{websiteApplication}/managed/kinsta

Updates the basic settings (currently the display name) of a Kinsta application.

Update a Kinsta application › path Parameters

website
​string · uuid · required

The website UUID

websiteApplication
​string · uuid · required

The website application UUID

Update a Kinsta application › Headers

X-Organization-Id
​string · uuid · required

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

Update a Kinsta application › Request Body

name
​string · maxLength: 64

Update a Kinsta application › Responses

WebsiteApplicationResource

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

Decision Table

VariantMatching Criteria
type = object
type = object
type = object
Properties for Unmanaged:
id
​string · uuid
name
​string
status
​WebsiteApplicationStatus · enum
Enum values:
creating
active
deletion-scheduled
deleting
environment_type
​WebsiteApplicationEnvironmentType · enum
Enum values:
production
staging
type
​WebsiteApplicationType · enum
Enum values:
wordpress
shopify
laravel
main_url
​string | null
main_domain
​string
​IntegrationInstanceListResource | null
remarks
​string | null
parent_application_id
​string | null · uuid
​WebsiteApplicationOperationResource[]
unmanaged_hosting_name
​string | null
unmanaged_hosting_url
​string | null
​WebsiteApplicationWordpressResource | null
updated_at
​string · date-time
created_at
​string · date-time

Schedule deletion of a Kinsta application

POST
https://api.clienvy.io/employee/v1
/websites/{website}/applications/{websiteApplication}/managed/kinsta/delete

Schedules an active Kinsta application for deletion on the given date. When scheduled for today the deletion runs immediately. A production application cannot be deleted while it still has staging environments.

Schedule deletion of a Kinsta application › path Parameters

website
​string · uuid · required

The website UUID

websiteApplication
​string · uuid · required

The website application UUID

Schedule deletion of a Kinsta application › Headers

X-Organization-Id
​string · uuid · required

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

Schedule deletion of a Kinsta application › Request Body

deletion_scheduled_for
​string · date · required

Date on which the application should be deleted (today or later).

Schedule deletion of a Kinsta application › Responses

WebsiteApplicationResource

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

Decision Table

VariantMatching Criteria
type = object
type = object
type = object
Properties for Unmanaged:
id
​string · uuid
name
​string
status
​WebsiteApplicationStatus · enum
Enum values:
creating
active
deletion-scheduled
deleting
environment_type
​WebsiteApplicationEnvironmentType · enum
Enum values:
production
staging
type
​WebsiteApplicationType · enum
Enum values:
wordpress
shopify
laravel
main_url
​string | null
main_domain
​string
​IntegrationInstanceListResource | null
remarks
​string | null
parent_application_id
​string | null · uuid
​WebsiteApplicationOperationResource[]
unmanaged_hosting_name
​string | null
unmanaged_hosting_url
​string | null
​WebsiteApplicationWordpressResource | null
updated_at
​string · date-time
created_at
​string · date-time

Get the phpMyAdmin URL

GET
https://api.clienvy.io/employee/v1
/websites/{website}/applications/{websiteApplication}/managed/kinsta/phpmyadmin-url

Returns a one-time login URL to the phpMyAdmin database manager of the Kinsta application.

Get the phpMyAdmin URL › path Parameters

website
​string · uuid · required

The website UUID

websiteApplication
​string · uuid · required

The website application UUID

Get the phpMyAdmin URL › Headers

X-Organization-Id
​string · uuid · required

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

Get the phpMyAdmin URL › Responses

url
​string · required

List SFTP users

GET
https://api.clienvy.io/employee/v1
/websites/{website}/applications/{websiteApplication}/managed/kinsta/sftp/users

Returns the SFTP/SSH credentials configured for the Kinsta application.

List SFTP users › path Parameters

website
​string · uuid · required

The website UUID

websiteApplication
​string · uuid · required

The website application UUID

List SFTP users › Headers

X-Organization-Id
​string · uuid · required

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

List SFTP users › Responses

​object[] · required

Reset SFTP passwords

POST
https://api.clienvy.io/employee/v1
/websites/{website}/applications/{websiteApplication}/managed/kinsta/sftp/reset-password

Resets the password of every SFTP user on the Kinsta application and returns the new credentials.

Reset SFTP passwords › path Parameters

website
​string · uuid · required

The website UUID

websiteApplication
​string · uuid · required

The website application UUID

Reset SFTP passwords › Headers

X-Organization-Id
​string · uuid · required

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

Reset SFTP passwords › Responses

​object[] · required

Add a domain to a Kinsta application

POST
https://api.clienvy.io/employee/v1
/websites/{website}/applications/{websiteApplication}/managed/kinsta/domains

Links a website domain (optionally a subdomain) to the Kinsta application so it can be verified and pointed. The returned payload includes the refreshed application under application.

Add a domain to a Kinsta application › path Parameters

website
​string · uuid · required

The website UUID

websiteApplication
​string · uuid · required

The website application UUID

Add a domain to a Kinsta application › Headers

X-Organization-Id
​string · uuid · required

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

Add a domain to a Kinsta application › Request Body

domain_id
​string · uuid · required

UUID of the website domain to link.

subdomain
​string | null · maxLength: 64

Optional subdomain label to prefix the domain with.

Add a domain to a Kinsta application › Responses

WebsiteApplicationKinstaDomainResource

​WebsiteApplicationKinstaDomainResource · required
​WebsiteApplicationResource · required

Make a domain primary

POST
https://api.clienvy.io/employee/v1
/websites/{website}/applications/{websiteApplication}/managed/kinsta/domains/{websiteApplicationDomain}/make-primary

Marks the domain as the primary domain of the Kinsta application. The change is applied at the host asynchronously and the previous primary is unset.

Make a domain primary › path Parameters

website
​string · uuid · required

The website UUID

websiteApplication
​string · uuid · required

The website application UUID

websiteApplicationDomain
​string · uuid · required

The website application domain UUID

Make a domain primary › Headers

X-Organization-Id
​string · uuid · required

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

Make a domain primary › Responses

WebsiteApplicationKinstaDomainResource

​WebsiteApplicationKinstaDomainResource · required
​WebsiteApplicationResource · required

Remove a domain from a Kinsta application

DELETE
https://api.clienvy.io/employee/v1
/websites/{website}/applications/{websiteApplication}/managed/kinsta/domains/{websiteApplicationDomain}

Unlinks a domain from the Kinsta application and removes it at the host. The primary domain and staging domains cannot be removed, and an apex domain cannot be removed while it still has subdomains.

Remove a domain from a Kinsta application › path Parameters

website
​string · uuid · required

The website UUID

websiteApplication
​string · uuid · required

The website application UUID

websiteApplicationDomain
​string · uuid · required

The website application domain UUID

Remove a domain from a Kinsta application › Headers

X-Organization-Id
​string · uuid · required

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

Remove a domain from a Kinsta application › Responses

WebsiteApplicationKinstaDomainResource

​WebsiteApplicationKinstaDomainResource · required
​WebsiteApplicationResource · required

Apply verification DNS records

POST
https://api.clienvy.io/employee/v1
/websites/{website}/applications/{websiteApplication}/managed/kinsta/domains/{websiteApplicationDomain}/apply-verification-dns

Creates the DNS records required to verify domain ownership at Kinsta on the domain's managed DNS zone. Also requires the domain.manage-dns permission.

Apply verification DNS records › path Parameters

website
​string · uuid · required

The website UUID

websiteApplication
​string · uuid · required

The website application UUID

websiteApplicationDomain
​string · uuid · required

The website application domain UUID

Apply verification DNS records › Headers

X-Organization-Id
​string · uuid · required

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

Apply verification DNS records › Responses

WebsiteApplicationKinstaDomainResource

​WebsiteApplicationKinstaDomainResource · required
​WebsiteApplicationResource · required

Apply pointing DNS records

POST
https://api.clienvy.io/employee/v1
/websites/{website}/applications/{websiteApplication}/managed/kinsta/domains/{websiteApplicationDomain}/apply-pointing-dns

Creates the DNS records that point the domain to the Kinsta application on the domain's managed DNS zone. Also requires the domain.manage-dns permission.

Apply pointing DNS records › path Parameters

website
​string · uuid · required

The website UUID

websiteApplication
​string · uuid · required

The website application UUID

websiteApplicationDomain
​string · uuid · required

The website application domain UUID

Apply pointing DNS records › Headers

X-Organization-Id
​string · uuid · required

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

Apply pointing DNS records › Responses

WebsiteApplicationKinstaDomainResource

​WebsiteApplicationKinstaDomainResource · required
​WebsiteApplicationResource · required

Verify domain DNS

POST
https://api.clienvy.io/employee/v1
/websites/{website}/applications/{websiteApplication}/managed/kinsta/domains/{websiteApplicationDomain}/verify-dns

Checks whether the verification and pointing DNS records of the domain resolve correctly at Kinsta and updates their verified status.

Verify domain DNS › path Parameters

website
​string · uuid · required

The website UUID

websiteApplication
​string · uuid · required

The website application UUID

websiteApplicationDomain
​string · uuid · required

The website application domain UUID

Verify domain DNS › Headers

X-Organization-Id
​string · uuid · required

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

Verify domain DNS › Responses

WebsiteApplicationKinstaDomainResource

​WebsiteApplicationKinstaDomainResource · required
​WebsiteApplicationResource · required