naftiko: 1.0.0-alpha2 info: label: Core API — Analytics description: 'Core API — Analytics. 4 operations. Lead operation: Create a new analytics export. Self-contained Naftiko capability covering one Front business surface.' tags: - Front - Analytics created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: FRONT_API_KEY: FRONT_API_KEY capability: consumes: - type: http namespace: core-analytics baseUri: https://api2.frontapp.com description: Core API — Analytics business capability. Self-contained, no shared references. resources: - name: analytics-exports path: /analytics/exports operations: - name: createanalyticsexport method: POST description: Create a new analytics export outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: analytics-exports-export_id path: /analytics/exports/{export_id} operations: - name: getanalyticsexport method: GET description: Fetch an analytics export outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: export_id in: path type: string description: The export ID. required: true - name: analytics-reports path: /analytics/reports operations: - name: createanalyticsreport method: POST description: Create a new analytics report outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: analytics-reports-report_uid path: /analytics/reports/{report_uid} operations: - name: getanalyticsreport method: GET description: Fetch an analytics report outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: report_uid in: path type: string description: The report UID. required: true authentication: type: bearer token: '{{env.FRONT_API_KEY}}' exposes: - type: rest namespace: core-analytics-rest port: 8080 description: REST adapter for Core API — Analytics. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/analytics/exports name: analytics-exports description: REST surface for analytics-exports. operations: - method: POST name: createanalyticsexport description: Create a new analytics export call: core-analytics.createanalyticsexport with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/analytics/exports/{export-id} name: analytics-exports-export-id description: REST surface for analytics-exports-export_id. operations: - method: GET name: getanalyticsexport description: Fetch an analytics export call: core-analytics.getanalyticsexport with: export_id: rest.export_id outputParameters: - type: object mapping: $. - path: /v1/analytics/reports name: analytics-reports description: REST surface for analytics-reports. operations: - method: POST name: createanalyticsreport description: Create a new analytics report call: core-analytics.createanalyticsreport with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/analytics/reports/{report-uid} name: analytics-reports-report-uid description: REST surface for analytics-reports-report_uid. operations: - method: GET name: getanalyticsreport description: Fetch an analytics report call: core-analytics.getanalyticsreport with: report_uid: rest.report_uid outputParameters: - type: object mapping: $. - type: mcp namespace: core-analytics-mcp port: 9090 transport: http description: MCP adapter for Core API — Analytics. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-new-analytics-export description: Create a new analytics export hints: readOnly: false destructive: false idempotent: false call: core-analytics.createanalyticsexport with: body: tools.body outputParameters: - type: object mapping: $. - name: fetch-analytics-export description: Fetch an analytics export hints: readOnly: true destructive: false idempotent: true call: core-analytics.getanalyticsexport with: export_id: tools.export_id outputParameters: - type: object mapping: $. - name: create-new-analytics-report description: Create a new analytics report hints: readOnly: false destructive: false idempotent: false call: core-analytics.createanalyticsreport with: body: tools.body outputParameters: - type: object mapping: $. - name: fetch-analytics-report description: Fetch an analytics report hints: readOnly: true destructive: false idempotent: true call: core-analytics.getanalyticsreport with: report_uid: tools.report_uid outputParameters: - type: object mapping: $.