naftiko: 1.0.0-alpha2 info: label: Rainbow Messaging API — Conversations description: 'Rainbow Messaging API — Conversations. 1 operations. Lead operation: List Conversations. Self-contained Naftiko capability covering one Rainbow business surface.' tags: - Rainbow - Conversations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: RAINBOW_API_KEY: RAINBOW_API_KEY capability: consumes: - type: http namespace: messaging-conversations baseUri: https://openrainbow.com/api/rainbow description: Rainbow Messaging API — Conversations business capability. Self-contained, no shared references. resources: - name: enduser-v1.0-conversations path: /enduser/v1.0/conversations operations: - name: listconversations method: GET description: List Conversations outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: limit in: query type: integer description: Maximum number of conversations to return - name: offset in: query type: integer description: Pagination offset authentication: type: bearer token: '{{env.RAINBOW_API_KEY}}' exposes: - type: rest namespace: messaging-conversations-rest port: 8080 description: REST adapter for Rainbow Messaging API — Conversations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/enduser/v1-0/conversations name: enduser-v1-0-conversations description: REST surface for enduser-v1.0-conversations. operations: - method: GET name: listconversations description: List Conversations call: messaging-conversations.listconversations with: limit: rest.limit offset: rest.offset outputParameters: - type: object mapping: $. - type: mcp namespace: messaging-conversations-mcp port: 9090 transport: http description: MCP adapter for Rainbow Messaging API — Conversations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-conversations description: List Conversations hints: readOnly: true destructive: false idempotent: true call: messaging-conversations.listconversations with: limit: tools.limit offset: tools.offset outputParameters: - type: object mapping: $.