action posthog_query_retrieve { label: "query_retrieve" description: "(Experimental)" provider: posthog method: GET path: "/api/projects/{project_id}/query/{id}/" encoding: json input: { type: "object" properties: { id: { type: "string" } } required: ["id"] additionalProperties: false } output: { type: "object" required: ["query_status"] properties: { query_status: { type: "object" required: ["id", "team_id"] properties: { complete: { description: "Whether the query is still running. Will be true if the query is complete, even if it errored. Either result or error will be set." type: "object" } dashboard_id: { type: "object" } end_time: { description: "When did the query execution task finish (whether successfully or not)." type: "object" } error: { description: "If the query failed, this will be set to true. More information can be found in the error_message field." type: "object" } error_code: { description: "Stable machine-readable code for the error (the DRF exception code), when known." type: "object" } error_message: { type: "object" } expiration_time: { type: "object" } id: { type: "string" } insight_id: { type: "object" } labels: { type: "object" } pickup_time: { description: "When was the query execution task picked up by a worker." type: "object" } query_async: { type: "boolean" description: "ONLY async queries use QueryStatus." } query_progress: { type: "object" } results: { type: "object" } start_time: { description: "When was query execution task enqueued." type: "object" } task_id: { type: "object" } team_id: { type: "integer" } } additionalProperties: false } } additionalProperties: false } }