---
title: "Create Posthog Query"
method: POST
path: "/api/integrations/posthog/query"
tags: ["integrations"]
---

# Create Posthog Query

`POST /api/integrations/posthog/query`

## Request

- Base URL: `https://platform.verbiflow.com/api/bridge`
- URL: `https://platform.verbiflow.com/api/bridge/api/integrations/posthog/query`
- Auth: one of:
  - HTTP bearer and API key in header `x-flage-org-id`
  - HTTP bearer and API key in header `x-flage-org-slug`

## Request body

- PostHogQueryRequest
  - `hogql` string, required
  - `name` string
  - `values` object

## Response `200`

Successful Response

- PostHogQueryResponse
  - `columns` string[], required
  - `project_id` integer, required
  - `region` 'us' | 'eu', required
  - `rows` array[], required
    - unknown[]
      - unknown
  - `truncated` boolean, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/verbiflow/apis/verbiflow-sdk-http-contract.md) - [All operations](https://skmtc.dev/verbiflow/apis/verbiflow-sdk-http-contract/llms.txt) - [OpenAPI document](https://skmtc.dev/verbiflow/apis/verbiflow-sdk-http-contract/revisions/c80e903ef8f3?raw)
