PostHog endpoints API

The endpoints API from PostHog — 16 operation(s) for endpoints.

OpenAPI Specification

posthog-endpoints-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: PostHog actions endpoints API
  version: 1.0.0
  description: ''
tags:
- name: endpoints
paths:
  /api/environments/{environment_id}/endpoints/:
    get:
      operationId: environments_endpoints_list
      description: List all endpoints for the team.
      parameters:
      - in: query
        name: created_by
        schema:
          type: integer
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: query
        name: is_active
        schema:
          type: boolean
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      tags:
      - endpoints
      security:
      - PersonalAPIKeyAuth:
        - endpoint:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedEndpointResponseList'
          description: ''
      deprecated: true
      x-explicit-tags:
      - endpoints
    post:
      operationId: environments_endpoints_create
      description: Create a new endpoint.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      tags:
      - endpoints
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EndpointRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/EndpointRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/EndpointRequest'
      security:
      - PersonalAPIKeyAuth:
        - endpoint:write
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EndpointResponse'
          description: ''
      deprecated: true
      x-explicit-tags:
      - endpoints
  /api/environments/{environment_id}/endpoints/{name}/:
    get:
      operationId: environments_endpoints_retrieve
      description: Retrieve an endpoint, or a specific version via ?version=N.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: name
        schema:
          type: string
          description: URL-safe name for the endpoint
        required: true
      tags:
      - endpoints
      security:
      - PersonalAPIKeyAuth:
        - endpoint:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EndpointVersionResponse'
          description: ''
      deprecated: true
      x-explicit-tags:
      - endpoints
    put:
      operationId: environments_endpoints_update
      description: Update an existing endpoint. Parameters are optional. Pass version in body or ?version=N query param to target a specific version.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: name
        schema:
          type: string
          description: URL-safe name for the endpoint
        required: true
      tags:
      - endpoints
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EndpointRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/EndpointRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/EndpointRequest'
      security:
      - PersonalAPIKeyAuth:
        - endpoint:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EndpointResponse'
          description: ''
      deprecated: true
      x-explicit-tags:
      - endpoints
    patch:
      operationId: environments_endpoints_partial_update
      description: Update an existing endpoint.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: name
        schema:
          type: string
          description: URL-safe name for the endpoint
        required: true
      tags:
      - endpoints
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedEndpointRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedEndpointRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedEndpointRequest'
      security:
      - PersonalAPIKeyAuth:
        - endpoint:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EndpointResponse'
          description: ''
      deprecated: true
      x-explicit-tags:
      - endpoints
    delete:
      operationId: environments_endpoints_destroy
      description: Delete an endpoint and clean up materialized query.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: name
        schema:
          type: string
          description: URL-safe name for the endpoint
        required: true
      tags:
      - endpoints
      security:
      - PersonalAPIKeyAuth:
        - endpoint:write
      responses:
        '204':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - endpoints
  /api/environments/{environment_id}/endpoints/{name}/materialization_preview/:
    post:
      operationId: environments_endpoints_materialization_preview_create
      description: Preview the materialization transform for an endpoint. Shows what the query will look like after materialization, including range pair detection and bucket functions.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: name
        schema:
          type: string
          description: URL-safe name for the endpoint
        required: true
      tags:
      - endpoints
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MaterializationPreviewRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/MaterializationPreviewRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/MaterializationPreviewRequest'
      security:
      - PersonalAPIKeyAuth:
        - endpoint:read
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - endpoints
  /api/environments/{environment_id}/endpoints/{name}/materialization_status/:
    get:
      operationId: environments_endpoints_materialization_status_retrieve
      description: Get materialization status for an endpoint. Supports ?version=N query param.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: name
        schema:
          type: string
          description: URL-safe name for the endpoint
        required: true
      tags:
      - endpoints
      security:
      - PersonalAPIKeyAuth:
        - endpoint:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EndpointMaterialization'
          description: ''
      deprecated: true
      x-explicit-tags:
      - endpoints
  /api/environments/{environment_id}/endpoints/{name}/openapi.json/:
    get:
      operationId: environments_endpoints_openapi.json_retrieve
      description: Get OpenAPI 3.0 specification for this endpoint. Use this to generate typed SDK clients.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: name
        schema:
          type: string
          description: URL-safe name for the endpoint
        required: true
      - in: query
        name: version
        schema:
          type: integer
        description: Specific endpoint version to generate the spec for. Defaults to latest.
      tags:
      - endpoints
      security:
      - PersonalAPIKeyAuth:
        - endpoint:read
      responses:
        '200':
          description: No response body
      deprecated: true
      x-explicit-tags:
      - endpoints
  /api/environments/{environment_id}/endpoints/{name}/run/:
    get:
      operationId: environments_endpoints_run_retrieve
      description: Execute endpoint with optional materialization. Supports version parameter, runs latest version if not set.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: name
        schema:
          type: string
          description: URL-safe name for the endpoint
        required: true
      tags:
      - endpoints
      security:
      - PersonalAPIKeyAuth:
        - endpoint:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EndpointRunResponse'
          description: ''
      deprecated: true
      x-explicit-tags:
      - endpoints
    post:
      operationId: environments_endpoints_run_create
      description: Execute endpoint with optional materialization. Supports version parameter, runs latest version if not set.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: path
        name: name
        schema:
          type: string
          description: URL-safe name for the endpoint
        required: true
      tags:
      - endpoints
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EndpointRunRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/EndpointRunRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/EndpointRunRequest'
      security:
      - PersonalAPIKeyAuth:
        - endpoint:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EndpointRunResponse'
          description: ''
      deprecated: true
      x-explicit-tags:
      - endpoints
  /api/environments/{environment_id}/endpoints/{name}/versions/:
    get:
      operationId: environments_endpoints_versions_list
      description: List all versions for an endpoint.
      parameters:
      - in: query
        name: created_by
        schema:
          type: integer
      - $ref: '#/components/parameters/EnvironmentIdPath'
      - in: query
        name: is_active
        schema:
          type: boolean
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - in: path
        name: name
        schema:
          type: string
          description: URL-safe name for the endpoint
        required: true
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      tags:
      - endpoints
      security:
      - PersonalAPIKeyAuth:
        - endpoint:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedEndpointVersionResponseList'
          description: ''
      deprecated: true
      x-explicit-tags:
      - endpoints
  /api/environments/{environment_id}/endpoints/last_execution_times/:
    post:
      operationId: environments_endpoints_last_execution_times_create
      description: Get the last execution times in the past 6 months for multiple endpoints.
      parameters:
      - $ref: '#/components/parameters/EnvironmentIdPath'
      tags:
      - endpoints
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EndpointLastExecutionTimesRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/EndpointLastExecutionTimesRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/EndpointLastExecutionTimesRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QueryStatusResponse'
          description: ''
      deprecated: true
      x-explicit-tags:
      - endpoints
  /api/projects/{project_id}/endpoints/:
    get:
      operationId: endpoints_list
      description: List all endpoints for the team.
      parameters:
      - in: query
        name: created_by
        schema:
          type: integer
      - in: query
        name: is_active
        schema:
          type: boolean
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - endpoints
      security:
      - PersonalAPIKeyAuth:
        - endpoint:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedEndpointResponseList'
          description: ''
      x-explicit-tags:
      - endpoints
    post:
      operationId: endpoints_create
      description: Create a new endpoint.
      parameters:
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - endpoints
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EndpointRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/EndpointRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/EndpointRequest'
      security:
      - PersonalAPIKeyAuth:
        - endpoint:write
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EndpointResponse'
          description: ''
      x-explicit-tags:
      - endpoints
  /api/projects/{project_id}/endpoints/{name}/:
    get:
      operationId: endpoints_retrieve
      description: Retrieve an endpoint, or a specific version via ?version=N.
      parameters:
      - in: path
        name: name
        schema:
          type: string
          description: URL-safe name for the endpoint
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - endpoints
      security:
      - PersonalAPIKeyAuth:
        - endpoint:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EndpointVersionResponse'
          description: ''
      x-explicit-tags:
      - endpoints
    put:
      operationId: endpoints_update
      description: Update an existing endpoint. Parameters are optional. Pass version in body or ?version=N query param to target a specific version.
      parameters:
      - in: path
        name: name
        schema:
          type: string
          description: URL-safe name for the endpoint
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - endpoints
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EndpointRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/EndpointRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/EndpointRequest'
      security:
      - PersonalAPIKeyAuth:
        - endpoint:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EndpointResponse'
          description: ''
      x-explicit-tags:
      - endpoints
    patch:
      operationId: endpoints_partial_update
      description: Update an existing endpoint.
      parameters:
      - in: path
        name: name
        schema:
          type: string
          description: URL-safe name for the endpoint
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - endpoints
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedEndpointRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedEndpointRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedEndpointRequest'
      security:
      - PersonalAPIKeyAuth:
        - endpoint:write
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EndpointResponse'
          description: ''
      x-explicit-tags:
      - endpoints
    delete:
      operationId: endpoints_destroy
      description: Delete an endpoint and clean up materialized query.
      parameters:
      - in: path
        name: name
        schema:
          type: string
          description: URL-safe name for the endpoint
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - endpoints
      security:
      - PersonalAPIKeyAuth:
        - endpoint:write
      responses:
        '204':
          description: No response body
      x-explicit-tags:
      - endpoints
  /api/projects/{project_id}/endpoints/{name}/materialization_preview/:
    post:
      operationId: endpoints_materialization_preview_create
      description: Preview the materialization transform for an endpoint. Shows what the query will look like after materialization, including range pair detection and bucket functions.
      parameters:
      - in: path
        name: name
        schema:
          type: string
          description: URL-safe name for the endpoint
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - endpoints
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MaterializationPreviewRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/MaterializationPreviewRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/MaterializationPreviewRequest'
      security:
      - PersonalAPIKeyAuth:
        - endpoint:read
      responses:
        '200':
          description: No response body
      x-explicit-tags:
      - endpoints
  /api/projects/{project_id}/endpoints/{name}/materialization_status/:
    get:
      operationId: endpoints_materialization_status_retrieve
      description: Get materialization status for an endpoint. Supports ?version=N query param.
      parameters:
      - in: path
        name: name
        schema:
          type: string
          description: URL-safe name for the endpoint
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - endpoints
      security:
      - PersonalAPIKeyAuth:
        - endpoint:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EndpointMaterialization'
          description: ''
      x-explicit-tags:
      - endpoints
  /api/projects/{project_id}/endpoints/{name}/openapi.json/:
    get:
      operationId: endpoints_openapi.json_retrieve
      description: Get OpenAPI 3.0 specification for this endpoint. Use this to generate typed SDK clients.
      parameters:
      - in: path
        name: name
        schema:
          type: string
          description: URL-safe name for the endpoint
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      - in: query
        name: version
        schema:
          type: integer
        description: Specific endpoint version to generate the spec for. Defaults to latest.
      tags:
      - endpoints
      security:
      - PersonalAPIKeyAuth:
        - endpoint:read
      responses:
        '200':
          description: No response body
      x-explicit-tags:
      - endpoints
  /api/projects/{project_id}/endpoints/{name}/run/:
    get:
      operationId: endpoints_run_retrieve
      description: Execute endpoint with optional materialization. Supports version parameter, runs latest version if not set.
      parameters:
      - in: path
        name: name
        schema:
          type: string
          description: URL-safe name for the endpoint
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - endpoints
      security:
      - PersonalAPIKeyAuth:
        - endpoint:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EndpointRunResponse'
          description: ''
      x-explicit-tags:
      - endpoints
    post:
      operationId: endpoints_run_create
      description: Execute endpoint with optional materialization. Supports version parameter, runs latest version if not set.
      parameters:
      - in: path
        name: name
        schema:
          type: string
          description: URL-safe name for the endpoint
        required: true
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - endpoints
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EndpointRunRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/EndpointRunRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/EndpointRunRequest'
      security:
      - PersonalAPIKeyAuth:
        - endpoint:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EndpointRunResponse'
          description: ''
      x-explicit-tags:
      - endpoints
  /api/projects/{project_id}/endpoints/{name}/versions/:
    get:
      operationId: endpoints_versions_list
      description: List all versions for an endpoint.
      parameters:
      - in: query
        name: created_by
        schema:
          type: integer
      - in: query
        name: is_active
        schema:
          type: boolean
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - in: path
        name: name
        schema:
          type: string
          description: URL-safe name for the endpoint
        required: true
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - endpoints
      security:
      - PersonalAPIKeyAuth:
        - endpoint:read
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedEndpointVersionResponseList'
          description: ''
      x-explicit-tags:
      - endpoints
  /api/projects/{project_id}/endpoints/last_execution_times/:
    post:
      operationId: endpoints_last_execution_times_create
      description: Get the last execution times in the past 6 months for multiple endpoints.
      parameters:
      - $ref: '#/components/parameters/ProjectIdPath'
      tags:
      - endpoints
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EndpointLastExecutionTimesRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/EndpointLastExecutionTimesRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/EndpointLastExecutionTimesRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QueryStatusResponse'
          description: ''
      x-explicit-tags:
      - endpoints
components:
  schemas:
    DataWarehousePersonPropertyFilter:
      additionalProperties: false
      properties:
        key:
          title: Key
          type: string
        label:
          default: null
          title: Label
          type: string
          nullable: true
        operator:
          $ref: '#/components/schemas/PropertyOperator'
        type:
          default: data_warehouse_person_property
          title: Type
          type: string
          enum:
          - data_warehouse_person_property
        value:
          default: null
          title: Value
          anyOf:
          - items:
              anyOf:
              - type: string
              - type: number
              - type: boolean
            type: array
          - type: string
          - type: number
          - type: boolean
          nullable: true
      required:
      - key
      - operator
      title: DataWarehousePersonPropertyFilter
      type: object
    LogPropertyFilterType:
      enum:
      - log
      - log_attribute
      - log_resource_attribute
      title: LogPropertyFilterType
      type: string
    ElementPropertyFilter:
      additionalProperties: false
      properties:
        key:
          $ref: '#/components/schemas/Key10'
        label:
          default: null
          title: Label
          type: string
          nullable: true
        operator:
          $ref: '#/components/schemas/PropertyOperator'
        type:
          default: element
          title: Type
          type: string
          enum:
          - element
        value:
          default: null
          title: Value
          anyOf:
          - items:
              anyOf:
              - type: string
              - type: number
              - type: boolean
            type: array
          - type: string
          - type: number
          - type: boolean
          nullable: true
      required:
      - key
      - operator
      title: ElementPropertyFilter
      type: object
    MaterializationPreviewRequest:
      type: object
      properties:
        version:
          type: integer
        bucket_overrides:
          type: object
          additionalProperties:
            type: string
          nullable: true
          description: 'Per-column bucket function overrides, e.g. {"timestamp": "hour"}'
    GroupPropertyFilter:
      additionalProperties: false
      properties:
        group_key_names:
          default: null
          title: Group Key Names
          additionalProperties:
            type: string
          type: object
          nullable: true
        group_type_index:
          default: null
          title: Group Type Index
          type: integer
          nullable: true
        key:
          title: Key
          type: string
        label:
          default: null
          title: Label
          type: string
          nullable: true
        operator:
          $ref: '#/components/schemas/PropertyOperator'
        type:
          default: group
          title: Type
          type: string
          enum:
          - group
        value:
          default: null
          title: Value
          anyOf:
          - items:
              anyOf:
              - type: string
              - type: number
              - type: boolean
            type: array
          - type: string
          - type: number
          - type: boolean
          nullable: true
      required:
      - key
      - operator
      title: GroupPropertyFilter
      type: object
    RoleAtOrganizationEnum:
      enum:
      - engineering
      - data
      - product
      - founder
      - leadership
      - marketing
      - sales
      - other
      type: string
      description: '* `engineering` - Engineering

        * `data` - Data

        * `product` - Product Management

        * `founder` - Founder

        * `leadership` - Leadership

        * `marketing` - Marketing

        * `sales` - Sales / Success

        * `other` - Other'
    HogQLPropertyFilter:
      additionalProperties: false
      properties:
        key:
          title: Key
          type: string
        label:
          default: null
          title: Label
          type: string
          nullable: true
        type:
          default: hogql
          title: Type
          type: string
          enum:
          - hogql
        value:
          default: null
          title: Value
          anyOf:
          - items:
              anyOf:
              - type: string
              - type: number
              - type: boolean
            type: array
          - type: string
          - type: number
          - type: boolean
          nullable: true
      required:
      - key
      title: HogQLPropertyFilter
      type: object
    QueryStatusResponse:
      additionalProperties: false
      properties:
        query_status:
          $ref: '#/components/schemas/QueryStatus'
      required:
      - query_status
      title: QueryStatusResponse
      type: object
    EndpointRunResponse:
      type: object
      description: Response from executing an endpoint query.
      properties:
        name:
          type: string
          description: URL-safe endpoint name that was executed.
        results:
          type: array
          items: {}
          description: Query result rows. Each row is a list of values matching the columns order.
        columns:
          type: array
          items:
            type: string
          description: Column names from the query SELECT clause.
        hasMore:
          type: boolean
          description: Whether more results are available beyond the limit.
        endpoint_version:
          type: integer
          description: Version number of the endpoint that was executed.
      required:
      - name
    WorkflowVariablePropertyFilter:
      additionalProperties: false
      properties:
        key:
          title: Key
          type: string
        label:
          default: null
          title: Label
          type: string
          nullable: true
        operator:
          $ref: '#/components/schemas/PropertyOperator'
        type:
          default: workflow_variable
          title: Type
          type: string
          enum:
          - workflow_variable
        value:
          default: null
          title: Value
          anyOf:
          - items:
              anyOf:
              - type: string
              - type: number
              - type: boolean
            type: array
          - type: string
          - type: number
          - type: boolean
          nullable: true
      required:
      - key
      - operator
      title: WorkflowVariablePropertyFilter
      type: object
    NullEnum:
      enum:
      - null
    EndpointColumn:
      type: object
      description: A column in the endpoint's query result.
      properties:
        name:
          type: string
          description: Column name from the query SELECT clause.
        type:
          type: string
          description: 'Serialized column type: integer, float, string, datetime, date, boolean, array, json, or unknown.'
      required:
      - name
      - type
    QueryStatus:
      additionalProperties: false
      properties:
        complete:
          default: false
          description: Whethe

# --- truncated at 32 KB (75 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/posthog/refs/heads/main/openapi/posthog-endpoints-api-openapi.yml