Klaviyo · Capability

Klaviyo API — Reporting

Klaviyo API — Reporting. 7 operations. Lead operation: Query Campaign Values. Self-contained Naftiko capability covering one Klaviyo business surface.

Run with Naftiko KlaviyoReporting

What You Can Do

POST
Querycampaignvalues — Query Campaign Values
/v1/api/campaign-values-reports
POST
Queryflowseries — Query Flow Series
/v1/api/flow-series-reports
POST
Queryflowvalues — Query Flow Values
/v1/api/flow-values-reports
POST
Queryformseries — Query Form Series
/v1/api/form-series-reports
POST
Queryformvalues — Query Form Values
/v1/api/form-values-reports
POST
Querysegmentseries — Query Segment Series
/v1/api/segment-series-reports
POST
Querysegmentvalues — Query Segment Values
/v1/api/segment-values-reports

MCP Tools

query-campaign-values

Query Campaign Values

read-only
query-flow-series

Query Flow Series

read-only
query-flow-values

Query Flow Values

read-only
query-form-series

Query Form Series

read-only
query-form-values

Query Form Values

read-only
query-segment-series

Query Segment Series

read-only
query-segment-values

Query Segment Values

read-only

Capability Spec

klaviyo-reporting.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Klaviyo API — Reporting
  description: 'Klaviyo API — Reporting. 7 operations. Lead operation: Query Campaign Values. Self-contained Naftiko capability
    covering one Klaviyo business surface.'
  tags:
  - Klaviyo
  - Reporting
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    KLAVIYO_API_KEY: KLAVIYO_API_KEY
capability:
  consumes:
  - type: http
    namespace: klaviyo-reporting
    baseUri: https://a.klaviyo.com
    description: Klaviyo API — Reporting business capability. Self-contained, no shared references.
    resources:
    - name: api-campaign-values-reports
      path: /api/campaign-values-reports
      operations:
      - name: querycampaignvalues
        method: POST
        description: Query Campaign Values
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page_cursor
          in: query
          type: string
          description: For more information please visit https://developers.klaviyo.com/en/v2026-04-15/reference/api-overview#pagination
        - name: revision
          in: header
          type: string
          description: 'API endpoint revision (format: YYYY-MM-DD[.suffix])'
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-flow-series-reports
      path: /api/flow-series-reports
      operations:
      - name: queryflowseries
        method: POST
        description: Query Flow Series
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page_cursor
          in: query
          type: string
          description: For more information please visit https://developers.klaviyo.com/en/v2026-04-15/reference/api-overview#pagination
        - name: revision
          in: header
          type: string
          description: 'API endpoint revision (format: YYYY-MM-DD[.suffix])'
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-flow-values-reports
      path: /api/flow-values-reports
      operations:
      - name: queryflowvalues
        method: POST
        description: Query Flow Values
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page_cursor
          in: query
          type: string
          description: For more information please visit https://developers.klaviyo.com/en/v2026-04-15/reference/api-overview#pagination
        - name: revision
          in: header
          type: string
          description: 'API endpoint revision (format: YYYY-MM-DD[.suffix])'
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-form-series-reports
      path: /api/form-series-reports
      operations:
      - name: queryformseries
        method: POST
        description: Query Form Series
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: revision
          in: header
          type: string
          description: 'API endpoint revision (format: YYYY-MM-DD[.suffix])'
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-form-values-reports
      path: /api/form-values-reports
      operations:
      - name: queryformvalues
        method: POST
        description: Query Form Values
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: revision
          in: header
          type: string
          description: 'API endpoint revision (format: YYYY-MM-DD[.suffix])'
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-segment-series-reports
      path: /api/segment-series-reports
      operations:
      - name: querysegmentseries
        method: POST
        description: Query Segment Series
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: revision
          in: header
          type: string
          description: 'API endpoint revision (format: YYYY-MM-DD[.suffix])'
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-segment-values-reports
      path: /api/segment-values-reports
      operations:
      - name: querysegmentvalues
        method: POST
        description: Query Segment Values
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: revision
          in: header
          type: string
          description: 'API endpoint revision (format: YYYY-MM-DD[.suffix])'
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.KLAVIYO_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: klaviyo-reporting-rest
    port: 8080
    description: REST adapter for Klaviyo API — Reporting. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/campaign-values-reports
      name: api-campaign-values-reports
      description: REST surface for api-campaign-values-reports.
      operations:
      - method: POST
        name: querycampaignvalues
        description: Query Campaign Values
        call: klaviyo-reporting.querycampaignvalues
        with:
          page_cursor: rest.page_cursor
          revision: rest.revision
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/flow-series-reports
      name: api-flow-series-reports
      description: REST surface for api-flow-series-reports.
      operations:
      - method: POST
        name: queryflowseries
        description: Query Flow Series
        call: klaviyo-reporting.queryflowseries
        with:
          page_cursor: rest.page_cursor
          revision: rest.revision
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/flow-values-reports
      name: api-flow-values-reports
      description: REST surface for api-flow-values-reports.
      operations:
      - method: POST
        name: queryflowvalues
        description: Query Flow Values
        call: klaviyo-reporting.queryflowvalues
        with:
          page_cursor: rest.page_cursor
          revision: rest.revision
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/form-series-reports
      name: api-form-series-reports
      description: REST surface for api-form-series-reports.
      operations:
      - method: POST
        name: queryformseries
        description: Query Form Series
        call: klaviyo-reporting.queryformseries
        with:
          revision: rest.revision
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/form-values-reports
      name: api-form-values-reports
      description: REST surface for api-form-values-reports.
      operations:
      - method: POST
        name: queryformvalues
        description: Query Form Values
        call: klaviyo-reporting.queryformvalues
        with:
          revision: rest.revision
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/segment-series-reports
      name: api-segment-series-reports
      description: REST surface for api-segment-series-reports.
      operations:
      - method: POST
        name: querysegmentseries
        description: Query Segment Series
        call: klaviyo-reporting.querysegmentseries
        with:
          revision: rest.revision
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/segment-values-reports
      name: api-segment-values-reports
      description: REST surface for api-segment-values-reports.
      operations:
      - method: POST
        name: querysegmentvalues
        description: Query Segment Values
        call: klaviyo-reporting.querysegmentvalues
        with:
          revision: rest.revision
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: klaviyo-reporting-mcp
    port: 9090
    transport: http
    description: MCP adapter for Klaviyo API — Reporting. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: query-campaign-values
      description: Query Campaign Values
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: klaviyo-reporting.querycampaignvalues
      with:
        page_cursor: tools.page_cursor
        revision: tools.revision
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: query-flow-series
      description: Query Flow Series
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: klaviyo-reporting.queryflowseries
      with:
        page_cursor: tools.page_cursor
        revision: tools.revision
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: query-flow-values
      description: Query Flow Values
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: klaviyo-reporting.queryflowvalues
      with:
        page_cursor: tools.page_cursor
        revision: tools.revision
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: query-form-series
      description: Query Form Series
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: klaviyo-reporting.queryformseries
      with:
        revision: tools.revision
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: query-form-values
      description: Query Form Values
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: klaviyo-reporting.queryformvalues
      with:
        revision: tools.revision
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: query-segment-series
      description: Query Segment Series
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: klaviyo-reporting.querysegmentseries
      with:
        revision: tools.revision
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: query-segment-values
      description: Query Segment Values
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: klaviyo-reporting.querysegmentvalues
      with:
        revision: tools.revision
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.