PostHog endpoints API

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

Operations 26

GET /api/environments/{environment_id}/endpoints/ #
POST /api/environments/{environment_id}/endpoints/ #
GET /api/environments/{environment_id}/endpoints/{name}/ #
PUT /api/environments/{environment_id}/endpoints/{name}/ #
PATCH /api/environments/{environment_id}/endpoints/{name}/ #
DELETE /api/environments/{environment_id}/endpoints/{name}/ #
POST /api/environments/{environment_id}/endpoints/{name}/materialization_preview/ #
GET /api/environments/{environment_id}/endpoints/{name}/materialization_status/ #
GET /api/environments/{environment_id}/endpoints/{name}/openapi.json/ #
GET /api/environments/{environment_id}/endpoints/{name}/run/ #
POST /api/environments/{environment_id}/endpoints/{name}/run/ #
GET /api/environments/{environment_id}/endpoints/{name}/versions/ #
POST /api/environments/{environment_id}/endpoints/last_execution_times/ #
GET /api/projects/{project_id}/endpoints/ #
POST /api/projects/{project_id}/endpoints/ #
GET /api/projects/{project_id}/endpoints/{name}/ #
PUT /api/projects/{project_id}/endpoints/{name}/ #
PATCH /api/projects/{project_id}/endpoints/{name}/ #
DELETE /api/projects/{project_id}/endpoints/{name}/ #
POST /api/projects/{project_id}/endpoints/{name}/materialization_preview/ #
GET /api/projects/{project_id}/endpoints/{name}/materialization_status/ #
GET /api/projects/{project_id}/endpoints/{name}/openapi.json/ #
GET /api/projects/{project_id}/endpoints/{name}/run/ #
POST /api/projects/{project_id}/endpoints/{name}/run/ #
GET /api/projects/{project_id}/endpoints/{name}/versions/ #
POST /api/projects/{project_id}/endpoints/last_execution_times/ #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/posthog-endpoints-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

posthog-endpoints-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PostHog actions Endpoints API
  version: 1.0.0
  description: ''
servers:
- url: https://app.posthog.com/api
  description: Base URL declared by the provider in apis.yml (roadmap#122).
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:
    Breakdown:
      additionalProperties: false
      properties:
        group_type_index:
          default: null
          title: Group Type Index
          type:
          - integer
          - 'null'
        histogram_bin_count:
          default: null
          title: Histogram Bin Count
          type:
          - integer
          - 'null'
        normalize_url:
          default: null
          title: Normalize Url
          type:
          - boolean
          - 'null'
        property:
          anyOf:
          - type: string
          - type: integer
          title: Property
        type:
          default: null
          allOf:
          - $ref: '#/components/schemas/MultipleBreakdownType'
      required:
      - property
      title: Breakdown
      type: object
    NullEnum:
      enum:
      - null
    QueryStatus:
      additionalProperties: false
      properties:
        complete:
          default: false
          description: Whether the query is still running. Will be true if the query is complete, even if it errored. Either result or error will be set.
          title: Complete
          type:
          - boolean
          - 'null'
        dashboard_id:
          default: null
          title: Dashboard Id
          type:
          - integer
          - 'null'
        end_time:
          default: null
          description: When did the query execution task finish (whether successfully or not).
          title: End Time
          format: date-time
          type:
          - string
          - 'null'
        error:
          default: false
          description: If the query failed, this will be set to true. More information can be found in the error_message field.
          title: Error
          type:
          - boolean
          - 'null'
        error_message:
          default: null
          title: Error Message
          type:
          - string
          - 'null'
        expiration_time:
          default: null
          title: Expiration Time
          format: date-time
          type:
          - string
          - 'null'
        id:
          title: Id
          type: string
        insight_id:
          default: null
          title: Insight Id
          type:
          - integer
          - 'null'
        labels:
          default: null
          title: Labels
          items:
            type: string
          type:
          - array
          - 'null'
        pickup_time:
          default: null
          description: When was the query execution task picked up by a worker.
          title: Pickup Time
          format: date-time
          type:
          - string
          - 'null'
        query_async:
          default: true
          description: ONLY async queries use QueryStatus.
          title: Query Async
          type: boolean
          enum:
          - true
        query_progress:
          default: null
          allOf:
          - $ref: '#/components/schemas/ClickhouseQueryProgress'
        results:
          default: null
          title: Results
        start_time:
          default: null
          description: When was query execution task enqueued.
          title: Start Time
          format: date-time
          type:
          - string
          - 'null'
        task_id:
          default: null
          title: Task Id
          type:
          - string
          - 'null'
        team_id:
          title: Team Id
          type: integer
      required:
      - id
      - team_id
      title: QueryStatus
      type: object
    HogQLPropertyFilter:
      additionalProperties: false
      properties:
        key:
          title: Key
          type: string
        label:
          default: null
          title: Label
          type:
          - string
          - 'null'
        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
      required:
      - key
      title: HogQLPropertyFilter
      type: object
    GroupPropertyFilter:
      additionalProperties: false
      properties:
        group_key_names:
          default: null
          title: Group Key Names
          additionalProperties:
            type: string
          type:
          - object
          - 'null'
        group_type_index:
          default: null
          title: Group Type Index
          type:
          - integer
          - 'null'
        key:
          title: Key
          type: string
        label:
          default: null
          title: Label
          type:
          - string
          - 'null'
        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
      required:
      - key
      - operator
      title: GroupPropertyFilter
      type: object
    LogEntryPropertyFilter:
      additionalProperties: false
      properties:
        key:
          title: Key
          type: string
        label:
          default: null
          title: Label
          type:
          - string
          - 'null'
        operator:
          $ref: '#/components/schemas/PropertyOperator'
        type:
          default: log_entry
          title: Type
          type: string
          enum:
          - log_entry
        value:
          default: null
          title: Value
          anyOf:
          - items:
              anyOf:
              - type: string
              - type: number
              - type: boolean
            type: array
          - type: string
          - type: number
          - type: boolean
      required:
      - key
      - operator
      title: LogEntryPropertyFilter
      type: object
    ElementPropertyFilter:
      additionalProperties: false
      properties:
        key:
          $ref: '#/components/schemas/Key10'
        label:
          default: null
          title: Label
          type:
          - string
          - 'null'
        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
      required:
      - key
      - operator
      title: ElementPropertyFilte

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