statsig · Capability

Statsig Client SDK API — Events

Statsig Client SDK API — Events. 1 operations. Lead operation: Log client events. Self-contained Naftiko capability covering one Statsig business surface.

Run with Naftiko StatsigEvents

What You Can Do

POST
Logclientevent — Log client events
/v1/log-event

MCP Tools

log-client-events

Log client events

Capability Spec

client-sdk-events.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Statsig Client SDK API — Events
  description: 'Statsig Client SDK API — Events. 1 operations. Lead operation: Log client events. Self-contained Naftiko capability
    covering one Statsig business surface.'
  tags:
  - Statsig
  - Events
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    STATSIG_API_KEY: STATSIG_API_KEY
capability:
  consumes:
  - type: http
    namespace: client-sdk-events
    baseUri: https://api.statsig.com/v1
    description: Statsig Client SDK API — Events business capability. Self-contained, no shared references.
    resources:
    - name: log_event
      path: /log_event
      operations:
      - name: logclientevent
        method: POST
        description: Log client events
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: STATSIG-CLIENT-TIME
          in: header
          type: integer
          description: Client-side timestamp in milliseconds since epoch, used to normalize event timestamps and account for
            clock skew.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: statsig-api-key
      value: '{{env.STATSIG_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: client-sdk-events-rest
    port: 8080
    description: REST adapter for Statsig Client SDK API — Events. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/log-event
      name: log-event
      description: REST surface for log_event.
      operations:
      - method: POST
        name: logclientevent
        description: Log client events
        call: client-sdk-events.logclientevent
        with:
          STATSIG-CLIENT-TIME: rest.STATSIG-CLIENT-TIME
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: client-sdk-events-mcp
    port: 9090
    transport: http
    description: MCP adapter for Statsig Client SDK API — Events. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: log-client-events
      description: Log client events
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: client-sdk-events.logclientevent
      with:
        STATSIG-CLIENT-TIME: tools.STATSIG-CLIENT-TIME
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.