Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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:


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:

  1. Navigate to Your Account → My Preferences as shown below.

  2. On the My Preferences page, click API Tokens → Generate API Token.

  3. Copy the token value and then click Okay.

    • Once you copy the token, you cannot view or access it again. Make sure that you copy and save it. If you lose the token, you must generate a new one.

    • When you delete the API token from Traceable, your access from the GraphQL client is blocked.

    • You can only edit or delete the token. When you edit the token, you can only change the name of the token and not its value.

If you are calling the public API from an application or automated workflow, you can use a service account token instead. Create a service account, generate its access token as described in Service Accounts, copy the token, and then continue to Step 2. The queries and mutations that the token can run depend on the roles and environment scope assigned to the service account.

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:

  1. Click on Add header in the Headers window to add the Authorization header.

  2. Add the Platform API Token (or the service account token) that you copied in Step 1 and click Save.

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

  1. 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?