Skip to main content

Getting started with the Gearset Backup API

What you need to start using the Backup API, how to find your backup job ID, and what you can do with it.

Written by Ahtif Anwar

The Backup API lets you work with your Gearset data backups programmatically - starting a backup run on demand, checking how a run is getting on, and erasing records to meet your compliance and legal requirements. Instead of doing these things by hand in the Gearset app, you can build them into your own tooling and workflows.

Considerations and requirements

  • You need any tier of a Gearset Backup license to use the Backup API.

  • The Backup API is currently only supported for personal access tokens - the Backup scope isn't available on team access tokens.

  • The Backup API is not currently available for teams in our HIPAA data residency region.

Making your first Backup API requests

To start with, you need an API access token with the Backup scope, which you can generate by following our tutorial Creating a Gearset API access token.

Once you have that, you're ready to start making requests. The Backup API is a REST API that accepts JSON messages over HTTPS, so we'll be using the curl program to demonstrate its use. The curl program is installed by default on Linux, Windows, and macOS command lines. Our full API reference gives a list of the endpoints available, and also lets you run them.

Finding your backup job ID

Requests are made against a specific backup job, so first we need the ID of the job you want to work with. Navigate to the Data backup jobs page in Gearset and find the job you are interested in. You can copy the job ID to the clipboard with the Copy job ID button:

A job card on the Data backup jobs page showing a summary of the job and the button to copy a job ID

What you can do

Did this answer your question?