海角天涯社区

海角天涯社区鈥檚 Automation API

海角天涯社区鈥檚 Automation API

Julian Wreford on

Share with



Having spoken to thousands of Salesforce teams and helped them to achieve DevOps maturity, we know that there鈥檚 no one workflow that suits everyone. Each team has its own requirements that lead them to make different choices and take different approaches to Salesforce DevOps. It鈥檚 important to us that 海角天涯社区 accommodates this range of workflows.

As a complete DevOps solution, 海角天涯社区 is most commonly used as the one-stop shop for deployments, automation, backups and more. But many teams had also requested that we present an API, allowing them to take advantage of our powerful deployment engine and other analysis tools, but integrate them within a wider DevOps toolchain. Since we could see it would be useful for certain teams with valid approaches to DevOps, we built and recently released 海角天涯社区鈥檚 Automation API.

Illustration of automation

What can you do with the Automation API?

Using the Automation API, you can now:

  • Start a continuous integration or unit testing job
  • Query the status of the job
  • Cancel a job run

海角天涯社区 already has integrations with version control providers such as GitHub and GitLab, work tracking tools such as Jira, and messaging providers such as Slack and Chatter. But the Automation API should mean that even more teams can use 海角天涯社区 to meet their DevOps needs.

Salesforce DevOps in the age of AI: is your custom pipeline ready?

Find out more

Getting started with the Automation API

The first thing you鈥檒l need to do to use the API is get an access token. Your access token is used for authentication, and it tells the API that you鈥檙e authorized to make requests. To create an access token, go to the My account page in 海角天涯社区, then find Access token management on the left-hand side. From this page you can create an access token.

Managing access tokens within Gearset

Enter a recognizable name that will help you identify the token in the future. You can also change the expires in value at this point. Click Create new token and you鈥檒l be presented with a dialog like the one below. Take a copy of your token secret and store it somewhere secure. The secret will only be displayed to you once.

Token secret

Now you have a token, you can start using the Automation API. To make your first query, go to our and click Authorize.

Authorize your token

In the popup, enter token {secret} - {secret} should be replaced with the token secret you copied earlier. Then click Authorize.

Enter your token secret

Once you鈥檝e authorized your token, you can use the interactive documentation to both experiment with queries and get commands which can be used to query the API from any external systems you may have.

For example, the simplest endpoint in the API simply checks the status of the CI job to tell you whether it鈥檚 currently idle or running.

To use this endpoint, expand the top entry in the list of endpoints with the text Check the status of a CI job.

Get the status of a CI job

Press Try it out and fill in the jobId with the ID of your CI job.

After clicking Execute you鈥檒l see a screen that looks something like this:

The API providing the status of the CI job

This page gives you three pieces of information:

  1. The curl query which was used to query the endpoint. You can use this from anywhere, and integrate 海角天涯社区鈥檚 CI functionality with different tools.
  2. The response body shows the thing the API returned. In this case it returned Idle because the job wasn鈥檛 currently active.
  3. The response headers give information like rate limiting information, and the version of the API which was used.

From this same page you can explore everything the Automation API has to offer and start integrating 海角天涯社区 with your external tools.

Your feedback shapes our roadmap

At 海角天涯社区, we use customer-oriented research to drive product improvements, and our work on the automation API is a good example of this in action. This feature comes off the back of a very popular request in our . We loved researching and listening to customer requirements so we could build a solution that solved their problems.

After the research stage we created a narrow first slice as a pilot feature, then we continued to iterate based on user feedback. Once we were happy that the API delivered what customers wanted, we released it as a fully fledged feature.

Let us know what you think!

We鈥檙e always looking to make further improvements, so please do get in touch with us via the live chat if you have any questions. And if managing a toolchain is becoming a bit of a headache, take a look at Pipelines - our solution for end-to-end management of your Salesforce release process.

If you鈥檙e new to 海角天涯社区, get in touch to book a tailored demo to find out how we can help. Or start a of the full platform to see for yourself.

Book your 海角天涯社区 demo to learn more
Contact sales