The `/api/projects/{project_id}/query/` POST endpoint allows users to submit queries for a specific project by providing the project ID in the URL and the query details in JSON or form data. Authentication is required and it returns query results.
asyncboolean(Experimental) Whether to run the query asynchronously. Defaults to False. If True, the `id` of the query can be used to check the status and to cancel it.
queryRequiredobjectQuery object for PostHog data analysis. Supported query kinds include HogQLQuery, FunnelsQuery, TrendsQuery, etc. For HogQL: {"kind": "HogQLQuery", "query": "select * from events limit 100"}. For TrendsQuery, fields like interval, series, and dateRange must be at root level: {"k…
refreshstringEnum for refresh mode options
project_idRequiredstringProject ID of the project you"re trying to access. To find the ID of the project, make a call to /api/projects/.
client_query_idstringClient provided query ID. Can be used to retrieve the status or cancel the query.
dataRequiredData from the action execution
errorstringError if any occurred during the execution of the action
successfulRequiredbooleanWhether or not the action execution was successful or not
API key connection. Risk level 2 of 5.
Free Action
No published Skills explicitly reference this Action yet.