Added

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:

GuideDescription
Get StartedExplains 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 GraphQLIntroduces GraphQL and the Cloud Exposure schema, and explains how to explore the full schema.
PaginationExplains cursor-based pagination using the first and after arguments, including how to retrieve subsequent pages of results.
Query ExamplesProvides 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.

PageDescription
Account ManagementRetrieves the organizational folder hierarchy and demonstrates how to add, move, and monitor onboarded cloud accounts.
Audit LogRetrieves audit events for user actions in the Console, with filtering by action, account, or user.
CompliancesRetrieves compliance frameworks and their statuses and compliance scores, either for all frameworks or by framework ID or scope.
ExclusionsDemonstrates how to list, retrieve, and delete exclusions.
FindingsRetrieves finding data for investigation and analysis in third-party tools.
IntegrationsMonitors connected integrations, their connection status, and their provider-specific configuration.
InventoryQueries the asset inventory for cloud resources and their configurations.
JITDemonstrates how to manage Just-in-Time (JIT) eligibilities and access requests for temporary access to cloud resources.
Least Privilege Policies and RolesGenerates fine-grained least privilege policies for supported resources.
LicensingRetrieves license information and usage.
PermissionsQueries the permissions granted to cloud identities.
PoliciesLists built-in and custom policies, including their names, IDs, and categories.
ProjectsDemonstrates how to create and manage projects and automate role assignments at scale.
ScopesRetrieves basic information for all or selected cloud accounts.
ThreatsExports threat stories, detections, and rules to third-party tools for investigation and analytics.
Users and GroupsDemonstrates how to manage user and group access to the Console.
Vulnerability ManagementRetrieves 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}"}'
📘

Note

The 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.