Feature Updates – Kinsta® https://kinsta.com Fast, secure, premium hosting solutions Fri, 26 May 2023 16:42:17 +0000 en-US hourly 1 https://wordpress.org/?v=6.1.3 https://kinsta.com/wp-content/uploads/2023/03/cropped-favicon-32x32.png Feature Updates – Kinsta® https://kinsta.com 32 32 Introducing Kinsta API: The Power of Automation for Site Management https://kinsta.com/feature-updates/kinsta-api/ https://kinsta.com/feature-updates/kinsta-api/#respond Fri, 26 May 2023 16:42:17 +0000 https://kinsta.com/?p=155092&post_type=feature-updates&preview_id=155092 Traditionally, our services at Kinsta have relied on manual interactions through MyKinsta, limiting the scope to human interactions only. But hold on tight because everything is ...

The post Introducing Kinsta API: The Power of Automation for Site Management appeared first on Kinsta®.

]]>
Traditionally, our services at Kinsta have relied on manual interactions through MyKinsta, limiting the scope to human interactions only. But hold on tight because everything is about to change!

We are introducing the game-changing Kinsta API (Application Programming Interface).

Say goodbye to the limitations of the past and enjoy a revolutionary era where machines can seamlessly interact with our services. This means you can now perform tasks on your Kinsta site without logging in to MyKinsta.

What’s Possible With Kinsta API

You can now perform tasks remotely with unmatched ease and efficiency. Here are the use cases of the Kinsta API:

1. Reporting

With Kinsta’s API, you can seamlessly integrate Kinsta Services into your internal tracking systems. Whether you’re an agency seeking to list all your client’s WordPress sites, applications, and databases, or a data enthusiast looking to build custom dashboards, our API lets you retrieve Kinsta analytics data effortlessly.

2. Scheduled Tasks

No more late-night manual tasks impacting your site’s performance because with Kinsta API, you can create applications to schedule tasks, ensuring minimal disruption to your visitors. Whether it’s clearing the cache or executing critical operations, our API lets you automate these tasks effortlessly.

3. WordPress Site Creation

Using the Kinsta API, you can create a new WordPress site/installation automatically. You are also able to take control of your site’s functionality by installing popular plugins, such as WooCommerce, and Yoast SEO, right from the API.

But that’s not all! With Kinsta API, you can also create WordPress Multisite installations and configure a subdomain (is_subdomain_multisite TRUE) or subdirectory (is_subdomain_multisite FALSE) installation.

Getting Started With Kinsta API

To start using the Kinsta API, you must have an active account on Kinsta with at least one WordPress site, application, or database in MyKinsta. Also, you need to generate an API key to authenticate and access your account.

Authentication and User Access

To generate an API key:

  1. Go to your MyKinsta dashboard.
  2. Navigate to the API Keys page (Your name > Company settings > API Keys).
  3. Click Create API Key.
  4. Choose an expiration or set a custom start date and number of hours for the key to expire.
  5. Give the key a unique name.
  6. Click Generate.
Generate an API key
Create API Key on MyKinsta.

When the API key is created, make sure you copy it and store it somewhere safe, as this is the only time you can see it.

You can generate multiple API keys, which are listed on the API Keys page. If you need to revoke an API key, click Revoke next to the one you want to revoke.

Permissions

Implementing multiple access levels for API keys helps you control access to APIs. For Kinsta API, the level of access to the API will depend on the user’s access, as company owners, administrators, and developers can create API keys.

For example, an API key generated by a company developer will not have the same access as a key generated by a company owner or administrator.

Enjoy Automation With Kinsta API

Once you have your API key, you can proceed to enjoy automation with the Kinsta API. The Kinsta API reference documentation provides a detailed explanation of each endpoint, how to query them, the necessary parameters, and possible responses, along with request and response samples.

For example, to get a list of your company’s applications, use the applications endpoint. This endpoint requires the company parameter with a value of your company ID (you can get this information on your Billing Details page in MyKinsta). When you send a GET request to the endpoint (https://api.kinsta.com/v2/applications?company=UNIQUE_COMPANY_ID), it will return JSON data that includes your company’s applications:

{
    "company": {
        "apps": {
            "items": [
                {
                    "id": "ccd26ccb-8e78-4cf0-a5b2-2ab5d1a23760",
                    "name": "chatgpt-clone-g9q10",
                    "display_name": "chatgpt-clone",
                    "status": "deploymentSuccess"
                },
                {
                    "id": "1adf1e9c-f35e-491e-bec9-fe00ad9f2086",
                    "name": "kinsta-developer-portfolio-ir8w8",
                    "display_name": "Kinsta-developer-portfolio",
                    "status": "deploymentSuccess"
                },
            ]
        }
    }
}

There is more to what you can do with the Kinsta API, as documented in the Kinsta API reference documentation.

Check Operation Status

For potentially long-running operations (e.g. site creation, clearing cache, restarting PHP, etc.), the API does not immediately respond with the result. This helps prevent a potential blocked server thread or gateway timeout due to an operation taking a long time.

To check the status of an operation, use the operations endpoint. This will return the status of the operation. For example:

{
  "status": 202,
  "message": "Operation in progress",
  "data": null
}

This operations, endpoint requires the operation_id as a path parameter which you’ll get in a 202 Accepted response when you perform any long-running operation. For more details and examples, see the operations reference.

Rate Limit

To protect our API from being flooded with too many requests, the number of requests per minute is limited to 60. The exception will be for site creation, which is limited to 5 requests per minute.

To see your current rate limit status, check the RateLimit headers in your most recent API response:

RateLimit-Limit: 60
RateLimit-Remaining: 50
RateLimit-Reset: 60

Currently, it’s not possible to increase the rate limit.

Troubleshooting

If you make a request to an endpoint that your API key doesn’t have access to, the API responds with an error message to let you know you do not have access. If you need access to that endpoint, a company owner or administrator can generate an API key for you.

Unleash the power of automation and increase efficiency with the convenience of Kinsta API. Get started today!

The post Introducing Kinsta API: The Power of Automation for Site Management appeared first on Kinsta®.

]]>
https://kinsta.com/feature-updates/kinsta-api/feed/ 0
Access Your Application Through the New Web Terminal https://kinsta.com/feature-updates/web-terminal/ https://kinsta.com/feature-updates/web-terminal/#respond Thu, 25 May 2023 16:27:58 +0000 https://kinsta.com/?post_type=feature-updates&p=154661 The web terminal gives you command-line access to the web process on your application so you can securely run scripts and read files. This is a ...

The post Access Your Application Through the New Web Terminal appeared first on Kinsta®.

]]>
The web terminal gives you command-line access to the web process on your application so you can securely run scripts and read files. This is a useful tool for debugging issues, performance monitoring, and manually executing scripts ad-hoc. The commands available for execution depend entirely on which executables are available within your application.
Currently, you can only run web processes with the Web Terminal. It doesn’t support background processes or Cron jobs.

Before you can use the web terminal, you need to set up authentication where you can specify exactly which IP addresses have access. You can go to Test your IPv6 and use it to locate your own IP addresses. We recommend adding your IPv4 and IPv6 IP addresses, as the connection may come from either.

How To Set Up Authentication

To access the web terminal, you must:

  • Sign in to your MyKinsta dashboard.
  • Provide at least 1 valid IP address.
  • Not duplicate IP addresses.
  • Have at least one successful deployment.
  • Have a healthy application that is running. If there are any errors or if the application is stopped, the web terminal will not be available.
Access Web Terminal
Access Web Terminal

To add IP addresses, click Set up authentication.

Add an IP address
Add an IP address

Enter the first IP address you want to allow. You can add more IP addresses by clicking on the Add another option. Once you have entered all the IP addresses you want to allow, click Set up authentication.

To find out more about Web Terminal, including how to start and stop, as well as how to set up Web Terminal with a Dockerfile and troubleshoot, check out our Web Terminal documentation.

Why Host Your Application With Kinsta?

When you deploy your application to Kinsta from GitHub, Bitbucket, or GitLab, your code runs on the Google Cloud Platform‘s top-tier infrastructure, powered by that platform’s C2 virtual machines and in an isolated container.

And you can choose any of 25 data centers around the world as the home for your application.

Applications managed through your MyKinsta dashboard leverage Google Cloud Build, which generates the image of your application based on the information in buildpacks or your Dockerfile. If you configure your application to deploy automatically, that happens every time you commit a change to your repository on your Git host.

If your application is public-facing, you can rely on our Cloudflare integration for DDoS protection.

Are you interested in trying out this feature? You can do that for free!

The post Access Your Application Through the New Web Terminal appeared first on Kinsta®.

]]>
https://kinsta.com/feature-updates/web-terminal/feed/ 0
Kinsta Application Hosting Now Deploys Bitbucket and GitLab Repositories https://kinsta.com/feature-updates/bitbucket-gitlab-support/ https://kinsta.com/feature-updates/bitbucket-gitlab-support/#respond Fri, 12 May 2023 17:54:38 +0000 https://kinsta.com/?p=154410&post_type=feature-updates&preview_id=154410 When we launched our Application Hosting service in late 2022, we offered a powerfully simple way for developers who use Git for software version control to deploy their ...

The post Kinsta Application Hosting Now Deploys Bitbucket and GitLab Repositories appeared first on Kinsta®.

]]>
When we launched our Application Hosting service in late 2022, we offered a powerfully simple way for developers who use Git for software version control to deploy their applications from GitHub.

While GitHub is the most-used host of Git-based repositories — with nearly 100 million developers managing code there — great projects also live on the servers of two other popular contenders in the field: Bitbucket and GitLab.

That’s why we’ve added Bitbucket and GitLab support to our platform. Now you can deploy your code to Kinsta from any of the world’s 3 most popular Git platforms.

Kinsta can connect to your repositories on those services’ marque destinations (not a self-managed GitLab instance, GitHub’s Enterprise Server, or Bitbucket’s Data Center).

Bitbucket and GitLab logos
Bitbucket and GitLab logos

Whether you’re working on an enterprise project or your own hobby, Kinsta Application Hosting helps you get your development done in dozens of frameworks and languages.

And whether your repositories are at GitHub, Bitbucket, or GitLab, the same easy-to-use interface makes it a snap to deploy your code to the cloud in just 3 steps:

  1. Connect to your Git provider account and choose a repository
  2. Automatically or manually deploy your application
  3. Build, scale, and run your processes separately
Choosing your Git provider in MyKinsta.
Choose your Git provider in MyKinsta.

Why Host Your Application With Kinsta?

When you deploy your application to Kinsta from GitHub, Bitbucket, or GitLab, your code runs on the Google Cloud Platform‘s top-tier infrastructure, powered by that platform’s C2 virtual machines and in an isolated container.

And you can choose any of 25 data centers around the world as the home for your application.

Applications managed through your MyKinsta dashboard leverage Google Cloud Build, which generates the image of your application based on the information in buildpacks or your Dockerfile. If you configure your application to deploy automatically, that happens every time you commit a change to your repository on your Git host.

Need database support? Turn to Kinsta’s Database Hosting service, and you won’t be charged for bandwidth between your DB and your application in the same data center.

If your application is public-facing, you can rely on our Cloudflare integration for DDoS protection.

How To Get Started

It’s painless to get started with Application Hosting at Kinsta because we offer a $20 first-month credit that allows you to sample the service for free. We have a growing list of quick-start examples you can use to get an application up and running in your programing language or framework of choice.

Let’s get coding!

The post Kinsta Application Hosting Now Deploys Bitbucket and GitLab Repositories appeared first on Kinsta®.

]]>
https://kinsta.com/feature-updates/bitbucket-gitlab-support/feed/ 0