naftiko: 1.0.0-alpha2 info: label: International Business Machines IBM watsonx Assistant v2 API — Messages description: 'International Business Machines IBM watsonx Assistant v2 API — Messages. 2 operations. Lead operation: International Business Machines Send user input to assistant (stateless). Self-contained Naftiko capability covering one International Business Machines business surface.' tags: - International Business Machines - Messages created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: INTERNATIONAL_BUSINESS_MACHINES_API_KEY: INTERNATIONAL_BUSINESS_MACHINES_API_KEY capability: consumes: - type: http namespace: ibm-watsonx-assistant-messages baseUri: https://api.us-south.assistant.watson.cloud.ibm.com description: International Business Machines IBM watsonx Assistant v2 API — Messages business capability. Self-contained, no shared references. resources: - name: v2-assistants-assistant_id-message path: /v2/assistants/{assistant_id}/message operations: - name: messagestateless method: POST description: International Business Machines Send user input to assistant (stateless) outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: assistant_id in: path type: string required: true - name: version in: query type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: v2-assistants-assistant_id-sessions-session_id-message path: /v2/assistants/{assistant_id}/sessions/{session_id}/message operations: - name: message method: POST description: International Business Machines Send user input to assistant outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: assistant_id in: path type: string required: true - name: session_id in: path type: string required: true - name: version in: query type: string required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.INTERNATIONAL_BUSINESS_MACHINES_API_KEY}}' exposes: - type: rest namespace: ibm-watsonx-assistant-messages-rest port: 8080 description: REST adapter for International Business Machines IBM watsonx Assistant v2 API — Messages. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v2/assistants/{assistant-id}/message name: v2-assistants-assistant-id-message description: REST surface for v2-assistants-assistant_id-message. operations: - method: POST name: messagestateless description: International Business Machines Send user input to assistant (stateless) call: ibm-watsonx-assistant-messages.messagestateless with: assistant_id: rest.assistant_id version: rest.version body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v2/assistants/{assistant-id}/sessions/{session-id}/message name: v2-assistants-assistant-id-sessions-session-id-message description: REST surface for v2-assistants-assistant_id-sessions-session_id-message. operations: - method: POST name: message description: International Business Machines Send user input to assistant call: ibm-watsonx-assistant-messages.message with: assistant_id: rest.assistant_id session_id: rest.session_id version: rest.version body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: ibm-watsonx-assistant-messages-mcp port: 9090 transport: http description: MCP adapter for International Business Machines IBM watsonx Assistant v2 API — Messages. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: international-business-machines-send-user description: International Business Machines Send user input to assistant (stateless) hints: readOnly: false destructive: false idempotent: false call: ibm-watsonx-assistant-messages.messagestateless with: assistant_id: tools.assistant_id version: tools.version body: tools.body outputParameters: - type: object mapping: $. - name: international-business-machines-send-user-2 description: International Business Machines Send user input to assistant hints: readOnly: false destructive: false idempotent: false call: ibm-watsonx-assistant-messages.message with: assistant_id: tools.assistant_id session_id: tools.session_id version: tools.version body: tools.body outputParameters: - type: object mapping: $.