Cloud Exposure: GraphQL API Documentation Now Available
Tenable has published GraphQL API documentation for Cloud Exposure on the Tenable Developer Portal. The documentation explains how to authenticate, query the graph, and paginate through large result sets. It also includes example queries and mutations with sample responses for 17 areas of the API.
The API itself has not changed. Existing queries, mutations, and integrations continue to work as before.
New Guides
The following guides are now available:
| Guide | Description |
|---|---|
| Get Started | Explains how to create a service account and secret, find the API endpoint for your region, authenticate using a bearer token, and send your first query. |
| About GraphQL | Introduces GraphQL and the Cloud Exposure schema, and explains how to explore the full schema. |
| Pagination | Explains cursor-based pagination using the first and after arguments, including how to retrieve subsequent pages of results. |
| Query Examples | Provides links to example queries and mutations for each area of the API. |
The Roles and Permissions documentation also includes new sections describing the Cloud Exposure role and permission model.
Query Examples
Each example page pairs queries or mutations with sample responses, helping you understand the structure of the returned data before sending your own requests.
| Page | Description |
|---|---|
| Account Management | Retrieves the organizational folder hierarchy and demonstrates how to add, move, and monitor onboarded cloud accounts. |
| Audit Log | Retrieves audit events for user actions in the Console, with filtering by action, account, or user. |
| Compliances | Retrieves compliance frameworks and their statuses and compliance scores, either for all frameworks or by framework ID or scope. |
| Exclusions | Demonstrates how to list, retrieve, and delete exclusions. |
| Findings | Retrieves finding data for investigation and analysis in third-party tools. |
| Integrations | Monitors connected integrations, their connection status, and their provider-specific configuration. |
| Inventory | Queries the asset inventory for cloud resources and their configurations. |
| JIT | Demonstrates how to manage Just-in-Time (JIT) eligibilities and access requests for temporary access to cloud resources. |
| Least Privilege Policies and Roles | Generates fine-grained least privilege policies for supported resources. |
| Licensing | Retrieves license information and usage. |
| Permissions | Queries the permissions granted to cloud identities. |
| Policies | Lists built-in and custom policies, including their names, IDs, and categories. |
| Projects | Demonstrates how to create and manage projects and automate role assignments at scale. |
| Scopes | Retrieves basic information for all or selected cloud accounts. |
| Threats | Exports threat stories, detections, and rules to third-party tools for investigation and analytics. |
| Users and Groups | Demonstrates how to manage user and group access to the Console. |
| Vulnerability Management | Retrieves Workload Protection vulnerability data for use in workflows and third-party tools. |
Example: Retrieve Open Critical Findings
For example, to retrieve five open critical findings, use the following cURL request:
curl --request POST \
--url 'https://app.tenable.com/api/graph/' \
--header "Authorization: Bearer ${API_SECRET}" \
--header 'Content-Type: application/json' \
--data '{"query":"query {\n Findings(\n first: 5,\n filter: {Statuses: Open, Severities: Critical}\n ){\n nodes {Id, CreationTime, __typename, Title, Severity, Labels}\n }\n}"}'
NoteThe API endpoint depends on the region where your organization was onboarded. Organizations in the US Gov Cloud region use
https://app.tenable.us/api/graph. For more information, see API Endpoints.
For recommendations on building third-party integrations with Cloud Exposure, see the Tenable Cloud Exposure integration guide.
