PostHog · Capability

PostHog API — insight_variables

PostHog API — insight_variables. 12 operations. Lead operation: insight_variables. Self-contained Naftiko capability covering one Posthog business surface.

Run with Naftiko Posthoginsight_variables

What You Can Do

GET
Environmentsinsightvariableslist — environmentsinsightvariableslist
/v1/api/environments/{environment-id}/insight-variables
POST
Environmentsinsightvariablescreate — environmentsinsightvariablescreate
/v1/api/environments/{environment-id}/insight-variables
GET
Environmentsinsightvariablesretrieve — environmentsinsightvariablesretrieve
/v1/api/environments/{environment-id}/insight-variables/{id}
PUT
Environmentsinsightvariablesupdate — environmentsinsightvariablesupdate
/v1/api/environments/{environment-id}/insight-variables/{id}
PATCH
Environmentsinsightvariablespartialupdate — environmentsinsightvariablespartialupdate
/v1/api/environments/{environment-id}/insight-variables/{id}
DELETE
Environmentsinsightvariablesdestroy — environmentsinsightvariablesdestroy
/v1/api/environments/{environment-id}/insight-variables/{id}
GET
Insightvariableslist — insightvariableslist
/v1/api/projects/{project-id}/insight-variables
POST
Insightvariablescreate — insightvariablescreate
/v1/api/projects/{project-id}/insight-variables
GET
Insightvariablesretrieve — insightvariablesretrieve
/v1/api/projects/{project-id}/insight-variables/{id}
PUT
Insightvariablesupdate — insightvariablesupdate
/v1/api/projects/{project-id}/insight-variables/{id}
PATCH
Insightvariablespartialupdate — insightvariablespartialupdate
/v1/api/projects/{project-id}/insight-variables/{id}
DELETE
Insightvariablesdestroy — insightvariablesdestroy
/v1/api/projects/{project-id}/insight-variables/{id}

MCP Tools

environmentsinsightvariableslist

environmentsinsightvariableslist

read-only idempotent
environmentsinsightvariablescreate

environmentsinsightvariablescreate

environmentsinsightvariablesretrieve

environmentsinsightvariablesretrieve

read-only idempotent
environmentsinsightvariablesupdate

environmentsinsightvariablesupdate

idempotent
environmentsinsightvariablespartialupdate

environmentsinsightvariablespartialupdate

idempotent
environmentsinsightvariablesdestroy

environmentsinsightvariablesdestroy

idempotent
insightvariableslist

insightvariableslist

read-only idempotent
insightvariablescreate

insightvariablescreate

insightvariablesretrieve

insightvariablesretrieve

read-only idempotent
insightvariablesupdate

insightvariablesupdate

idempotent
insightvariablespartialupdate

insightvariablespartialupdate

idempotent
insightvariablesdestroy

insightvariablesdestroy

idempotent

Capability Spec

posthog-insight-variables.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: PostHog API — insight_variables
  description: 'PostHog API — insight_variables. 12 operations. Lead operation: insight_variables. Self-contained Naftiko
    capability covering one Posthog business surface.'
  tags:
  - Posthog
  - insight_variables
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    POSTHOG_API_KEY: POSTHOG_API_KEY
capability:
  consumes:
  - type: http
    namespace: posthog-insight-variables
    baseUri: ''
    description: PostHog API — insight_variables business capability. Self-contained, no shared references.
    resources:
    - name: api-environments-environment_id-insight_variables
      path: /api/environments/{environment_id}/insight_variables/
      operations:
      - name: environmentsinsightvariableslist
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page
          in: query
          type: integer
          description: A page number within the paginated result set.
      - name: environmentsinsightvariablescreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-environments-environment_id-insight_variables-id
      path: /api/environments/{environment_id}/insight_variables/{id}/
      operations:
      - name: environmentsinsightvariablesretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this insight variable.
          required: true
      - name: environmentsinsightvariablesupdate
        method: PUT
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this insight variable.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: environmentsinsightvariablespartialupdate
        method: PATCH
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this insight variable.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: environmentsinsightvariablesdestroy
        method: DELETE
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this insight variable.
          required: true
    - name: api-projects-project_id-insight_variables
      path: /api/projects/{project_id}/insight_variables/
      operations:
      - name: insightvariableslist
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page
          in: query
          type: integer
          description: A page number within the paginated result set.
      - name: insightvariablescreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-projects-project_id-insight_variables-id
      path: /api/projects/{project_id}/insight_variables/{id}/
      operations:
      - name: insightvariablesretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this insight variable.
          required: true
      - name: insightvariablesupdate
        method: PUT
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this insight variable.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: insightvariablespartialupdate
        method: PATCH
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this insight variable.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: insightvariablesdestroy
        method: DELETE
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this insight variable.
          required: true
    authentication:
      type: bearer
      token: '{{env.POSTHOG_API_KEY}}'
  exposes:
  - type: rest
    namespace: posthog-insight-variables-rest
    port: 8080
    description: REST adapter for PostHog API — insight_variables. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/environments/{environment-id}/insight-variables
      name: api-environments-environment-id-insight-variables
      description: REST surface for api-environments-environment_id-insight_variables.
      operations:
      - method: GET
        name: environmentsinsightvariableslist
        description: environmentsinsightvariableslist
        call: posthog-insight-variables.environmentsinsightvariableslist
        with:
          page: rest.page
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: environmentsinsightvariablescreate
        description: environmentsinsightvariablescreate
        call: posthog-insight-variables.environmentsinsightvariablescreate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/environments/{environment-id}/insight-variables/{id}
      name: api-environments-environment-id-insight-variables-id
      description: REST surface for api-environments-environment_id-insight_variables-id.
      operations:
      - method: GET
        name: environmentsinsightvariablesretrieve
        description: environmentsinsightvariablesretrieve
        call: posthog-insight-variables.environmentsinsightvariablesretrieve
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: environmentsinsightvariablesupdate
        description: environmentsinsightvariablesupdate
        call: posthog-insight-variables.environmentsinsightvariablesupdate
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: environmentsinsightvariablespartialupdate
        description: environmentsinsightvariablespartialupdate
        call: posthog-insight-variables.environmentsinsightvariablespartialupdate
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: environmentsinsightvariablesdestroy
        description: environmentsinsightvariablesdestroy
        call: posthog-insight-variables.environmentsinsightvariablesdestroy
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/projects/{project-id}/insight-variables
      name: api-projects-project-id-insight-variables
      description: REST surface for api-projects-project_id-insight_variables.
      operations:
      - method: GET
        name: insightvariableslist
        description: insightvariableslist
        call: posthog-insight-variables.insightvariableslist
        with:
          page: rest.page
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: insightvariablescreate
        description: insightvariablescreate
        call: posthog-insight-variables.insightvariablescreate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/projects/{project-id}/insight-variables/{id}
      name: api-projects-project-id-insight-variables-id
      description: REST surface for api-projects-project_id-insight_variables-id.
      operations:
      - method: GET
        name: insightvariablesretrieve
        description: insightvariablesretrieve
        call: posthog-insight-variables.insightvariablesretrieve
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: insightvariablesupdate
        description: insightvariablesupdate
        call: posthog-insight-variables.insightvariablesupdate
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: insightvariablespartialupdate
        description: insightvariablespartialupdate
        call: posthog-insight-variables.insightvariablespartialupdate
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: insightvariablesdestroy
        description: insightvariablesdestroy
        call: posthog-insight-variables.insightvariablesdestroy
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: posthog-insight-variables-mcp
    port: 9090
    transport: http
    description: MCP adapter for PostHog API — insight_variables. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: environmentsinsightvariableslist
      description: environmentsinsightvariableslist
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: posthog-insight-variables.environmentsinsightvariableslist
      with:
        page: tools.page
      outputParameters:
      - type: object
        mapping: $.
    - name: environmentsinsightvariablescreate
      description: environmentsinsightvariablescreate
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: posthog-insight-variables.environmentsinsightvariablescreate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: environmentsinsightvariablesretrieve
      description: environmentsinsightvariablesretrieve
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: posthog-insight-variables.environmentsinsightvariablesretrieve
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: environmentsinsightvariablesupdate
      description: environmentsinsightvariablesupdate
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: posthog-insight-variables.environmentsinsightvariablesupdate
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: environmentsinsightvariablespartialupdate
      description: environmentsinsightvariablespartialupdate
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: posthog-insight-variables.environmentsinsightvariablespartialupdate
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: environmentsinsightvariablesdestroy
      description: environmentsinsightvariablesdestroy
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: posthog-insight-variables.environmentsinsightvariablesdestroy
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: insightvariableslist
      description: insightvariableslist
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: posthog-insight-variables.insightvariableslist
      with:
        page: tools.page
      outputParameters:
      - type: object
        mapping: $.
    - name: insightvariablescreate
      description: insightvariablescreate
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: posthog-insight-variables.insightvariablescreate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: insightvariablesretrieve
      description: insightvariablesretrieve
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: posthog-insight-variables.insightvariablesretrieve
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: insightvariablesupdate
      description: insightvariablesupdate
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: posthog-insight-variables.insightvariablesupdate
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: insightvariablespartialupdate
      description: insightvariablespartialupdate
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: posthog-insight-variables.insightvariablespartialupdate
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: insightvariablesdestroy
      description: insightvariablesdestroy
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: posthog-insight-variables.insightvariablesdestroy
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.