naftiko: 1.0.0-alpha2 info: label: API Reference — subpackage_intelligence description: 'API Reference — subpackage_intelligence. 3 operations. Lead operation: Run intelligence. Self-contained Naftiko capability covering one Resemble Ai business surface.' tags: - Resemble Ai - subpackage_intelligence created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: RESEMBLE_AI_API_KEY: RESEMBLE_AI_API_KEY capability: consumes: - type: http namespace: resemble-ai-subpackage-intelligence baseUri: https://f.cluster.resemble.ai description: API Reference — subpackage_intelligence business capability. Self-contained, no shared references. resources: - name: intelligence path: /intelligence operations: - name: runintelligence method: POST description: Run intelligence outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string description: API token from https://app.resemble.ai/account/api required: true - name: body in: body type: object description: Request body (JSON). required: false - name: intelligences path: /intelligences operations: - name: listintelligences method: GET description: List intelligences outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: page in: query type: integer description: Page number (must be >= 1) required: true - name: page_size in: query type: integer description: Number of items per page (10-1000) - name: Authorization in: header type: string description: API token from https://app.resemble.ai/account/api required: true - name: intelligences-uuid path: /intelligences/{uuid} operations: - name: getintelligence method: GET description: Get intelligence outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: uuid in: path type: string description: The UUID of the intelligence report required: true - name: Authorization in: header type: string description: API token from https://app.resemble.ai/account/api required: true authentication: type: bearer token: '{{env.RESEMBLE_AI_API_KEY}}' exposes: - type: rest namespace: resemble-ai-subpackage-intelligence-rest port: 8080 description: REST adapter for API Reference — subpackage_intelligence. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/intelligence name: intelligence description: REST surface for intelligence. operations: - method: POST name: runintelligence description: Run intelligence call: resemble-ai-subpackage-intelligence.runintelligence with: Authorization: rest.Authorization body: rest.body outputParameters: - type: object mapping: $. - path: /v1/intelligences name: intelligences description: REST surface for intelligences. operations: - method: GET name: listintelligences description: List intelligences call: resemble-ai-subpackage-intelligence.listintelligences with: page: rest.page page_size: rest.page_size Authorization: rest.Authorization outputParameters: - type: object mapping: $. - path: /v1/intelligences/{uuid} name: intelligences-uuid description: REST surface for intelligences-uuid. operations: - method: GET name: getintelligence description: Get intelligence call: resemble-ai-subpackage-intelligence.getintelligence with: uuid: rest.uuid Authorization: rest.Authorization outputParameters: - type: object mapping: $. - type: mcp namespace: resemble-ai-subpackage-intelligence-mcp port: 9090 transport: http description: MCP adapter for API Reference — subpackage_intelligence. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: run-intelligence description: Run intelligence hints: readOnly: false destructive: false idempotent: false call: resemble-ai-subpackage-intelligence.runintelligence with: Authorization: tools.Authorization body: tools.body outputParameters: - type: object mapping: $. - name: list-intelligences description: List intelligences hints: readOnly: true destructive: false idempotent: true call: resemble-ai-subpackage-intelligence.listintelligences with: page: tools.page page_size: tools.page_size Authorization: tools.Authorization outputParameters: - type: object mapping: $. - name: get-intelligence description: Get intelligence hints: readOnly: true destructive: false idempotent: true call: resemble-ai-subpackage-intelligence.getintelligence with: uuid: tools.uuid Authorization: tools.Authorization outputParameters: - type: object mapping: $.