For AI agents: this page in Markdown: https://www.pubnub.com/docs/admin-api/v2026-05-26/get-query-fields.md. Documentation index: https://www.pubnub.com/llms-full.txt.
Get query fields
GET/v2/illuminate/queries/:id/fields
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
idasinputFields[].sourceIdwhen creating a decision from this query. - Dashboards — use
idwhen configuring chartdimensionIdsandmeasureIds.
Request
Example
[
{
"field": "event_type",
"alias": "string",
"id": "string"
}
]