API Endpoints
View and filter the API endpoints that Traceable discovers from traffic, including issues, security events, auth types, and downloadable specifications
An API Endpoint is a specific URL or address that clients or external systems use to interact with your application. It receives requests and sends responses, enabling data exchange and communication between applications.
What you will learn from this topic
By the end of this topic, you will be able to:
Understand how Harness discovers and monitors API endpoints.
View API endpoint details and filter the displayed APIs.
Download API endpoint data and OpenAPI specifications.
Manage API endpoint columns, labels, roles, and scopes.
Understand API endpoints and their discovery
Harness discovers the APIs and their authentications within your application ecosystem and monitors them for activities, vulnerabilities, security risks, and performance.
API types
Harness supports and monitors the following API types:
REST
SOAP
gRPC
GraphQL
WebSocket
API details
Harness lists all the APIs discovered, learned, or under learning on the Inventory page, API Endpoints tab. By default, Harness lists all learned APIs from your application. You can use this information to optimize and secure your APIs according to your requirements.
API details retention
Harness shows APIs and their details based on the traffic activity, delisting them after periods of inactivity: learnt APIs are retained for 90 days after their last observed traffic, while those under learning are retained for 30 days.
Navigate to API endpoints
You can access the API Endpoints tab through the Discovery → Inventory → API Endpoints tab.
API endpoints view

The API Endpoints tab lists the number of:
Internal and internet-facing APIs discovered. Harness classifies these APIs in one of the following ways:
You label the API as Internet Facing or Internal. For more information on managing labels, see Additional Features.
Identifying the IP address involved in the API traffic as private or public.
Unauthenticated APIs. For information on how Harness identifies API authentication, see the section below.
APIs at risk. This number indicates the APIs that have high or critical risk scores.
Number of updated APIs. This number indicates the APIs updated in the last 1 day.
The tab also lists the following:
API names
The data types found in each API
The risk score associated with the API
The number of calls to the APIs in the last 24 hours
The time at which the API was last called
The number of open issues detected for the API, broken down by severity (Critical, High, Medium, Low)
The number of security events detected for the API
The authentication type detected for the API, such as Bearer Token, Basic, or Unknown
Harness lists the above details for All Environments by default. You can view these details for a specific environment by selecting it from the Environments drop-down in the page’s top right corner. You can also filter the data shown on the page according to your requirements. The following section explains these filters and how to use them.
API authentication
Harness determines API authentication by inspecting the headers, tokens, and other credentials associated with API traffic. It classifies APIs based on authentication status, identifying potential security threats in unauthenticated endpoints.
Filters
The API Endpoints tab provides multiple filters that you can use to fine-tune the results displayed on the page. You can open the filter pane by clicking on the Filter () icon in the tab’s top left corner. The pane shows the following tabs:
Filters
This is the list of filters that are available to you.
Saved
This is the list of filters that you have saved for later use.
Recent
This is the list of recently applied filters.
You can apply filters based on the following categories:
Security Posture
This category lists filters for viewing APIs by sensitive data types, datasets, authentication methods, and risk categories.
API Definition
This category lists filters to view APIs based on authentication types, encryptions, creation time, labels, domain names, etc.
Traceable
These are Harness’s custom filters to view APIs based on whether they are learned, their discovery state, etc.
Deployment
This category lists filters to view APIs based on the environment and service.
API Ownership
This category lists filters to view APIs based on their ownership across various functions, such as developers and quality assurance.
Harness also allows you to do the following:

Save filters for later use
You can save any applied filters (one or multiple) according to your requirements and use them later. Harness shows them in the Saved tab of the Filters pane. To save the filters, complete the following steps:
Click Save in the top right corner of the summary section.
Specify the Name of the filter.
Click Save.
Clear all filters at once
You can clear all filters at once by clicking Clear in the top right corner of the summary section.
Additional features
Apart from the above features, you can also do the following:

Group data
You can use the Group By drop-down to group the data displayed on the page according to certain attributes, such as auth types and labels.
Hide visualizations
You can hide the visualizations displayed in the Summary bar by clicking on the Visualizations () icon shown in the top right corner of the API Endpoints tab.
Download data
You can download the data shown on the page by clicking on the Download () icon shown in the top right corner of the API Endpoints tab. While downloading the data, you can also specify the number of rows you want to download.
You can download API endpoint data in CSV format or as an OpenAPI specification.
To download data:
Click the Download () icon in the top-right corner of the API Endpoints tab.
Select the required format:
Download as CSV: Specify the number of rows to download. You can select between 1 and 10,000 rows.
Download Open API Spec: Downloads OpenAPI specifications for the API endpoints selected or displayed based on your search and filters. You can choose to download the specifications in YAML or JSON format, packaged as a ZIP file. Go to OpenAPI Specification ZIP file for details.
OpenAPI specification ZIP file
The OpenAPI specification is downloaded as a ZIP file. The ZIP file contains OpenAPI specification files for groups of API endpoints and a manifest.json file that provides information about the exported API groups and the locations of their specification files. The specification files are organized by environment, service, version, and API type in the following manner:
For example:
In this example, fintech-app is the environment, cart-service is the service, v1 is the API version, and REST is the API type. The manifest.json file contains information about the exported API groups, including the environment, service, version, API type, number of endpoints, and location of the corresponding specification files.
Add or Remove columns
While Harness shows columns by default on the page, you can add or remove them according to your requirements. Harness provides various columns from which you can choose. To add or remove columns, do the following:
Click the Ellipse (
) icon shown in the top right corner of the API Endpoints tab.Click Edit Columns.
In the Edit Columns pop-up, select or deselect the columns you want to add or remove. Optionally, you can also reset the page to the default setting by clicking Reset to default.
Click Apply.
Harness shows the updated column setting on the page.
Manage labels added to APIs
You can do the following to one or more APIs according to your requirements:
Add labels
Replace existing labels with new ones
Remove labels
To do this, complete the following steps:

Click the checkbox corresponding to the APIs where you want to manage labels.
Click Manage Labels.
In the Manage Labels pop-up, select the checkbox corresponding to the labels you want to manage. You can also create a new label by specifying the label name in the Search or create field and clicking + Create <label name>.
Click the arrow icon corresponding to Add selected labels and select the option according to your requirements.
Go to Label Management to learn about Labels.
Add roles and/or scopes
Harness through roles and scopes (security schemes) enables you to enhance your API security by controlling access based on roles and scopes across your application ecosystem. This enables you to enforce authorization rules and ensure access is authorized only.
To add a role or scope, complete the following steps:
Click the checkbox corresponding to the APIs where you wish to add a role or scope.
At the bottom of the page, click Add Roles or Add Scopes according to your requirements.
In the Add Roles/Scopes pop-up, click the Search or create roles/scopes drop-down, and select the check-box corresponding to the roles/scopes you wish to assign. You can also create a new role/scope by specifying the name in the Search field and clicking + type to create new role/scope.
Click Add Roles/Scopes.
Go to Security Schemes to learn about the roles and scopes.
Last updated
Was this helpful?