InfluxDB Templates API
Export and apply InfluxDB **templates**.Manage **stacks** of templated InfluxDB resources.InfluxDB templates are prepackaged configurations for resources.Use InfluxDB templates to configure a fresh instance of InfluxDB,back up your dashboard configuration, or share your configuration.Use the `/api/v2/templates` endpoints to export templates and apply templates.**InfluxDB stacks** are stateful InfluxDB templates that let youadd, update, and remove installed template resources over time, avoid duplicatingresources when applying the same or similar templates more than once, andapply changes to distributed instances of InfluxDB OSS or InfluxDB Cloud.Use the `/api/v2/stacks` endpoints to manage installed template resources.### Related guides- [InfluxDB stacks](https://docs.influxdata.com/influxdb/cloud/influxdb-templates/stacks/)- [InfluxDB templates](https://docs.influxdata.com/influxdb/cloud/influxdb-templates/)
InfluxDB Templates API is one of 40 APIs that InfluxDB publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.
Tagged areas include Templates. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an AsyncAPI specification, authentication docs, and a getting-started guide.
This API exposes 8 operations across 5 paths, and defines 80 schemas. It is described by OpenAPI 3.0.0.
Requests are made against the base URL https://cloud2.influxdata.com/api/v2.
Metadata
The identity and technical contract details declared by the specification.
Authentication & Security 2
InfluxDB Templates API declares
2 security schemes
for authenticating requests.
It accepts HTTP basic authentication (BasicAuthentication).
An API key is passed in the header as Authorization (TokenAuthentication).
By default, every request must be authenticated.
BasicAuthentication— Basic authentication scheme Use the HTTP Basic authentication scheme for InfluxDB /api/v2 API operations that support it: Syntax Authorization: Basic BASE64ENC…TokenAuthentication— Use the [Token authentication](section/Authentication/TokenAuthentication) scheme to authenticate to the InfluxDB API. In your API requests, send an Authorizat…
Paths & Operations 8
Across 5 paths, the API surfaces 8 operations — 1 DELETE, 2 GET, 1 PATCH, 4 POST. Each is listed below with its method, path, parameters, and response codes.
Export and apply InfluxDB templates. Manage stacks of templated InfluxDB resources. InfluxDB templates are prepackaged configurations for resources. Use InfluxDB templates to conf…
Schemas 80
The contract defines 80 schemas that model the data the API accepts and returns. The most detailed are ScatterViewProperties (32 properties), HeatmapViewProperties (31 properties), LinePlusSingleStatProperties (30 properties), BandViewProperties (29 properties). Each schema is shown below with its type and property counts.
Specification
The full machine-readable OpenAPI contract behind this narrative.
Source
More from InfluxDB 12
Other APIs InfluxDB publishes across the network.