Backups offer website owners a confidence-boosting safety net in case of mishaps. Users of Kinsta’s Managed WordPress Hosting service benefit from six types of backups: automatic daily, optional hourly, manual, system-generated, downloadable, and external backups sent automatically to your Amazon S3 or Google Cloud Storage.

Managing these backups is a breeze in the MyKinsta dashboard. And now the Kinsta API opens the door for your approach to working with WordPress sites and their backups. From agencies with their dashboards to manage hundreds of installations to teams looking to leverage productivity tools like Slack, the Kinsta API can help connect it all.

This guide explores the various backup endpoints available through the API, their potential, and how you can use them to manage backups in a Slack environment.

Understanding the Kinsta API

The Kinsta API is a powerful tool that allows you to interact with Kinsta services like hosted WordPress sites programmatically. It can help automate various tasks related to WordPress management, including site creation, retrieving site information, getting the status of a site, browsing and restoring backups, and more.

To use Kinsta’s API, you must have an account with at least one WordPress site, application, or database in MyKinsta. You also need to generate an API key to authenticate and access your account.

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.

After creating an API key, copy it and store it somewhere safe (using a password manager is recommended), as this is the only time it is revealed within MyKinsta. You can generate multiple API keys, which will be listed on the API Keys page. If you need to revoke an API key, click the Revoke button next to its name and expiry date.