---
title: Telegraf Plugins
description: Retrieve available Telegraf plugin configuration templates for use with InfluxDB OSS v2.
url: https://docs.influxdata.com/influxdb/v2/api/telegraf-plugins/
estimated_tokens: 306
product: InfluxDB OSS v2
version: v2
publisher: InfluxData
canonical: https://docs.influxdata.com/influxdb/v2/api/telegraf-plugins/
---

[Download InfluxDB API Spec](/openapi/influxdb-oss-v2-api.yml)

Retrieve available Telegraf plugin configuration templates for use with InfluxDB OSS v2.

GET`/api/v2/telegraf/plugins`

### List all Telegraf plugins

#### Parameters

##### Query parameters

`type`string

The type of plugin desired.

##### Header parameters

`Zap-Trace-Span`string

OpenTracing span context

Example request[Ask AI about this](#)

```sh
curl --request GET \
  "http://localhost:8086/api/v2/telegraf/plugins" \
  --header "Authorization: Bearer INFLUX_TOKEN"
```

#### Responses

200A list of Telegraf plugins.

`os`string

`plugins`object[]

`version`string

defaultUnexpected error

`code`requiredstring

code is the machine-readable error code.

Allowed:`internal error`, `not implemented`, `not found`, `conflict`, `invalid`, `unprocessable entity`, `empty value`, `unavailable`, `forbidden`, `too many requests`, `unauthorized`, `method not allowed`, `request too large`, `unsupported media type`

`err`string

Stack of errors that occurred during processing of the request. Useful for debugging.

`message`string

Human-readable message.

`op`string

Describes the logical code operation when the error occurred. Useful for debugging.
