Testsigma API - Overview


Testsigma has a set of REST API Endpoints to manage the entities available in Testsigma. The most common usage of these endpoints is within your CI/CD Pipeline.

A fair understanding of REST APIs is expected. If not, please refer to some relevant resources regarding REST API or consult with your dev team before proceeding further.


Authorization

All Testsigma API Endpoints require authentication. The user authenticates the request using Bearer Token which is the user’s API Key.

“Authentication” : “Bearer <API_Key>”

To know more about generating and obtaining API Keys, see how to generate API keys


Get IDs of Projects, Applications and Uploads

Testsigma has a set of endpoints to retrieve IDs of projects, applications, and uploads using APIs. This article discusses getting these IDs by using APIs.

Get IDs using Postman API

  1. From My Workspace, go to APIs and click on ‘+’ to open a new request. APIs
  2. From the new request page, select GET from the method dropdown. GET Method
  3. On the URL Textbox, URL Textbox

Let’s use the first URL & retrieve the IDs of projects.

  1. Click on Authorization, select Authorization type and enter the Token. Authorization
  2. Click on Send to retrieve details of all projects. Send
  3. You’ll find IDs of all projects in the response body. IDs

Follow the same steps from 4-6 with the other URLs mentioned in step 3 to get details of applications and uploads.

Here’s a quick GIF demonstrating how to retrieve IDs of projects, applications, and uploads using APIs in Postman. Workflow to retrive URL

Get IDs using Testsigma API

  1. Create a Test Case by navigating to Create Tests > Test Cases. Test Case
  2. Add a REST API Step. REST API Test Step
  3. On the REST API page, select GET from the method dropdown. GET Method
  4. On the URL Textbox, URL Textbox

Let’s use the second URL & retrieve the IDs of applications.

  1. Click on Authorization, select Authorization type and enter the Token. Authorization
  2. Click on Send to retrieve details of all applications. Send
  3. You’ll find IDs of all applications in the response body.

Here’s a quick GIF demonstrating how to retrieve IDs of projects, applications, and uploads using APIs in Testsigma. Workflow


Available REST API Endpoints

  1. Environments
  2. Elements
  3. Test Plans
  4. Uploads

Advanced Use Cases

Here are some advanced use cases for Testsigma APIs: