Caylent’s Easy REST API with Postman in 5 Steps

Written by Stefan Thorpe
Caylent API Postman Tutorial

Welcome to the first in our Caylent API Tutorials. This post aims to simplify the process of configuring Postman to enable you to best leverage Caylent’s Easy REST API documentation. Each of these tutorials will be supported by a YouTube video.


For this tutorial, you’re going to need three things:

  • An activated account with Caylent and the username and password. Sign up here to complete this step.
  • Caylent’s Postman Environment JSON Template downloaded from our Github repository. This file is a template of all the environment variables that you can use and store.
  • And finally, have Postman itself downloaded and installed.

5 Steps to Leverage Caylent’s Easy REST API Documentation

Once complete, follow these simple steps to configure and manage your environment variables.

Step 1

Open Postman to the Builder page.
Click on the cog in the right-hand corner and select “Manage Environments.”

Caylent’s REST API Tutorial Manage Environments

From here, select import and choose the downloaded Postman Environment JSON Template file.

Step 2

Once the import is successful, it’s time to set up the environment variables according to your personal data. Do this by configuring the username and password to reflect your Caylent account information accordingly.

Step 3

Now within the environment template, check and uncheck each of the available variables as you want to use them. All environment variables are automatically enabled by default. So, be sure to tailor these accordingly to your needs.

The available environment options are:

  • aws_access_key and aws_secret_key: These are the credentials which allow Caylent’s system to deploy your stack within your AWS account. If you haven’t already done so, this is the point to add these here. For help with this, check out this article for how to connect Caylent with AWS Services.
  • repo_username, repo_password, and repo_email: These are your Docker Hub repository credentials. With these, Caylent can deploy your application on each of your stacks if you have a private repository. These variables are only necessary if you need to set up access to a private repository. If using a public repo like WordPress, you can leave these blank—just uncheck the boxes.
  • github_username and ssh_username: Caylent’s system uses GitHub keys to auto-configure SSH access to instances within your stack. Postman will automatically default to your github_username unless you specify an ssh_username of your own.
  • azure_app_id, azure_sub_id, azure_tenant_id, and azure_secret_key: Follow this link to discover how to get these credentials and which ones to fill out.

Step 4

Once you’ve enabled or disabled these options and updated your username and password, the next step is to select the environment that has just been saved: Caylent Template Env. This option is located in the right-hand corner of the Builder page.

Caylent API Tutorial Template Env

Step 5

Once you’ve completed all the above steps, you’re ready to make use of our Caylent Easy REST API documentation. To access and leverage each of the Documents, click here to load the properties into Postman. The data fields will fill out according to the collection you choose.

Example: Load the Login properties from here. Hit “Send.” This will then take the environment token key through tests and save it into “Postman.setGlobal variable.” You can now go on to use other tests, leveraging that token in each of the calls to authorize and authenticate everything.

Here’s the video tutorial to guide you through this steps screen by screen.

Watch the next Caylent API YouTube Tutorial here: Setup SSH Access and Firewall Rules via Caylent API


Check out the next Caylent API Blog Tutorial now: Caylent Stack Deployment with SSH EC2 Access and Team Management

Caylent provides a critical DevOps-as-a-Service function to high growth companies looking for expert support with microservices, containers, cloud infrastructure, and CI/CD deployments. Our managed and consulting services are a more cost-effective option than hiring in-house, and we scale as your team and company grow. Check out some of the use cases, learn how we work with clients, and profit from our DevOps-as-a-Service offering too.

The DevOps container management platform

  • Amazon AWS
  • Microsoft Azure
  • Google Cloud
  • Digital Ocean

Unlimited users. Unlimited applications. Unlimited stacks. Easily manage Docker containers across any cloud.

Get Started—Free!
%d bloggers like this: