naftiko: 1.0.0-alpha2 info: label: Klaviyo API — Accounts description: 'Klaviyo API — Accounts. 2 operations. Lead operation: Get Accounts. Self-contained Naftiko capability covering one Klaviyo business surface.' tags: - Klaviyo - Accounts created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: KLAVIYO_API_KEY: KLAVIYO_API_KEY capability: consumes: - type: http namespace: klaviyo-accounts baseUri: https://a.klaviyo.com description: Klaviyo API — Accounts business capability. Self-contained, no shared references. resources: - name: api-accounts path: /api/accounts operations: - name: getaccounts method: GET description: Get Accounts outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: fields[account] in: query type: array description: For more information please visit https://developers.klaviyo.com/en/v2026-04-15/reference/api-overview#sparse-fieldsets - name: revision in: header type: string description: 'API endpoint revision (format: YYYY-MM-DD[.suffix])' required: true - name: api-accounts-id path: /api/accounts/{id} operations: - name: getaccount method: GET description: Get Account outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: The ID of the account required: true - name: fields[account] in: query type: array description: For more information please visit https://developers.klaviyo.com/en/v2026-04-15/reference/api-overview#sparse-fieldsets - name: revision in: header type: string description: 'API endpoint revision (format: YYYY-MM-DD[.suffix])' required: true authentication: type: apikey key: Authorization value: '{{env.KLAVIYO_API_KEY}}' placement: header exposes: - type: rest namespace: klaviyo-accounts-rest port: 8080 description: REST adapter for Klaviyo API — Accounts. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/accounts name: api-accounts description: REST surface for api-accounts. operations: - method: GET name: getaccounts description: Get Accounts call: klaviyo-accounts.getaccounts with: fields[account]: rest.fields[account] revision: rest.revision outputParameters: - type: object mapping: $. - path: /v1/api/accounts/{id} name: api-accounts-id description: REST surface for api-accounts-id. operations: - method: GET name: getaccount description: Get Account call: klaviyo-accounts.getaccount with: id: rest.id fields[account]: rest.fields[account] revision: rest.revision outputParameters: - type: object mapping: $. - type: mcp namespace: klaviyo-accounts-mcp port: 9090 transport: http description: MCP adapter for Klaviyo API — Accounts. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-accounts description: Get Accounts hints: readOnly: true destructive: false idempotent: true call: klaviyo-accounts.getaccounts with: fields[account]: tools.fields[account] revision: tools.revision outputParameters: - type: object mapping: $. - name: get-account description: Get Account hints: readOnly: true destructive: false idempotent: true call: klaviyo-accounts.getaccount with: id: tools.id fields[account]: tools.fields[account] revision: tools.revision outputParameters: - type: object mapping: $.