statsig · Capability

Statsig Events API — Webhooks

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

Run with Naftiko StatsigWebhooks

What You Can Do

POST
Receivewebhookevent — Receive webhook events
/v1/webhooks/event-webhook

MCP Tools

receive-webhook-events

Receive webhook events

Capability Spec

events-webhooks.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Statsig Events API — Webhooks
  description: 'Statsig Events API — Webhooks. 1 operations. Lead operation: Receive webhook events. Self-contained Naftiko
    capability covering one Statsig business surface.'
  tags:
  - Statsig
  - Webhooks
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    STATSIG_API_KEY: STATSIG_API_KEY
capability:
  consumes:
  - type: http
    namespace: events-webhooks
    baseUri: https://events.statsigapi.net/v1
    description: Statsig Events API — Webhooks business capability. Self-contained, no shared references.
    resources:
    - name: webhooks-event_webhook
      path: /webhooks/event_webhook
      operations:
      - name: receivewebhookevent
        method: POST
        description: Receive webhook events
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - 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-webhooks-rest
    port: 8080
    description: REST adapter for Statsig Events API — Webhooks. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/webhooks/event-webhook
      name: webhooks-event-webhook
      description: REST surface for webhooks-event_webhook.
      operations:
      - method: POST
        name: receivewebhookevent
        description: Receive webhook events
        call: events-webhooks.receivewebhookevent
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: events-webhooks-mcp
    port: 9090
    transport: http
    description: MCP adapter for Statsig Events API — Webhooks. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: receive-webhook-events
      description: Receive webhook events
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: events-webhooks.receivewebhookevent
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.