---
title: "POST /sources/{id}/proxy"
method: POST
path: "/sources/{id}/proxy"
tags: ["sources", "proxy"]
---

# POST /sources/{id}/proxy

`POST /sources/{id}/proxy`

Query the backend time series data source and return the response according to `format`

## Path parameters

- `id` string, required

## Request body

- Proxy
  - `query` string, required
  - `db` string
  - `rp` string
  - `epoch` 'h' | 'm' | 's' | 'ms' | 'u' | 'ns' — timestamp return format
  - `tempVars` TemplateVariable[] — Template variables to replace within an InfluxQL query
    - `tempVar` string — String to replace within an InfluxQL statement
    - `values` TemplateValue[] — Values used to replace tempVar.
      - `value` string — Specific value that will be encoded based on type
      - `type` 'csv' | 'tagKey' | 'tagValue' | 'fieldKey' | 'timeStamp' | 'map' — The type will change the format of the output value. tagKey/fieldKey are double quoted; tagValue are single quoted; csv and timeStamp are not quoted.
      - `key` string — This will be the key for a specific value of a template variable. Used if the templateVar type is 'map'

## Response `200`

Result of the query from the backend time series data source.

- ProxyResponse
  - `results` object — results from influx

## Other responses

- `400` — Any query that results in a data source error (syntax error, etc) will cause this response. The error message will be passed back in the body
- `404` — Data source id does not exist.
- `408` — Timeout trying to query data source.
- `default` — Unexpected internal server error

---

[API](https://skmtc.net/influxdata/apis/chronograf.md) · [All operations](https://skmtc.net/influxdata/apis/chronograf/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/influxdata/chronograf/versions/ce55d963b4ac/schema)
