Skip to main content
axiom.getSavedQuery retrieves one saved APL query. The result includes its query text, time range, metadata, dataset hint, and owner.
automations/axiom-get-saved-query.automation.ts

Input

savedQueryId is required and selects one saved query.

Output

Returns id, name, kind: "apl", string metadata, who, the complete query request, and the optional dataset hint.

Permission and failures

The API token needs the dataset-level starredQueries|read capability. Axiom returns an error when the saved query does not exist or the token cannot access it.