statsig · Capability

Statsig Events API — Events

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

Run with Naftiko StatsigEvents

What You Can Do

POST
Logevent — Log events
/v1/log-event

MCP Tools

log-events

Log events

Capability Spec

events-events.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Statsig Events API — Events
  description: 'Statsig Events API — Events. 1 operations. Lead operation: Log 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: events-events
    baseUri: https://events.statsigapi.net/v1
    description: Statsig Events API — Events business capability. Self-contained, no shared references.
    resources:
    - name: log_event
      path: /log_event
      operations:
      - name: logevent
        method: POST
        description: Log events
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: STATSIG-CLIENT-TIME
          in: header
          type: integer
          description: Timestamp in milliseconds since epoch from the sending client or server, used to normalize event timestamps
            and account for clock differences.
          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: events-events-rest
    port: 8080
    description: REST adapter for Statsig Events 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: logevent
        description: Log events
        call: events-events.logevent
        with:
          STATSIG-CLIENT-TIME: rest.STATSIG-CLIENT-TIME
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: events-events-mcp
    port: 9090
    transport: http
    description: MCP adapter for Statsig Events API — Events. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: log-events
      description: Log events
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: events-events.logevent
      with:
        STATSIG-CLIENT-TIME: tools.STATSIG-CLIENT-TIME
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.