---
title: "POST /public/dashboards/{accessToken}/panels/{panelId}/query"
method: POST
path: "/public/dashboards/{accessToken}/panels/{panelId}/query"
tags: ["dashboards", "dashboard_public"]
---

# POST /public/dashboards/{accessToken}/panels/{panelId}/query

`POST /public/dashboards/{accessToken}/panels/{panelId}/query`

## Request

- Base URL: `/api` (relative, and the document’s source URL is not known)
- URL: `/api/public/dashboards/{accessToken}/panels/{panelId}/query`
- Auth: one of:
  - HTTP basic
  - API key in header `Authorization`

Get results for a given panel on a public dashboard

## Path parameters

- `accessToken` string, required
- `panelId` integer, required

## Response `200`

(empty)

- QueryDataResponse: It is the return type of a QueryData call.
  - `results` Responses: The QueryData method the QueryDataHandler method will set the RefId property on the DataResponses' frames based on these RefIDs.

## Other responses

- `400`: BadRequestPublicError is returned when the request is invalid and it cannot be processed.
- `401`: UnauthorisedPublicError is returned when the request is not authenticated.
- `403`: ForbiddenPublicError is returned if the user/token has insufficient permissions to access the requested resource.
- `404`: NotFoundPublicError is returned when the requested resource was not found.
- `500`: InternalServerPublicError is a general error indicating something went wrong internally.

---

[API](https://skmtc.dev/grafana/apis/grafana-http-api.md) - [All operations](https://skmtc.dev/grafana/apis/grafana-http-api/llms.txt) - [OpenAPI document](https://skmtc.dev/grafana/apis/grafana-http-api/revisions/df55ba1718ba?raw)
