{
  "info": {
    "_postman_id": "d99867fc-8f07-48b3-a70d-9c14cc0677b9",
    "name": "PostHog actions query API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T11:08:53.000Z",
    "updatedAt": "2026-07-28T11:08:54.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-d99867fc-8f07-48b3-a70d-9c14cc0677b9"
  },
  "item": [
    {
      "name": "api",
      "item": [
        {
          "name": "environments",
          "item": [
            {
              "name": "{environment_id}",
              "item": [
                {
                  "name": "query",
                  "item": [
                    {
                      "name": "{id}",
                      "item": [
                        {
                          "name": "log",
                          "item": [
                            {
                              "name": "environments query log retrieve",
                              "id": "f7999e83-e23d-4319-80d0-c5248c826396",
                              "protocolProfileBehavior": {
                                "disableBodyPruning": true
                              },
                              "request": {
                                "method": "GET",
                                "header": [
                                  {
                                    "key": "Accept",
                                    "value": "application/json"
                                  }
                                ],
                                "url": {
                                  "raw": "{{baseUrl}}/api/environments/:environment_id/query/:id/log/",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "environments",
                                    ":environment_id",
                                    "query",
                                    ":id",
                                    "log",
                                    ""
                                  ],
                                  "variable": [
                                    {
                                      "id": "127ca2da-e9fc-4f3c-bd2a-f22cc8f0d31d",
                                      "key": "environment_id",
                                      "value": "<string>",
                                      "description": "(Required) Deprecated. Use /api/projects/{project_id}/ instead."
                                    },
                                    {
                                      "id": "67664071-4738-40be-a143-dd0e0bcd0ec2",
                                      "key": "id",
                                      "value": "<string>",
                                      "description": "(Required) "
                                    }
                                  ]
                                },
                                "description": "Get query log details from query_log_archive table for a specific query_id, the query must have been issued in last 24 hours."
                              },
                              "response": [
                                {
                                  "id": "e8825ca2-2563-4b58-adf6-6f3e1049c3e9",
                                  "name": "New Response",
                                  "originalRequest": {
                                    "method": "GET",
                                    "header": [
                                      {
                                        "key": "Accept",
                                        "value": "application/json"
                                      }
                                    ],
                                    "url": {
                                      "raw": "{{baseUrl}}/api/environments/:environment_id/query/:id/log/",
                                      "host": [
                                        "{{baseUrl}}"
                                      ],
                                      "path": [
                                        "api",
                                        "environments",
                                        ":environment_id",
                                        "query",
                                        ":id",
                                        "log",
                                        ""
                                      ],
                                      "variable": [
                                        {
                                          "key": "environment_id"
                                        },
                                        {
                                          "key": "id"
                                        }
                                      ]
                                    }
                                  },
                                  "status": "OK",
                                  "code": 200,
                                  "_postman_previewlanguage": "json",
                                  "header": [
                                    {
                                      "key": "Content-Type",
                                      "value": "application/json"
                                    }
                                  ],
                                  "cookie": [],
                                  "responseTime": null,
                                  "body": "{\n  \"ut_f_\": false,\n  \"id_5\": -99495359,\n  \"minim_8b\": false\n}",
                                  "createdAt": "2026-07-28T11:08:54.000Z",
                                  "updatedAt": "2026-07-28T11:08:54.000Z",
                                  "uid": "35240-e8825ca2-2563-4b58-adf6-6f3e1049c3e9"
                                }
                              ],
                              "createdAt": "2026-07-28T11:08:54.000Z",
                              "updatedAt": "2026-07-28T11:08:54.000Z",
                              "uid": "35240-f7999e83-e23d-4319-80d0-c5248c826396"
                            }
                          ],
                          "id": "e1ba5df6-93e5-4d86-97bd-430907facea0",
                          "createdAt": "2026-07-28T11:08:54.000Z",
                          "updatedAt": "2026-07-28T11:08:54.000Z",
                          "uid": "35240-e1ba5df6-93e5-4d86-97bd-430907facea0"
                        },
                        {
                          "name": "environments query retrieve",
                          "id": "247483ff-178c-46ff-b60e-95573a2e846e",
                          "protocolProfileBehavior": {
                            "disableBodyPruning": true
                          },
                          "request": {
                            "auth": {
                              "type": "bearer",
                              "bearer": [
                                {
                                  "key": "token",
                                  "value": "{{bearerToken}}",
                                  "type": "string"
                                }
                              ]
                            },
                            "method": "GET",
                            "header": [
                              {
                                "key": "Accept",
                                "value": "application/json"
                              }
                            ],
                            "url": {
                              "raw": "{{baseUrl}}/api/environments/:environment_id/query/:id/",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "api",
                                "environments",
                                ":environment_id",
                                "query",
                                ":id",
                                ""
                              ],
                              "variable": [
                                {
                                  "id": "a3ddca23-5f24-4289-aef9-ab21304ad4d0",
                                  "key": "environment_id",
                                  "value": "<string>",
                                  "description": "(Required) Deprecated. Use /api/projects/{project_id}/ instead."
                                },
                                {
                                  "id": "47465ccf-b7c0-4349-b686-53332533ec5f",
                                  "key": "id",
                                  "value": "<string>",
                                  "description": "(Required) "
                                }
                              ]
                            },
                            "description": "(Experimental)"
                          },
                          "response": [
                            {
                              "id": "9319b355-6d84-4d3e-8ab8-652bbf75b87c",
                              "name": "New Response",
                              "originalRequest": {
                                "method": "GET",
                                "header": [
                                  {
                                    "key": "Accept",
                                    "value": "application/json"
                                  },
                                  {
                                    "description": "Added as a part of security scheme: bearer",
                                    "key": "Authorization",
                                    "value": "Bearer <token>"
                                  }
                                ],
                                "url": {
                                  "raw": "{{baseUrl}}/api/environments/:environment_id/query/:id/",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "environments",
                                    ":environment_id",
                                    "query",
                                    ":id",
                                    ""
                                  ],
                                  "variable": [
                                    {
                                      "key": "environment_id"
                                    },
                                    {
                                      "key": "id"
                                    }
                                  ]
                                }
                              },
                              "status": "OK",
                              "code": 200,
                              "_postman_previewlanguage": "json",
                              "header": [
                                {
                                  "key": "Content-Type",
                                  "value": "application/json"
                                }
                              ],
                              "cookie": [],
                              "responseTime": null,
                              "body": "{\n  \"query_status\": {\n    \"id\": \"<string>\",\n    \"team_id\": \"<integer>\",\n    \"complete\": false,\n    \"dashboard_id\": null,\n    \"end_time\": null,\n    \"error\": false,\n    \"error_message\": null,\n    \"expiration_time\": null,\n    \"insight_id\": null,\n    \"labels\": null,\n    \"pickup_time\": null,\n    \"query_async\": true,\n    \"query_progress\": null,\n    \"results\": null,\n    \"start_time\": null,\n    \"task_id\": null\n  }\n}",
                              "createdAt": "2026-07-28T11:08:54.000Z",
                              "updatedAt": "2026-07-28T11:08:54.000Z",
                              "uid": "35240-9319b355-6d84-4d3e-8ab8-652bbf75b87c"
                            }
                          ],
                          "createdAt": "2026-07-28T11:08:54.000Z",
                          "updatedAt": "2026-07-28T11:08:54.000Z",
                          "uid": "35240-247483ff-178c-46ff-b60e-95573a2e846e"
                        },
                        {
                          "name": "environments query destroy",
                          "id": "06bd3fcb-3950-4731-8fa2-0c8faaf64c65",
                          "protocolProfileBehavior": {
                            "disableBodyPruning": true
                          },
                          "request": {
                            "auth": {
                              "type": "bearer",
                              "bearer": [
                                {
                                  "key": "token",
                                  "value": "{{bearerToken}}",
                                  "type": "string"
                                }
                              ]
                            },
                            "method": "DELETE",
                            "header": [],
                            "url": {
                              "raw": "{{baseUrl}}/api/environments/:environment_id/query/:id/",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "api",
                                "environments",
                                ":environment_id",
                                "query",
                                ":id",
                                ""
                              ],
                              "variable": [
                                {
                                  "id": "7b2ecc17-1e0e-4034-9174-934b2f301fc8",
                                  "key": "environment_id",
                                  "value": "<string>",
                                  "description": "(Required) Deprecated. Use /api/projects/{project_id}/ instead."
                                },
                                {
                                  "id": "363165f4-9dc4-4355-af1d-db13794c3706",
                                  "key": "id",
                                  "value": "<string>",
                                  "description": "(Required) "
                                }
                              ]
                            },
                            "description": "(Experimental)"
                          },
                          "response": [
                            {
                              "id": "1083bc64-4c9c-44ca-80c3-db982872c0a5",
                              "name": "Query cancelled",
                              "originalRequest": {
                                "method": "DELETE",
                                "header": [
                                  {
                                    "description": "Added as a part of security scheme: bearer",
                                    "key": "Authorization",
                                    "value": "Bearer <token>"
                                  }
                                ],
                                "url": {
                                  "raw": "{{baseUrl}}/api/environments/:environment_id/query/:id/",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "environments",
                                    ":environment_id",
                                    "query",
                                    ":id",
                                    ""
                                  ],
                                  "variable": [
                                    {
                                      "key": "environment_id"
                                    },
                                    {
                                      "key": "id"
                                    }
                                  ]
                                }
                              },
                              "status": "No Content",
                              "code": 204,
                              "_postman_previewlanguage": "text",
                              "header": [],
                              "cookie": [],
                              "responseTime": null,
                              "body": null,
                              "createdAt": "2026-07-28T11:08:54.000Z",
                              "updatedAt": "2026-07-28T11:08:54.000Z",
                              "uid": "35240-1083bc64-4c9c-44ca-80c3-db982872c0a5"
                            }
                          ],
                          "createdAt": "2026-07-28T11:08:54.000Z",
                          "updatedAt": "2026-07-28T11:08:54.000Z",
                          "uid": "35240-06bd3fcb-3950-4731-8fa2-0c8faaf64c65"
                        }
                      ],
                      "id": "8ec9d119-12a7-405b-9c87-2666dfd76c5a",
                      "createdAt": "2026-07-28T11:08:54.000Z",
                      "updatedAt": "2026-07-28T11:08:54.000Z",
                      "uid": "35240-8ec9d119-12a7-405b-9c87-2666dfd76c5a"
                    },
                    {
                      "name": "{query_kind}",
                      "item": [
                        {
                          "name": "environments query create with kind",
                          "id": "081ecf69-e718-4adf-90ce-76333d762745",
                          "protocolProfileBehavior": {
                            "disableBodyPruning": true
                          },
                          "request": {
                            "method": "POST",
                            "header": [],
                            "url": {
                              "raw": "{{baseUrl}}/api/environments/:environment_id/query/:query_kind/",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "api",
                                "environments",
                                ":environment_id",
                                "query",
                                ":query_kind",
                                ""
                              ],
                              "variable": [
                                {
                                  "id": "fb2b82d2-1a9c-4cb8-8649-eb2244676542",
                                  "key": "environment_id",
                                  "value": "<string>",
                                  "description": "(Required) Deprecated. Use /api/projects/{project_id}/ instead."
                                },
                                {
                                  "id": "cb96cf4f-6ccb-4956-9a08-a86dcf6cbe76",
                                  "key": "query_kind",
                                  "value": "FPJalioSv",
                                  "description": "(Required) "
                                }
                              ]
                            },
                            "description": "DRF ViewSet mixin that gates coalesced responses behind permission checks.\n\nThe QueryCoalescingMiddleware attaches cached response data to\nrequest.META[\"_coalesced_response\"] for followers. This mixin runs DRF's\ninitial() (auth + permissions + throttling) before returning the\ncached response, ensuring the request is authorized."
                          },
                          "response": [
                            {
                              "id": "ead7a412-2ef3-455f-8fc8-1dec92b09b7c",
                              "name": "No response body",
                              "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                  "raw": "{{baseUrl}}/api/environments/:environment_id/query/:query_kind/",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "environments",
                                    ":environment_id",
                                    "query",
                                    ":query_kind",
                                    ""
                                  ],
                                  "variable": [
                                    {
                                      "key": "environment_id"
                                    },
                                    {
                                      "key": "query_kind"
                                    }
                                  ]
                                }
                              },
                              "status": "OK",
                              "code": 200,
                              "_postman_previewlanguage": "text",
                              "header": [],
                              "cookie": [],
                              "responseTime": null,
                              "body": null,
                              "createdAt": "2026-07-28T11:08:54.000Z",
                              "updatedAt": "2026-07-28T11:08:54.000Z",
                              "uid": "35240-ead7a412-2ef3-455f-8fc8-1dec92b09b7c"
                            }
                          ],
                          "createdAt": "2026-07-28T11:08:54.000Z",
                          "updatedAt": "2026-07-28T11:08:54.000Z",
                          "uid": "35240-081ecf69-e718-4adf-90ce-76333d762745"
                        }
                      ],
                      "id": "6f885e12-7fa7-4d8f-8ddf-25c901d5ec39",
                      "createdAt": "2026-07-28T11:08:54.000Z",
                      "updatedAt": "2026-07-28T11:08:54.000Z",
                      "uid": "35240-6f885e12-7fa7-4d8f-8ddf-25c901d5ec39"
                    },
                    {
                      "name": "check_auth_for_async",
                      "item": [
                        {
                          "name": "environments query check auth for async create",
                          "id": "a12891e9-c5b4-4812-a845-fe7de0fa1c64",
                          "protocolProfileBehavior": {
                            "disableBodyPruning": true
                          },
                          "request": {
                            "method": "POST",
                            "header": [
                              {
                                "key": "Accept",
                                "value": "application/json"
                              }
                            ],
                            "url": {
                              "raw": "{{baseUrl}}/api/environments/:environment_id/query/check_auth_for_async/",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "api",
                                "environments",
                                ":environment_id",
                                "query",
                                "check_auth_for_async",
                                ""
                              ],
                              "variable": [
                                {
                                  "id": "caeb4493-9d04-44ff-8ba6-0c9475f5492c",
                                  "key": "environment_id",
                                  "value": "<string>",
                                  "description": "(Required) Deprecated. Use /api/projects/{project_id}/ instead."
                                }
                              ]
                            },
                            "description": "DRF ViewSet mixin that gates coalesced responses behind permission checks.\n\nThe QueryCoalescingMiddleware attaches cached response data to\nrequest.META[\"_coalesced_response\"] for followers. This mixin runs DRF's\ninitial() (auth + permissions + throttling) before returning the\ncached response, ensuring the request is authorized."
                          },
                          "response": [
                            {
                              "id": "95db1073-bb77-4032-9938-4a5f2bd5ca82",
                              "name": "New Response",
                              "originalRequest": {
                                "method": "POST",
                                "header": [
                                  {
                                    "key": "Accept",
                                    "value": "application/json"
                                  }
                                ],
                                "url": {
                                  "raw": "{{baseUrl}}/api/environments/:environment_id/query/check_auth_for_async/",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "environments",
                                    ":environment_id",
                                    "query",
                                    "check_auth_for_async",
                                    ""
                                  ],
                                  "variable": [
                                    {
                                      "key": "environment_id"
                                    }
                                  ]
                                }
                              },
                              "status": "OK",
                              "code": 200,
                              "_postman_previewlanguage": "json",
                              "header": [
                                {
                                  "key": "Content-Type",
                                  "value": "application/json"
                                }
                              ],
                              "cookie": [],
                              "responseTime": null,
                              "body": "{\n  \"ut_f_\": false,\n  \"id_5\": -99495359,\n  \"minim_8b\": false\n}",
                              "createdAt": "2026-07-28T11:08:54.000Z",
                              "updatedAt": "2026-07-28T11:08:54.000Z",
                              "uid": "35240-95db1073-bb77-4032-9938-4a5f2bd5ca82"
                            }
                          ],
                          "createdAt": "2026-07-28T11:08:54.000Z",
                          "updatedAt": "2026-07-28T11:08:54.000Z",
                          "uid": "35240-a12891e9-c5b4-4812-a845-fe7de0fa1c64"
                        }
                      ],
                      "id": "725fe18b-0179-45b3-bbbe-88c85b09404b",
                      "createdAt": "2026-07-28T11:08:54.000Z",
                      "updatedAt": "2026-07-28T11:08:54.000Z",
                      "uid": "35240-725fe18b-0179-45b3-bbbe-88c85b09404b"
                    },
                    {
                      "name": "draft_sql",
                      "item": [
                        {
                          "name": "environments query draft sql retrieve",
                          "id": "e166293e-89ca-4d1e-8164-9569c8fb8421",
                          "protocolProfileBehavior": {
                            "disableBodyPruning": true
                          },
                          "request": {
                            "method": "GET",
                            "header": [
                              {
                                "key": "Accept",
                                "value": "application/json"
                              }
                            ],
                            "url": {
                              "raw": "{{baseUrl}}/api/environments/:environment_id/query/draft_sql/",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "api",
                                "environments",
                                ":environment_id",
                                "query",
                                "draft_sql",
                                ""
                              ],
                              "variable": [
                                {
                                  "id": "0131b447-d4d3-4324-8124-6eb664ca2eed",
                                  "key": "environment_id",
                                  "value": "<string>",
                                  "description": "(Required) Deprecated. Use /api/projects/{project_id}/ instead."
                                }
                              ]
                            },
                            "description": "DRF ViewSet mixin that gates coalesced responses behind permission checks.\n\nThe QueryCoalescingMiddleware attaches cached response data to\nrequest.META[\"_coalesced_response\"] for followers. This mixin runs DRF's\ninitial() (auth + permissions + throttling) before returning the\ncached response, ensuring the request is authorized."
                          },
                          "response": [
                            {
                              "id": "915e3eb3-431a-429f-9744-00cb0ae268ad",
                              "name": "New Response",
                              "originalRequest": {
                                "method": "GET",
                                "header": [
                                  {
                                    "key": "Accept",
                                    "value": "application/json"
                                  }
                                ],
                                "url": {
                                  "raw": "{{baseUrl}}/api/environments/:environment_id/query/draft_sql/",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "environments",
                                    ":environment_id",
                                    "query",
                                    "draft_sql",
                                    ""
                                  ],
                                  "variable": [
                                    {
                                      "key": "environment_id"
                                    }
                                  ]
                                }
                              },
                              "status": "OK",
                              "code": 200,
                              "_postman_previewlanguage": "json",
                              "header": [
                                {
                                  "key": "Content-Type",
                                  "value": "application/json"
                                }
                              ],
                              "cookie": [],
                              "responseTime": null,
                              "body": "{\n  \"ut_f_\": false,\n  \"id_5\": -99495359,\n  \"minim_8b\": false\n}",
                              "createdAt": "2026-07-28T11:08:54.000Z",
                              "updatedAt": "2026-07-28T11:08:54.000Z",
                              "uid": "35240-915e3eb3-431a-429f-9744-00cb0ae268ad"
                            }
                          ],
                          "createdAt": "2026-07-28T11:08:54.000Z",
                          "updatedAt": "2026-07-28T11:08:54.000Z",
                          "uid": "35240-e166293e-89ca-4d1e-8164-9569c8fb8421"
                        }
                      ],
                      "id": "8d047137-5e6a-4fe8-b05e-ce172b2b92b3",
                      "createdAt": "2026-07-28T11:08:54.000Z",
                      "updatedAt": "2026-07-28T11:08:54.000Z",
                      "uid": "35240-8d047137-5e6a-4fe8-b05e-ce172b2b92b3"
                    },
                    {
                      "name": "upgrade",
                      "item": [
                        {
                          "name": "environments query upgrade create",
                          "id": "98585f37-915a-4734-a458-e61b05953b41",
                          "protocolProfileBehavior": {
                            "disableBodyPruning": true
                          },
                          "request": {
                            "method": "POST",
                            "header": [
                              {
                                "key": "Content-Type",
                                "value": "application/json"
                              },
                              {
                                "key": "Accept",
                                "value": "application/json"
                              }
                            ],
                            "body": {
                              "mode": "raw",
                              "raw": "{\n  \"query\": {\n    \"custom_name\": null,\n    \"event\": null,\n    \"fixedProperties\": null,\n    \"kind\": \"EventsNode\",\n    \"limit\": null,\n    \"math\": \"dau\",\n    \"math_group_type_index\": null,\n    \"math_hogql\": null,\n    \"math_multiplier\": null,\n    \"math_property\": null,\n    \"math_property_revenue_currency\": null,\n    \"math_property_type\": null,\n    \"name\": null,\n    \"optionalInFunnel\": null,\n    \"orderBy\": null,\n    \"properties\": null,\n    \"response\": null,\n    \"version\": null\n  }\n}",
                              "options": {
                                "raw": {
                                  "headerFamily": "json",
                                  "language": "json"
                                }
                              }
                            },
                            "url": {
                              "raw": "{{baseUrl}}/api/environments/:environment_id/query/upgrade/",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "api",
                                "environments",
                                ":environment_id",
                                "query",
                                "upgrade",
                                ""
                              ],
                              "variable": [
                                {
                                  "id": "2d8b0957-8c12-4d36-ae96-af73748887f5",
                                  "key": "environment_id",
                                  "value": "<string>",
                                  "description": "(Required) Deprecated. Use /api/projects/{project_id}/ instead."
                                }
                              ]
                            },
                            "description": "Upgrades a query without executing it. Returns a query with all nodes migrated to the latest version."
                          },
                          "response": [
                            {
                              "id": "1b9a19dc-b8b9-4ac5-b809-800efea7200c",
                              "name": "New Response",
                              "originalRequest": {
                                "method": "POST",
                                "header": [
                                  {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                  },
                                  {
                                    "key": "Accept",
                                    "value": "application/json"
                                  }
                                ],
                                "body": {
                                  "mode": "raw",
                                  "raw": "{\n  \"query\": {\n    \"custom_name\": null,\n    \"event\": null,\n    \"fixedProperties\": null,\n    \"kind\": \"EventsNode\",\n    \"limit\": null,\n    \"math\": \"dau\",\n    \"math_group_type_index\": null,\n    \"math_hogql\": null,\n    \"math_multiplier\": null,\n    \"math_property\": null,\n    \"math_property_revenue_currency\": null,\n    \"math_property_type\": null,\n    \"name\": null,\n    \"optionalInFunnel\": null,\n    \"orderBy\": null,\n    \"properties\": null,\n    \"response\": null,\n    \"version\": null\n  }\n}",
                                  "options": {
                                    "raw": {
                                      "headerFamily": "json",
                                      "language": "json"
                                    }
                                  }
                                },
                                "url": {
                                  "raw": "{{baseUrl}}/api/environments/:environment_id/query/upgrade/",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "environments",
                                    ":environment_id",
                                    "query",
                                    "upgrade",
                                    ""
                                  ],
                                  "variable": [
                                    {
                                      "key": "environment_id"
                                    }
                                  ]
                                }
                              },
                              "status": "OK",
                              "code": 200,
                              "_postman_previewlanguage": "json",
                              "header": [
                                {
                                  "key": "Content-Type",
                                  "value": "application/json"
                                }
                              ],
                              "cookie": [],
                              "responseTime": null,
                              "body": "{\n  \"query\": {\n    \"custom_name\": null,\n    \"event\": null,\n    \"fixedProperties\": null,\n    \"kind\": \"EventsNode\",\n    \"limit\": null,\n    \"math\": \"first_time_for_user\",\n    \"math_group_type_index\": null,\n    \"math_hogql\": null,\n    \"math_multiplier\": null,\n    \"math_property\": null,\n    \"math_property_revenue_currency\": null,\n    \"math_property_type\": null,\n    \"name\": null,\n    \"optionalInFunnel\": null,\n    \"orderBy\": null,\n    \"properties\": null,\n    \"response\": null,\n    \"version\": null\n  }\n}",
                              "createdAt": "2026-07-28T11:08:54.000Z",
                              "updatedAt": "2026-07-28T11:08:54.000Z",
                              "uid": "35240-1b9a19dc-b8b9-4ac5-b809-800efea7200c"
                            }
                          ],
                          "createdAt": "2026-07-28T11:08:54.000Z",
                          "updatedAt": "2026-07-28T11:08:54.000Z",
                          "uid": "35240-98585f37-915a-4734-a458-e61b05953b41"
                        }
                      ],
                      "id": "a8fa2663-e20d-418d-bc0d-eb147db8efb6",
                      "createdAt": "2026-07-28T11:08:54.000Z",
                      "updatedAt": "2026-07-28T11:08:54.000Z",
                      "uid": "35240-a8fa2663-e20d-418d-bc0d-eb147db8efb6"
                    },
                    {
                      "name": "environments query create",
                      "id": "8d81c718-47e8-4b61-aa85-d54c86e9f07e",
                      "protocolProfileBehavior": {
                        "disableBodyPruning": true
                      },
                      "request": {
                        "auth": {
                          "type": "bearer",
                          "bearer": [
                            {
                              "key": "token",
                              "value": "{{bearerToken}}",
                              "type": "string"
                            }
                          ]
                        },
                        "method": "POST",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          },
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"query\": {\n    \"custom_name\": null,\n    \"event\": null,\n    \"fixedProperties\": null,\n    \"kind\": \"EventsNode\",\n    \"limit\": null,\n    \"math\": \"monthly_active\",\n    \"math_group_type_index\": null,\n    \"math_hogql\": null,\n    \"math_multiplier\": null,\n    \"math_property\": null,\n    \"math_property_revenue_currency\": null,\n    \"math_property_type\": null,\n    \"name\": null,\n    \"optionalInFunnel\": null,\n    \"orderBy\": null,\n    \"properties\": null,\n    \"response\": null,\n    \"version\": null\n  },\n  \"async\": null,\n  \"client_query_id\": null,\n  \"filters_override\": null,\n  \"limit_context\": null,\n  \"name\": null,\n  \"refresh\": \"blocking\",\n  \"variables_override\": null\n}",
                          "options": {
                            "raw": {
                              "headerFamily": "json",
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{baseUrl}}/api/environments/:environment_id/query/",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "api",
                            "environments",
                            ":environment_id",
                            "query",
                            ""
                          ],
                          "variable": [
                            {
                              "id": "412de297-bcda-4af9-a8b9-78d07119dd14",
                              "key": "environment_id",
                              "value": "<string>",
                              "description": "(Required) Deprecated. Use /api/projects/{project_id}/ instead."
                            }
                          ]
                        },
                        "description": "DRF ViewSet mixin that gates coalesced responses behind permission checks.\n\nThe QueryCoalescingMiddleware attaches cached response data to\nrequest.META[\"_coalesced_response\"] for followers. This mixin runs DRF's\ninitial() (auth + permissions + throttling) before returning the\ncached response, ensuring the request is authorized."
                      },
                      "response": [
                        {
                          "id": "d520669b-7e66-433e-9007-11fb8bc4eb8e",
                          "name": "New Response",
                          "originalRequest": {
                            "method": "POST",
                            "header": [
                              {
                                "key": "Content-Type",
                                "value": "application/json"
                              },
                              {
                                "key": "Accept",
                                "value": "application/json"
                              },
                              {
                                "description": "Added as a part of security scheme: bearer",
                                "key": "Authorization",
                                "value": "Bearer <token>"
                              }
                            ],
                            "body": {
                              "mode": "raw",
                              "raw": "{\n  \"query\": {\n    \"custom_name\": null,\n    \"event\": null,\n    \"fixedProperties\": null,\n    \"kind\": \"EventsNode\",\n    \"limit\": null,\n    \"math\": \"monthly_active\",\n    \"math_group_type_index\": null,\n    \"math_hogql\": null,\n    \"math_multiplier\": null,\n    \"math_property\": null,\n    \"math_property_revenue_currency\": null,\n    \"math_property_type\": null,\n    \"name\": null,\n    \"optionalInFunnel\": null,\n    \"orderBy\": null,\n    \"properties\": null,\n    \"response\": null,\n    \"version\": null\n  },\n  \"async\": null,\n  \"client_query_id\": null,\n  \"filters_override\": null,\n  \"limit_context\": null,\n  \"name\": null,\n  \"refresh\": \"blocking\",\n  \"variables_override\": null\n}",
                              "options": {
                                "raw": {
                                  "headerFamily": "json",
                                  "language": "json"
                                }
                              }
                            },
                            "url": {
                              "raw": "{{baseUrl}}/api/environments/:environment_id/query/",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "api",
                                "environments",
                                ":environment_id",
                                "query",
                                ""
                              ],
                              "variable": [
                                {
                                  "key": "environment_id"
                                }
                              ]
                            }
                          },
                          "status": "OK",
                          "code": 200,
                          "_postman_previewlanguage": "json",
                          "header": [
                            {
                              "key": "Content-Type",
                              "value": "application/json"
                            }
                          ],
                          "cookie": [],
                          "responseTime": null,
                          "body": "{\n  \"sint_2aa\": -82999118,\n  \"irure_f43\": 84039626\n}",
                          "createdAt": "2026-07-28T11:08:54.000Z",
                          "updatedAt": "2026-07-28T11:08:54.000Z",
                          "uid": "35240-d520669b-7e66-433e-9007-11fb8bc4eb8e"
                        }
                      ],
                      "createdAt": "2026-07-28T11:08:54.000Z",
                      "updatedAt": "2026-07-28T11:08:54.000Z",
                      "uid": "35240-8d81c718-47e8-4b61-aa85-d54c86e9f07e"
                    }
                  ],
                  "id": "2cda4799-ef7c-4d3e-8be9-6bff309c290d",
                  "createdAt": "2026-07-28T11:08:54.000Z",
                  "updatedAt": "2026-07-28T11:08:54.000Z",
                  "uid": "35240-2cda4799-ef7c-4d3e-8be9-6bff309c290d"
                }
              ],
              "id": "a6fbdecb-5d70-4733-bf49-063442727e08",
              "createdAt": "2026-07-28T11:08:54.000Z",
              "updatedAt": "2026-07-28T11:08:54.000Z",
              "uid": "35240-a6fbdecb-5d70-4733-bf49-063442727e08"
            }
          ],
          "id": "0d35b5f9-be3c-4070-b2c2-751fbc7fa9db",
          "createdAt": "2026-07-28T11:08:54.000Z",
          "updatedAt": "2026-07-28T11:08:54.000Z",
          "uid": "35240-0d35b5f9-be3c-4070-b2c2-751fbc7fa9db"
        },
        {
          "name": "projects",
          "item": [
            {
              "name": "{project_id}",
              "item": [
                {
                  "name": "query",
                  "item": [
                    {
                      "name": "{id}",
                      "item": [
                        {
                          "name": "log",
                          "item": [
                            {
                              "name": "query log retrieve",
                              "id": "e68f9cde-247d-48bc-a491-3b8024cfc5fa",
                              "protocolProfileBehavior": {
                                "disableBodyPruning": true
                              },
                              "request": {
                                "method": "GET",
                                "header": [
                                  {
                                    "key": "Accept",
                                    "value": "application/json"
                                  }
                                ],
                                "url": {
                                  "raw": "{{baseUrl}}/api/projects/:project_id/query/:id/log/",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "projects",
                                    ":project_id",
                                    "query",
                                    ":id",
                                    "log",
                                    ""
                                  ],
                                  "variable": [
                                    {
                                      "id": "b6ae5632-d49f-46b0-8fb1-cd43057c798f",
                                      "key": "project_id",
                                      "value": "<string>",
                                      "description": "(Required) Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."
                                    },
                                    {
                                      "id": "5a1d6152-ca53-4baa-be45-12a40703f722",
                                      "key": "id",
                                      "value": "<string>",
                                      "description": "(Required) "
                                    }
                                  ]
                                },
                                "description": "Get query log details from query_log_archive table for a specific query_id, the query must have been issued in last 24 hours."
                              },
                              "response": [
                                {
                                  "id": "d738f095-3f7e-4ada-bf38-ceb7fdbd4e9b",
                                  "name": "New Response",
                                  "originalRequest": {
                                    "method": "GET",
                                    "header": [
                                      {
                                        "key": "Accept",
                                        "value": "application/json"
                                      }
                                    ],
                                    "url": {
                                      "raw": "{{baseUrl}}/api/projects/:project_id/query/:id/log/",
                                      "host": [
                                        "{{baseUrl}}"
                                      ],
                                      "path": [
                                        "api",
                                        "projects",
                                        ":project_id",
                                        "query",
                                        ":id",
                                        "log",
                                        ""
                                      ],
                                      "variable": [
                                        {
                                          "key": "project_id"
                                        },
                                        {
                                          "key": "id"
                                        }
                                      ]
                                    }
                                  },
                                  "status": "OK",
                                  "code": 200,
                                  "_postman_previewlanguage": "json",
                                  "header": [
                                    {
                                      "key": "Content-Type",
                                      "value": "application/json"
                                    }
                                  ],
                                  "cookie": [],
                                  "responseTime": null,
                                  "body": "{\n  \"ut_f_\": false,\n  \"id_5\": -99495359,\n  \"minim_8b\": false\n}",
                                  "createdAt": "2026-07-28T11:08:54.000Z",
                                  "updatedAt": "2026-07-28T11:08:54.000Z",
                                  "uid": "35240-d738f095-3f7e-4ada-bf38-ceb7fdbd4e9b"
                                }
                              ],
                              "createdAt": "2026-07-28T11:08:54.000Z",
                              "updatedAt": "2026-07-28T11:08:54.000Z",
                              "uid": "35240-e68f9cde-247d-48bc-a491-3b8024cfc5fa"
                            }
                          ],
                          "id": "48acc53b-8bd1-46ff-bb83-5ddb4a3ef3ee",
                          "createdAt": "2026-07-28T11:08:54.000Z",
                          "updatedAt": "2026-07-28T11:08:54.000Z",
                          "uid": "35240-48acc53b-8bd1-46ff-bb83-5ddb4a3ef3ee"
                        },
                        {
                          "name": "query retrieve",
                          "id": "2df94eb4-bfde-4f54-8c66-97be72a41e45",
                          "protocolProfileBehavior": {
                            "disableBodyPruning": true
                          },
                          "request": {
                            "auth": {
                              "type": "bearer",
                              "bearer": [
                                {
                                  "key": "token",
                                  "value": "{{bearerToken}}",
                                  "type": "string"
                                }
                              ]
                            },
                            "method": "GET",
                            "header": [
                              {
                                "key": "Accept",
                                "value": "application/json"
                              }
                            ],
                            "url": {
                              "raw": "{{baseUrl}}/api/projects/:project_id/query/:id/",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "api",
                                "projects",
                                ":project_id",
                                "query",
                                ":id",
                                ""
                              ],
                              "variable": [
                                {
                                  "id": "bd5529ed-3679-42e7-95a0-b0ca7f50a1cf",
                                  "key": "project_id",
                                  "value": "<string>",
                                  "description": "(Required) Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."
                                },
                                {
                                  "id": "d651c130-d945-465c-954f-338218372944",
                                  "key": "id",
                                  "value": "<string>",
                                  "description": "(Required) "
                                }
                              ]
                            },
                            "description": "(Experimental)"
                          },
                          "response": [
                            {
                              "id": "a8bdade8-254f-4a00-b4ea-7ab03048ed5f",
                              "name": "New Response",
                              "originalRequest": {
                                "method": "GET",
                                "header": [
                                  {
                                    "key": "Accept",
                                    "value": "application/json"
                                  },
                                  {
                                    "description": "Added as a part of security scheme: bearer",
                                    "key": "Authorization",
                                    "value": "Bearer <token>"
                                  }
                                ],
                                "url": {
                                  "raw": "{{baseUrl}}/api/projects/:project_id/query/:id/",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "projects",
                                    ":project_id",
                                    "query",
                                    ":id",
                                    ""
                                  ],
                                  "variable": [
                                    {
                                      "key": "project_id"
                                    },
                                    {
                                      "key": "id"
                                    }
                                  ]
                                }
                              },
                              "status": "OK",
                              "code": 200,
                              "_postman_previewlanguage": "json",
                              "header": [
                                {
                                  "key": "Content-Type",
                                  "value": "application/json"
                                }
                              ],
                              "cookie": [],
                              "responseTime": null,
                              "body": "{\n  \"query_status\": {\n    \"id\": \"<string>\",\n    \"team_id\": \"<integer>\",\n    \"complete\": false,\n    \"dashboard_id\": null,\n    \"end_time\": null,\n    \"error\": false,\n    \"error_message\": null,\n    \"expiration_time\": null,\n    \"insight_id\": null,\n    \"labels\": null,\n    \"pickup_time\": null,\n    \"query_async\": true,\n    \"query_progress\": null,\n    \"results\": null,\n    \"start_time\": null,\n    \"task_id\": null\n  }\n}",
                              "createdAt": "2026-07-28T11:08:54.000Z",
                              "updatedAt": "2026-07-28T11:08:54.000Z",
                              "uid": "35240-a8bdade8-254f-4a00-b4ea-7ab03048ed5f"
                            }
                          ],
                          "createdAt": "2026-07-28T11:08:54.000Z",
                          "updatedAt": "2026-07-28T11:08:54.000Z",
                          "uid": "35240-2df94eb4-bfde-4f54-8c66-97be72a41e45"
                        },
                        {
                          "name": "query destroy",
                          "id": "1df74824-e7fe-4ffe-abc5-3a4dac78d135",
                          "protocolProfileBehavior": {
                            "disableBodyPruning": true
                          },
                          "request": {
                            "auth": {
                              "type": "bearer",
                              "bearer": [
                                {
                                  "key": "token",
                                  "value": "{{bearerToken}}",
                                  "type": "string"
                                }
                              ]
                            },
                            "method": "DELETE",
                            "header": [],
                            "url": {
                              "raw": "{{baseUrl}}/api/projects/:project_id/query/:id/",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "api",
                                "projects",
                                ":project_id",
                                "query",
                                ":id",
                                ""
                              ],
                              "variable": [
                                {
                                  "id": "d525c946-eed5-458b-8ba0-dfa631cb8429",
                                  "key": "project_id",
                                  "value": "<string>",
                                  "description": "(Required) Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."
                                },
                                {
                                  "id": "061df855-34b5-4dc6-a599-e34fc12d2fea",
                                  "key": "id",
                                  "value": "<string>",
                                  "description": "(Required) "
                                }
                              ]
                            },
                            "description": "(Experimental)"
                          },
                          "response": [
                            {
                              "id": "b4a73b79-ceba-4b42-a98a-415a4263605d",
                              "name": "Query cancelled",
                              "originalRequest": {
                                "method": "DELETE",
                                "header": [
                                  {
                                    "description": "Added as a part of security scheme: bearer",
                                    "key": "Authorization",
                                    "value": "Bearer <token>"
                                  }
                                ],
                                "url": {
                                  "raw": "{{baseUrl}}/api/projects/:project_id/query/:id/",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "projects",
                                    ":project_id",
                                    "query",
                                    ":id",
                                    ""
                                  ],
                                  "variable": [
                                    {
                                      "key": "project_id"
                                    },
                                    {
                                      "key": "id"
                                    }
                                  ]
                                }
                              },
                              "status": "No Content",
                              "code": 204,
                              "_postman_previewlanguage": "text",
                              "header": [],
                              "cookie": [],
                              "responseTime": null,
                              "body": null,
                              "createdAt": "2026-07-28T11:08:54.000Z",
                              "updatedAt": "2026-07-28T11:08:54.000Z",
                              "uid": "35240-b4a73b79-ceba-4b42-a98a-415a4263605d"
                            }
                          ],
                          "createdAt": "2026-07-28T11:08:54.000Z",
                          "updatedAt": "2026-07-28T11:08:54.000Z",
                          "uid": "35240-1df74824-e7fe-4ffe-abc5-3a4dac78d135"
                        }
                      ],
                      "id": "72ca0d38-726c-42d0-ae51-43319d79225f",
                      "createdAt": "2026-07-28T11:08:54.000Z",
                      "updatedAt": "2026-07-28T11:08:54.000Z",
                      "uid": "35240-72ca0d38-726c-42d0-ae51-43319d79225f"
                    },
                    {
                      "name": "{query_kind}",
                      "item": [
                        {
                          "name": "query create with kind",
                          "id": "3f1fa45e-0394-4423-888f-89028ff0e913",
                          "protocolProfileBehavior": {
                            "disableBodyPruning": true
                          },
                          "request": {
                            "method": "POST",
                            "header": [],
                            "url": {
                              "raw": "{{baseUrl}}/api/projects/:project_id/query/:query_kind/",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "api",
                                "projects",
                                ":project_id",
                                "query",
                                ":query_kind",
                                ""
                              ],
                              "variable": [
                                {
                                  "id": "9d99190f-a25b-449b-b70a-8ac8dc995b94",
                                  "key": "project_id",
                                  "value": "<string>",
                                  "description": "(Required) Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."
                                },
                                {
                                  "id": "f9234d35-22e5-4410-9460-363f0d9a97f9",
                                  "key": "query_kind",
                                  "value": "FPJalioSv",
                                  "description": "(Required) "
                                }
                              ]
                            },
                            "description": "DRF ViewSet mixin that gates coalesced responses behind permission checks.\n\nThe QueryCoalescingMiddleware attaches cached response data to\nrequest.META[\"_coalesced_response\"] for followers. This mixin runs DRF's\ninitial() (auth + permissions + throttling) before returning the\ncached response, ensuring the request is authorized."
                          },
                          "response": [
                            {
                              "id": "fd6a09e2-d363-49e0-b444-2d6734238f68",
                              "name": "No response body",
                              "originalRequest": {
                                "method": "POST",
                                "header": [],
                                "url": {
                                  "raw": "{{baseUrl}}/api/projects/:project_id/query/:query_kind/",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "projects",
                                    ":project_id",
                                    "query",
                                    ":query_kind",
                                    ""
                                  ],
                                  "variable": [
                                    {
                                      "key": "project_id"
                                    },
                                    {
                                      "key": "query_kind"
                                    }
                                  ]
                                }
                              },
                              "status": "OK",
                              "code": 200,
                              "_postman_previewlanguage": "text",
                              "header": [],
                              "cookie": [],
                              "responseTime": null,
                              "body": null,
                              "createdAt": "2026-07-28T11:08:54.000Z",
                              "updatedAt": "2026-07-28T11:08:54.000Z",
                              "uid": "35240-fd6a09e2-d363-49e0-b444-2d6734238f68"
                            }
                          ],
                          "createdAt": "2026-07-28T11:08:54.000Z",
                          "updatedAt": "2026-07-28T11:08:54.000Z",
                          "uid": "35240-3f1fa45e-0394-4423-888f-89028ff0e913"
                        }
                      ],
                      "id": "21585653-d9d3-4fbf-be38-a023b783a0c7",
                      "createdAt": "2026-07-28T11:08:54.000Z",
                      "updatedAt": "2026-07-28T11:08:54.000Z",
                      "uid": "35240-21585653-d9d3-4fbf-be38-a023b783a0c7"
                    },
                    {
                      "name": "check_auth_for_async",
                      "item": [
                        {
                          "name": "query check auth for async create",
                          "id": "f03bba9f-74bb-4069-bed5-e03655e5af65",
                          "protocolProfileBehavior": {
                            "disableBodyPruning": true
                          },
                          "request": {
                            "method": "POST",
                            "header": [
                              {
                                "key": "Accept",
                                "value": "application/json"
                              }
                            ],
                            "url": {
                              "raw": "{{baseUrl}}/api/projects/:project_id/query/check_auth_for_async/",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "api",
                                "projects",
                                ":project_id",
                                "query",
                                "check_auth_for_async",
                                ""
                              ],
                              "variable": [
                                {
                                  "id": "1a486e99-98cf-4d04-b609-43cdaf546397",
                                  "key": "project_id",
                                  "value": "<string>",
                                  "description": "(Required) Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."
                                }
                              ]
                            },
                            "description": "DRF ViewSet mixin that gates coalesced responses behind permission checks.\n\nThe QueryCoalescingMiddleware attaches cached response data to\nrequest.META[\"_coalesced_response\"] for followers. This mixin runs DRF's\ninitial() (auth + permissions + throttling) before returning the\ncached response, ensuring the request is authorized."
                          },
                          "response": [
                            {
                              "id": "830b8e6e-24b3-444e-928e-d28cbb97e7fc",
                              "name": "New Response",
                              "originalRequest": {
                                "method": "POST",
                                "header": [
                                  {
                                    "key": "Accept",
                                    "value": "application/json"
                                  }
                                ],
                                "url": {
                                  "raw": "{{baseUrl}}/api/projects/:project_id/query/check_auth_for_async/",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "projects",
                                    ":project_id",
                                    "query",
                                    "check_auth_for_async",
                                    ""
                                  ],
                                  "variable": [
                                    {
                                      "key": "project_id"
                                    }
                                  ]
                                }
                              },
                              "status": "OK",
                              "code": 200,
                              "_postman_previewlanguage": "json",
                              "header": [
                                {
                                  "key": "Content-Type",
                                  "value": "application/json"
                                }
                              ],
                              "cookie": [],
                              "responseTime": null,
                              "body": "{\n  \"ut_f_\": false,\n  \"id_5\": -99495359,\n  \"minim_8b\": false\n}",
                              "createdAt": "2026-07-28T11:08:54.000Z",
                              "updatedAt": "2026-07-28T11:08:54.000Z",
                              "uid": "35240-830b8e6e-24b3-444e-928e-d28cbb97e7fc"
                            }
                          ],
                          "createdAt": "2026-07-28T11:08:54.000Z",
                          "updatedAt": "2026-07-28T11:08:54.000Z",
                          "uid": "35240-f03bba9f-74bb-4069-bed5-e03655e5af65"
                        }
                      ],
                      "id": "24af046b-fcbe-41a5-ad6f-69f3fa5a8967",
                      "createdAt": "2026-07-28T11:08:54.000Z",
                      "updatedAt": "2026-07-28T11:08:54.000Z",
                      "uid": "35240-24af046b-fcbe-41a5-ad6f-69f3fa5a8967"
                    },
                    {
                      "name": "draft_sql",
                      "item": [
                        {
                          "name": "query draft sql retrieve",
                          "id": "777b4287-d907-4924-8a0c-d609831b0b60",
                          "protocolProfileBehavior": {
                            "disableBodyPruning": true
                          },
                          "request": {
                            "method": "GET",
                            "header": [
                              {
                                "key": "Accept",
                                "value": "application/json"
                              }
                            ],
                            "url": {
                              "raw": "{{baseUrl}}/api/projects/:project_id/query/draft_sql/",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "api",
                                "projects",
                                ":project_id",
                                "query",
                                "draft_sql",
                                ""
                              ],
                              "variable": [
                                {
                                  "id": "4087350e-fe0d-4d88-a24e-f427e2a0eb62",
                                  "key": "project_id",
                                  "value": "<string>",
                                  "description": "(Required) Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."
                                }
                              ]
                            },
                            "description": "DRF ViewSet mixin that gates coalesced responses behind permission checks.\n\nThe QueryCoalescingMiddleware attaches cached response data to\nrequest.META[\"_coalesced_response\"] for followers. This mixin runs DRF's\ninitial() (auth + permissions + throttling) before returning the\ncached response, ensuring the request is authorized."
                          },
                          "response": [
                            {
                              "id": "e26c006f-7426-42db-8ad7-29edc1a99452",
                              "name": "New Response",
                              "originalRequest": {
                                "method": "GET",
                                "header": [
                                  {
                                    "key": "Accept",
                                    "value": "application/json"
                                  }
                                ],
                                "url": {
                                  "raw": "{{baseUrl}}/api/projects/:project_id/query/draft_sql/",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "projects",
                                    ":project_id",
                                    "query",
                                    "draft_sql",
                                    ""
                                  ],
                                  "variable": [
                                    {
                                      "key": "project_id"
                                    }
                                  ]
                                }
                              },
                              "status": "OK",
                              "code": 200,
                              "_postman_previewlanguage": "json",
                              "header": [
                                {
                                  "key": "Content-Type",
                                  "value": "application/json"
                                }
                              ],
                              "cookie": [],
                              "responseTime": null,
                              "body": "{\n  \"ut_f_\": false,\n  \"id_5\": -99495359,\n  \"minim_8b\": false\n}",
                              "createdAt": "2026-07-28T11:08:54.000Z",
                              "updatedAt": "2026-07-28T11:08:54.000Z",
                              "uid": "35240-e26c006f-7426-42db-8ad7-29edc1a99452"
                            }
                          ],
                          "createdAt": "2026-07-28T11:08:54.000Z",
                          "updatedAt": "2026-07-28T11:08:54.000Z",
                          "uid": "35240-777b4287-d907-4924-8a0c-d609831b0b60"
                        }
                      ],
                      "id": "a5a02538-a7ac-412f-bedd-0330d232cf52",
                      "createdAt": "2026-07-28T11:08:54.000Z",
                      "updatedAt": "2026-07-28T11:08:54.000Z",
                      "uid": "35240-a5a02538-a7ac-412f-bedd-0330d232cf52"
                    },
                    {
                      "name": "upgrade",
                      "item": [
                        {
                          "name": "query upgrade create",
                          "id": "870aba0e-25f4-477c-bd26-5b50b3c60bcb",
                          "protocolProfileBehavior": {
                            "disableBodyPruning": true
                          },
                          "request": {
                            "method": "POST",
                            "header": [
                              {
                                "key": "Content-Type",
                                "value": "application/json"
                              },
                              {
                                "key": "Accept",
                                "value": "application/json"
                              }
                            ],
                            "body": {
                              "mode": "raw",
                              "raw": "{\n  \"query\": {\n    \"custom_name\": null,\n    \"event\": null,\n    \"fixedProperties\": null,\n    \"kind\": \"EventsNode\",\n    \"limit\": null,\n    \"math\": \"dau\",\n    \"math_group_type_index\": null,\n    \"math_hogql\": null,\n    \"math_multiplier\": null,\n    \"math_property\": null,\n    \"math_property_revenue_currency\": null,\n    \"math_property_type\": null,\n    \"name\": null,\n    \"optionalInFunnel\": null,\n    \"orderBy\": null,\n    \"properties\": null,\n    \"response\": null,\n    \"version\": null\n  }\n}",
                              "options": {
                                "raw": {
                                  "headerFamily": "json",
                                  "language": "json"
                                }
                              }
                            },
                            "url": {
                              "raw": "{{baseUrl}}/api/projects/:project_id/query/upgrade/",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "api",
                                "projects",
                                ":project_id",
                                "query",
                                "upgrade",
                                ""
                              ],
                              "variable": [
                                {
                                  "id": "151173fc-b79e-480e-81b1-460b93fe95f1",
                                  "key": "project_id",
                                  "value": "<string>",
                                  "description": "(Required) Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."
                                }
                              ]
                            },
                            "description": "Upgrades a query without executing it. Returns a query with all nodes migrated to the latest version."
                          },
                          "response": [
                            {
                              "id": "6cf80f5a-c99d-4d1b-a4a5-58f81ab33148",
                              "name": "New Response",
                              "originalRequest": {
                                "method": "POST",
                                "header": [
                                  {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                  },
                                  {
                                    "key": "Accept",
                                    "value": "application/json"
                                  }
                                ],
                                "body": {
                                  "mode": "raw",
                                  "raw": "{\n  \"query\": {\n    \"custom_name\": null,\n    \"event\": null,\n    \"fixedProperties\": null,\n    \"kind\": \"EventsNode\",\n    \"limit\": null,\n    \"math\": \"dau\",\n    \"math_group_type_index\": null,\n    \"math_hogql\": null,\n    \"math_multiplier\": null,\n    \"math_property\": null,\n    \"math_property_revenue_currency\": null,\n    \"math_property_type\": null,\n    \"name\": null,\n    \"optionalInFunnel\": null,\n    \"orderBy\": null,\n    \"properties\": null,\n    \"response\": null,\n    \"version\": null\n  }\n}",
                                  "options": {
                                    "raw": {
                                      "headerFamily": "json",
                                      "language": "json"
                                    }
                                  }
                                },
                                "url": {
                                  "raw": "{{baseUrl}}/api/projects/:project_id/query/upgrade/",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "projects",
                                    ":project_id",
                                    "query",
                                    "upgrade",
                                    ""
                                  ],
                                  "variable": [
                                    {
                                      "key": "project_id"
                                    }
                                  ]
                                }
                              },
                              "status": "OK",
                              "code": 200,
                              "_postman_previewlanguage": "json",
                              "header": [
                                {
                                  "key": "Content-Type",
                                  "value": "application/json"
                                }
                              ],
                              "cookie": [],
                              "responseTime": null,
                              "body": "{\n  \"query\": {\n    \"custom_name\": null,\n    \"event\": null,\n    \"fixedProperties\": null,\n    \"kind\": \"EventsNode\",\n    \"limit\": null,\n    \"math\": \"first_time_for_user\",\n    \"math_group_type_index\": null,\n    \"math_hogql\": null,\n    \"math_multiplier\": null,\n    \"math_property\": null,\n    \"math_property_revenue_currency\": null,\n    \"math_property_type\": null,\n    \"name\": null,\n    \"optionalInFunnel\": null,\n    \"orderBy\": null,\n    \"properties\": null,\n    \"response\": null,\n    \"version\": null\n  }\n}",
                              "createdAt": "2026-07-28T11:08:54.000Z",
                              "updatedAt": "2026-07-28T11:08:54.000Z",
                              "uid": "35240-6cf80f5a-c99d-4d1b-a4a5-58f81ab33148"
                            }
                          ],
                          "createdAt": "2026-07-28T11:08:54.000Z",
                          "updatedAt": "2026-07-28T11:08:54.000Z",
                          "uid": "35240-870aba0e-25f4-477c-bd26-5b50b3c60bcb"
                        }
                      ],
                      "id": "e7866dbb-d019-4ff5-8a36-9180cce3c00b",
                      "createdAt": "2026-07-28T11:08:54.000Z",
                      "updatedAt": "2026-07-28T11:08:54.000Z",
                      "uid": "35240-e7866dbb-d019-4ff5-8a36-9180cce3c00b"
                    },
                    {
                      "name": "query create",
                      "id": "c6fb3d06-2d48-40c0-9558-946aea59f3c7",
                      "protocolProfileBehavior": {
                        "disableBodyPruning": true
                      },
                      "request": {
                        "auth": {
                          "type": "bearer",
                          "bearer": [
                            {
                              "key": "token",
                              "value": "{{bearerToken}}",
                              "type": "string"
                            }
                          ]
                        },
                        "method": "POST",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          },
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"query\": {\n    \"custom_name\": null,\n    \"event\": null,\n    \"fixedProperties\": null,\n    \"kind\": \"EventsNode\",\n    \"limit\": null,\n    \"math\": \"monthly_active\",\n    \"math_group_type_index\": null,\n    \"math_hogql\": null,\n    \"math_multiplier\": null,\n    \"math_property\": null,\n    \"math_property_revenue_currency\": null,\n    \"math_property_type\": null,\n    \"name\": null,\n    \"optionalInFunnel\": null,\n    \"orderBy\": null,\n    \"properties\": null,\n    \"response\": null,\n    \"version\": null\n  },\n  \"async\": null,\n  \"client_query_id\": null,\n  \"filters_override\": null,\n  \"limit_context\": null,\n  \"name\": null,\n  \"refresh\": \"blocking\",\n  \"variables_override\": null\n}",
                          "options": {
                            "raw": {
                              "headerFamily": "json",
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{baseUrl}}/api/projects/:project_id/query/",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "api",
                            "projects",
                            ":project_id",
                            "query",
                            ""
                          ],
                          "variable": [
                            {
                              "id": "b8875ce2-537b-4564-9f5c-157d6eb6079e",
                              "key": "project_id",
                              "value": "<string>",
                              "description": "(Required) Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."
                            }
                          ]
                        },
                        "description": "DRF ViewSet mixin that gates coalesced responses behind permission checks.\n\nThe QueryCoalescingMiddleware attaches cached response data to\nrequest.META[\"_coalesced_response\"] for followers. This mixin runs DRF's\ninitial() (auth + permissions + throttling) before returning the\ncached response, ensuring the request is authorized."
                      },
                      "response": [
                        {
                          "id": "82bc1259-bcb0-4807-8e61-a672fa19fe86",
                          "name": "New Response",
                          "originalRequest": {
                            "method": "POST",
                            "header": [
                              {
                                "key": "Content-Type",
                                "value": "application/json"
                              },
                              {
                                "key": "Accept",
                                "value": "application/json"
                              },
                              {
                                "description": "Added as a part of security scheme: bearer",
                                "key": "Authorization",
                                "value": "Bearer <token>"
                              }
                            ],
                            "body": {
                              "mode": "raw",
                              "raw": "{\n  \"query\": {\n    \"custom_name\": null,\n    \"event\": null,\n    \"fixedProperties\": null,\n    \"kind\": \"EventsNode\",\n    \"limit\": null,\n    \"math\": \"monthly_active\",\n    \"math_group_type_index\": null,\n    \"math_hogql\": null,\n    \"math_multiplier\": null,\n    \"math_property\": null,\n    \"math_property_revenue_currency\": null,\n    \"math_property_type\": null,\n    \"name\": null,\n    \"optionalInFunnel\": null,\n    \"orderBy\": null,\n    \"properties\": null,\n    \"response\": null,\n    \"version\": null\n  },\n  \"async\": null,\n  \"client_query_id\": null,\n  \"filters_override\": null,\n  \"limit_context\": null,\n  \"name\": null,\n  \"refresh\": \"blocking\",\n  \"variables_override\": null\n}",
                              "options": {
                                "raw": {
                                  "headerFamily": "json",
                                  "language": "json"
                                }
                              }
                            },
                            "url": {
                              "raw": "{{baseUrl}}/api/projects/:project_id/query/",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "api",
                                "projects",
                                ":project_id",
                                "query",
                                ""
                              ],
                              "variable": [
                                {
                                  "key": "project_id"
                                }
                              ]
                            }
                          },
                          "status": "OK",
                          "code": 200,
                          "_postman_previewlanguage": "json",
                          "header": [
                            {
                              "key": "Content-Type",
                              "value": "application/json"
                            }
                          ],
                          "cookie": [],
                          "responseTime": null,
                          "body": "{\n  \"sint_2aa\": -82999118,\n  \"irure_f43\": 84039626\n}",
                          "createdAt": "2026-07-28T11:08:54.000Z",
                          "updatedAt": "2026-07-28T11:08:54.000Z",
                          "uid": "35240-82bc1259-bcb0-4807-8e61-a672fa19fe86"
                        }
                      ],
                      "createdAt": "2026-07-28T11:08:54.000Z",
                      "updatedAt": "2026-07-28T11:08:54.000Z",
                      "uid": "35240-c6fb3d06-2d48-40c0-9558-946aea59f3c7"
                    }
                  ],
                  "id": "08c558a4-5a33-4880-882b-808bbf3d3320",
                  "createdAt": "2026-07-28T11:08:54.000Z",
                  "updatedAt": "2026-07-28T11:08:54.000Z",
                  "uid": "35240-08c558a4-5a33-4880-882b-808bbf3d3320"
                }
              ],
              "id": "fc00d8ab-b378-489b-98e1-1166db47e66b",
              "createdAt": "2026-07-28T11:08:54.000Z",
              "updatedAt": "2026-07-28T11:08:54.000Z",
              "uid": "35240-fc00d8ab-b378-489b-98e1-1166db47e66b"
            }
          ],
          "id": "c950f7af-dc49-4386-b98a-388d19789897",
          "createdAt": "2026-07-28T11:08:54.000Z",
          "updatedAt": "2026-07-28T11:08:54.000Z",
          "uid": "35240-c950f7af-dc49-4386-b98a-388d19789897"
        }
      ],
      "id": "50fb83ff-717e-41a7-886a-e3385d43a0d7",
      "createdAt": "2026-07-28T11:08:54.000Z",
      "updatedAt": "2026-07-28T11:08:54.000Z",
      "uid": "35240-50fb83ff-717e-41a7-886a-e3385d43a0d7"
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "/"
    }
  ]
}