Public APIs
Use Traceable GraphQL public APIs for configuration and operational data, authenticating with a platform API token or a service account token
Traceable provides GraphQL public APIs that you can use to access Traceable using your existing automation setup. You can use Traceable's public API for configuration and accessing operational data. To authenticate your requests, you can use either a platform API token or a service account token.
What you will learn from this topic
By the end of this topic, you will be able to understand:
How to choose between a platform API token and a service account token for the public APIs.
The steps to generate and copy the platform API token.
The concept of the Altair GraphQL client.
The examples related to Traceable’s public APIs.
Choose a token for authentication
You can access the GraphQL queries and mutations in Traceable's public API with either of the following tokens:
Platform API token: Generated by a user from Your Account → My Preferences. Use it for personal or ad hoc access, such as exploring the API from a GraphQL client.
Service account token: Generated for a service account, which is a dedicated identity for applications, integrations, and automated workflows. Use it when your automation needs role- and environment-scoped access that is not tied to an individual user.
Go to Service Accounts to learn how the two token types differ and how to create a service account and generate its token.
To use Traceable's GraphQL public API, complete the following two steps:
Step 1: Generate and copy the Platform API token
Complete the following steps to access the Platform API token:
Log in to Traceable Platform.
Navigate to Your Account → My Preferences as shown below.
On the My Preferences page, click API Tokens → Generate API Token.
Copy the token value and then click Okay.
The following interactive demo walks you through the steps to navigate and generate an API token on the Traceable platform.
Step 2: Access the public API
You can use any GraphQL client to access Traceable's public API. In the below steps, we are using Altair GraphQL client. Complete the following steps in Altair GraphQL client:
Launch the Altair GraphQL client and click on the Set Headers icon as shown below:

Click on Add header in the Headers window to add the
Authorizationheader.Add the Platform API Token (or the service account token) that you copied in Step 1 and click Save.

Add the
https://api.traceable.ai/graphqlURL and click on Reload Docs icon as shown below.

Click Queries or Mutations to start exploring the documentation. You can also type your query in the search field.
Example queries
Total number of learned APIs
Query
Result
Total number of learning API endpoints
Query
Result
Total number of services
Query
Result
Top 10 APIs
The following query fetches top 10 API endpoints by call volume:
Query
Result
Last updated
Was this helpful?