Customer.io · Capability

Customer.io Track API — Events

Customer.io Track API — Events. 2 operations. Lead operation: Track a customer event. Self-contained Naftiko capability covering one Customer Io business surface.

Run with Naftiko Customer IoEvents

What You Can Do

POST
Trackcustomerevent — Track a customer event
/v1/customers/{identifier}/events
POST
Trackanonymousevent — Track an anonymous event
/v1/events

MCP Tools

track-customer-event

Track a customer event

track-anonymous-event

Track an anonymous event

Capability Spec

track-events.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Customer.io Track API — Events
  description: 'Customer.io Track API — Events. 2 operations. Lead operation: Track a customer event. Self-contained Naftiko
    capability covering one Customer Io business surface.'
  tags:
  - Customer Io
  - Events
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CUSTOMER_IO_API_KEY: CUSTOMER_IO_API_KEY
capability:
  consumes:
  - type: http
    namespace: track-events
    baseUri: https://track.customer.io/api/v1
    description: Customer.io Track API — Events business capability. Self-contained, no shared references.
    resources:
    - name: customers-identifier-events
      path: /customers/{identifier}/events
      operations:
      - name: trackcustomerevent
        method: POST
        description: Track a customer event
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: events
      path: /events
      operations:
      - name: trackanonymousevent
        method: POST
        description: Track an anonymous event
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: basic
      username: '{{env.CUSTOMER_IO_USER}}'
      password: '{{env.CUSTOMER_IO_PASS}}'
  exposes:
  - type: rest
    namespace: track-events-rest
    port: 8080
    description: REST adapter for Customer.io Track API — Events. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/customers/{identifier}/events
      name: customers-identifier-events
      description: REST surface for customers-identifier-events.
      operations:
      - method: POST
        name: trackcustomerevent
        description: Track a customer event
        call: track-events.trackcustomerevent
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/events
      name: events
      description: REST surface for events.
      operations:
      - method: POST
        name: trackanonymousevent
        description: Track an anonymous event
        call: track-events.trackanonymousevent
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: track-events-mcp
    port: 9090
    transport: http
    description: MCP adapter for Customer.io Track API — Events. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: track-customer-event
      description: Track a customer event
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: track-events.trackcustomerevent
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: track-anonymous-event
      description: Track an anonymous event
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: track-events.trackanonymousevent
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.