naftiko: 1.0.0-alpha2 info: label: HubSpot Conversations API — Messages description: 'HubSpot Conversations API — Messages. 3 operations. Lead operation: Hubspot List Thread Messages. Self-contained Naftiko capability covering one Hubspot business surface.' tags: - Hubspot - Messages created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: HUBSPOT_API_KEY: HUBSPOT_API_KEY capability: consumes: - type: http namespace: conversations-messages baseUri: https://api.hubapi.com description: HubSpot Conversations API — Messages business capability. Self-contained, no shared references. resources: - name: conversations-v3-conversations-threads-threadId-messages path: /conversations/v3/conversations/threads/{threadId}/messages operations: - name: listthreadmessages method: GET description: Hubspot List Thread Messages outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: threadId in: path type: string description: The unique identifier of the thread required: true - name: limit in: query type: integer description: Maximum number of messages per page - name: after in: query type: string description: Pagination cursor for the next page - name: sendmessage method: POST description: Hubspot Send a Message outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: threadId in: path type: string description: The unique identifier of the thread to send the message to required: true - name: body in: body type: object description: Request body (JSON). required: true - name: conversations-v3-conversations-threads-threadId-messages-messageId path: /conversations/v3/conversations/threads/{threadId}/messages/{messageId} operations: - name: getmessagebyid method: GET description: Hubspot Retrieve a Message outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: threadId in: path type: string description: The unique identifier of the thread containing the message required: true - name: messageId in: path type: string description: The unique identifier of the message to retrieve required: true authentication: type: bearer token: '{{env.HUBSPOT_API_KEY}}' exposes: - type: rest namespace: conversations-messages-rest port: 8080 description: REST adapter for HubSpot Conversations API — Messages. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/conversations/v3/conversations/threads/{threadid}/messages name: conversations-v3-conversations-threads-threadid-messages description: REST surface for conversations-v3-conversations-threads-threadId-messages. operations: - method: GET name: listthreadmessages description: Hubspot List Thread Messages call: conversations-messages.listthreadmessages with: threadId: rest.threadId limit: rest.limit after: rest.after outputParameters: - type: object mapping: $. - method: POST name: sendmessage description: Hubspot Send a Message call: conversations-messages.sendmessage with: threadId: rest.threadId body: rest.body outputParameters: - type: object mapping: $. - path: /v1/conversations/v3/conversations/threads/{threadid}/messages/{messageid} name: conversations-v3-conversations-threads-threadid-messages-messageid description: REST surface for conversations-v3-conversations-threads-threadId-messages-messageId. operations: - method: GET name: getmessagebyid description: Hubspot Retrieve a Message call: conversations-messages.getmessagebyid with: threadId: rest.threadId messageId: rest.messageId outputParameters: - type: object mapping: $. - type: mcp namespace: conversations-messages-mcp port: 9090 transport: http description: MCP adapter for HubSpot Conversations API — Messages. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: hubspot-list-thread-messages description: Hubspot List Thread Messages hints: readOnly: true destructive: false idempotent: true call: conversations-messages.listthreadmessages with: threadId: tools.threadId limit: tools.limit after: tools.after outputParameters: - type: object mapping: $. - name: hubspot-send-message description: Hubspot Send a Message hints: readOnly: false destructive: false idempotent: false call: conversations-messages.sendmessage with: threadId: tools.threadId body: tools.body outputParameters: - type: object mapping: $. - name: hubspot-retrieve-message description: Hubspot Retrieve a Message hints: readOnly: true destructive: false idempotent: true call: conversations-messages.getmessagebyid with: threadId: tools.threadId messageId: tools.messageId outputParameters: - type: object mapping: $.