---
source_url: https://www.pubnub.com/docs/admin-api/v2026-05-26/get-query-fields
title: Get query fields
---

# Get query fields

> For AI agents: documentation index at https://www.pubnub.com/llms-full.txt

Returns the list of output fields produced by this saved query. Use these to configure downstream resources.

### Response

Array of objects with:

| Field | Type | Description |
| --- | --- | --- |
| `field` | string | The output column name |
| `alias` | string | Display alias (may differ from `field` if the pipeline renamed it) |
| `id` | string | Unique field identifier |

### Where to use these IDs

* **Decisions** — use `id` as `inputFields[].sourceId` when creating a decision from this query.
* **Dashboards** — use `id` when configuring chart `dimensionIds` and `measureIds`.

## Request

Example

```
[
  {
    "field": "event_type",
    "alias": "string",
    "id": "string"
  }
]
```
