naftiko: 1.0.0-alpha2 info: label: Sendbird Platform API — Messages description: 'Sendbird Platform API — Messages. 2 operations. Lead operation: List Messages. Self-contained Naftiko capability covering one Sendbird business surface.' tags: - Sendbird - Messages created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SENDBIRD_API_KEY: SENDBIRD_API_KEY capability: consumes: - type: http namespace: platform-messages baseUri: https://api-{application_id}.sendbird.com/v3 description: Sendbird Platform API — Messages business capability. Self-contained, no shared references. resources: - name: group_channels-channel_url-messages path: /group_channels/{channel_url}/messages operations: - name: listmessages method: GET description: List Messages outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: message_ts in: query type: integer description: Unix timestamp to fetch messages around. - name: prev_limit in: query type: integer description: Number of messages to retrieve before message_ts. - name: next_limit in: query type: integer description: Number of messages to retrieve after message_ts. - name: include in: query type: boolean description: Whether to include the message at message_ts. - name: sendmessage method: POST description: Send a Message outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: Api-Token value: '{{env.SENDBIRD_API_KEY}}' placement: header exposes: - type: rest namespace: platform-messages-rest port: 8080 description: REST adapter for Sendbird Platform API — Messages. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/group-channels/{channel-url}/messages name: group-channels-channel-url-messages description: REST surface for group_channels-channel_url-messages. operations: - method: GET name: listmessages description: List Messages call: platform-messages.listmessages with: message_ts: rest.message_ts prev_limit: rest.prev_limit next_limit: rest.next_limit include: rest.include outputParameters: - type: object mapping: $. - method: POST name: sendmessage description: Send a Message call: platform-messages.sendmessage with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: platform-messages-mcp port: 9090 transport: http description: MCP adapter for Sendbird Platform API — Messages. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-messages description: List Messages hints: readOnly: true destructive: false idempotent: true call: platform-messages.listmessages with: message_ts: tools.message_ts prev_limit: tools.prev_limit next_limit: tools.next_limit include: tools.include outputParameters: - type: object mapping: $. - name: send-message description: Send a Message hints: readOnly: false destructive: false idempotent: false call: platform-messages.sendmessage with: body: tools.body outputParameters: - type: object mapping: $.