OpenPanel · Capability

OpenPanel API — Track

OpenPanel API — Track. 2 operations. Lead operation: Track. Self-contained Naftiko capability covering one Openpanel business surface.

Run with Naftiko OpenpanelTrack

What You Can Do

POST
Post — Ingest a tracking event (track, identify, group, increment, decrement, replay).
/v1/track
GET
Get — Get or generate a stable device ID and session ID for the current visitor.
/v1/track/device-id

MCP Tools

ingest-tracking-event-track-identify

Ingest a tracking event (track, identify, group, increment, decrement, replay).

get-generate-stable-device-id

Get or generate a stable device ID and session ID for the current visitor.

read-only idempotent

Capability Spec

openpanel-track.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: OpenPanel API — Track
  description: 'OpenPanel API — Track. 2 operations. Lead operation: Track. Self-contained Naftiko capability covering one
    Openpanel business surface.'
  tags:
  - Openpanel
  - Track
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    OPENPANEL_API_KEY: OPENPANEL_API_KEY
capability:
  consumes:
  - type: http
    namespace: openpanel-track
    baseUri: ''
    description: OpenPanel API — Track business capability. Self-contained, no shared references.
    resources:
    - name: track
      path: /track/
      operations:
      - name: post
        method: POST
        description: Ingest a tracking event (track, identify, group, increment, decrement, replay).
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: track-device-id
      path: /track/device-id
      operations:
      - name: get
        method: GET
        description: Get or generate a stable device ID and session ID for the current visitor.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: openpanel-track-rest
    port: 8080
    description: REST adapter for OpenPanel API — Track. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/track
      name: track
      description: REST surface for track.
      operations:
      - method: POST
        name: post
        description: Ingest a tracking event (track, identify, group, increment, decrement, replay).
        call: openpanel-track.post
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/track/device-id
      name: track-device-id
      description: REST surface for track-device-id.
      operations:
      - method: GET
        name: get
        description: Get or generate a stable device ID and session ID for the current visitor.
        call: openpanel-track.get
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: openpanel-track-mcp
    port: 9090
    transport: http
    description: MCP adapter for OpenPanel API — Track. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: ingest-tracking-event-track-identify
      description: Ingest a tracking event (track, identify, group, increment, decrement, replay).
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: openpanel-track.post
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-generate-stable-device-id
      description: Get or generate a stable device ID and session ID for the current visitor.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openpanel-track.get
      outputParameters:
      - type: object
        mapping: $.