PostHog · Capability

PostHog API — activity_log

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

Run with Naftiko Posthogactivity_log

What You Can Do

GET
Activityloglist — activityloglist
/v1/api/projects/{project-id}/activity-log

MCP Tools

activityloglist

activityloglist

read-only idempotent

Capability Spec

posthog-activity-log.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: PostHog API — activity_log
  description: 'PostHog API — activity_log. 1 operations. Lead operation: activity_log. Self-contained Naftiko capability
    covering one Posthog business surface.'
  tags:
  - Posthog
  - activity_log
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    POSTHOG_API_KEY: POSTHOG_API_KEY
capability:
  consumes:
  - type: http
    namespace: posthog-activity-log
    baseUri: ''
    description: PostHog API — activity_log business capability. Self-contained, no shared references.
    resources:
    - name: api-projects-project_id-activity_log
      path: /api/projects/{project_id}/activity_log/
      operations:
      - name: activityloglist
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: item_id
          in: query
          type: string
          description: Filter by the ID of the affected resource.
        - name: page
          in: query
          type: integer
          description: Page number for pagination. When provided, uses page-based pagination ordered by most recent first.
        - name: page_size
          in: query
          type: integer
          description: 'Number of results per page (default: 100, max: 1000). Only used with page-based pagination.'
        - name: scope
          in: query
          type: string
          description: Filter by a single activity scope, e.g. "FeatureFlag", "Insight", "Dashboard", "Experiment".
        - name: scopes
          in: query
          type: array
          description: Filter by multiple activity scopes, comma-separated. Values must be valid ActivityScope enum values.
            E.g. "FeatureFlag,Insight".
        - name: user
          in: query
          type: string
          description: Filter by user UUID who performed the action.
    authentication:
      type: bearer
      token: '{{env.POSTHOG_API_KEY}}'
  exposes:
  - type: rest
    namespace: posthog-activity-log-rest
    port: 8080
    description: REST adapter for PostHog API — activity_log. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/projects/{project-id}/activity-log
      name: api-projects-project-id-activity-log
      description: REST surface for api-projects-project_id-activity_log.
      operations:
      - method: GET
        name: activityloglist
        description: activityloglist
        call: posthog-activity-log.activityloglist
        with:
          item_id: rest.item_id
          page: rest.page
          page_size: rest.page_size
          scope: rest.scope
          scopes: rest.scopes
          user: rest.user
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: posthog-activity-log-mcp
    port: 9090
    transport: http
    description: MCP adapter for PostHog API — activity_log. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: activityloglist
      description: activityloglist
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: posthog-activity-log.activityloglist
      with:
        item_id: tools.item_id
        page: tools.page
        page_size: tools.page_size
        scope: tools.scope
        scopes: tools.scopes
        user: tools.user
      outputParameters:
      - type: object
        mapping: $.