PostHog · Capability

PostHog API

PostHog API API capability.

Run with Naftiko PosthogAPI

What You Can Do

GET
Code invites check access retrieve — Check access
/api/code/invites/check-access/
POST
Code invites redeem create — Redeem invite code
/api/code/invites/redeem/
GET
Environments alerts list — GET /api/environments/{environment_id}/alerts/
/api/environments/{environment_id}/alerts/
POST
Environments alerts create — POST /api/environments/{environment_id}/alerts/
/api/environments/{environment_id}/alerts/
GET
Environments alerts retrieve — GET /api/environments/{environment_id}/alerts/{id}/
/api/environments/{environment_id}/alerts/{id}/
PUT
Environments alerts update — PUT /api/environments/{environment_id}/alerts/{id}/
/api/environments/{environment_id}/alerts/{id}/
PATCH
Environments alerts partial update — PATCH /api/environments/{environment_id}/alerts/{id}/
/api/environments/{environment_id}/alerts/{id}/
DELETE
Environments alerts destroy — DELETE /api/environments/{environment_id}/alerts/{id}/
/api/environments/{environment_id}/alerts/{id}/
POST
Environments alerts simulate create — Simulate a detector on an insight's historical data. Read-only — no AlertCheck records are created.
/api/environments/{environment_id}/alerts/simulate/
GET
Environments batch exports list — GET /api/environments/{environment_id}/batch_exports/
/api/environments/{environment_id}/batch_exports/
POST
Environments batch exports create — POST /api/environments/{environment_id}/batch_exports/
/api/environments/{environment_id}/batch_exports/
GET
Environments batch exports backfills list — ViewSet for BatchExportBackfill models. Allows creating and reading backfills, but not updating or deleting them.
/api/environments/{environment_id}/batch_exports/{batch_export_id}/backfills/
POST
Environments batch exports backfills create — Create a new backfill for a BatchExport.
/api/environments/{environment_id}/batch_exports/{batch_export_id}/backfills/
GET
Environments batch exports backfills retrieve — ViewSet for BatchExportBackfill models. Allows creating and reading backfills, but not updating or deleting them.
/api/environments/{environment_id}/batch_exports/{batch_export_id}/backfills/{id}/
POST
Environments batch exports backfills cancel crea — Cancel a batch export backfill.
/api/environments/{environment_id}/batch_exports/{batch_export_id}/backfills/{id}/cancel/
GET
Environments batch exports runs list — GET /api/environments/{environment_id}/batch_exports/{batch_export_id}/runs/
/api/environments/{environment_id}/batch_exports/{batch_export_id}/runs/
GET
Environments batch exports runs retrieve — GET /api/environments/{environment_id}/batch_exports/{batch_export_id}/runs/{id}/
/api/environments/{environment_id}/batch_exports/{batch_export_id}/runs/{id}/
POST
Environments batch exports runs cancel create — Cancel a batch export run.
/api/environments/{environment_id}/batch_exports/{batch_export_id}/runs/{id}/cancel/
GET
Environments batch exports runs logs retrieve — GET /api/environments/{environment_id}/batch_exports/{batch_export_id}/runs/{id}/logs/
/api/environments/{environment_id}/batch_exports/{batch_export_id}/runs/{id}/logs/
POST
Environments batch exports runs retry create — Retry a batch export run. We use the same underlying mechanism as when backfilling a batch export, as retrying a run is the same as backfilling one run.
/api/environments/{environment_id}/batch_exports/{batch_export_id}/runs/{id}/retry/
GET
Environments batch exports retrieve — GET /api/environments/{environment_id}/batch_exports/{id}/
/api/environments/{environment_id}/batch_exports/{id}/
PUT
Environments batch exports update — PUT /api/environments/{environment_id}/batch_exports/{id}/
/api/environments/{environment_id}/batch_exports/{id}/
PATCH
Environments batch exports partial update — PATCH /api/environments/{environment_id}/batch_exports/{id}/
/api/environments/{environment_id}/batch_exports/{id}/
DELETE
Environments batch exports destroy — DELETE /api/environments/{environment_id}/batch_exports/{id}/
/api/environments/{environment_id}/batch_exports/{id}/
GET
Environments batch exports logs retrieve — GET /api/environments/{environment_id}/batch_exports/{id}/logs/
/api/environments/{environment_id}/batch_exports/{id}/logs/
POST
Environments batch exports pause create — Pause a BatchExport.
/api/environments/{environment_id}/batch_exports/{id}/pause/
POST
Environments batch exports run test step create — POST /api/environments/{environment_id}/batch_exports/{id}/run_test_step/
/api/environments/{environment_id}/batch_exports/{id}/run_test_step/
POST
Environments batch exports unpause create — Unpause a BatchExport.
/api/environments/{environment_id}/batch_exports/{id}/unpause/
POST
Environments batch exports run test step new cre — POST /api/environments/{environment_id}/batch_exports/run_test_step_new/
/api/environments/{environment_id}/batch_exports/run_test_step_new/
GET
Environments batch exports test retrieve — GET /api/environments/{environment_id}/batch_exports/test/
/api/environments/{environment_id}/batch_exports/test/
GET
Environments dashboards list — GET /api/environments/{environment_id}/dashboards/
/api/environments/{environment_id}/dashboards/
POST
Environments dashboards create — POST /api/environments/{environment_id}/dashboards/
/api/environments/{environment_id}/dashboards/
GET
Environments dashboards collaborators list — GET /api/environments/{environment_id}/dashboards/{dashboard_id}/collaborators/
/api/environments/{environment_id}/dashboards/{dashboard_id}/collaborators/
POST
Environments dashboards collaborators create — POST /api/environments/{environment_id}/dashboards/{dashboard_id}/collaborators/
/api/environments/{environment_id}/dashboards/{dashboard_id}/collaborators/
DELETE
Environments dashboards collaborators destroy — DELETE /api/environments/{environment_id}/dashboards/{dashboard_id}/collaborators/{user__uuid}/
/api/environments/{environment_id}/dashboards/{dashboard_id}/collaborators/{user__uuid}/
GET
Environments dashboards sharing list — GET /api/environments/{environment_id}/dashboards/{dashboard_id}/sharing/
/api/environments/{environment_id}/dashboards/{dashboard_id}/sharing/
POST
Environments dashboards sharing passwords create — Create a new password for the sharing configuration.
/api/environments/{environment_id}/dashboards/{dashboard_id}/sharing/passwords/
DELETE
Environments dashboards sharing passwords destro — Delete a password from the sharing configuration.
/api/environments/{environment_id}/dashboards/{dashboard_id}/sharing/passwords/{password_id}/
POST
Environments dashboards sharing refresh create — POST /api/environments/{environment_id}/dashboards/{dashboard_id}/sharing/refresh/
/api/environments/{environment_id}/dashboards/{dashboard_id}/sharing/refresh/
GET
Environments dashboards retrieve — GET /api/environments/{environment_id}/dashboards/{id}/
/api/environments/{environment_id}/dashboards/{id}/
PUT
Environments dashboards update — PUT /api/environments/{environment_id}/dashboards/{id}/
/api/environments/{environment_id}/dashboards/{id}/
PATCH
Environments dashboards partial update — PATCH /api/environments/{environment_id}/dashboards/{id}/
/api/environments/{environment_id}/dashboards/{id}/
DELETE
Environments dashboards destroy — Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
/api/environments/{environment_id}/dashboards/{id}/
POST
Environments dashboards analyze refresh result c — Generate AI analysis comparing before/after dashboard refresh. Expects cache_key in request body pointing to the stored 'before' state.
/api/environments/{environment_id}/dashboards/{id}/analyze_refresh_result/
POST
Environments dashboards copy tile create — Copy an existing dashboard tile to another dashboard (insight or text card; new tile row).
/api/environments/{environment_id}/dashboards/{id}/copy_tile/
PATCH
Environments dashboards move tile partial update — PATCH /api/environments/{environment_id}/dashboards/{id}/move_tile/
/api/environments/{environment_id}/dashboards/{id}/move_tile/
POST
Environments dashboards reorder tiles create — POST /api/environments/{environment_id}/dashboards/{id}/reorder_tiles/
/api/environments/{environment_id}/dashboards/{id}/reorder_tiles/
GET
Environments dashboards run insights retrieve — Run all insights on a dashboard and return their results.
/api/environments/{environment_id}/dashboards/{id}/run_insights/
POST
Environments dashboards snapshot create — Snapshot the current dashboard state (from cache) for AI analysis. Returns a cache_key representing the 'before' state, to be used with analyze_refresh_result.
/api/environments/{environment_id}/dashboards/{id}/snapshot/
GET
Environments dashboards stream tiles retrieve — Stream dashboard metadata and tiles via Server-Sent Events. Sends metadata first, then tiles as they are rendered.
/api/environments/{environment_id}/dashboards/{id}/stream_tiles/
POST
Environments dashboards bulk update tags create — Bulk update tags on multiple objects. Accepts: - {"ids": [...], "action": "add"|"remove"|"set", "tags": ["tag1", "tag2"]} Actions: - "add": Add tags to existing tags on each object - "remove": Remove specific tags from each object - "set":
/api/environments/{environment_id}/dashboards/bulk_update_tags/
POST
Environments dashboards create from template jso — POST /api/environments/{environment_id}/dashboards/create_from_template_json/
/api/environments/{environment_id}/dashboards/create_from_template_json/
POST
Environments dashboards create unlisted dashboar — Creates an unlisted dashboard from template by tag. Enforces uniqueness (one per tag per team). Returns 409 if unlisted dashboard with this tag already exists.
/api/environments/{environment_id}/dashboards/create_unlisted_dashboard/
GET
Environments data color themes list — GET /api/environments/{environment_id}/data_color_themes/
/api/environments/{environment_id}/data_color_themes/
POST
Environments data color themes create — POST /api/environments/{environment_id}/data_color_themes/
/api/environments/{environment_id}/data_color_themes/
GET
Environments data color themes retrieve — GET /api/environments/{environment_id}/data_color_themes/{id}/
/api/environments/{environment_id}/data_color_themes/{id}/
PUT
Environments data color themes update — PUT /api/environments/{environment_id}/data_color_themes/{id}/
/api/environments/{environment_id}/data_color_themes/{id}/
PATCH
Environments data color themes partial update — PATCH /api/environments/{environment_id}/data_color_themes/{id}/
/api/environments/{environment_id}/data_color_themes/{id}/
DELETE
Environments data color themes destroy — DELETE /api/environments/{environment_id}/data_color_themes/{id}/
/api/environments/{environment_id}/data_color_themes/{id}/
GET
Environments data modeling jobs list — List data modeling jobs which are "runs" for our saved queries.
/api/environments/{environment_id}/data_modeling_jobs/

MCP Tools

code-invites-check-access-retrieve

Check access

read-only idempotent
code-invites-redeem-create

Redeem invite code

environments-alerts-list

GET /api/environments/{environment_id}/alerts/

read-only idempotent
environments-alerts-create

POST /api/environments/{environment_id}/alerts/

environments-alerts-retrieve

GET /api/environments/{environment_id}/alerts/{id}/

read-only idempotent
environments-alerts-update

PUT /api/environments/{environment_id}/alerts/{id}/

idempotent
environments-alerts-partial-update

PATCH /api/environments/{environment_id}/alerts/{id}/

environments-alerts-destroy

DELETE /api/environments/{environment_id}/alerts/{id}/

idempotent
environments-alerts-simulate-create

Simulate a detector on an insight's historical data. Read-only — no AlertCheck records are created.

environments-batch-exports-list

GET /api/environments/{environment_id}/batch_exports/

read-only idempotent
environments-batch-exports-create

POST /api/environments/{environment_id}/batch_exports/

environments-batch-exports-backfills-list

ViewSet for BatchExportBackfill models. Allows creating and reading backfills, but not updating or deleting them.

read-only idempotent
environments-batch-exports-backfills-create

Create a new backfill for a BatchExport.

environments-batch-exports-backfills-retrieve

ViewSet for BatchExportBackfill models. Allows creating and reading backfills, but not updating or deleting them.

read-only idempotent
environments-batch-exports-backfills-cancel-crea

Cancel a batch export backfill.

environments-batch-exports-runs-list

GET /api/environments/{environment_id}/batch_exports/{batch_export_id}/runs/

read-only idempotent
environments-batch-exports-runs-retrieve

GET /api/environments/{environment_id}/batch_exports/{batch_export_id}/runs/{id}/

read-only idempotent
environments-batch-exports-runs-cancel-create

Cancel a batch export run.

environments-batch-exports-runs-logs-retrieve

GET /api/environments/{environment_id}/batch_exports/{batch_export_id}/runs/{id}/logs/

read-only idempotent
environments-batch-exports-runs-retry-create

Retry a batch export run. We use the same underlying mechanism as when backfilling a batch export, as retrying a run is the same as backfilling one run.

environments-batch-exports-retrieve

GET /api/environments/{environment_id}/batch_exports/{id}/

read-only idempotent
environments-batch-exports-update

PUT /api/environments/{environment_id}/batch_exports/{id}/

idempotent
environments-batch-exports-partial-update

PATCH /api/environments/{environment_id}/batch_exports/{id}/

environments-batch-exports-destroy

DELETE /api/environments/{environment_id}/batch_exports/{id}/

idempotent
environments-batch-exports-logs-retrieve

GET /api/environments/{environment_id}/batch_exports/{id}/logs/

read-only idempotent
environments-batch-exports-pause-create

Pause a BatchExport.

environments-batch-exports-run-test-step-create

POST /api/environments/{environment_id}/batch_exports/{id}/run_test_step/

environments-batch-exports-unpause-create

Unpause a BatchExport.

environments-batch-exports-run-test-step-new-cre

POST /api/environments/{environment_id}/batch_exports/run_test_step_new/

environments-batch-exports-test-retrieve

GET /api/environments/{environment_id}/batch_exports/test/

read-only idempotent
environments-dashboards-list

GET /api/environments/{environment_id}/dashboards/

read-only idempotent
environments-dashboards-create

POST /api/environments/{environment_id}/dashboards/

environments-dashboards-collaborators-list

GET /api/environments/{environment_id}/dashboards/{dashboard_id}/collaborators/

read-only idempotent
environments-dashboards-collaborators-create

POST /api/environments/{environment_id}/dashboards/{dashboard_id}/collaborators/

environments-dashboards-collaborators-destroy

DELETE /api/environments/{environment_id}/dashboards/{dashboard_id}/collaborators/{user__uuid}/

idempotent
environments-dashboards-sharing-list

GET /api/environments/{environment_id}/dashboards/{dashboard_id}/sharing/

read-only idempotent
environments-dashboards-sharing-passwords-create

Create a new password for the sharing configuration.

environments-dashboards-sharing-passwords-destro

Delete a password from the sharing configuration.

idempotent
environments-dashboards-sharing-refresh-create

POST /api/environments/{environment_id}/dashboards/{dashboard_id}/sharing/refresh/

environments-dashboards-retrieve

GET /api/environments/{environment_id}/dashboards/{id}/

read-only idempotent
environments-dashboards-update

PUT /api/environments/{environment_id}/dashboards/{id}/

idempotent
environments-dashboards-partial-update

PATCH /api/environments/{environment_id}/dashboards/{id}/

environments-dashboards-destroy

Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true

idempotent
environments-dashboards-analyze-refresh-result-c

Generate AI analysis comparing before/after dashboard refresh. Expects cache_key in request body pointing to the stored 'before' state.

environments-dashboards-copy-tile-create

Copy an existing dashboard tile to another dashboard (insight or text card; new tile row).

environments-dashboards-move-tile-partial-update

PATCH /api/environments/{environment_id}/dashboards/{id}/move_tile/

environments-dashboards-reorder-tiles-create

POST /api/environments/{environment_id}/dashboards/{id}/reorder_tiles/

environments-dashboards-run-insights-retrieve

Run all insights on a dashboard and return their results.

read-only idempotent
environments-dashboards-snapshot-create

Snapshot the current dashboard state (from cache) for AI analysis. Returns a cache_key representing the 'before' state, to be used with analyze_refresh_result.

environments-dashboards-stream-tiles-retrieve

Stream dashboard metadata and tiles via Server-Sent Events. Sends metadata first, then tiles as they are rendered.

read-only idempotent
environments-dashboards-bulk-update-tags-create

Bulk update tags on multiple objects. Accepts: - {"ids": [...], "action": "add"|"remove"|"set", "tags": ["tag1", "tag2"]} Actions: - "add": Add tags to existing tags on each object - "remove": Remove specific tags from each object - "set":

environments-dashboards-create-from-template-jso

POST /api/environments/{environment_id}/dashboards/create_from_template_json/

environments-dashboards-create-unlisted-dashboar

Creates an unlisted dashboard from template by tag. Enforces uniqueness (one per tag per team). Returns 409 if unlisted dashboard with this tag already exists.

environments-data-color-themes-list

GET /api/environments/{environment_id}/data_color_themes/

read-only idempotent
environments-data-color-themes-create

POST /api/environments/{environment_id}/data_color_themes/

environments-data-color-themes-retrieve

GET /api/environments/{environment_id}/data_color_themes/{id}/

read-only idempotent
environments-data-color-themes-update

PUT /api/environments/{environment_id}/data_color_themes/{id}/

idempotent
environments-data-color-themes-partial-update

PATCH /api/environments/{environment_id}/data_color_themes/{id}/

environments-data-color-themes-destroy

DELETE /api/environments/{environment_id}/data_color_themes/{id}/

idempotent
environments-data-modeling-jobs-list

List data modeling jobs which are "runs" for our saved queries.

read-only idempotent

Capability Spec

posthog-capability.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: PostHog API
  description: PostHog API API capability.
  tags:
  - Posthog
  - API
  created: '2026-05-06'
  modified: '2026-05-06'
capability:
  consumes:
  - type: http
    namespace: posthog
    baseUri: https://api.example.com
    description: PostHog API HTTP API.
    authentication:
      type: bearer
      token: '{{POSTHOG_TOKEN}}'
    resources:
    - name: api-code-invites-check-access
      path: /api/code/invites/check-access/
      operations:
      - name: code-invites-check-access-retrieve
        method: GET
        description: Check access
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-code-invites-redeem
      path: /api/code/invites/redeem/
      operations:
      - name: code-invites-redeem-create
        method: POST
        description: Redeem invite code
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-alerts
      path: /api/environments/{environment_id}/alerts/
      operations:
      - name: environments-alerts-list
        method: GET
        description: GET /api/environments/{environment_id}/alerts/
        inputParameters:
        - name: limit
          in: query
          type: integer
          description: Number of results to return per page.
        - name: offset
          in: query
          type: integer
          description: The initial index from which to return the results.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: environments-alerts-create
        method: POST
        description: POST /api/environments/{environment_id}/alerts/
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-alerts-id
      path: /api/environments/{environment_id}/alerts/{id}/
      operations:
      - name: environments-alerts-retrieve
        method: GET
        description: GET /api/environments/{environment_id}/alerts/{id}/
        inputParameters:
        - name: checks_date_from
          in: query
          type: string
          description: Relative date string for the start of the check history window (e.g. '-24h', '-7d', '-14d'). Returns
            checks created after this time. Max retention is 14 days.
        - name: checks_date_to
          in: query
          type: string
          description: Relative date string for the end of the check history window (e.g. '-1h', '-1d'). Defaults to now if
            not specified.
        - name: checks_limit
          in: query
          type: integer
          description: Maximum number of check results to return (default 5, max 500). Applied after date filtering.
        - name: checks_offset
          in: query
          type: integer
          description: Number of newest checks to skip (0-based). Use with checks_limit for pagination. Default 0.
        - name: id
          in: path
          type: string
          required: true
          description: A UUID string identifying this alert configuration.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: environments-alerts-update
        method: PUT
        description: PUT /api/environments/{environment_id}/alerts/{id}/
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
          description: A UUID string identifying this alert configuration.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: environments-alerts-partial-update
        method: PATCH
        description: PATCH /api/environments/{environment_id}/alerts/{id}/
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
          description: A UUID string identifying this alert configuration.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: environments-alerts-destroy
        method: DELETE
        description: DELETE /api/environments/{environment_id}/alerts/{id}/
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
          description: A UUID string identifying this alert configuration.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-alerts-simulate
      path: /api/environments/{environment_id}/alerts/simulate/
      operations:
      - name: environments-alerts-simulate-create
        method: POST
        description: Simulate a detector on an insight's historical data. Read-only — no AlertCheck records are created.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-batch-exports
      path: /api/environments/{environment_id}/batch_exports/
      operations:
      - name: environments-batch-exports-list
        method: GET
        description: GET /api/environments/{environment_id}/batch_exports/
        inputParameters:
        - name: limit
          in: query
          type: integer
          description: Number of results to return per page.
        - name: offset
          in: query
          type: integer
          description: The initial index from which to return the results.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: environments-batch-exports-create
        method: POST
        description: POST /api/environments/{environment_id}/batch_exports/
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-batch-exports-ba
      path: /api/environments/{environment_id}/batch_exports/{batch_export_id}/backfills/
      operations:
      - name: environments-batch-exports-backfills-list
        method: GET
        description: ViewSet for BatchExportBackfill models. Allows creating and reading backfills, but not updating or deleting
          them.
        inputParameters:
        - name: batch_export_id
          in: path
          type: string
          required: true
        - name: cursor
          in: query
          type: string
          description: The pagination cursor value.
        - name: ordering
          in: query
          type: string
          description: Which field to use when ordering the results.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: environments-batch-exports-backfills-create
        method: POST
        description: Create a new backfill for a BatchExport.
        inputParameters:
        - name: batch_export_id
          in: path
          type: string
          required: true
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-batch-exports-ba
      path: /api/environments/{environment_id}/batch_exports/{batch_export_id}/backfills/{id}/
      operations:
      - name: environments-batch-exports-backfills-retrieve
        method: GET
        description: ViewSet for BatchExportBackfill models. Allows creating and reading backfills, but not updating or deleting
          them.
        inputParameters:
        - name: batch_export_id
          in: path
          type: string
          required: true
        - name: id
          in: path
          type: string
          required: true
          description: A UUID string identifying this batch export backfill.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-batch-exports-ba
      path: /api/environments/{environment_id}/batch_exports/{batch_export_id}/backfills/{id}/cancel/
      operations:
      - name: environments-batch-exports-backfills-cancel-crea
        method: POST
        description: Cancel a batch export backfill.
        inputParameters:
        - name: batch_export_id
          in: path
          type: string
          required: true
        - name: id
          in: path
          type: string
          required: true
          description: A UUID string identifying this batch export backfill.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-batch-exports-ba
      path: /api/environments/{environment_id}/batch_exports/{batch_export_id}/runs/
      operations:
      - name: environments-batch-exports-runs-list
        method: GET
        description: GET /api/environments/{environment_id}/batch_exports/{batch_export_id}/runs/
        inputParameters:
        - name: batch_export_id
          in: path
          type: string
          required: true
        - name: cursor
          in: query
          type: string
          description: The pagination cursor value.
        - name: ordering
          in: query
          type: string
          description: Which field to use when ordering the results.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-batch-exports-ba
      path: /api/environments/{environment_id}/batch_exports/{batch_export_id}/runs/{id}/
      operations:
      - name: environments-batch-exports-runs-retrieve
        method: GET
        description: GET /api/environments/{environment_id}/batch_exports/{batch_export_id}/runs/{id}/
        inputParameters:
        - name: batch_export_id
          in: path
          type: string
          required: true
        - name: id
          in: path
          type: string
          required: true
          description: A UUID string identifying this batch export run.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-batch-exports-ba
      path: /api/environments/{environment_id}/batch_exports/{batch_export_id}/runs/{id}/cancel/
      operations:
      - name: environments-batch-exports-runs-cancel-create
        method: POST
        description: Cancel a batch export run.
        inputParameters:
        - name: batch_export_id
          in: path
          type: string
          required: true
        - name: id
          in: path
          type: string
          required: true
          description: A UUID string identifying this batch export run.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-batch-exports-ba
      path: /api/environments/{environment_id}/batch_exports/{batch_export_id}/runs/{id}/logs/
      operations:
      - name: environments-batch-exports-runs-logs-retrieve
        method: GET
        description: GET /api/environments/{environment_id}/batch_exports/{batch_export_id}/runs/{id}/logs/
        inputParameters:
        - name: after
          in: query
          type: string
          description: Only return entries after this ISO 8601 timestamp.
        - name: batch_export_id
          in: path
          type: string
          required: true
        - name: before
          in: query
          type: string
          description: Only return entries before this ISO 8601 timestamp.
        - name: id
          in: path
          type: string
          required: true
          description: A UUID string identifying this batch export run.
        - name: instance_id
          in: query
          type: string
          description: Filter logs to a specific execution instance.
        - name: level
          in: query
          type: string
          description: 'Comma-separated log levels to include, e.g. ''WARN,ERROR''. Valid levels: DEBUG, LOG, INFO, WARN,
            ERROR.'
        - name: limit
          in: query
          type: integer
          description: Maximum number of log entries to return (1-500, default 50).
        - name: search
          in: query
          type: string
          description: Case-insensitive substring search across log messages.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-batch-exports-ba
      path: /api/environments/{environment_id}/batch_exports/{batch_export_id}/runs/{id}/retry/
      operations:
      - name: environments-batch-exports-runs-retry-create
        method: POST
        description: Retry a batch export run. We use the same underlying mechanism as when backfilling a batch export, as
          retrying a run is the same as backfilling one run.
        inputParameters:
        - name: batch_export_id
          in: path
          type: string
          required: true
        - name: id
          in: path
          type: string
          required: true
          description: A UUID string identifying this batch export run.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-batch-exports-id
      path: /api/environments/{environment_id}/batch_exports/{id}/
      operations:
      - name: environments-batch-exports-retrieve
        method: GET
        description: GET /api/environments/{environment_id}/batch_exports/{id}/
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
          description: A UUID string identifying this batch export.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: environments-batch-exports-update
        method: PUT
        description: PUT /api/environments/{environment_id}/batch_exports/{id}/
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
          description: A UUID string identifying this batch export.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: environments-batch-exports-partial-update
        method: PATCH
        description: PATCH /api/environments/{environment_id}/batch_exports/{id}/
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
          description: A UUID string identifying this batch export.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: environments-batch-exports-destroy
        method: DELETE
        description: DELETE /api/environments/{environment_id}/batch_exports/{id}/
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
          description: A UUID string identifying this batch export.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-batch-exports-id
      path: /api/environments/{environment_id}/batch_exports/{id}/logs/
      operations:
      - name: environments-batch-exports-logs-retrieve
        method: GET
        description: GET /api/environments/{environment_id}/batch_exports/{id}/logs/
        inputParameters:
        - name: after
          in: query
          type: string
          description: Only return entries after this ISO 8601 timestamp.
        - name: before
          in: query
          type: string
          description: Only return entries before this ISO 8601 timestamp.
        - name: id
          in: path
          type: string
          required: true
          description: A UUID string identifying this batch export.
        - name: instance_id
          in: query
          type: string
          description: Filter logs to a specific execution instance.
        - name: level
          in: query
          type: string
          description: 'Comma-separated log levels to include, e.g. ''WARN,ERROR''. Valid levels: DEBUG, LOG, INFO, WARN,
            ERROR.'
        - name: limit
          in: query
          type: integer
          description: Maximum number of log entries to return (1-500, default 50).
        - name: search
          in: query
          type: string
          description: Case-insensitive substring search across log messages.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-batch-exports-id
      path: /api/environments/{environment_id}/batch_exports/{id}/pause/
      operations:
      - name: environments-batch-exports-pause-create
        method: POST
        description: Pause a BatchExport.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
          description: A UUID string identifying this batch export.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-batch-exports-id
      path: /api/environments/{environment_id}/batch_exports/{id}/run_test_step/
      operations:
      - name: environments-batch-exports-run-test-step-create
        method: POST
        description: POST /api/environments/{environment_id}/batch_exports/{id}/run_test_step/
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
          description: A UUID string identifying this batch export.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-batch-exports-id
      path: /api/environments/{environment_id}/batch_exports/{id}/unpause/
      operations:
      - name: environments-batch-exports-unpause-create
        method: POST
        description: Unpause a BatchExport.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
          description: A UUID string identifying this batch export.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-batch-exports-ru
      path: /api/environments/{environment_id}/batch_exports/run_test_step_new/
      operations:
      - name: environments-batch-exports-run-test-step-new-cre
        method: POST
        description: POST /api/environments/{environment_id}/batch_exports/run_test_step_new/
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-batch-exports-te
      path: /api/environments/{environment_id}/batch_exports/test/
      operations:
      - name: environments-batch-exports-test-retrieve
        method: GET
        description: GET /api/environments/{environment_id}/batch_exports/test/
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-dashboards
      path: /api/environments/{environment_id}/dashboards/
      operations:
      - name: environments-dashboards-list
        method: GET
        description: GET /api/environments/{environment_id}/dashboards/
        inputParameters:
        - name: format
          in: query
          type: string
        - name: limit
          in: query
          type: integer
          description: Number of results to return per page.
        - name: offset
          in: query
          type: integer
          description: The initial index from which to return the results.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: environments-dashboards-create
        method: POST
        description: POST /api/environments/{environment_id}/dashboards/
        inputParameters:
        - name: format
          in: query
          type: string
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-dashboards-dashb
      path: /api/environments/{environment_id}/dashboards/{dashboard_id}/collaborators/
      operations:
      - name: environments-dashboards-collaborators-list
        method: GET
        description: GET /api/environments/{environment_id}/dashboards/{dashboard_id}/collaborators/
        inputParameters:
        - name: dashboard_id
          in: path
          type: integer
          required: true
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: environments-dashboards-collaborators-create
        method: POST
        description: POST /api/environments/{environment_id}/dashboards/{dashboard_id}/collaborators/
        inputParameters:
        - name: dashboard_id
          in: path
          type: integer
          required: true
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-dashboards-dashb
      path: /api/environments/{environment_id}/dashboards/{dashboard_id}/collaborators/{user__uuid}/
      operations:
      - name: environments-dashboards-collaborators-destroy
        method: DELETE
        description: DELETE /api/environments/{environment_id}/dashboards/{dashboard_id}/collaborators/{user__uuid}/
        inputParameters:
        - name: dashboard_id
          in: path
          type: integer
          required: true
        - name: user__uuid
          in: path
          type: string
          required: true
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-dashboards-dashb
      path: /api/environments/{environment_id}/dashboards/{dashboard_id}/sharing/
      operations:
      - name: environments-dashboards-sharing-list
        method: GET
        description: GET /api/environments/{environment_id}/dashboards/{dashboard_id}/sharing/
        inputParameters:
        - name: dashboard_id
          in: path
          type: integer
          required: true
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-dashboards-dashb
      path: /api/environments/{environment_id}/dashboards/{dashboard_id}/sharing/passwords/
      operations:
      - name: environments-dashboards-sharing-passwords-create
        method: POST
        description: Create a new password for the sharing configuration.
        inputParameters:
        - name: dashboard_id
          in: path
          type: integer
          required: true
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-dashboards-dashb
      path: /api/environments/{environment_id}/dashboards/{dashboard_id}/sharing/passwords/{password_id}/
      operations:
      - name: environments-dashboards-sharing-passwords-destro
        method: DELETE
        description: Delete a password from the sharing configuration.
        inputParameters:
        - name: dashboard_id
          in: path
          type: integer
          required: true
        - name: password_id
          in: path
          type: string
          required: true
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-dashboards-dashb
      path: /api/environments/{environment_id}/dashboards/{dashboard_id}/sharing/refresh/
      operations:
      - name: environments-dashboards-sharing-refresh-create
        method: POST
        description: POST /api/environments/{environment_id}/dashboards/{dashboard_id}/sharing/refresh/
        inputParameters:
        - name: dashboard_id
          in: path
          type: integer
          required: true
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-dashboards-id
      path: /api/environments/{environment_id}/dashboards/{id}/
      operations:
      - name: environments-dashboards-retrieve
        method: GET
        description: GET /api/environments/{environment_id}/dashboards/{id}/
        inputParameters:
        - name: filters_override
          in: query
          type: string
          description: JSON object to override dashboard filters for this request only (not persisted). Top-level keys replace;
            nested values are not deep-merged — pass the complete v
        - name: format
          in: query
          type: string
        - name: id
          in: path
          type: integer
          required: true
          description: A unique integer value identifying this dashboard.
        - name: variables_override
          in: query
          type: string
          description: 'JSON object to override dashboard variables for this request only (not persisted). Format: {"<variable_id>":
            {"code_name": "<code_name>", "variableId": "<variab'
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: environments-dashboards-update
        method: PUT
        description: PUT /api/environments/{environment_id}/dashboards/{id}/
        inputParameters:
        - name: format
          in: query
          type: string
        - name: id
          in: path
          type: integer
          required: true
          description: A unique integer value identifying this dashboard.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: environments-dashboards-partial-update
        method: PATCH
        description: PATCH /api/environments/{environment_id}/dashboards/{id}/
        inputParameters:
        - name: format
          in: query
          type: string
        - name: id
          in: path
          type: integer
          required: true
          description: A unique integer value identifying this dashboard.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: environments-dashboards-destroy
        method: DELETE
        description: Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
        inputParameters:
        - name: format
          in: query
          type: string
        - name: id
          in: path
          type: integer
          required: true
          description: A unique integer value identifying this dashboard.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-dashboards-id-an
      path: /api/environments/{environment_id}/dashboards/{id}/analyze_refresh_result/
      operations:
      - name: environments-dashboards-analyze-refresh-result-c
        method: POST
        description: Generate AI analysis comparing before/after dashboard refresh. Expects cache_key in request body pointing
          to the stored 'before' state.
        inputParameters:
        - name: format
          in: query
          type: string
        - name: id
          in: path
          type: integer
          required: true
          description: A unique integer value identifying this dashboard.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-dashboards-id-co
      path: /api/environments/{environment_id}/dashboards/{id}/copy_tile/
      operations:
      - name: environments-dashboards-copy-tile-create
        method: POST
        description: Copy an existing dashboard tile to another dashboard (insight or text card; new tile row).
        inputParameters:
        - name: format
          in: query
          type: string
        - name: id
          in: path
          type: integer
          required: true
          description: A unique integer value identifying this dashboard.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-dashboards-id-mo
      path: /api/environments/{environment_id}/dashboards/{id}/move_tile/
      operations:
      - name: environments-dashboards-move-tile-partial-update
        method: PATCH
        description: PATCH /api/environments/{environment_id}/dashboards/{id}/move_tile/
        inputParameters:
        - name: format
          in: query
          type: string
        - name: id
          in: path
          type: integer
          required: true
          description: A unique integer value identifying this dashboard.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-dashboards-id-re
      path: /api/environments/{environment_id}/dashboards/{id}/reorder_tiles/
      operations:
      - name: environments-dashboards-reorder-tiles-create
        method: POST
        description: POST /api/environments/{environment_id}/dashboards/{id}/reorder_tiles/
        inputParameters:
        - name: format
          in: query
          type: string
        - name: id
          in: path
          type: integer
          required: true
          description: A unique integer value identifying this dashboard.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-dashboards-id-ru
      path: /api/environments/{environment_id}/dashboards/{id}/run_insights/
      operations:
      - name: environments-dashboards-run-insights-retrieve
        method: GET
        description: Run all insights on a dashboard and return their results.
        inputParameters:
        - name: filters_override
          in: query
          type: string
          description: JSON object to override dashboard filters for this request only (not persisted). Top-level keys replace;
            nested values are not deep-merged — pass the complete v
        - name: format
          in: query
          type: string
        - name: id
          in: path
          type: integer
          required: true
          description: A unique integer value identifying this dashboard.
        - name: output_format
          in: query
          type: string
          description: '''optimized'' (default) returns LLM-friendly formatted text per insight. ''json'' returns the raw
            query result objects.'
        - name: refresh
          in: query
          type: string
          description: Cache behavior. 'force_cache' (default) serves from cache even if stale. 'blocking' uses cache if fresh,
            otherwise recalculates. 'force_blocking' always recalcu
        - name: variables_override
          in: query
          type: string
          description: 'JSON object to override dashboard variables for this request only (not persisted). Format: {"<variable_id>":
            {"code_name": "<code_name>", "variableId": "<variab'
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment-id-dashboards-id-sn
      path: /api/environments

# --- truncated at 32 KB (107 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/posthog/refs/heads/main/capabilities/posthog-capability.yaml