Rainbow · Capability

Rainbow Messaging API — Messages

Rainbow Messaging API — Messages. 2 operations. Lead operation: Get Conversation Messages. Self-contained Naftiko capability covering one Rainbow business surface.

Run with Naftiko RainbowMessages

What You Can Do

GET
Getconversationmessages — Get Conversation Messages
/v1/enduser/v1-0/conversations/{conversationid}/messages
POST
Sendmessage — Send Message
/v1/enduser/v1-0/messages

MCP Tools

get-conversation-messages

Get Conversation Messages

read-only idempotent
send-message

Send Message

Capability Spec

messaging-messages.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Rainbow Messaging API — Messages
  description: 'Rainbow Messaging API — Messages. 2 operations. Lead operation: Get Conversation Messages. Self-contained
    Naftiko capability covering one Rainbow business surface.'
  tags:
  - Rainbow
  - Messages
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    RAINBOW_API_KEY: RAINBOW_API_KEY
capability:
  consumes:
  - type: http
    namespace: messaging-messages
    baseUri: https://openrainbow.com/api/rainbow
    description: Rainbow Messaging API — Messages business capability. Self-contained, no shared references.
    resources:
    - name: enduser-v1.0-conversations-conversationId-messages
      path: /enduser/v1.0/conversations/{conversationId}/messages
      operations:
      - name: getconversationmessages
        method: GET
        description: Get Conversation Messages
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: conversationId
          in: path
          type: string
          description: Unique identifier of the conversation
          required: true
        - name: limit
          in: query
          type: integer
          description: Maximum number of messages to return
        - name: before
          in: query
          type: string
          description: Return messages before this timestamp (ISO 8601)
    - name: enduser-v1.0-messages
      path: /enduser/v1.0/messages
      operations:
      - name: sendmessage
        method: POST
        description: Send Message
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.RAINBOW_API_KEY}}'
  exposes:
  - type: rest
    namespace: messaging-messages-rest
    port: 8080
    description: REST adapter for Rainbow Messaging API — Messages. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/enduser/v1-0/conversations/{conversationid}/messages
      name: enduser-v1-0-conversations-conversationid-messages
      description: REST surface for enduser-v1.0-conversations-conversationId-messages.
      operations:
      - method: GET
        name: getconversationmessages
        description: Get Conversation Messages
        call: messaging-messages.getconversationmessages
        with:
          conversationId: rest.conversationId
          limit: rest.limit
          before: rest.before
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/enduser/v1-0/messages
      name: enduser-v1-0-messages
      description: REST surface for enduser-v1.0-messages.
      operations:
      - method: POST
        name: sendmessage
        description: Send Message
        call: messaging-messages.sendmessage
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: messaging-messages-mcp
    port: 9090
    transport: http
    description: MCP adapter for Rainbow Messaging API — Messages. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-conversation-messages
      description: Get Conversation Messages
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: messaging-messages.getconversationmessages
      with:
        conversationId: tools.conversationId
        limit: tools.limit
        before: tools.before
      outputParameters:
      - type: object
        mapping: $.
    - name: send-message
      description: Send Message
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: messaging-messages.sendmessage
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.