Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Tenable Templates API

With the Templates API, you can manage scan and user templates. Use these endpoints to retrieve default settings or create custom templates based on organizational policies. Templates serve as the blueprint for creating new scans.For more information, see [Scan Template Types](https://docs.tenable.com/web-app-scanning/Content/WAS/Scans/ScannerTemplates.htm) in the _Tenable Web App Scanning User Guide_.

Tenable Templates API is one of 107 APIs that Tenable publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Templates. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 6 operations across 4 paths, and defines 22 schemas. It is described by OpenAPI 3.0.0, at version 1.0.0.

Requests are made against a single base URL, https://www.tenable.com/downloads/api/v2.

6 operations 4 paths 22 schemas 1 DELETE3 GET1 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.0
API Version
1.0.0
Base URL
https://cloud.tenable.com
Authentication
API Key
Resource Areas
1

Authentication & Security 1

Tenable Templates API declares 1 security scheme for authenticating requests. An API key is passed in the header as Authorization (Bearer). By default, every request must be authenticated.

  • Bearer — Example: Bearer {{token}}

Paths & Operations 6

Across 4 paths, the API surfaces 6 operations — 1 DELETE, 3 GET, 1 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Templates 6

With the Templates API, you can manage scan and user templates. Use these endpoints to retrieve default settings or create custom templates based on organizational policies. Templ…

GET
/was/v2/templates
List Tenable-provided templates
was-v2-templates-list 3 params → 200400401429500
GET
/was/v2/templates/{template_id}
Get Tenable-provided template details
was-v2-templates-details 1 param → 200400401404429500
POST
/was/v2/user-templates/search
Search user-defined templates
was-v2-user-templates-search 3 params body → 200401429500
GET
/was/v2/user-templates/{user_template_id}
Get user-defined template details
was-v2-user-templates-details 1 param → 200400401404429500
PUT
/was/v2/user-templates/{user_template_id}
Update user-defined template
was-v2-user-templates-update 1 param body → 202400401429500
DELETE
/was/v2/user-templates/{user_template_id}
Delete user-defined template
was-v2-user-templates-delete 1 param → 202400401404409429500

Schemas 22

The contract defines 22 schemas that model the data the API accepts and returns. The most detailed are ScopeSettings (22 properties), AuditSettings (14 properties), ConfigSettings (12 properties), ConfigTemplate (8 properties). Each schema is shown below with its type and property counts.

ConfigSettings
object
The scan configuration settings.
12 properties
UserTemplateInput
object
8 properties 7 required
PluginSettings
object
The settings for enabling or disabling individual plugins and/or plugin families to customize your scan.
5 properties
AuditSettings
object
The settings that allow the scan to audit elements other than the ones detected during crawling.
14 properties
UserTemplateResponse
object
8 properties 7 required
ErrorResponse
object
Tenable Web App Scanning error response.
1 property 1 required
HttpSettings
object
The HTTP request settings for the scan.
7 properties
Credentials
object
The credentials the scanner uses to run an authenticated scan against the web application. For more information, see the managed credentials category in [Manag…
1 property 1 required
AppliedFilters-UserTemplates
object
A single filter to apply to the user-defined templates search.
3 properties
PermissionLevel
string
The scan permissions level, as described in [Permissions](doc:permissions).
InputErrorResponse
object
Tenable Web App Scanning invalid input error response.
2 properties 2 required
AssessmentSettings
object
Assessment settings specify which web application elements you want the scanner to audit as it crawls your URLs.
5 properties
PaginationResponse
object
An object containing pagination information for the current result set.
4 properties
Plugin
object
The plugin properties.
3 properties 3 required
ConfigTemplate
object
8 properties 9 required
BrowserSettings
object
The settings for the virtual browser instance used by the scanner.
6 properties
ScopeSettings
object
The URLs and file types that you want to include or exclude from your scan.
22 properties
PaginationResponseSortObject
object
An object specifying how the current result set is sorted, including the property by which the results were sorted and the sort direction.
2 properties
UserTemplate
object
3 properties 3 required
ChromeScript
object
4 properties
Permissions
object
4 properties 3 required
ResultsVisibility
string
The visibility of the results (private or dashboard).

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

tenable-templates-api-openapi.yml Raw ↑

Other APIs Tenable publishes across the network.

Tenable About API
Tenable Access Control (API) API
Tenable Access Control (Groups) API
Tenable Access Control (Permissions) API
Tenable Access Control (Roles) API
Tenable Access Control (Users) API
Tenable Access Groups v1 API
Tenable Access Groups v2 API
Tenable Account Groups API
Tenable Accounts API
Tenable Activity Log API
Tenable AD object API