Read Query
Returns a single query by its ID. Includes path and folderId if the query is placed in a folder.


Authorizations
Use the Authorization header with the value 'Bearer ' to authenticate. Partner API Keys have full access; Project API Keys are limited to their project scope. Learn more: https://docs.peaka.com/api-reference/authentication
Response
Read Query
A saved query belonging to a project.
The ID of the query.
The display name of the query.
The name of the query used in SQL, e.g. SELECT * FROM "peaka"."query"."".
The SQL query.
The reference id of the input query. For a MATERIALIZED query, the id of the original query it materializes.
The type of the query.
PLAIN, MATERIALIZED Schedule configuration of a materialized query. Provide EITHER an interval schedule (type=interval with repeatDuration) OR a cron schedule (type=cron with cronExpression and optional timezone). Use type=none for no schedule. The fields that do not apply to the chosen type are omitted.
{
"type": "cron",
"cronExpression": "0 0 * * *",
"timezone": "UTC"
}
The folder path of the query (e.g. "/analytics/dashboards"). Null if not in any folder.
The ID of the folder containing this query. Null if not in any folder.