PostHog · Capability

PostHog API — heatmaps

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

Run with Naftiko Posthogheatmaps

What You Can Do

GET
Environmentsheatmapslist — environmentsheatmapslist
/v1/api/environments/{environment-id}/heatmaps
GET
Environmentsheatmapseventsretrieve — environmentsheatmapseventsretrieve
/v1/api/environments/{environment-id}/heatmaps/events
GET
Heatmapslist — heatmapslist
/v1/api/projects/{project-id}/heatmaps
GET
Heatmapseventsretrieve — heatmapseventsretrieve
/v1/api/projects/{project-id}/heatmaps/events

MCP Tools

environmentsheatmapslist

environmentsheatmapslist

read-only idempotent
environmentsheatmapseventsretrieve

environmentsheatmapseventsretrieve

read-only idempotent
heatmapslist

heatmapslist

read-only idempotent
heatmapseventsretrieve

heatmapseventsretrieve

read-only idempotent

Capability Spec

posthog-heatmaps.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: PostHog API — heatmaps
  description: 'PostHog API — heatmaps. 4 operations. Lead operation: heatmaps. Self-contained Naftiko capability covering
    one Posthog business surface.'
  tags:
  - Posthog
  - heatmaps
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    POSTHOG_API_KEY: POSTHOG_API_KEY
capability:
  consumes:
  - type: http
    namespace: posthog-heatmaps
    baseUri: ''
    description: PostHog API — heatmaps business capability. Self-contained, no shared references.
    resources:
    - name: api-environments-environment_id-heatmaps
      path: /api/environments/{environment_id}/heatmaps/
      operations:
      - name: environmentsheatmapslist
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        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.
    - name: api-environments-environment_id-heatmaps-events
      path: /api/environments/{environment_id}/heatmaps/events/
      operations:
      - name: environmentsheatmapseventsretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-projects-project_id-heatmaps
      path: /api/projects/{project_id}/heatmaps/
      operations:
      - name: heatmapslist
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        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.
    - name: api-projects-project_id-heatmaps-events
      path: /api/projects/{project_id}/heatmaps/events/
      operations:
      - name: heatmapseventsretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.POSTHOG_API_KEY}}'
  exposes:
  - type: rest
    namespace: posthog-heatmaps-rest
    port: 8080
    description: REST adapter for PostHog API — heatmaps. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/environments/{environment-id}/heatmaps
      name: api-environments-environment-id-heatmaps
      description: REST surface for api-environments-environment_id-heatmaps.
      operations:
      - method: GET
        name: environmentsheatmapslist
        description: environmentsheatmapslist
        call: posthog-heatmaps.environmentsheatmapslist
        with:
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/environments/{environment-id}/heatmaps/events
      name: api-environments-environment-id-heatmaps-events
      description: REST surface for api-environments-environment_id-heatmaps-events.
      operations:
      - method: GET
        name: environmentsheatmapseventsretrieve
        description: environmentsheatmapseventsretrieve
        call: posthog-heatmaps.environmentsheatmapseventsretrieve
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/projects/{project-id}/heatmaps
      name: api-projects-project-id-heatmaps
      description: REST surface for api-projects-project_id-heatmaps.
      operations:
      - method: GET
        name: heatmapslist
        description: heatmapslist
        call: posthog-heatmaps.heatmapslist
        with:
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/projects/{project-id}/heatmaps/events
      name: api-projects-project-id-heatmaps-events
      description: REST surface for api-projects-project_id-heatmaps-events.
      operations:
      - method: GET
        name: heatmapseventsretrieve
        description: heatmapseventsretrieve
        call: posthog-heatmaps.heatmapseventsretrieve
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: posthog-heatmaps-mcp
    port: 9090
    transport: http
    description: MCP adapter for PostHog API — heatmaps. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: environmentsheatmapslist
      description: environmentsheatmapslist
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: posthog-heatmaps.environmentsheatmapslist
      with:
        limit: tools.limit
        offset: tools.offset
      outputParameters:
      - type: object
        mapping: $.
    - name: environmentsheatmapseventsretrieve
      description: environmentsheatmapseventsretrieve
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: posthog-heatmaps.environmentsheatmapseventsretrieve
      outputParameters:
      - type: object
        mapping: $.
    - name: heatmapslist
      description: heatmapslist
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: posthog-heatmaps.heatmapslist
      with:
        limit: tools.limit
        offset: tools.offset
      outputParameters:
      - type: object
        mapping: $.
    - name: heatmapseventsretrieve
      description: heatmapseventsretrieve
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: posthog-heatmaps.heatmapseventsretrieve
      outputParameters:
      - type: object
        mapping: $.